Coder.comC
Coder.com2y ago
26 replies
farah

how do i get coder to run all the time?

I understand what the below error literally means. just not in the context of coder.

listen tcp 127.0.0.1:3000: bind: address already in use

i ran the coder v2 install script and then set coder service to enable and run on reboot. but get the above error. so then i kill the process on port 3000. and run $coder server and everything works. but the coder server doesn’t run 24/7. because i killed the process

what am i missing?
Solution
What if you change it like this
#CODER_ACCESS_URL=
CODER_HTTP_ADDRESS=127.0.0.1:3000
#CODER_PG_CONNECTION_URL=

And then run
sudo systemctl daemon-reload
sudo systemctl restart coder
sudo systemctl enable coder --now
Was this page helpful?