C
Coder.com5mo ago
EB :)

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 0xc0000135
Solution:
you will need to log out and login, or run newgrp docker before running coder server
Jump to solution
40 Replies
Codercord
Codercord5mo ago
<#1230522694655672461>
Category
Help needed
Product
Coder OSS (v2)
Platform
Windows
Logs
Please post any relevant logs/error messages.
EB :)
EB :)5mo ago
welp
Cian
Cian5mo ago
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.
Cian
Cian5mo ago
In any case, filed https://github.com/coder/coder/issues/13010 to track this issue.
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...
Cian
Cian5mo ago
Scratch that, it might just be missing the VC++ runtime
Cian
Cian5mo ago
No description
Cian
Cian5mo ago
only shows up if you run the initdb cmd in cmd.exe and not in PS
EB :)
EB :)5mo ago
No i fixed it Dw btw @EB :) i mean @Cian I got an other problem
docker_image.main: Creating...
docker_image.main: Still creating... [10s elapsed]
docker_image.main: Still creating... [20s elapsed]
docker_image.main: Still creating... [30s elapsed]
docker_image.main: Still creating... [40s elapsed]
docker_image.main: Creating...
docker_image.main: Still creating... [10s elapsed]
docker_image.main: Still creating... [20s elapsed]
docker_image.main: Still creating... [30s elapsed]
docker_image.main: Still creating... [40s elapsed]
it spams this :/ someone welp :(
Cian
Cian5mo ago
It looks like it's failing to build the Docker image. Are you using a Docker daemon running on the same Windows host?
EB :)
EB :)5mo ago
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
Cian
Cian5mo ago
Have you checked that the user under which coder runs has permissions to access the docker daemon socket? Is Docker installed and running?
EB :)
EB :)5mo ago
I installed docker.io and its running how do i add coder to the docker daemon
EB :)
EB :)5mo ago
No description
No description
EB :)
EB :)5mo ago
both are running and coder has been added to the docker group @Cian
Cian
Cian5mo ago
that appears correct.
Want results from more Discord servers?
Add your server