dfinity / sdk

IC SDK: a Software Development Kit for creating and managing canister smart contracts on the ICP blockchain.

Home Page:https://internetcomputer.org/developers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

try to restart the `dfx start` fail.

q2333gh opened this issue · comments

commented

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)
  1. can i sue port 40010 as project default ?cause 8080 is too common to clash sometimes.

  2. also i found that export http_proxy=xxx and export https_proxy=xxx may cause dfx server bug sometimes ?

  3. if i log out all session of current user. sudo who display no user xxx login. will the ic replica which is boot from dfx start also terminated ? or its still running ?

commented

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