C
Coder.com8mo 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
Codercord8mo ago
<#1242065583269482526>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys8mo ago
From https://discord.com/channels/747933592273027093/1242005685169029141/1242065417732620289 @TWA could you run the command that's inbetween quotation marks manually?
tsa
tsaOP8mo ago
Phorcys
Phorcys8mo 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
tsaOP8mo ago
yup
Phorcys
Phorcys8mo ago
can you check if the postgres data folder and the pwfile exists ?
tsa
tsaOP8mo ago
Phorcys
Phorcys8mo ago
maybe try to create that data folder and retry
tsa
tsaOP8mo ago
Phorcys
Phorcys8mo 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
tsaOP8mo ago
sorry for the ping, i tried the above but it still didn't work
Phorcys
Phorcys8mo ago
no worries
Phorcys
Phorcys8mo 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
Phorcys8mo ago
the Coder team checks GH issues more for this type of stuff
Atif
Atif8mo ago
Please link the GH issue here so that we can close this thread.

Did you find this page helpful?