try to restart the `dfx start` fail.
q2333gh opened this issue · comments
I tried the following:
...
"networks": {
"local": {
"bind": "127.0.0.1:8080",
"type": "ephemeral",
"replica": {
"subnet_type": "system"
}
},
...
btwl@btwl-virtual-machine ~/D/i/tax_lint (master)> dfx stop
No local network replica found. Nothing to do.
Using project-specific network 'local' defined in /home/btwl/Desktop/ic/tax_lint/dfx.json
btwl@btwl-virtual-machine ~/D/i/tax_lint (master)> dfx start
Running dfx start for version 0.15.2
Using project-specific network 'local' defined in /home/btwl/Desktop/ic/tax_lint/dfx.json
Error: Failed to get frontend address.
Caused by: Failed to get frontend address.
Failed to find reusable socket address
Failed to set socket of tcp builder to 127.0.0.1:8080.
Address already in use (os error 98)
-
can i sue port 40010 as project default ?cause 8080 is too common to clash sometimes.
-
also i found that
export http_proxy=xxx
andexport https_proxy=xxx
may cause dfx server bug sometimes ? -
if i log out all session of current user.
sudo who
display no user xxx login. will the ic replica which is boot fromdfx start
also terminated ? or its still running ?
I have test proxy again. if my /etc/environment got export http_proxy=xxx
then i run : dfx start
or press ctrl+c
will all cause
ERROR: Failed to initialize replica: The replica returned an HTTP Error: Http Error: status 502 Bad Gateway, content type "", content:
In answer to (1): Yes, you can use port 40010 or any other port