IBMDataScience/DSx-Desktop

Wait for downloading images forever on Windows 10 64-bit

Closed this issue · 7 comments

Environment

Win 10 64bit
VirtualBox 5.2.12
Docker Toolbox latest version
DSX Desktop 1.2.4

Symptom

DSX desktop hangs on "downloading images" and no error reported in log file, docker machine VM is successfully created.

DSX output log

[2018-06-05 09:40:38:0889] [debug] #CREATE Result: Running pre-create checks...
Creating machine...
(ibm-dsx) Copying C:\Users[xxxx].docker\machine\cache\boot2docker.iso to C:\Users\z00408803.docker\machine\machines\ibm-dsx\boot2docker.iso...
(ibm-dsx) Creating VirtualBox VM...
(ibm-dsx) Creating SSH key...
(ibm-dsx) Starting the VM...
(ibm-dsx) Check network to re-create if needed...
(ibm-dsx) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
(ibm-dsx) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env ibm-dsx

[2018-06-05 09:40:38:0889] [info] Creating docker machine ibm-dsx
[2018-06-05 09:40:38:0889] [info] Docker machine created: true
[2018-06-05 09:40:38:0889] [info] Checking machine status
[2018-06-05 09:40:38:0890] [debug] Running Winbox Command with feedback: docker-machine ls | findstr ibm-dsx
[2018-06-05 09:40:39:0525] [info] Result of machine status: ibm-dsx - virtualbox Running tcp://192.168.99.101:2376 v18.05.0-ce

[2018-06-05 09:40:39:0525] [info] Docker machine ibm-dsx is up and running.
[2018-06-05 09:40:39:0525] [debug] #OS: Windows
[2018-06-05 09:40:39:0525] [info] Confirming Docker Host for Windows
[2018-06-05 09:40:39:0956] [debug] #GENERATE WINHOST
[2018-06-05 09:40:39:0961] [info] Starting docker...
[2018-06-05 09:40:40:0135] [info] Docker machine found
[2018-06-05 09:40:40:0585] [info] Docker machine state: Running
[2018-06-05 09:40:40:0585] [info] Docker machine is running
[2018-06-05 09:40:40:0585] [info] Docker machine errors:
[2018-06-05 09:40:40:0585] [info] No errors for docker machine
[2018-06-05 09:40:43:0533] [info] Docker machine daemon is up
[2018-06-05 09:40:43:0534] [info] Docker machine ready on attempt #1
[2018-06-05 09:40:43:0534] [info] Initializing dockerode...
[2018-06-05 09:40:43:0886] [info] Dockerode initialized
[2018-06-05 09:40:43:0886] [info] Initializing healthcheck...
[2018-06-05 09:40:43:0931] [info] Healthcheck initialized
[2018-06-05 09:40:43:0953] [info] No current hybridcloud image for DSX Desktop
[2018-06-05 09:40:43:0953] [info] Starting to pull hybridcloudibm/dsx-desktop:core
[2018-06-05 09:40:43:0956] [info] No current hybridcloud image for Anaconda (Python 3.5)
[2018-06-05 09:40:43:0957] [info] Starting to pull hybridcloudibm/dsx-desktop:ana35

Hi @zxsimple, thanks for reporting.

Yeah, I don't see anything wrong with the logs. What text do you see while the download is hanging? E.g. "Preparing to download..." or "Downloading images".

Also try pulling an image directly from inside the VM. Open a command prompt and enter these commands:

:: Set the environment to use docker from the "ibm-dsx" docker-machine
@FOR /f "tokens=*" %i IN (`docker-machine env ibm-dsx`) DO @%i

:: Verify that the "ibm-dsx" docker-machine is selected
docker-machine active

:: Pull an image
docker pull hello-world

@jerry1100 thanks for your quick response.

I switched the active docker machine with command line docker-machine env --shell=powershell ibm-dsx | Invoke-Expression and see the active docker machine is ibm-dsx now.

I can pull the hello-world image successfully but when I execute docker pull hybridcloudibm/dsx-desktop:core I got the error:

Error response from daemon: pull access denied for hybridcloudibm/dsx-desktop, repository does not exist or may require 'docker login'
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.

I executed docker login but the problem persists.

The installation wizard still stuck on Downloading images screen.

Still need your help.

I'm curious about why I couldn't find the images in log file from docker hub

You won't find the images in Docker Hub because they're marked as private. That's also why you're unable to pull the images directly. The app uses an API key to pull the images.

Could you post your currently installed images using docker images?

Also, try removing all your images using docker rmi <image id or name:tag> for each image. Then try installing DSX Desktop again.

Jerry, it seems that due to my company network issue, the network speed is quite poor to get images from docker hub.
I connected to my phone hosted WIFI (5MB/s) I could see the progress bar going well. I'll pull the image at home later.

That sounds promising. Please update once you do so.

Jerry, installation finished for one whole night download ing.