C
Coder.com7mo ago
tsa

Can't start built-in postgres

I'm getting an error saying that i can't start postgres when i try to start coder
15 Replies
Codercord
Codercord7mo ago
<#1242065583269482526>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys7mo ago
From https://discord.com/channels/747933592273027093/1242005685169029141/1242065417732620289 @TWA could you run the command that's inbetween quotation marks manually?
tsa
tsaOP7mo ago
Phorcys
Phorcys7mo ago
yeah that one but you might want to run /home/anirudh/.config/coderv2/postgres/bin/bin/pg_ctl start -w -D /home/anirudh/.config/coderv2/postgres/data -o -p 33597 first
tsa
tsaOP7mo ago
yup
Phorcys
Phorcys7mo ago
can you check if the postgres data folder and the pwfile exists ?
tsa
tsaOP7mo ago
Phorcys
Phorcys7mo ago
maybe try to create that data folder and retry
tsa
tsaOP7mo ago
Phorcys
Phorcys7mo ago
try moving the postgres folder like so mv /home/anirudh/.config/coderv2/postgres /home/anirudh/.config/coderv2/postgres.old and try to start coder server
tsa
tsaOP7mo ago
sorry for the ping, i tried the above but it still didn't work
Phorcys
Phorcys7mo ago
no worries
Phorcys
Phorcys7mo ago
you should open up a GH issue over @ https://github.com/coder/coder with all the info since this is a bug
GitHub
GitHub - coder/coder: Provision remote development environments via...
Provision remote development environments via Terraform - coder/coder
Phorcys
Phorcys7mo ago
the Coder team checks GH issues more for this type of stuff
Atif
Atif7mo ago
Please link the GH issue here so that we can close this thread.
Want results from more Discord servers?
Add your server