pi-node / instructions

254 stars 153 forks source link

Error based on node0.3.4 and docker for window #21

Open 2285291129 opened 4 years ago

2285291129 commented 4 years ago
     After I installed node 0.3.4, the pi-log error was reported as follows:
    1. Existing nodes need to detect Docker-machine in Docker for Window based on the error reporting information. However, the latest version of Docker for Window is not provided, so it is downloaded and added manually.See instructions for error 3 and 4.
     2. Node 0.3.4 will detect pi-consensus container traffic by default, while there is no container in docker for Window initialization. Is it because it is not open or just an error? 

My installation environment is as follows: Win10:19041 Pro, Docker: Docker for Window (latest docker Version 19.03.12) PI-NODE: 0.3.4
Problem recurrence method:

  1. Install Docker for Window by default under Win10 (the latest docker version 19.03.12)
  2. Install the Pi-Node program
  3. Start pi-Node and download the port detection image. error 1:stats: drive.info(): err: Error: disk name invalid and / not found error 2::[2020-09-09 09:59:19.823] [error] dockerFlavorSync: command error: Error: Command failed: docker-machine env default 'docker-machine' �����ڲ����ⲿ���Ҳ���ǿ����еij��� ���������ļ��� error 3:[error] dockerContainerStatsCommand: error: Command failed: docker stats pi-consensus --no-stream Error response from daemon: No such container: pi-consensus error 2 can be downloaded manuallydocker-machine.exe file "C:\Program Files\Docker\Docker\resources\bin" If this method is used, a new error will appear error4:dockerFlavorSync: command error: Error: Command failed: docker-machine env default Docker machine "default" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one To install, you must install the Docker Toolbox tool or it will be notified:Error with pre-create check: "This computer is running Hyper-V. VirtualBox won't boot a 64bits VM when Hyper-V is activated. Either use Hyper-V as a driver, or disable the Hyper-V hypervisor. (To skip this check, use --virtualbox-no-vtx-check)".
BeStephen1990 commented 3 years ago

Hey, any luck?

ihatejam commented 3 years ago

Hi,

Please follow the steps below:-- 1) Please ensure that you install the latest Windows updates image (above picture is true as at 28 Dec 2020)

2) Install the latest version of Docker for Windows and be sure to ENABLE the Windows Subsystem for Linux (WSL2) -- see the Docker site for more details. When you install/run Docker ensure that you give it any permissions that it prompts you for -- if you don't then you will have issues. If you gave it the wrong permissions, please uninstall docker and re-install.

3) Download and install the latest Pi Node software from node.minepi.com (0.3.8 is what is available on 28 Dec 2020).

4) If Docker was set up correctly, then running through the Pi Node port check and downloading the required images should work. It is not likely to be the case, but it is also possible that the image downloads are blocked by your provider.