Cant start coder on windows pc
Hello i want to start my coder server but i get this error form postgres:
Encountered an error running "coder server"
Usage: coder server [flags]
Error: Failed to start built-in PostgreSQL. Optionally, specify an external deployment with
--postgres-url
: unable to init database using 'C:\Users\info\AppData\Roaming\coderv2\postgres\bin\bin\initdb.exe -A password -U coder -D C:\Users\info\AppData\Roaming\coderv2\postgres\data --pwfile=C:\Users\info\AppData\Roaming\coderv2\postgres\runtime\pwfile': exit status 0xc0000135Solution:Jump to solution
you will need to log out and login, or run
newgrp docker
before running coder server
40 Replies
<#1230522694655672461>
Category
Help needed
Product
Coder OSS (v2)
Platform
Windows
Logs
Please post any relevant logs/error messages.
welp
Looking up
exit status 0xc0000135
it appears that generally you see that when Windows is missing a library it needs.
I think you have two options here:
1) Set CODER_PG_CONNECTION_URL
to point to an existing PostgreSQL database, or
2) Install the PostgreSQL CLI tools so that you have the required libraries. You can do that by downloading the Windows PostgreSQL installer from https://www.enterprisedb.com/downloads/postgres-postgresql-downloads , launching the MSI, and only selecting "Command Line Tools" when prompted to select components.GitHub
bug: windows:
coder server
fails to start with `exit status 0xc00...Reproduced on Windows 21H2 (OS build 20348.2159) coder server fails to start with the error: Error: Failed to start built-in PostgreSQL. Optionally, specify an external deployment with --postgres-u...
Scratch that, it might just be missing the VC++ runtime
![No description](https://cdn.answeroverflow.com/1230899544036868106/Screenshot_2024-04-19_at_16.13.57.png)
only shows up if you run the initdb cmd in
cmd.exe
and not in PSNo i fixed it
Dw
btw @EB :)
i mean
@Cian I got an other problem
it spams this
:/
someone welp
:(
It looks like it's failing to build the Docker image. Are you using a Docker daemon running on the same Windows host?
I switched over to a vps
ubuntu
Error: Error pinging Docker server: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
now i get this error
wlp
Have you checked that the user under which
coder
runs has permissions to access the docker daemon socket?
Is Docker installed and running?I installed docker.io
and its running
how do i add coder to the docker daemon
![No description](https://cdn.answeroverflow.com/1231914591383060490/image.png)
![No description](https://cdn.answeroverflow.com/1231914591710351451/image.png)
both are running
and coder has been added to the docker group
@Cian
that appears correct.