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

Resolve "bind: Address already in use" when debugging within devcontainer #3

Open
Andrew-Dupuis opened this issue Jun 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Andrew-Dupuis
Copy link
Contributor

When using VSCode Devcontainers as a development and debugging environment, there is currently an issue with running Gadgetron on the default port due to an address binding collision. To reproduce, start the devcontainer via "F1->Reopen in container", then press F5 to build and start the gadgetron:

06-07 14:07:19.999 DEBUG [gadgetron_paths.cpp:117] Executable path: "/opt/conda/envs/gadgetron/bin/gadgetron"
06-07 14:07:19.999 DEBUG [gadgetron_paths.cpp:123] Default Gadgetron home: "/opt/conda/envs/gadgetron"
06-07 14:07:19.999 WARNING [initialization.cpp:38] Environment variable 'OMP_WAIT_POLICY' not set to 'PASSIVE'.
06-07 14:07:19.999 WARNING [initialization.cpp:39] Gadgetron may experience serious performance issues under heavy load (multiple simultaneous reconstructions, etc.)
06-07 14:07:19.999 INFO [main.cpp:90] Gadgetron 4.4.7 [a0318d1349dce1b9799cb9f6b4486c6cfc5e0c7f]
06-07 14:07:20.000 DEBUG [storage.cpp:68] Found storage server: /opt/conda/envs/gadgetron/bin/mrd-storage-server
06-07 14:07:20.000 INFO [storage.cpp:69] Starting storage server on port 9112
06-07 14:07:20.001 INFO [storage.cpp:28] Verifying connectivity to storage server...
{"level":"info","time":"2023-06-07T14:07:20.098Z","message":"Listening on port 9112"}
{"level":"info","requestId":"e1eb6eaf-2206-4122-affd-b503fec7b3e4","status":200,"method":"GET","path":"/healthcheck","query":"","latencyMs":0.441,"time":"2023-06-07T14:07:20.202Z","message":"request completed"}
06-07 14:07:20.202 INFO [storage.cpp:33] Received successful response from storage server.
06-07 14:07:20.202 INFO [main.cpp:99] Running on port 9002
06-07 14:07:20.202 INFO [Server.cpp:25] Gadgetron home directory: "/opt/conda/envs/gadgetron"
06-07 14:07:20.202 INFO [Server.cpp:26] Gadgetron working directory: "/tmp/gadgetron/"
06-07 14:07:20.203 ERROR [main.cpp:136] bind: Address already in use [system:98 at /opt/conda/envs/gadgetron/include/boost/asio/detail/reactive_socket_service.hpp:161 in function 'bind']
@Andrew-Dupuis Andrew-Dupuis added the bug Something isn't working label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant