The Wayback Machine - https://web.archive.org/web/20201208204846/https://github.com/PostgresApp/PostgresApp/issues/581
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not initialize database cluster. #581

Open
firzen opened this issue Jul 7, 2020 · 1 comment
Open

Could not initialize database cluster. #581

firzen opened this issue Jul 7, 2020 · 1 comment

Comments

@firzen
Copy link

@firzen firzen commented Jul 7, 2020

MACOS 10.15.5 / PSQL 12
While click "initialize" button:

1

And while running command below:
` /Applications/Postgres.app/Contents/Versions/latest/bin/initdb -D "/Users/firzen/Library/Application Support/Postgres/var-12" -U postgres --encoding=UTF-8 --locale=en_US.UTF-8
The files belonging to this database system will be owned by user "firzen".
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.

creating directory /Users/firzen/Library/Application Support/Postgres/var-12 ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 20
selecting default shared_buffers ... 400kB
selecting default time zone ... Asia/Shanghai
creating configuration files ... ok
running bootstrap script ... 2020-07-07 17:32:00.122 CST [59714] FATAL: semctl(65923, 16, SETVAL, 536) failed: Invalid argument
child process exited with exit code 1
initdb: removing data directory "/Users/firzen/Library/Application Support/Postgres/var-12"
`

@jakob
Copy link
Member

@jakob jakob commented Jul 7, 2020

Thanks for the detailed bug report. This looks like a duplicate of #575

I'm not sure what is causing this. Looking through the reports, the problem seems to occur only in China.

I've tried to set my computer region to "China mainland", set the language to "Chinese Simplified", and even changed the time zone to "Asia/Shanghai". But it makes no difference. It works on my computer (but I'm still on 10.15.4).

Have you tried any other PostgreSQL distributions from here: https://www.postgresql.org/download/macosx/ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.