https://bugs.winehq.org/show_bug.cgi?id=35967
Bug ID: 35967 Summary: postgresql 9.3.4-3 fails to install (needs to be a non-administrator) 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
Created attachment 48074 --> https://bugs.winehq.org/attachment.cgi?id=48074 report non-admin privileges
Background: a user asked about how to get wine to report not running as admin in #winehackers, for postgresql
After winetricks wsh57 to work around bug 35966, the installer mostly works. At the end the install, it tells you there was a problem starting the database. Looking at its log, I see: creating template1 database in C:/Program Files/PostgreSQL/9.3/data/base/1 ... Execution of PostgreSQL by a user with administrative permissions is not permitted. The server must be started under an unprivileged user ID to prevent possible system security compromises. See the documentation for more information on how to properly start the server. child process exited with exit code 1 initdb: removing contents of data directory "C:/Program Files/PostgreSQL/9.3/data"
Called Die(Failed to initialise the database cluster with initdb)... Failed to initialise the database cluster with initdb
Vincent offered the user a suggestion on how to avoid it, I'll attach that patch. With that patch, the non-admin error goes away, and I get a cmd problem.
https://bugs.winehq.org/show_bug.cgi?id=35967
--- Comment #1 from Austin English austinenglish@gmail.com --- austin@aw25 ~ $ sha1sum postgresql-9.3.4-3-windows.exe d8fd1733ba5c7d491eb78da6bbc37b9e85a7fd9f postgresql-9.3.4-3-windows.exe austin@aw25 ~ $ du -h postgresql-9.3.4-3-windows.exe 51M postgresql-9.3.4-3-windows.exe austin@aw25 ~ $ wine --version wine-1.7.16-135-g7f311fb
https://bugs.winehq.org/show_bug.cgi?id=35967
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |35968
http://bugs.winehq.org/show_bug.cgi?id=35967
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com Component|vbscript |ntdll
http://bugs.winehq.org/show_bug.cgi?id=35967 Bug 35967 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=35967
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=38667
https://bugs.winehq.org/show_bug.cgi?id=35967
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
https://bugs.winehq.org/show_bug.cgi?id=35967
exposight exposight@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |exposight@gmail.com
--- Comment #2 from exposight exposight@gmail.com --- On wine 4.18 and using postgresql-9.3.25-1-windows.exe behavior is somewhat different: there is a warning message still, but about different thing - "The database cluster initialisation failed". Here is what in the log:
Initialising the database cluster (this may take a few minutes)... Executing cscript //NoLogo "C:\Program Files (x86)\PostgreSQL\9.3/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Program Files (x86)\PostgreSQL\9.3" "C:\Program Files (x86)\PostgreSQL\9.3\data" 5432 "DEFAULT" 0 Script exit code: 1
Script output: WScript.Shell Initialized... Scripting.FileSystemObject initialized... Object doesn't support this action Called CreateDirectory(C:\Program Files (x86)\PostgreSQL\9.3\data)... Called CreateDirectory(C:\Program Files (x86)\PostgreSQL\9.3)... Called Die(Failed to create the data directory (C:\Program Files (x86)\PostgreSQL\9.3\data))... Failed to create the data directory (C:\Program Files (x86)\PostgreSQL\9.3\data)
Script stderr: Program ended with an error exit code
Error running cscript //NoLogo "C:\Program Files (x86)\PostgreSQL\9.3/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Program Files (x86)\PostgreSQL\9.3" "C:\Program Files (x86)\PostgreSQL\9.3\data" 5432 "DEFAULT" 0: Program ended with an error exit code Problem running post-install step. Installation may not complete correctly The database cluster initialisation failed.