pgserver
pgserver copied to clipboard
Failed to start on intel mac running 14.4
When trying to start the pgserver I am getting the following error on macos 14.
Failed postgres command (1, ['/Users/michaelhonaker/.pyenv/versions/wdu-2.0/lib/python3.11/site-packages/pgserver/pginstall/bin/initdb', '-D', '/private/var/folders/bl/7bs4d4z53blc6y7pn118vs780000gn/T/tmpvomlgq3v', '--auth=trust', '--auth-local=trust', '--encoding=utf8', '-U', 'postgres']) with kwargs: `{'user': None}`:
error:
Command '['/Users/michaelhonaker/.pyenv/versions/wdu-2.0/lib/python3.11/site-packages/pgserver/pginstall/bin/initdb', '-D', '/private/var/folders/bl/7bs4d4z53blc6y7pn118vs780000gn/T/tmpvomlgq3v', '--auth=trust', '--auth-local=trust', '--encoding=utf8', '-U', 'postgres']' returned non-zero exit status 1.
stdout:
The files belonging to this database system will be owned by user "michaelhonaker".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /private/var/folders/bl/7bs4d4z53blc6y7pn118vs780000gn/T/tmpvomlgq3v ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 20
selecting default shared_buffers ... 400kB
selecting default time zone ... US/Eastern
creating configuration files ... ok
running bootstrap script ...
---
stderr:
2024-12-05 10:13:13.610 EST [95679] FATAL: could not open directory "/Users/michaelhonaker/.pyenv/versions/3.11.1/envs/wdu-2.0/lib/python3.11/site-packages/pgserver/pginstall/share/postgresql/timezonesets": No such file or directory
2024-12-05 10:13:13.610 EST [95679] HINT: This may indicate an incomplete PostgreSQL installation, or that the file "/Users/michaelhonaker/.pyenv/versions/3.11.1/envs/wdu-2.0/lib/python3.11/site-packages/pgserver/pginstall/bin/postgres" has been moved away from its proper location.
child process exited with exit code 1
initdb: removing contents of data directory "/private/var/folders/bl/7bs4d4z53blc6y7pn118vs780000gn/T/tmpvomlgq3v"
CC: @orm011
This only happens with pgserver==0.1.4. I was able to install pgserver==0.1.3 and it worked as expected