https://bugs.winehq.org/show_bug.cgi?id=35968
Bug ID: 35968 Summary: postgresql 9.3.4-3 has a problem initializing its database Product: Wine Version: 1.7.16 Hardware: x86 URL: http://www.postgresql.org/download/windows/ OS: Linux Status: NEW Keywords: download, Installer Severity: minor Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com Depends on: 35966, 35967
Created attachment 48075 --> https://bugs.winehq.org/attachment.cgi?id=48075 cmd,tid trace
After winetricks wsh57 to work around bug 35966, and applying the patch from bug 35967, the installer downgrades the database problem to a non-fatal warning.
The installer log tells us:
Called IsVistaOrNewer()... Granting service account access to the data directory (using icacls) to NT AUTHORITY\NetworkService: Executing batch file 'rad222B0.bat'... Can't recognize 'icacls "C:\Program Files\PostgreSQL\9.3\data" /T /C /grant "NT AUTHORITY\NetworkService":(OI)(CI)(F) ' as an internal or external command, or batch script.
Failed to grant service account access to the data directory (C:\Program Files\PostgreSQL\9.3\data) initcluster.vbs ran to completion
Script stderr: Can't recognize 'CHCP 1252' as an internal or external command, or batch script. Can't recognize 'CHCP 1252' as an internal or external command, or batch script. Can't recognize 'CHCP 1252' as an internal or external command, or batch script.
+cmd,+tid attached (with patch from 35967 applied)
https://bugs.winehq.org/show_bug.cgi?id=35968
--- Comment #1 from Austin English austinenglish@gmail.com --- Created attachment 48076 --> https://bugs.winehq.org/attachment.cgi?id=48076 postgre installer's log
http://bugs.winehq.org/show_bug.cgi?id=35968
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #48076|text/x-c |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=35968
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- You sure it's a vbscript problem? From attached log I see some WMI problems like that:
--- 0031:fixme:wbemdisp:factory_QueryInterface interface {0000011a-0000-0000-c000-000000000046} not implemented 0031:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004002 0031:err:ole:create_server class {172bddf8-ceea-11d1-8b05-00600806d9b6} not registered 0031:fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported 0031:err:ole:CoGetClassObject no class object {172bddf8-ceea-11d1-8b05-00600806d9b6} could be created for context 0x15 0031:fixme:wbemdisp:WinMGMTS_ParseDisplayName (0x184ea8 L"winmgmts:\\.\root\cimv2" 0x33e91c 0x33e910) 0031:fixme:wbemdisp:factory_QueryInterface interface {0000011a-0000-0000-c000-000000000046} not implemented 0031:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004002 0031:err:ole:create_server class {172bddf8-ceea-11d1-8b05-00600806d9b6} not registered 0031:fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported 0031:err:ole:CoGetClassObject no class object {172bddf8-ceea-11d1-8b05-00600806d9b6} could be created for context 0x15 0031:fixme:wbemdisp:WinMGMTS_ParseDisplayName (0x184ea8 L"winmgmts:\\.\root\cimv2" 0x33eb5c 0x33eb50) ---
From installer log it looks like cscript fails with //nologo switch:
--- Executing cscript //NoLogo "C:\Program Files\PostgreSQL\9.3/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Program Files\PostgreSQL\9.3" "C:\Program Files\PostgreSQL\9.3\data" 5432 "DEFAULT" 0 Script exit code: 2 ---
https://bugs.winehq.org/show_bug.cgi?id=35968
austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|vbscript |wmi&wbemprox
--- Comment #3 from austinenglish@gmail.com --- (In reply to Nikolay Sivov from comment #2)
You sure it's a vbscript problem? From attached log I see some WMI problems like that:
No, that was a mistake when cloning the previous bug, it was meant to be unknown, but a diagnosis is better :).
http://bugs.winehq.org/show_bug.cgi?id=35968 Bug 35968 depends on bug 35966, which changed state.
Bug 35966 Summary: postgresql 9.3.4-3 fails to install (cscript/vbscript) http://bugs.winehq.org/show_bug.cgi?id=35966
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
https://bugs.winehq.org/show_bug.cgi?id=35968
--- Comment #4 from Hans Leidekker hans@meelstraat.net --- WinMGMTS_ParseDisplayName was implemented with ff251092a7b400b128e1b0096cf0dc95db500c02. Austin, do you still see this in current Wine?
https://bugs.winehq.org/show_bug.cgi?id=35968
--- Comment #5 from Austin English austinenglish@gmail.com --- (In reply to Hans Leidekker from comment #4)
WinMGMTS_ParseDisplayName was implemented with ff251092a7b400b128e1b0096cf0dc95db500c02. Austin, do you still see this in current Wine?
I found a copy of the old version here: http://mirror.nienbo.com/postgresql/binaries/dlc/9.3.4-3/postgresql-9.3.4-3-...
I see the same issue with it, and the latest 9.3.x - 9.3.24. Tested using wine-3.19-116-gb78de971f6
https://bugs.winehq.org/show_bug.cgi?id=35968
Robert Wilhelm sloper42@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sloper42@yahoo.com
--- Comment #6 from Robert Wilhelm sloper42@yahoo.com --- Created attachment 72957 --> https://bugs.winehq.org/attachment.cgi?id=72957 installers log with wine-7.15-146-g120ca2ff52d
With wine-7.15 and winetricks wsh57 only one script logs an error:
psql: could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
Failed to load SQL modules into the database cluster.
https://bugs.winehq.org/show_bug.cgi?id=35968
--- Comment #7 from Robert Wilhelm sloper42@yahoo.com --- Created attachment 72958 --> https://bugs.winehq.org/attachment.cgi?id=72958 output of $wine postgresql-9.3.25-1-windows.exe
https://bugs.winehq.org/show_bug.cgi?id=35968
--- Comment #8 from Austin English austinenglish@gmail.com --- Try installing winbind, you might need to do this in a fresh prefix, before postgres.
https://bugs.winehq.org/show_bug.cgi?id=35968
--- Comment #9 from Robert Wilhelm sloper42@yahoo.com --- Created attachment 72962 --> https://bugs.winehq.org/attachment.cgi?id=72962 wine output of during installation of postgresql 9.3.25-1.
https://bugs.winehq.org/show_bug.cgi?id=35968
--- Comment #10 from Robert Wilhelm sloper42@yahoo.com ---
Try installing winbind, you might need to do this in a fresh prefix, before postgres.
Thanks. I installed some samba, kerberus, ldap packages on my Fedora 36 system. Now the errors regarding secur32,krb5 and wldap32 are gone, but I still get same messagebox with "Failed to load SQL modules into the database cluster."
https://bugs.winehq.org/show_bug.cgi?id=35968
Neko-san nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch