cachix / devenv

Fast, Declarative, Reproducible, and Composable Developer Environments
https://devenv.sh
Apache License 2.0
3.56k stars 259 forks source link

port 9999 is used #1091

Closed pickfire closed 1 month ago

pickfire commented 1 month ago

Describe the bug Port 9999 is is bound unannounced. When error is encountered, no solution is provided, usually what I did is kill port 9999.

To reproduce Run two hello world devenv.

• Building processes ...
• Using Cachix: devenv
✔ Building processes in 2.5s.
• Starting processes ...• Building shell ...
✔ Building shell in 1.3s.
24-04-02 09:38:05.201 FTL start http server on :9999 failed error="listen tcp :9999: bind: address already in use"

I know can be bound to another port, but why does one have to go through the github issues to figure this one?

Since we are in a directory, why can't it be a unix socket binding rather than port binding?

Version

devenv 1.0.2 (aarch64-darwin)

domenkozar commented 1 month ago

I've opened up https://github.com/F1bonacc1/process-compose/issues/172, meanwhile you can set process.process-compose.port = XXXX; in devenv.nix.

I'd also like to remind you to be kind, I'm here dedicating everything to support this project and we're on a journey of making it better every day.

domenkozar commented 1 month ago

Going to be fixed in https://github.com/cachix/devenv/pull/1110/commits/cb674b087fcf038297f31beb9e9737892bfbca0a