Search Postgresql Archives

pg_upgrade fails right after printing "Running in verbose mode"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

Lately we upgraded pg version in our app to 9.6.1 from 9.2.
However one of the customers reported, that upgrade process failed on Windows Server 2008 R2.

Our installer's logs showed that pg_upgrade returned -1073741515 which translates to 0xC0000135, which in turn means binary is missing some dll dependencies.
I ran pg_upgrade in customer's environment with dependency walker profiler on. After that I did the same on 2008r2 in our lab.

The only difference in the logs that I have found was following:

Log from customer which resulted in error:
...
00:00:02.652: DllMain(0x0000000180000000, DLL_PROCESS_ATTACH, 0x000000000042FB00) in "e:\prod_e\rfp\application\depends-full\test\engine-new\bin\LIBPQ.DLL" called.
00:00:02.652: DllMain(0x0000000180000000, DLL_PROCESS_ATTACH, 0x000000000042FB00) in "e:\prod_e\rfp\application\depends-full\test\engine-new\bin\LIBPQ.DLL" returned 1 (0x1).
00:00:02.652: LoadLibraryExA("SspiCli.dll", 0x0000000000000000, 0x00000000) called from "c:\windows\system32\ADVAPI32.DLL" at address 0x000007FEFEC5D995.
00:00:02.652: LoadLibraryExA("SspiCli.dll", 0x0000000000000000, 0x00000000) returned 0x000007FEFD020000.
00:00:02.667: GetProcAddress(0x000007FEFD020000 [c:\windows\system32\SSPICLI.DLL], "GetUserNameExA") called from "c:\windows\system32\ADVAPI32.DLL" at address 0x000007FEFEC5DA01 and returned 0x000007FEFD021640.
00:00:02.667: DllMain(0x000007FEFF840000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\windows\system32\IMM32.DLL" called.
00:00:02.667: DllMain(0x000007FEFF840000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\windows\system32\IMM32.DLL" returned 1 (0x1).
00:00:02.667: DllMain(0x000007FEFF320000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\windows\system32\MSCTF.DLL" called.
00:00:02.667: DllMain(0x000007FEFF320000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\windows\system32\MSCTF.DLL" returned 1 (0x1).
00:00:02.667: DllMain(0x0000000180000000, DLL_PROCESS_DETACH, 0x0000000000000001) in "e:\prod_e\rfp\application\depends-full\test\engine-new\bin\LIBPQ.DLL" called.
00:00:02.667: DllMain(0x0000000180000000, DLL_PROCESS_DETACH, 0x0000000000000001) in "e:\prod_e\rfp\application\depends-full\test\engine-new\bin\LIBPQ.DLL" returned 1 (0x1).
...
00:00:02.714: DllMain(0x000007FEFD2F0000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\windows\system32\KERNELBASE.DLL" returned 4294828033 (0xFFFDE001).
00:00:02.714: Exited "e:\prod_e\rfp\application\depends-full\test\engine-new\bin\PG_UPGRADE.EXE" (process 0x1980) with code 1 (0x1).


Log from our lab:
...

00:00:00.578: DllMain(0x0000000180000000, DLL_PROCESS_ATTACH, 0x000000000042FB00) in "c:\users\administrator\desktop\depends-full\test\engine-new\bin\LIBPQ.DLL" called.
00:00:00.578: DllMain(0x0000000180000000, DLL_PROCESS_ATTACH, 0x000000000042FB00) in "c:\users\administrator\desktop\depends-full\test\engine-new\bin\LIBPQ.DLL" returned 1 (0x1).
00:00:00.578: LoadLibraryExA("SspiCli.dll", 0x0000000000000000, 0x00000000) called from "c:\windows\system32\ADVAPI32.DLL" at address 0x000007FEFD95D995.
00:00:00.578: LoadLibraryExA("SspiCli.dll", 0x0000000000000000, 0x00000000) returned 0x000007FEFCF50000.
00:00:00.578: GetProcAddress(0x000007FEFCF50000 [c:\windows\system32\SSPICLI.DLL], "GetUserNameExA") called from "c:\windows\system32\ADVAPI32.DLL" at address 0x000007FEFD95DA01 and returned 0x000007FEFCF51640.
00:00:00.593: GetProcAddress(0x000007FEFE500000 [c:\windows\system32\MSVCRT.DLL], "_putenv") called from "c:\users\administrator\desktop\depends-full\test\engine-new\bin\PG_UPGRADE.EXE" at address 0x0000000140012672 and returned 0x000007FEFE542E54.
00:00:00.624: GetProcAddress(0x000007FEF6A20000 [c:\windows\system32\MSVCR120.DLL], "_putenv") called from "c:\users\administrator\desktop\depends-full\test\engine-new\bin\PG_UPGRADE.EXE" at address 0x0000000140012672 and returned 0x000007FEF6A94380.
00:00:00.624: LoadLibraryA("ADVAPI32.DLL") called from "c:\users\administrator\desktop\depends-full\test\engine-new\bin\PG_UPGRADE.EXE" at address 0x000000014000D84C.
00:00:00.640: LoadLibraryA("ADVAPI32.DLL") returned 0x000007FEFD940000.
00:00:00.640: GetProcAddress(0x000007FEFD940000 [c:\windows\system32\ADVAPI32.DLL], "CreateRestrictedToken") called from "c:\users\administrator\desktop\depends-full\test\engine-new\bin\PG_UPGRADE.EXE" at address 0x000000014000D868 and returned 0x000007FEFD97A510.
00:00:00.656: Loaded "c:\windows\system32\APPHELP.DLL" at address 0x000007FEFCF80000.  Successfully hooked module.
00:00:00.687: DllMain(0x000007FEFCF80000, DLL_PROCESS_ATTACH, 0x0000000000000000) in "c:\windows\system32\APPHELP.DLL" called.
00:00:00.687: DllMain(0x000007FEFCF80000, DLL_PROCESS_ATTACH, 0x0000000000000000) in "c:\windows\system32\APPHELP.DLL" returned 1 (0x1).
00:00:21.809: DllMain(0x000007FEFCF80000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\windows\system32\APPHELP.DLL" called.
00:00:21.809: DllMain(0x000007FEFCF80000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\windows\system32\APPHELP.DLL" returned 1 (0x1).
00:00:21.809: DllMain(0x000007FEFE280000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\windows\system32\IMM32.DLL" called.
00:00:21.809: DllMain(0x000007FEFE280000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\windows\system32\IMM32.DLL" returned 1 (0x1).
00:00:21.809: DllMain(0x000007FEFD4C0000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\windows\system32\MSCTF.DLL" called.
00:00:21.809: DllMain(0x000007FEFD4C0000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\windows\system32\MSCTF.DLL" returned 1 (0x1).
00:00:21.809: DllMain(0x0000000180000000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\users\administrator\desktop\depends-full\test\engine-new\bin\LIBPQ.DLL" called.
00:00:21.809: DllMain(0x0000000180000000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\users\administrator\desktop\depends-full\test\engine-new\bin\LIBPQ.DLL" returned 1 (0x1).
...
00:00:21.840: DllMain(0x000007FEFD450000, DLL_PROCESS_DETACH, 0x0000000000000001) in "c:\windows\system32\KERNELBASE.DLL" returned 4294828033 (0xFFFDE001).
00:00:21.840: Exited "c:\users\administrator\desktop\depends-full\test\engine-new\bin\PG_UPGRADE.EXE" (process 0x1A24) with code 0 (0x0).

C++ 2013 redist is installed on both systems.
I am not sure what might be causing it. Is this solely environment issue?
Any help will be appreciated.

Thanks,
Yuri.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux