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

fix: address already in use error in dfx start #4006

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

mraszyk
Copy link
Contributor

@mraszyk mraszyk commented Nov 19, 2024

This PR fixes errors of the form

$ dfx start --clean
Running dfx start for version 0.24.2+rev23.dirty-3b68fe37
Using project-specific network 'local' defined in /home/martin/orbit/dfx.json
Error: Failed to get frontend address.
Caused by: Failed to find available socket address
Caused by: Failed to bind socket to 127.0.0.1:4943.
Caused by: Address already in use (os error 98)

observed when restarting dfx shortly after browsing a frontend canister making periodic background requests and stopping dfx.

It has been manually confirmed to fix the issue on Ubuntu 24.04.1 LTS.

@mraszyk mraszyk requested a review from a team as a code owner November 19, 2024 17:44
@mraszyk mraszyk merged commit a5e8144 into master Nov 20, 2024
296 checks passed
@mraszyk mraszyk deleted the mraszyk/fix-address-in-use branch November 20, 2024 10:48
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

Successfully merging this pull request may close these issues.

3 participants