-
Notifications
You must be signed in to change notification settings - Fork 13
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
initdb fails on macos #261
Comments
Sorry, I'm not quite following the scope here (and I have no Apple hardware to try it out). This is occurring intermittently? Or on all Macs all of the time? Or one Mac all of the time? Is this specific to the way Butane is invoking Postgres in some way, or does a manual invocation of Postgres initdb hit the same problem on this system? |
I've got a rarely used Mac Intel, so might be able to reproduce it in order to get more specifics. I'm told it is a permanent problem until those kern params are set. Very likely the same error would occur if initdb was invoked the same way on the command line. |
I remember having this problem years ago setting up my Django dev environment on a Mac and fixing it as explained above. It's however a "problem" between Apple security restrictions for "regular" users and how you run PostgreSQL on an Apple system (usually, as your own user with the PostgreSQL app). |
On Mac we are seeing
The fix appears to be to increase
kern.sysv.shmmax
and maybekern.sysv.shmall
also.Possibly we can workaround this by adding params to the
initdb
invocation to indicate that a less production-like setup is acceptable.The text was updated successfully, but these errors were encountered: