sourcegraph / app

Issue tracker for the Sourcegraph app - a lightweight single-binary version of Sourcegraph for your local machine
27 stars 2 forks source link

osx not installing postgres #52

Closed micuentadecasa closed 1 year ago

micuentadecasa commented 1 year ago

this is the log

[2023-07-29][15:44:32][ERROR][app] ✱ Sourcegraph App version: 2023.7.11+1384.7d20a90ce7 darwin arm64 [2023-07-29][15:45:17][ERROR][app] unable to set up PostgreSQL: Failed to download or start embedded postgresql. Please start your own postgres instance then configure the PG environment variables to connect to it as well as setting USE_EMBEDDED_POSTGRESQL=0: unable to init database using '/Users/luis/Library/Application Support/com.sourcegraph.cody/postgresql/bin/bin/initdb -A trust -U sourcegraph -D /Users/luis/Library/Application Support/com.sourcegraph.cody/postgresql/data': exit status 1 [2023-07-29][15:45:17][ERROR][app] Cody app backend terminated with exit code 1 [2023-07-29][15:45:29][ERROR][app::common] No such file or directory (os error 2) [2023-07-29][15:45:30][ERROR][app] ✱ Sourcegraph App version: 2023.7.11+1384.7d20a90ce7 darwin arm64 [2023-07-29][15:45:40][ERROR][app] unable to set up PostgreSQL: Failed to download or start embedded postgresql. Please start your own postgres instance then configure the PG environment variables to connect to it as well as setting USE_EMBEDDED_POSTGRESQL=0: unable to init database using '/Users/luis/Library/Application Support/com.sourcegraph.cody/postgresql/bin/bin/initdb -A trust -U sourcegraph -D /Users/luis/Library/Application Support/com.sourcegraph.cody/postgresql/data': exit status 1 [2023-07-29][15:45:40][ERROR][app] Cody app backend terminated with exit code 1 [2023-07-29][15:45:45][ERROR][app] ✱ Sourcegraph App version: 2023.7.11+1384.7d20a90ce7 darwin arm64 [2023-07-29][15:45:45][ERROR][app] unable to set up PostgreSQL: Failed to download or start embedded postgresql. Please start your own postgres instance then configure the PG* environment variables to connect to it as well as setting USE_EMBEDDED_POSTGRESQL=0: unable to init database using '/Users/luis/Library/Application Support/com.sourcegraph.cody/postgresql/bin/bin/initdb -A trust -U sourcegraph -D /Users/luis/Library/Application Support/com.sourcegraph.cody/postgresql/data': exit status 1 [2023-07-29][15:45:45][ERROR][app] Cody app backend terminated with exit code 1

jakobww commented 1 year ago

@micuentadecasa found the reason and the workaround: https://dansketcher.com/2021/03/30/shmmax-error-on-big-sur/

micuentadecasa commented 1 year ago

thanks @jakobww , I will take a look.

micuentadecasa commented 1 year ago

I close the issue.

jakobww commented 1 year ago

Did it work?