Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket error on Codespaces #2003

Open
CSchank opened this issue Sep 19, 2024 · 5 comments
Open

Socket error on Codespaces #2003

CSchank opened this issue Sep 19, 2024 · 5 comments

Comments

@CSchank
Copy link
Contributor

CSchank commented Sep 19, 2024

When we're running on Codespaces using Varun's template (https://github.com/rvarun11/codespaces-ihp), we're running into this error sometimes:

/workspaces/IHP-Codespace2 (main) $ ./start {"level":"warn","error":"open /home/vscode/.config/process-compose/settings.yaml: no such file or directory","time":"2024-09-16T18:04:27Z","message":"Error reading settings file /home/vscode/.config/process-compose/settings.yaml"} 24-09-16 18:04:27.859 FTL start UDS http server on /tmp/devenv-ed5d247/pc.sock failed error="listen unix /tmp/devenv-ed5d247/pc.sock: bind: no such file or directory
”

The weird thing is that sometimes it gives this error but still works (we can access the ports), and other times it doesn't. Rebuilding the Codespace fixes it temporarily.

Any ideas on how to fix it? Do we need to update the Codespaces image? Thank you!

@mpscholten
Copy link
Member

Seems to be similiar to cachix/devenv#1270 (just with processcompose instead of overmind). Does this still happen with latest IHP master? On master we updated devenv to a version that likely fixes this

@CSchank
Copy link
Contributor Author

CSchank commented Sep 19, 2024

Tried on the latest master. Still getting:

@CSchank ➜ /workspaces/IHPTest2024 (main) $ ./start
warning: Git tree '/workspaces/IHPTest2024' is dirty
{"level":"warn","error":"open /home/vscode/.config/process-compose/settings.yaml: no such file or directory","time":"2024-09-19T15:38:38Z","message":"Error reading settings file /home/vscode/.config/process-compose/settings.yaml"}
24-09-19 15:38:38.533 FTL start UDS http server on /tmp/devenv-4909002/pc.sock failed error="listen unix /tmp/devenv-4909002/pc.sock: bind: no such file or directory"

:(

@CSchank
Copy link
Contributor Author

CSchank commented Sep 21, 2024

It looks like Codespaces clears out the /tmp directory in between runs. Could this be why? Can we get devenv to store the sockets elsewhere? Or regenerate them if they're missing?

@mpscholten
Copy link
Member

Likely yes. Best way would be to ask at the devenv.sh github repo https://github.com/cachix/devenv

@CSchank
Copy link
Contributor Author

CSchank commented Sep 22, 2024

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants