jonescompneurolab / hnn

The Human Neocortical Neurosolver (HNN) is a software tool that gives researchers/clinicians the ability to develop/test hypotheses on circuit mechanisms underlying EEG/MEG data.
http://hnn.brown.edu
Other
78 stars 24 forks source link

Docker installation fails to start: various issues *fixed* #163

Closed klankinen closed 4 years ago

klankinen commented 4 years ago

Hello,

I just installed HNN to my mac, and I am running into a following problem when I try to start hnn:

(base) Kaisus-MacBook-Air:hnn kaisul$ ./hnn_docker.sh -u start
Upgrade HNN image requested

Starting HNN container requested

Performing pre-checks before starting HNN
--------------------------------------
Checking OS version... mac
Checking if Docker is installed... ok
Checking if docker-compose is found... ok
Checking if Docker is working... ok
Downloading new HNN image from Docker Hub (may require login)...
Using default tag: latest
latest: Pulling from jonescompneurolab/hnn
Digest: sha256:c296d51043a186fb97bff95b9886f0373b5be68436df717d12835de112486125
Status: Image is up to date for jonescompneurolab/hnn:latest
docker.io/jonescompneurolab/hnn:latest
HNN image already up to date.
Checking if XQuartz is installed... done
Checking for xauth... done
Retrieving current XQuartz authentication keys... done
Locating HNN source code... /Users/kaisul/hnn
Setting up SSH authentication files... cat: ./installer/docker/id_rsa_hnn.pub: No such file or directory
done

Starting HNN
--------------------------------------
Checking for running HNN container... found
Looking up port to connect to HNN container... done
Starting HNN GUI... hnn_user@localhost's password: 
hnn_user@localhost's password: 
hnn_user@localhost's password: 
failed
failed
Please see hnn_docker.log for more details

I don't know what is the hnn_user password that it is asking for? At least it is not my docker ID. What is the "id_rsa_hnn.pub" file that I seem to have missing?

Thanks!

blakecaldwell commented 4 years ago

@klankinen Thanks for reporting this issue! I found that there was an error in the hnn_docker.sh script and am testing a fix for it now. I'll send you an update when it's ready for use.

You're right that there's not another password. The problem was that the script didn't create the id_rsa_hnn.pub file and others necessary for starting the HNN GUI within the docker container. If these files are missing, the command that connects to the docker container will fall back to password authentication, but there isn't even a password.

Stay tuned.

blakecaldwell commented 4 years ago

Okay, I think it'll work for you now. Could you update the code and then try again?

cd hnn
git pull origin master
./hnn_docker.sh start

Thanks!

klankinen commented 4 years ago

Now it works, thank you very much!

klankinen commented 4 years ago

Hello,

I started having the same problem I had before, I am being asked hnn_user password when trying to open HNN GUI.

(base) Kaisus-MacBook-Air:hnn kaisul$ ./hnn_docker.sh -u start
Upgrade HNN image requested

Starting HNN container requested

Performing pre-checks before starting HNN
--------------------------------------
Checking OS version... mac
Checking if Docker is installed... ok
Checking if docker-compose is found... ok
Checking if Docker is working... ok
Downloading new HNN image from Docker Hub (may require login)...
Using default tag: latest
latest: Pulling from jonescompneurolab/hnn
Digest: sha256:8ae9e5bda99bfbf1d1c96aa8e0938f63dac8278f0b9ed3734e74b309b50b571a
Status: Image is up to date for jonescompneurolab/hnn:latest
docker.io/jonescompneurolab/hnn:latest
HNN image already up to date.
Checking if XQuartz is installed... done
Checking for xauth... done
Checking that xauth works... done.
Retrieving current X11 authentication keys... done
Locating HNN source code... /Users/kaisul/hnn
Updating Xauthority file... done

Starting HNN
--------------------------------------
Checking for running HNN container... found
Looking for existing containers...found
Stopping HNN container... done
Looking for existing containers...found
Starting HNN container in background... done
Looking up port to connect to HNN container... done
Starting HNN GUI... hnn_user@localhost's password: 
blakecaldwell commented 4 years ago

Hi @klankinen Thanks, could you upload docker_hnn.log as well? I'll look into this.

klankinen commented 4 years ago

Hi!

Here is docker_hnn.log. Thanks!

Performing pre-checks before starting HNN
--------------------------------------
Checking OS version... mac
Checking if Docker is installed... 
Command: which docker
/usr/local/bin/docker
ok
Checking if docker-compose is found... 
Command: which docker-compose
/usr/local/bin/docker-compose
ok
Checking if Docker is working... ok
Downloading new HNN image from Docker Hub (may require login)...
HNN image already up to date.
Checking if XQuartz is installed... done
Checking for xauth... Command: which xauth
Output: /opt/X11/bin/xauth
done
Checking that xauth works... 
Command: /opt/X11/bin/xauth info
Output: Authority file:       /Users/kaisul/.Xauthority
File new:             no
File locked:          no
Number of entries:    4
Changes honored:      yes
Changes made:         no
Current input:        (argv):1
done.
Retrieving current X11 authentication keys... 
Command: /opt/X11/bin/xauth -f /Users/kaisul/.Xauthority nlist :0
Output: ffff 0018 4b61697375732d4d6163426f6f6b2d4169722e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 81d77594e5a6fc3f65f89ad1fde63b68
0100 0018 4b61697375732d4d6163426f6f6b2d4169722e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 81d77594e5a6fc3f65f89ad1fde63b68
done
Locating HNN source code... /Users/kaisul/hnn
Updating Xauthority file... 
Command: "/opt/X11/bin/xauth" nlist :0 | sed -e 's/^..../ffff/' | "/opt/X11/bin/xauth" -f "/Users/kaisul/.Xauthority" -b -i nmerge -
done

Starting HNN
--------------------------------------
Checking for running HNN container... b7e077e34409        jonescompneurolab/hnn   "sudo /start_ssh.sh"   2 days ago          Up 19 hours         0.0.0.0:32773->22/tcp   hnn_container
found
Looking for existing containers...
Command: docker ps -a |grep hnn_container
b7e077e34409        jonescompneurolab/hnn   "sudo /start_ssh.sh"   2 days ago          Up 19 hours         0.0.0.0:32773->22/tcp   hnn_container
found
Stopping HNN container... 
Command: docker stop hnn_container
hnn_container
done
Looking for existing containers...
Command: docker ps -a |grep hnn_container
b7e077e34409        jonescompneurolab/hnn   "sudo /start_ssh.sh"   2 days ago          Exited (0) Less than a second ago                       hnn_container
found
Starting HNN container in background... 
Command: docker-compose -f /Users/kaisul/hnn/installer/mac/docker-compose.yml up -d --no-recreate
Starting hnn_container ... 
[1A
Starting hnn_container ... done
done
Looking up port to connect to HNN container... done
Starting HNN GUI... 
Command: ssh -o SendEnv=DISPLAY -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32774
Warning: Permanently added '[localhost]:32774' (ECDSA) to the list of known hosts.
blakecaldwell commented 4 years ago

Thanks. I'm still looking into it, but a temporary workaround should be to remove one of the key files, which will trigger copying them into the container again:

rm ./installer/docker/id_rsa_hnn.pub

And then ./hnn_docker.sh -u start should cause the following lines to appear in the output

Copying authorized_keys file into container... done
Copying known_hosts file into container... done

Then I think that the ssh failure will be resolved. Please let me know either way. Thanks! I'll push a real fix soon.

blakecaldwell commented 4 years ago

I'm not able to put my finger on the cause for the issue you saw. Any feedback on whether the new PR code fixes the problem would be greatly appreciated.

git fetch origin pull/191/head:issue_163
git checkout issue_163

Thanks.

klankinen commented 4 years ago

Hi,

Running:

rm ./installer/docker/id_rsa_hnn.pub

worked for me, thanks!

ka711 commented 4 years ago

hi, i got the same error message about the ssh key "Command: ssh -o SendEnv=DISPLAY -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32774 Warning: Permanently added '[localhost]:32774' (ECDSA) to the list of known hosts."

could you tell me how to resolve this issue? i removed the key once but it didn't work for me thanks

blakecaldwell commented 4 years ago

Sorry that you're still seeing this issue. I've made some changes to the script in recent commits. They might fix the issue, but will at least provide better debugging information. Could you get the latest code (git pull origin master) and then try ./hnn_docker -u start. If the ssh command fails again, please try ./hnn_docker -v start (the -v is for verbose; -u for upgrade is no longer necessary) and then attach the hnn_docker.log file?

In this new version, I've made the change so that your home directory (e.g. /Users/mac_username/hnn_out) is visible within the container and is where output files are written to by default. When you browse for files from the GUI, the window will default to /home/hnn_user/hnn_source_code because that's where the example data is. If you browse to /Users from that window, you'll see your home directory and hnn_out.

ka711 commented 4 years ago

thank you. i got No such file or directory after typing ./hnn_docker -u start. is it ./hnn_docker.sh -u start ? if so, i attach the hnn_docker.log file when i command ./hnn_docker.sh -v start Performing pre-checks before starting HNN


Checking OS version... mac Checking if Docker is installed... Command: which docker /usr/local/bin/docker ok Checking if docker-compose is found... Command: which docker-compose /usr/local/bin/docker-compose ok Checking if Docker is working... ok Downloading new HNN image from Docker Hub (may require login)... HNN image already up to date. Checking if XQuartz is installed... done Checking for xauth... Command: which xauth Output: /opt/X11/bin/xauth done Retrieving current X11 authentication keys... Command: /opt/X11/bin/xauth nlist :0 Output: XQuartz authentication keys need to be updated Restarting XQuartz... No matching processes belonging to you were found done Command: /opt/X11/bin/xauth nlist :0 Output: 0100 0020 73656b6967756368696b617a7574616b61732d4d6163426f6f6b2e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 4ac8ea7d3ab0da13dd8ad07867ee84bc done Locating HNN source code... /Applications/hnn Updating Xauthority file... Command: "/opt/X11/bin/xauth" nlist :0 | sed -e 's/^..../ffff/' | "/opt/X11/bin/xauth" -f "/Users/kazuseki/.Xauthority" -b -i nmerge - done Setting up SSH authentication files... Command: echo -e "\n" | ssh-keygen -f ./installer/docker/id_rsa_hnn -t rsa -N '' Generating public/private rsa key pair. Your identification has been saved in ./installer/docker/id_rsa_hnn. Your public key has been saved in ./installer/docker/id_rsa_hnn.pub. The key fingerprint is: SHA256:13ivOrGp9hnB2A3CCGEFC3tACdVxp51vzjQMeHktSOo kazuseki@sekiguchikazutakas-MacBook.local The key's randomart image is: +---[RSA 2048]----+ |.+=o=o o | | .=.+ X + . | | . o = X + . | | . . . X | | E S % + | | *.+ . | | ++ . | | . +o . | | ..o+o. | +----[SHA256]-----+ done

Starting HNN

Checking for running HNN container... not found Looking for existing containers... Command: docker ps -a |grep hnn_container 859798debd66 jonescompneurolab/hnn "sudo /start_ssh.sh" 53 minutes ago Created hnn_container found Stopping HNN container... Command: docker stop hnn_container hnn_container done Looking for existing containers... Command: docker ps -a |grep hnn_container 859798debd66 jonescompneurolab/hnn "sudo /start_ssh.sh" 53 minutes ago Created hnn_container found Starting HNN container in background... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate Starting hnn_container ... error

ERROR: for hnn_container Cannot start service hnn: Mounts denied: The paths /Applications/hnn-master/hnn/installer/mac/docker_hnn_out and /Applications/hnn-master/hnn/shared are not shared from OS X and are not known to Docker. You can configure shared paths from Docker -> Preferences... -> File Sharing. See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info. .

ERROR: for hnn Cannot start service hnn: Mounts denied: The paths /Applications/hnn-master/hnn/installer/mac/docker_hnn_out and /Applications/hnn-master/hnn/shared are not shared from OS X and are not known to Docker. You can configure shared paths from Docker -> Preferences... -> File Sharing. See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info. . Encountered errors while bringing up the project. failed Looking for existing containers... Command: docker ps -a |grep hnn_container 859798debd66 jonescompneurolab/hnn "sudo /start_ssh.sh" 53 minutes ago Created hnn_container found Removing old container... Command: docker rm -fv hnn_container hnn_container done Starting HNN container again in background... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate Creating hnn_container ... error

ERROR: for hnn_container Cannot start service hnn: Mounts denied: The paths /Applications/hnn/installer/mac/docker_hnn_out and /Applications/hnn/shared are not shared from OS X and are not known to Docker. You can configure shared paths from Docker -> Preferences... -> File Sharing. See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info. .

ERROR: for hnn Cannot start service hnn: Mounts denied: The paths /Applications/hnn/installer/mac/docker_hnn_out and /Applications/hnn/shared are not shared from OS X and are not known to Docker. You can configure shared paths from Docker -> Preferences... -> File Sharing. See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info. . Encountered errors while bringing up the project. failed Performing pre-checks before starting HNN

Checking OS version... mac Checking if Docker is installed... Command: which docker /usr/local/bin/docker ok Checking if docker-compose is found... Command: which docker-compose /usr/local/bin/docker-compose ok Checking if Docker is working... ok Downloading new HNN image from Docker Hub (may require login)... Removing old container... Command: docker rm -fv hnn_container hnn_container done Checking if XQuartz is installed... done Checking for xauth... Command: which xauth Output: /opt/X11/bin/xauth done Retrieving current X11 authentication keys... Command: /opt/X11/bin/xauth nlist :0 Output: ffff 0020 73656b6967756368696b617a7574616b61732d4d6163426f6f6b2e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 4ac8ea7d3ab0da13dd8ad07867ee84bc 0100 0020 73656b6967756368696b617a7574616b61732d4d6163426f6f6b2e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 4ac8ea7d3ab0da13dd8ad07867ee84bc done Locating HNN source code... /Applications/hnn Updating Xauthority file... Command: "/opt/X11/bin/xauth" nlist :0 | sed -e 's/^..../ffff/' | "/opt/X11/bin/xauth" -f "/Users/kazuseki/.Xauthority" -b -i nmerge - done

Starting HNN

Checking for running HNN container... not found Looking for existing containers... Command: docker ps -a |grep hnn_container not found Looking for existing containers... Command: docker ps -a |grep hnn_container not found Starting HNN container in background... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate Creating hnn_container ... done done Copying authorized_keys file into container... done Copying known_hosts file into container... done Changing container authorized_keys file permissions...done Changing container known_hosts file permissions...done Looking up port to connect to HNN container... done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32768 Warning: Permanently added '[localhost]:32768' (ECDSA) to the list of known hosts. Starting HNN GUI... making dout: /home//hnn_user/hnn_out/data/default making dout: /home//hnn_user/hnn_out/data/default making dout: /home//hnn_user/hnn_out/data/default Loaded data in /home/hnn_user/hnn_source_code/data/MEG_detection_data/yes_trial_S1_ERP_all_avg.txt Warning: could not read file: /home//hnn_user/hnn_out/data/default/dpl.txt Warning: could not read file: /home//hnn_user/hnn_out/data/default/spk.txt Warning: could not read file: /home//hnn_user/hnn_out/data/default/dpl.txt Warning: could not read file: /home//hnn_user/hnn_out/data/default/spk.txt Starting simulation (2 cores). . . Terminating simulation. . . Simulation exited with return code -9. Stderr from console: NEURON -- VERSION 7.7.2-1-g83ebf037 7.7 (83ebf037) 2019-07-31 Duke, Yale, and the BlueBrain Project -- Copyright 1984-2018 See http://neuron.yale.edu/neuron/credits

Additional mechanisms from files mod/ar.mod mod/beforestep_py.mod mod/ca.mod mod/cad.mod mod/cat.mod mod/dipole.mod mod/dipole_pp.mod mod/hh2.mod mod/kca.mod mod/km.mod mod/lfp.mod mod/mea.mod mod/vecevent.mod ERROR: failed to kill nrniv process(es) 89,90 ERROR: failed to kill nrniv process(es) 89,90 Warning: could not read file: /home//hnn_user/hnn_out/data/ERPYes100Trials/dpl.txt Warning: could not read file: /home//hnn_user/hnn_out/data/ERPYes100Trials/spk.txt Warning: could not read file: /home//hnn_user/hnn_out/data/ERPYes100Trials/spk.txt Warning: could not read file: /home//hnn_user/hnn_out/data/ERPYes100Trials/dpl.txt Warning: could not read file: /home//hnn_user/hnn_out/data/ERPYes100Trials/spk.txt Warning: could not read file: /home//hnn_user/hnn_out/data/ERPYes100Trials/dpl.txt Warning: could not read file: /home//hnn_user/hnn_out/data/ERPYes100Trials/spk.txt Warning: could not read file: /home//hnn_user/hnn_out/data/ERPYes100Trials/spk.txt Warning: could not read file: /home//hnn_user/hnn_out/data/ERPYes100Trials/dpl.txt Warning: could not read file: /home//hnn_user/hnn_out/data/ERPYes100Trials/spk.txt qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 23765, resource id: 4194390, major code: 40 (TranslateCoords), minor code: 0 Starting simulation (2 cores). . . Connection to localhost closed by remote host. Connection to localhost closed. failed failed Performing pre-checks before starting HNN

Checking OS version... mac Checking if Docker is installed... Command: which docker /usr/local/bin/docker ok Checking if docker-compose is found... Command: which docker-compose /usr/local/bin/docker-compose ok Checking if Docker is working... ok Downloading new HNN image from Docker Hub (may require login)... Script cannot conntinue Performing pre-checks before starting HNN

Checking OS version... mac Checking if Docker is installed... Command: which docker /usr/local/bin/docker ok Checking if docker-compose is found... Command: which docker-compose /usr/local/bin/docker-compose ok Checking if Docker is working... ok Downloading new HNN image from Docker Hub (may require login)... Removing old container... Command: docker rm -fv hnn_container hnn_container done Checking if XQuartz is installed... done Checking for xauth... Command: which xauth Output: /opt/X11/bin/xauth done Retrieving current X11 authentication keys... Command: /opt/X11/bin/xauth nlist :0 Output: 0100 0020 73656b6967756368696b617a7574616b61732d4d6163426f6f6b2e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 045243997f698d50311be5bc26efd647 done Locating HNN source code... /Applications/hnn Updating Xauthority file... Command: "/opt/X11/bin/xauth" nlist :0 | sed -e 's/^..../ffff/' | "/opt/X11/bin/xauth" -f "/Users/kazuseki/.Xauthority" -b -i nmerge - done

Starting HNN

Checking for running HNN container... not found Looking for existing containers... Command: docker ps -a |grep hnn_container not found Looking for existing containers... Command: docker ps -a |grep hnn_container not found Starting HNN container in background... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate Creating hnn_container ... done done Copying authorized_keys file into container... done Copying known_hosts file into container... done Changing container authorized_keys file permissions...done Changing container known_hosts file permissions...done Looking up port to connect to HNN container... done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32769 Warning: Permanently added '[localhost]:32769' (ECDSA) to the list of known hosts. Checking permissions to access /hnn_out... failed. Can't start HNN. Connection to localhost closed. failed Detected failure starting GUI. Will try to restart HNN container...

Stopping HNN container... Command: docker stop hnn_container hnn_container done Starting HNN container in background... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml start Starting hnn ... done done Copying authorized_keys file into container... done Copying known_hosts file into container... done Changing container authorized_keys file permissions...done Changing container known_hosts file permissions...done Looking up port to connect to HNN container... done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32770 Warning: Permanently added '[localhost]:32770' (ECDSA) to the list of known hosts. Checking permissions to access /hnn_out... failed. Can't start HNN. Connection to localhost closed. failed Performing pre-checks before starting HNN

Checking OS version... mac Checking if Docker is installed... Command: which docker /usr/local/bin/docker ok Checking if docker-compose is found... Command: which docker-compose /usr/local/bin/docker-compose ok Checking if Docker is working... ok Downloading new HNN image from Docker Hub (may require login)... HNN image already up to date. Checking if XQuartz is installed... done Checking for xauth... Command: which xauth Output: /opt/X11/bin/xauth done Retrieving current X11 authentication keys... Command: /opt/X11/bin/xauth nlist :0 Output: ffff 0020 73656b6967756368696b617a7574616b61732d4d6163426f6f6b2e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 045243997f698d50311be5bc26efd647 0100 0020 73656b6967756368696b617a7574616b61732d4d6163426f6f6b2e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 045243997f698d50311be5bc26efd647 done Locating HNN source code... /Applications/hnn Updating Xauthority file... Command: "/opt/X11/bin/xauth" nlist :0 | sed -e 's/^..../ffff/' | "/opt/X11/bin/xauth" -f "/Users/kazuseki/.Xauthority" -b -i nmerge - done

Starting HNN

Checking for running HNN container... 0ce8b72b4449 jonescompneurolab/hnn "sudo /start_ssh.sh" 5 minutes ago Up 5 minutes 0.0.0.0:32770->22/tcp hnn_container found Looking for existing containers... Command: docker ps -a |grep hnn_container 0ce8b72b4449 jonescompneurolab/hnn "sudo /start_ssh.sh" 5 minutes ago Up 5 minutes 0.0.0.0:32770->22/tcp hnn_container found Stopping HNN container... Command: docker stop hnn_container hnn_container done Looking for existing containers... Command: docker ps -a |grep hnn_container 0ce8b72b4449 jonescompneurolab/hnn "sudo /start_ssh.sh" 5 minutes ago Exited (0) Less than a second ago hnn_container found Starting HNN container in background... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate Starting hnn_container ... done done Looking up port to connect to HNN container... done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32771 Warning: Permanently added '[localhost]:32771' (ECDSA) to the list of known hosts. Checking permissions to access /hnn_out... failed. Can't start HNN. Connection to localhost closed. failed Detected failure starting GUI. Will try to restart HNN container...

Stopping HNN container... Command: docker stop hnn_container hnn_container done Starting HNN container in background... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml start Starting hnn ... done done Copying authorized_keys file into container... done Copying known_hosts file into container... done Changing container authorized_keys file permissions...done Changing container known_hosts file permissions...done Looking up port to connect to HNN container... done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32772 Warning: Permanently added '[localhost]:32772' (ECDSA) to the list of known hosts. Checking permissions to access /hnn_out... failed. Can't start HNN. Connection to localhost closed. failed Performing pre-checks before starting HNN

Checking OS version... mac Checking if Docker is installed... Command: which docker /usr/local/bin/docker ok Checking if docker-compose is found... Command: which docker-compose /usr/local/bin/docker-compose ok Checking if Docker is working... ok Downloading new HNN image from Docker Hub... Using default tag: latest latest: Pulling from jonescompneurolab/hnn Digest: sha256:81618584720895dd0ee0fad8d95fe80862d31b703e03d2268c411e95e0321c96 Status: Image is up to date for jonescompneurolab/hnn:latest docker.io/jonescompneurolab/hnn:latest HNN image already up to date. Checking if XQuartz is installed... done Checking for xauth... Command: which xauth Output: /opt/X11/bin/xauth done Checking that xauth works... Command: /opt/X11/bin/xauth info Output: Authority file: /Users/kazuseki/.Xauthority File new: no File locked: no Number of entries: 10 Changes honored: yes Changes made: no Current input: (argv):1 done. Retrieving current X11 authentication keys... Command: /opt/X11/bin/xauth -f /Users/kazuseki/.Xauthority nlist /private/tmp/com.apple.launchd.AMnfKZZTbW/org.macosforge.xquartz:0 Output: ffff 0020 73656b6967756368696b617a7574616b61732d4d6163426f6f6b2e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 045243997f698d50311be5bc26efd647 done Locating HNN source code... /Applications/hnn Updating Xauthority file... Command: "/opt/X11/bin/xauth" nlist :0 | sed -e 's/^..../ffff/' | "/opt/X11/bin/xauth" -f "/Users/kazuseki/.Xauthority" -b -i nmerge - done

Starting HNN

Checking for running HNN container... found Stopping HNN container... Command: docker stop hnn_container hnn_container done Starting HNN container... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate hnn Starting hnn_container ... done done Looking up port to connect to HNN container... Output: 0.0.0.0:32773 done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o SendEnv=SYSTEM_USER_DIR -o SendEnv=TRAVIS_TESTING -o PasswordAuthentication=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32773 Warning: Permanently added '[localhost]:32773' (ECDSA) to the list of known hosts. Checking permissions to access /Users/kazuseki/hnn_out... failed. Can't start HNN. Connection to localhost closed. failed Stopping HNN container... Command: docker stop hnn_container hnn_container done Copying authorized_keys file into container... done Copying known_hosts file into container... done Starting HNN container... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate hnn Starting hnn_container ... done done Looking up port to connect to HNN container... Output: 0.0.0.0:32774 done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o SendEnv=SYSTEM_USER_DIR -o SendEnv=TRAVIS_TESTING -o PasswordAuthentication=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32774 Warning: Permanently added '[localhost]:32774' (ECDSA) to the list of known hosts. Checking permissions to access /Users/kazuseki/hnn_out... failed. Can't start HNN. Connection to localhost closed. failed Performing pre-checks before starting HNN

Checking OS version... mac Checking if Docker is installed... Command: which docker /usr/local/bin/docker ok Checking if docker-compose is found... Command: which docker-compose /usr/local/bin/docker-compose ok Checking if Docker is working... ok Downloading new HNN image from Docker Hub... Using default tag: latest latest: Pulling from jonescompneurolab/hnn Digest: sha256:81618584720895dd0ee0fad8d95fe80862d31b703e03d2268c411e95e0321c96 Status: Image is up to date for jonescompneurolab/hnn:latest docker.io/jonescompneurolab/hnn:latest HNN image already up to date. Checking if XQuartz is installed... done Checking for xauth... Command: which xauth Output: /opt/X11/bin/xauth done Checking that xauth works... Command: /opt/X11/bin/xauth info Output: Authority file: /Users/kazuseki/.Xauthority File new: no File locked: no Number of entries: 10 Changes honored: yes Changes made: no Current input: (argv):1 done. Retrieving current X11 authentication keys... Command: /opt/X11/bin/xauth -f /Users/kazuseki/.Xauthority nlist /private/tmp/com.apple.launchd.AMnfKZZTbW/org.macosforge.xquartz:0 Output: ffff 0020 73656b6967756368696b617a7574616b61732d4d6163426f6f6b2e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 045243997f698d50311be5bc26efd647 done Locating HNN source code... /Applications/hnn Updating Xauthority file... Command: "/opt/X11/bin/xauth" nlist :0 | sed -e 's/^..../ffff/' | "/opt/X11/bin/xauth" -f "/Users/kazuseki/.Xauthority" -b -i nmerge - done Removing ./installer/docker/id_rsa_hnn... Command: rm -f ./installer/docker/id_rsa_hnn done Setting up SSH authentication files... Command: echo -e "\n" | ssh-keygen -f ./installer/docker/id_rsa_hnn -t rsa -N '' Generating public/private rsa key pair. Your identification has been saved in ./installer/docker/id_rsa_hnn. Your public key has been saved in ./installer/docker/id_rsa_hnn.pub. The key fingerprint is: SHA256:p5B5ZagdlzDHFtUnJDMPtPoNraucm3KTwZ2hZ/slVw4 kazuseki@sekiguchikazutakas-MacBook.local The key's randomart image is: +---[RSA 2048]----+ | o.o+Bo. | | =o. Bo .| | o.= . .o | | = = ... | | = S.oo.oE .| | o o+.=+ o.| | . =o.o +| | ..+o.. + | | o*+... | +----[SHA256]-----+ done

Starting HNN

Checking for running HNN container... found Stopping HNN container... Command: docker stop hnn_container hnn_container done Starting HNN container... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate hnn Starting hnn_container ... done done Looking up port to connect to HNN container... Output: 0.0.0.0:32775 done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o SendEnv=SYSTEM_USER_DIR -o SendEnv=TRAVIS_TESTING -o PasswordAuthentication=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32775 Warning: Permanently added '[localhost]:32775' (ECDSA) to the list of known hosts. hnn_user@localhost: Permission denied (publickey,password). failed Stopping HNN container... Command: docker stop hnn_container hnn_container done Copying authorized_keys file into container... done Copying known_hosts file into container... done Starting HNN container... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate hnn Starting hnn_container ... done done Looking up port to connect to HNN container... Output: 0.0.0.0:32776 done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o SendEnv=SYSTEM_USER_DIR -o SendEnv=TRAVIS_TESTING -o PasswordAuthentication=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32776 Warning: Permanently added '[localhost]:32776' (ECDSA) to the list of known hosts. Checking permissions to access /Users/kazuseki/hnn_out... failed. Can't start HNN. Connection to localhost closed. failed Performing pre-checks before starting HNN

Checking OS version... mac Checking if Docker is installed... Command: which docker /usr/local/bin/docker ok Checking if docker-compose is found... Command: which docker-compose /usr/local/bin/docker-compose ok Checking if Docker is working... ok Downloading new HNN image from Docker Hub... Using default tag: latest latest: Pulling from jonescompneurolab/hnn Digest: sha256:81618584720895dd0ee0fad8d95fe80862d31b703e03d2268c411e95e0321c96 Status: Image is up to date for jonescompneurolab/hnn:latest docker.io/jonescompneurolab/hnn:latest HNN image already up to date. Checking if XQuartz is installed... done Checking for xauth... Command: which xauth Output: /opt/X11/bin/xauth done Checking that xauth works... Command: /opt/X11/bin/xauth info Output: Authority file: /Users/kazuseki/.Xauthority File new: no File locked: no Number of entries: 10 Changes honored: yes Changes made: no Current input: (argv):1 done. Retrieving current X11 authentication keys... Command: /opt/X11/bin/xauth -f /Users/kazuseki/.Xauthority nlist /private/tmp/com.apple.launchd.AMnfKZZTbW/org.macosforge.xquartz:0 Output: ffff 0020 73656b6967756368696b617a7574616b61732d4d6163426f6f6b2e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 045243997f698d50311be5bc26efd647 done Locating HNN source code... /Applications/hnn Updating Xauthority file... Command: "/opt/X11/bin/xauth" nlist :0 | sed -e 's/^..../ffff/' | "/opt/X11/bin/xauth" -f "/Users/kazuseki/.Xauthority" -b -i nmerge - done

Starting HNN

Checking for running HNN container... found Stopping HNN container... Command: docker stop hnn_container hnn_container done Starting HNN container... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate hnn Starting hnn_container ... done done Looking up port to connect to HNN container... Output: 0.0.0.0:32777 done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o SendEnv=SYSTEM_USER_DIR -o SendEnv=TRAVIS_TESTING -o PasswordAuthentication=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32777 Warning: Permanently added '[localhost]:32777' (ECDSA) to the list of known hosts. Checking permissions to access /Users/kazuseki/hnn_out... failed. Can't start HNN. Connection to localhost closed. failed Stopping HNN container... Command: docker stop hnn_container hnn_container done Copying authorized_keys file into container... done Copying known_hosts file into container... done Starting HNN container... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate hnn Starting hnn_container ... done done Looking up port to connect to HNN container... Output: 0.0.0.0:32778 done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o SendEnv=SYSTEM_USER_DIR -o SendEnv=TRAVIS_TESTING -o PasswordAuthentication=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32778 Warning: Permanently added '[localhost]:32778' (ECDSA) to the list of known hosts. Checking permissions to access /Users/kazuseki/hnn_out... failed. Can't start HNN. Connection to localhost closed. failed Performing pre-checks before starting HNN

Checking OS version... mac Checking if Docker is installed... Command: which docker /usr/local/bin/docker ok Checking if docker-compose is found... Command: which docker-compose /usr/local/bin/docker-compose ok Checking if Docker is working... ok Downloading new HNN image from Docker Hub (may require login)... HNN image already up to date. Checking if XQuartz is installed... done Checking for xauth... Command: which xauth Output: /opt/X11/bin/xauth done Checking that xauth works... Command: /opt/X11/bin/xauth info Output: Authority file: /Users/kazuseki/.Xauthority File new: no File locked: no Number of entries: 10 Changes honored: yes Changes made: no Current input: (argv):1 done. Retrieving current X11 authentication keys... Command: /opt/X11/bin/xauth -f /Users/kazuseki/.Xauthority nlist :0 Output: ffff 0020 73656b6967756368696b617a7574616b61732d4d6163426f6f6b2e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 045243997f698d50311be5bc26efd647 0100 0020 73656b6967756368696b617a7574616b61732d4d6163426f6f6b2e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 045243997f698d50311be5bc26efd647 done Locating HNN source code... /Applications/hnn Updating Xauthority file... Command: "/opt/X11/bin/xauth" nlist :0 | sed -e 's/^..../ffff/' | "/opt/X11/bin/xauth" -f "/Users/kazuseki/.Xauthority" -b -i nmerge - done

Starting HNN

Checking for running HNN container... 0ce8b72b4449 jonescompneurolab/hnn "sudo /start_ssh.sh" 41 minutes ago Up 2 minutes 0.0.0.0:32778->22/tcp hnn_container found Looking for existing containers... Command: docker ps -a |grep hnn_container 0ce8b72b4449 jonescompneurolab/hnn "sudo /start_ssh.sh" 41 minutes ago Up 2 minutes 0.0.0.0:32778->22/tcp hnn_container found Stopping HNN container... Command: docker stop hnn_container hnn_container done Looking for existing containers... Command: docker ps -a |grep hnn_container 0ce8b72b4449 jonescompneurolab/hnn "sudo /start_ssh.sh" 41 minutes ago Exited (0) Less than a second ago hnn_container found Starting HNN container in background... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate Starting hnn_container ... done done Copying authorized_keys file into container... done Copying known_hosts file into container... done Changing container authorized_keys file permissions...done Changing container known_hosts file permissions...done Looking up port to connect to HNN container... done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32779 Warning: Permanently added '[localhost]:32779' (ECDSA) to the list of known hosts. Checking permissions to access /hnn_out... failed. Can't start HNN. Connection to localhost closed. failed Detected failure starting GUI. Will try to restart HNN container...

Starting HNN container in background... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml start Starting hnn ... done done Copying authorized_keys file into container... done Copying known_hosts file into container... done Changing container authorized_keys file permissions...done Changing container known_hosts file permissions...done Looking up port to connect to HNN container... done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32779 Warning: Permanently added '[localhost]:32779' (ECDSA) to the list of known hosts. Checking permissions to access /hnn_out... failed. Can't start HNN. Connection to localhost closed. failed Performing pre-checks before starting HNN

Checking OS version... mac Checking if Docker is installed... Command: which docker /usr/local/bin/docker ok Checking if docker-compose is found... Command: which docker-compose /usr/local/bin/docker-compose ok Checking if Docker is working... ok Downloading new HNN image from Docker Hub... Using default tag: latest latest: Pulling from jonescompneurolab/hnn Digest: sha256:81618584720895dd0ee0fad8d95fe80862d31b703e03d2268c411e95e0321c96 Status: Image is up to date for jonescompneurolab/hnn:latest docker.io/jonescompneurolab/hnn:latest HNN image already up to date. Checking if XQuartz is installed... done Checking for xauth... Command: which xauth Output: /opt/X11/bin/xauth done Checking that xauth works... Command: /opt/X11/bin/xauth info Output: Authority file: /Users/kazuseki/.Xauthority File new: no File locked: no Number of entries: 10 Changes honored: yes Changes made: no Current input: (argv):1 done. Retrieving current X11 authentication keys... Command: /opt/X11/bin/xauth -f /Users/kazuseki/.Xauthority nlist /private/tmp/com.apple.launchd.AMnfKZZTbW/org.macosforge.xquartz:0 Output: ffff 0020 73656b6967756368696b617a7574616b61732d4d6163426f6f6b2e6c6f63616c 0001 30 0012 4d49542d4d414749432d434f4f4b49452d31 0010 045243997f698d50311be5bc26efd647 done Locating HNN source code... /Applications/hnn Updating Xauthority file... Command: "/opt/X11/bin/xauth" nlist :0 | sed -e 's/^..../ffff/' | "/opt/X11/bin/xauth" -f "/Users/kazuseki/.Xauthority" -b -i nmerge - done

Starting HNN

Checking for running HNN container... found Stopping HNN container... Command: docker stop hnn_container hnn_container done Starting HNN container... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate hnn Starting hnn_container ... done done Looking up port to connect to HNN container... Output: 0.0.0.0:32780 done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o SendEnv=SYSTEM_USER_DIR -o SendEnv=TRAVIS_TESTING -o PasswordAuthentication=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32780 Warning: Permanently added '[localhost]:32780' (ECDSA) to the list of known hosts. Checking permissions to access /Users/kazuseki/hnn_out... failed. Can't start HNN. Connection to localhost closed. failed Stopping HNN container... Command: docker stop hnn_container hnn_container done Copying authorized_keys file into container... done Copying known_hosts file into container... done Starting HNN container... Command: docker-compose -f /Applications/hnn/installer/mac/docker-compose.yml up -d --no-recreate hnn Starting hnn_container ... done done Looking up port to connect to HNN container... Output: 0.0.0.0:32781 done Starting HNN GUI... Command: ssh -o SendEnv=DISPLAY -o SendEnv=SYSTEM_USER_DIR -o SendEnv=TRAVIS_TESTING -o PasswordAuthentication=no -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -t -i ./installer/docker/id_rsa_hnn -R 6000:localhost:6000 hnn_user@localhost -p 32781 Warning: Permanently added '[localhost]:32781' (ECDSA) to the list of known hosts. Checking permissions to access /Users/kazuseki/hnn_out... failed. Can't start HNN. Connection to localhost closed. failed

Performing pre-checks before starting HNN

Checking OS version... mac Checking if Docker is installed... Command: which docker /usr/local/bin/docker ok Checking if docker-compose is found... Command: which docker-compose /usr/local/bin/docker-compose ok Checking if Docker is working... Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Command: which docker-machine failed cleanup() called from: check_docker_machine (L:737) Call tree: 1: ./hnn_docker.sh:737 cleanup(...) 2: ./hnn_docker.sh:900 check_docker_machine(...) Exiting with status 2 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? failed Starting docker machine... Command: failed Error: Please see hnn_docker.log for more details start ./hnn_docker.sh: line 124: failed: command not found failed cleanup() called from: cleanup_except_travis (L:116) Call tree: 1: ./hnn_docker.sh:116 cleanup(...) 2: ./hnn_docker.sh:147 cleanup_except_travis(...) 3: ./hnn_docker.sh:157 fail_on_bad_exit_except_travis(...) 4: ./hnn_docker.sh:915 run_command(...) Exiting with status 2

Performing pre-checks before starting HNN

Checking OS version... mac Checking if Docker is installed... Command: which docker /usr/local/bin/docker ok Checking if docker-compose is found... Command: which docker-compose /usr/local/bin/docker-compose ok Checking if Docker is working... Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Command: which docker-machine failed cleanup() called from: check_docker_machine (L:737) Call tree: 1: ./hnn_docker.sh:737 cleanup(...) 2: ./hnn_docker.sh:900 check_docker_machine(...) Exiting with status 2 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? failed Starting docker machine... Command: failed Error: Please see hnn_docker.log for more details start ./hnn_docker.sh: line 124: failed: command not found failed cleanup() called from: cleanup_except_travis (L:116) Call tree: 1: ./hnn_docker.sh:116 cleanup(...) 2: ./hnn_docker.sh:147 cleanup_except_travis(...) 3: ./hnn_docker.sh:157 fail_on_bad_exit_except_travis(...) 4: ./hnn_docker.sh:915 run_command(...) Exiting with status 2

thank so so much!

blakecaldwell commented 4 years ago

Really sorry this took so long. The merged pull request was a large rewrite of hnn_docker.sh. I hope it prevents this problem from occurring again!

Also, the new script finishes configuring the container to use the home directory on macOS as the default hnn_out directory (e.g. /Users/me/hnn_out). There will be shortcuts to these directories in the load param and load data file dialogs. I'd appreciate your feedback on this change if you get the chance to try it out.

Please note that the docker image is building on Docker Hub now, so it will take about ~1hr before it becomes available to download by the script.

ka711 commented 4 years ago

dear blakecaldwell thank you so much for your effort! i was able to start the hnn_docker and finish basic simulation now Also, i found the some output in /Users/me/hnn_out directory

emmatx commented 4 years ago

Good morning, I am trying to install hnn on windows with the tutorial. When I run hnn_docker.sh -u start, I obtain


Upgrade HNN image requested

Starting HNN container requested

Performing pre-checks before starting HNN

Checking OS version... windows Checking if Docker is installed... ok Checking if docker-compose is found... ok Checking if Docker is working... ok (Docker Toolbox) Downloading new HNN image from Docker Hub... done Looking for existing containers... not found Checking if VcXsrv is running... yes Stopping VcXsrv... done Checking if VcXsrv is installed... done Starting VcXsrv... done Checking for xauth.exe... done Checking for X11 authentication keys... no valid keys Generating xauth key for display localhost:0... failed Error: Please see hnn_docker.log for more details


When I run hnn_docker.log, I get :


./hnn_docker.log: line 3: Performing: command not found ./hnn_docker.log: line 4: --------------------------------------: command not found ./hnn_docker.log: line 5: Checking: command not found ./hnn_docker.log: line 6: Checking: command not found ./hnn_docker.log: line 7: Command:: command not found ./hnn_docker.log: line 8: /c/Program: No such file or directory ./hnn_docker.log: line 9: ok: command not found ./hnn_docker.log: line 10: Checking: command not found ./hnn_docker.log: line 11: Command:: command not found ./hnn_docker.log: line 12: /c/Program: No such file or directory ./hnn_docker.log: line 13: ok: command not found ./hnn_docker.log: line 14: Command:: command not found ./hnn_docker.log: line 15: /c/Program: No such file or directory ./hnn_docker.log: line 16: Checking: command not found ./hnn_docker.log: line 17: /c/Program: No such file or directory ./hnn_docker.log: line 18: syntax error near unexpected token Docker' ./hnn_docker.log: line 18:ok (Docker Toolbox)'


Would you have any suggestions to fix this issue ? Thank you in advance !

blakecaldwell commented 4 years ago

Hi @emmatx, thanks for the posting this. Can you send the contents of hnn_docker.log? Hopefully there's a clue in there why running hnn_docker.sh failed. Thanks!

emmatx commented 4 years ago

Thanks for your interest. Here is hnn_docker.log


Performing pre-checks before starting HNN

Checking OS version... windows Checking if Docker is installed... Command: which docker.exe /c/Program Files/Docker Toolbox/docker.exe ok Checking if docker-compose is found... Command: which docker-compose.exe /c/Program Files/Docker Toolbox/docker-compose.exe ok Command: which docker-machine.exe /c/Program Files/Docker Toolbox/docker-machine.exe Checking if Docker is working... Command: which docker-machine.exe /c/Program Files/Docker Toolbox/docker-machine.exe ok (Docker Toolbox) Downloading new HNN image from Docker Hub... Command: docker.exe pull jonescompneurolab/hnn Output: Using default tag: latest latest: Pulling from jonescompneurolab/hnn Digest: sha256:974db6ee81eab8c10f90c8d9532ab254436c10120a0bdc1392c3a0629b6373dc Status: Image is up to date for jonescompneurolab/hnn:latest docker.io/jonescompneurolab/hnn:latest done Looking for existing containers... Command: docker.exe ps -a grep hnn_container Output: not found Checking if VcXsrv is running... yes Stopping VcXsrv... Command: cmd.exe //c taskkill //F //IM vcxsrv.exe Op‚ration r‚ussieÿ: le processus "vcxsrv.exe" de PID 5868 a ‚t‚ arrˆt‚. done Checking if VcXsrv is installed... done Starting VcXsrv... Command: /c/Program Files/VcXsrv/vcxsrv.exe -wgl -multiwindow 2>&1 & done Started VcXsrv with PID 11008 Checking for xauth.exe... done Checking for X11 authentication keys... Command: /c/Program Files/VcXsrv/xauth.exe -f /c/Users/HP 840 G2/.Xauthority nlist localhost:0 C:\Program Files\VcXsrv\xauth.exe: timeout in locking authority file C:\Users\HP : Windows NT 6.2 build 9200 (64-bit) Contact: marha@users.sourceforge.net

LoadPreferences: C:\Users\HP 840 G2.XWinrc not found LoadPreferences: Loading C:\Program Files\VcXsrv\system.XWinrc Warning: Locale not supported by X, falling back to 'C' locale. (II) AIGLX: Testing pixelFormatIndex 1 (II) GLX: enabled GLX_SGI_make_current_read (II) GLX: enabled GLX_SGI_swap_control (II) GLX: enabled GLX_MESA_swap_control (II) GLX: enabled GLX_SGIX_pbuffer (II) GLX: enabled GLX_ARB_multisample (II) GLX: enabled GLX_SGIS_multisample (II) GLX: enabled GLX_ARB_fbconfig_float (II) GLX: enabled GLX_EXT_fbconfig_packed_float (II) GLX: enabled GLX_ARB_create_context (II) GLX: enabled GLX_ARB_create_context_profile (II) GLX: enabled GLX_ARB_create_context_robustness (II) GLX: enabled GLX_EXT_create_context_es2_profile (II) GLX: enabled GLX_ARB_framebuffer_sRGB (II) AIGLX: enabled GLX_MESA_copy_sub_buffer (II) 92 pixel formats reported by wglGetPixelFormatAttribivARB (II) GLX: Initialized Win32 native WGL GL provider for screen 0 winClipboardThreadProc - DISPLAY=127.0.0.1:0.0 Using Composite redirection OS maintains clipboard viewer chain: yes Output: no valid keys Generating xauth key for display localhost:0... Command: /c/Program Files/VcXsrv/xauth.exe -f /c/Users/HP 840 G2/.Xauthority generate localhost:0 . C:\Program Files\VcXsrv\xauth.exe: timeout in locking authority file C:\Users\HP Output: failed Killing VcXsrv PID 11008 cleanup() called from: cleanup_except_travis (L:116) Call tree: 1: ./hnn_docker.sh:116 cleanup(...) 2: ./hnn_docker.sh:147 cleanup_except_travis(...) 3: ./hnn_docker.sh:1187 fail_on_bad_exit_except_travis(...) Exiting with status 2

Performing pre-checks before starting HNN

Checking OS version... windows Checking if Docker is installed... Command: which docker.exe /c/Program Files/Docker Toolbox/docker.exe ok Checking if docker-compose is found... Command: which docker-compose.exe /c/Program Files/Docker Toolbox/docker-compose.exe ok Command: which docker-machine.exe /c/Program Files/Docker Toolbox/docker-machine.exe Checking if Docker is working... ok (Docker Toolbox) Checking if VcXsrv is running... no Checking if VcXsrv is installed... done Starting VcXsrv... Command: /c/Program Files/VcXsrv/vcxsrv.exe -wgl -multiwindow 2>&1 & Welcome to the VcXsrv X Server Vendor: The VcXsrv Project Release: 1.20.8.1

OS: Windows NT 6.2 build 9200 (64-bit) Contact: marha@users.sourceforge.net

LoadPreferences: C:\Users\HP 840 G2.XWinrc not found LoadPreferences: Loading C:\Program Files\VcXsrv\system.XWinrc Warning: Locale not supported by X, falling back to 'C' locale. (II) AIGLX: Testing pixelFormatIndex 1 (II) GLX: enabled GLX_SGI_make_current_read (II) GLX: enabled GLX_SGI_swap_control (II) GLX: enabled GLX_MESA_swap_control (II) GLX: enabled GLX_SGIX_pbuffer (II) GLX: enabled GLX_ARB_multisample (II) GLX: enabled GLX_SGIS_multisample (II) GLX: enabled GLX_ARB_fbconfig_float (II) GLX: enabled GLX_EXT_fbconfig_packed_float (II) GLX: enabled GLX_ARB_create_context (II) GLX: enabled GLX_ARB_create_context_profile (II) GLX: enabled GLX_ARB_create_context_robustness (II) GLX: enabled GLX_EXT_create_context_es2_profile (II) GLX: enabled GLX_ARB_framebuffer_sRGB (II) AIGLX: enabled GLX_MESA_copy_sub_buffer (II) 92 pixel formats reported by wglGetPixelFormatAttribivARB (II) GLX: Initialized Win32 native WGL GL provider for screen 0 winClipboardThreadProc - DISPLAY=127.0.0.1:0.0 Using Composite redirection OS maintains clipbC:\Program Files\VcXsrv\xauth.exe: timeout in locking authority file C:\Users\HP Output: no valid keys Generating xauth key for display localhost:0... Command: /c/Program Files/VcXsrv/xauth.exe -f /c/Users/HP 840 G2/.Xauthority generate localhost:0 . C:\Program Files\VcXsrv\xauth.exe: timeout in locking authority file C:\Users\HP Output: failed Killing VcXsrv PID 13600 cleanup() called from: cleanup_except_travis (L:116) Call tree: 1: ./hnn_docker.sh:116 cleanup(...) 2: ./hnn_docker.sh:147 cleanup_except_travis(...) 3: ./hnn_docker.sh:1187 fail_on_bad_exit_except_travis(...) Exiting with status 2 No valid action provided. Available actions are start, stop, upgrade, and uninstall cleanup() called from: main (L:824) Error: Script cannot conntinue Call tree: 1: ./hnn_docker.sh:824 cleanup(...) Exiting with status 1

Performing pre-checks before starting HNN

Checking OS version... windows Checking if Docker is installed... Command: which docker.exe /c/Program Files/Docker Toolbox/docker.exe ok Checking if docker-compose is found... Command: which docker-compose.exe /c/Program Files/Docker Toolbox/docker-compose.exe ok Command: which docker-machine.exe /c/Program Files/Docker Toolbox/docker-machine.exe Checking if Docker is working... ok (Docker Toolbox) Downloading new HNN image from Docker Hub... Command: docker.exe pull jonescompneurolab/hnn Output: Using default tag: latest latest: Pulling from jonescompneurolab/hnn 35c102085707: Already exists 251f5509d51d: Already exists 8e829fe70a46: Already exists 6001e1789921: Already exists 84e95d3c8e86: Already exists 9e8e0aa6365b: Pulling fs layer cd15a1a3c9d1: Pulling fs layer ab74ef92c36e: Pulling fs layer 022f47dd3ef0: Pulling fs layer d312314d7bbb: Pulling fs layer 595d879b0bb0: Pulling fs layer c051b8d9455e: Pulling fs layer d6df11a31117: Pulling fs layer 26310c5a2c1f: Pulling fs layer 7c00399ad581: Pulling fs layer 03f0b33b5eb8: Pulling fs layer 4ddaed785669: Pulling fs layer 5eada6f458fc: Pulling fs layer eadf3bb80af6: Pulling fs layer 990c257f7a69: Pulling fs layer 147f3304cb53: Pulling fs layer a9641cde827f: Pulling fs layer 3cdea939490d: Pulling fs layer 967600f1f895: Pulling fs layer 5ff35f4dd965: Pulling fs layer f8995c1027b8: Pulling fs layer 7f50fbf63f4f: Pulling fs layer 9b45ca3f5929: Pulling fs layer 87e4c86c2207: Pulling fs layer a5b04540a39f: Pulling fs layer 21caa2ff7f2e: Pulling fs layer 022f47dd3ef0: Waiting d312314d7bbb: Waiting 595d879b0bb0: Waiting c051b8d9455e: Waiting d6df11a31117: Waiting 26310c5a2c1f: Waiting 7c00399ad581: Waiting 03f0b33b5eb8: Waiting 4ddaed785669: Waiting 5eada6f458fc: Waiting eadf3bb80af6: Waiting 990c257f7a69: Waiting 147f3304cb53: Waiting a9641cde827f: Waiting 3cdea939490d: Waiting 967600f1f895: Waiting 5ff35f4dd965: Waiting f8995c1027b8: Waiting 7f50fbf63f4f: Waiting 9b45ca3f5929: Waiting 87e4c86c2207: Waiting a5b04540a39f: Waiting 21caa2ff7f2e: Waiting 9e8e0aa6365b: Verifying Checksum 9e8e0aa6365b: Download complete 9e8e0aa6365b: Pull complete 022f47dd3ef0: Verifying Checksum 022f47dd3ef0: Download complete cd15a1a3c9d1: Verifying Checksum cd15a1a3c9d1: Download complete ab74ef92c36e: Verifying Checksum ab74ef92c36e: Download complete d312314d7bbb: Verifying Checksum d312314d7bbb: Download complete 595d879b0bb0: Verifying Checksum 595d879b0bb0: Download complete c051b8d9455e: Verifying Checksum c051b8d9455e: Download complete d6df11a31117: Verifying Checksum d6df11a31117: Download complete 26310c5a2c1f: Verifying Checksum 26310c5a2c1f: Download complete 7c00399ad581: Verifying Checksum 7c00399ad581: Download complete cd15a1a3c9d1: Pull complete 4ddaed785669: Verifying Checksum 4ddaed785669: Download complete 5eada6f458fc: Verifying Checksum 5eada6f458fc: Download complete 990c257f7a69: Verifying Checksum 990c257f7a69: Download complete ab74ef92c36e: Pull complete 022f47dd3ef0: Pull complete d312314d7bbb: Pull complete eadf3bb80af6: Verifying Checksum eadf3bb80af6: Download complete 595d879b0bb0: Pull complete c051b8d9455e: Pull complete d6df11a31117: Pull complete 26310c5a2c1f: Pull complete 7c00399ad581: Pull complete 03f0b33b5eb8: Verifying Checksum 03f0b33b5eb8: Download complete a9641cde827f: Verifying Checksum a9641cde827f: Download complete 3cdea939490d: Verifying Checksum 3cdea939490d: Download complete 967600f1f895: Verifying Checksum 967600f1f895: Download complete 147f3304cb53: Verifying Checksum 147f3304cb53: Download complete 5ff35f4dd965: Verifying Checksum 5ff35f4dd965: Download complete f8995c1027b8: Verifying Checksum f8995c1027b8: Download complete 7f50fbf63f4f: Verifying Checksum 7f50fbf63f4f: Download complete 9b45ca3f5929: Verifying Checksum 9b45ca3f5929: Download complete 87e4c86c2207: Verifying Checksum 87e4c86c2207: Download complete a5b04540a39f: Verifying Checksum a5b04540a39f: Download complete 21caa2ff7f2e: Verifying Checksum 21caa2ff7f2e: Download complete 03f0b33b5eb8: Pull complete 4ddaed785669: Pull complete 5eada6f458fc: Pull complete eadf3bb80af6: Pull complete 990c257f7a69: Pull complete 147f3304cb53: Pull complete a9641cde827f: Pull complete 3cdea939490d: Pull complete 967600f1f895: Pull complete 5ff35f4dd965: Pull complete f8995c1027b8: Pull complete 7f50fbf63f4f: Pull complete 9b45ca3f5929: Pull complete 87e4c86c2207: Pull complete a5b04540a39f: Pull complete 21caa2ff7f2e: Pull complete Digest: sha256:db77e852f070124f81c484854b9022ef70666707a6f0fdc3486a88522adcf2be Status: Downloaded newer image for jonescompneurolab/hnn:latest docker.io/jonescompneurolab/hnn:latest done Looking for existing containers... Command: docker.exe ps -a grep hnn_container Output: not found Checking if VcXsrv is running... yes Stopping VcXsrv... Command: cmd.exe //c taskkill //F //IM vcxsrv.exe Op‚ration r‚ussieÿ: le processus "vcxsrv.exe" de PID 11412 a ‚t‚ arrˆt‚. done Checking if VcXsrv is installed... done Starting VcXsrv... Command: /c/Program Files/VcXsrv/vcxsrv.exe -wgl -multiwindow 2>&1 & done Started VcXsrv with PID 10400 Welcome to the VcXsrv X Server Vendor: The VcXsrv Project Release: 1.20.8.1

OS: Windows NT 6.2 build 9200 (64-bit) Contact: marha@users.sourceforge.net

LoadPrC:\Program Files\VcXsrv\xauth.exe: timeout in locking authority file C:\Users\HP m Files\VcXsrv\system.XWinrc Warning: Locale not supported by X, falling back to 'C' locale. (II) AIGLX: Testing pixelFormatIndex 1 (II) GLX: enabled GLX_SGI_make_current_read (II) GLX: enabled GLX_SGI_swap_control (II) GLX: enabled GLX_MESA_swap_control (II) GLX: enabled GLX_SGIX_pbuffer (II) GLX: enabled GLX_ARB_multisample (II) GLX: enabled GLX_SGIS_multisample (II) GLX: enabled GLX_ARB_fbconfig_float (II) GLX: enabled GLX_EXT_fbconfig_packed_float (II) GLX: enabled GLX_ARB_create_context (II) GLX: enabled GLX_ARB_create_context_profile (II) GLX: enabled GLX_ARB_create_context_robustness (II) GLX: enabled GLX_EXT_create_context_es2_profile (II) GLX: enabled GLX_ARB_framebuffer_sRGB (II) AIGLX: enabled GLX_MESA_copy_sub_buffer (II) 92 pixel formats reported by wglGetPixelFormatAttribivARB (II) GLX: Initialized Win32 native WGL GL provider for screen 0 winClipboardThreadProc - DISPLAY=127.0.0.1:0.0 Using Composite redirection OS maintains clipboard viewer chain: yes Output: no valid keys Generating xauth key for display localhost:0... Command: /c/Program Files/VcXsrv/xauth.exe -f /c/Users/HP 840 G2/.Xauthority generate localhost:0 . C:\Program Files\VcXsrv\xauth.exe: timeout in locking authority file C:\Users\HP Output: failed Killing VcXsrv PID 10400 cleanup() called from: cleanup_except_travis (L:116) Call tree: 1: ./hnn_docker.sh:116 cleanup(...) 2: ./hnn_docker.sh:147 cleanup_except_travis(...) 3: ./hnn_docker.sh:1187 fail_on_bad_exit_except_travis(...) Exiting with status 2


blakecaldwell commented 4 years ago

The issue was pretty simple. I didn't include quotes around a path, so it failed if the username had a space. Please try again after getting the lastest source code (e.g. via git pull origin master). Thanks.

emmatx commented 4 years ago

Hi @blakecaldwell, I tried again and I got the same error :


$ ./hnn_docker.sh -u start

Upgrade HNN image requested

Starting HNN container requested

Performing pre-checks before starting HNN

Checking OS version... windows Checking if Docker is installed... done Checking if docker-compose is found... done Checking if Docker is working... ok (Docker Toolbox) Downloading new HNN image from Docker Hub... done Looking for existing containers... not found Checking if VcXsrv is running... no Checking if VcXsrv is installed... done Starting VcXsrv... done Checking for xauth.exe... done Checking for X11 authentication keys... no valid keys Generating xauth key for display needs-to-be-defined... failed Stopping VcXsrv... done

====================================== Error: Please see hnn_docker.log for more details


blakecaldwell commented 4 years ago

Sorry about that. Looks like it will require something else. I'm testing a new fix and will let you know when it's ready to try out. Thanks.

blakecaldwell commented 4 years ago

@emmatx Please give it another try and let me know if things have improved. If not, please also include hnn_docker.log and I should be able to suggest commands to run manually.

emmatx commented 4 years ago

Hello @blakecaldwell, I've been a little further, I got :


$ ./hnn_docker.sh -u start

Upgrade HNN image requested

Starting HNN container requested

Performing pre-checks before starting HNN

Checking OS version... windows Checking if Docker is installed... done Checking if docker-compose is found... done Checking if Docker is working... ok (Docker Toolbox) Downloading new HNN image from Docker Hub... done Looking for existing containers... not found Checking if VcXsrv is running... no Checking if VcXsrv is installed... done Starting VcXsrv... done Checking for xauth.exe... done Checking for X11 authentication keys... done Updating xauth keys for use with docker... done Locating HNN source code... /c/Users/HP 840 G2/hnn

Starting HNN

Looking for existing images... found Creating HNN container... failed Stopping VcXsrv...


and then it remains like this, and I have to close the windows. Here is my hnn_docker.log :

Performing pre-checks before starting HNN

Checking OS version... windows

Checking if Docker is installed...

Command: which docker.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker.exe done

Checking if docker-compose is found...

Command: which docker-compose.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker-compose.exe done

Command: which docker-machine.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker-machine.exe

Checking if Docker is working... ok (Docker Toolbox)

Downloading new HNN image from Docker Hub...

Command: docker.exe pull jonescompneurolab/hnn Stderr: ** Stdout: Using default tag: latest latest: Pulling from jonescompneurolab/hnn 35c102085707: Pulling fs layer 251f5509d51d: Pulling fs layer 8e829fe70a46: Pulling fs layer 6001e1789921: Pulling fs layer 84e95d3c8e86: Pulling fs layer 346fbb1c1374: Pulling fs layer ee6fd8af66b7: Pulling fs layer 4aa49641ece7: Pulling fs layer 63c4289a51b5: Pulling fs layer d30b6a16bc56: Pulling fs layer e1db3a188b43: Pulling fs layer 51822089210a: Pulling fs layer f9f1192b4856: Pulling fs layer 2444964feaf2: Pulling fs layer f7528ed15535: Pulling fs layer 37c7e1e07c34: Pulling fs layer 4aa49641ece7: Waiting 63c4289a51b5: Waiting d30b6a16bc56: Waiting 5c616c9a436e: Pulling fs layer bbc038cf8320: Pulling fs layer 1bb4b506c963: Pulling fs layer fb120174c068: Pulling fs layer 02be656189fb: Pulling fs layer de8a83fd916b: Pulling fs layer 446398363fb9: Pulling fs layer 90f5e012fe0f: Pulling fs layer b30e7651a1f4: Pulling fs layer 0cd2ded5b9d2: Pulling fs layer 84e95d3c8e86: Waiting 346fbb1c1374: Waiting ee6fd8af66b7: Waiting 6001e1789921: Waiting f9f1192b4856: Waiting 2444964feaf2: Waiting f7528ed15535: Waiting 51822089210a: Waiting 37c7e1e07c34: Waiting e1db3a188b43: Waiting 5c616c9a436e: Waiting bbc038cf8320: Waiting 1bb4b506c963: Waiting fb120174c068: Waiting 02be656189fb: Waiting de8a83fd916b: Waiting 90f5e012fe0f: Waiting b30e7651a1f4: Waiting d4f1c3a9b5b2: Pulling fs layer 85f108799b48: Pulling fs layer 43eb41b5e670: Pulling fs layer 267b383c5998: Pulling fs layer 446398363fb9: Waiting 70eb94b69e4c: Pulling fs layer 0cd2ded5b9d2: Waiting 85f108799b48: Waiting 267b383c5998: Waiting 70eb94b69e4c: Waiting 43eb41b5e670: Waiting d4f1c3a9b5b2: Waiting 251f5509d51d: Download complete 8e829fe70a46: Verifying Checksum 8e829fe70a46: Download complete 6001e1789921: Verifying Checksum 6001e1789921: Download complete 346fbb1c1374: Verifying Checksum 346fbb1c1374: Download complete ee6fd8af66b7: Verifying Checksum ee6fd8af66b7: Download complete 35c102085707: Verifying Checksum 35c102085707: Download complete 63c4289a51b5: Verifying Checksum 63c4289a51b5: Download complete d30b6a16bc56: Verifying Checksum d30b6a16bc56: Download complete e1db3a188b43: Verifying Checksum e1db3a188b43: Download complete 4aa49641ece7: Verifying Checksum 4aa49641ece7: Download complete 51822089210a: Verifying Checksum 51822089210a: Download complete 35c102085707: Pull complete 251f5509d51d: Pull complete 8e829fe70a46: Pull complete 6001e1789921: Pull complete 2444964feaf2: Verifying Checksum 2444964feaf2: Download complete f9f1192b4856: Verifying Checksum f9f1192b4856: Download complete f7528ed15535: Verifying Checksum f7528ed15535: Download complete 5c616c9a436e: Verifying Checksum 5c616c9a436e: Download complete bbc038cf8320: Verifying Checksum bbc038cf8320: Download complete 1bb4b506c963: Verifying Checksum 1bb4b506c963: Download complete fb120174c068: Verifying Checksum fb120174c068: Download complete 02be656189fb: Verifying Checksum 02be656189fb: Download complete de8a83fd916b: Verifying Checksum de8a83fd916b: Download complete 446398363fb9: Verifying Checksum 446398363fb9: Download complete 90f5e012fe0f: Verifying Checksum 90f5e012fe0f: Download complete b30e7651a1f4: Download complete 0cd2ded5b9d2: Verifying Checksum 0cd2ded5b9d2: Download complete d4f1c3a9b5b2: Verifying Checksum d4f1c3a9b5b2: Download complete 85f108799b48: Verifying Checksum 85f108799b48: Download complete 43eb41b5e670: Verifying Checksum 43eb41b5e670: Download complete 267b383c5998: Verifying Checksum 267b383c5998: Download complete 37c7e1e07c34: Verifying Checksum 37c7e1e07c34: Download complete 70eb94b69e4c: Download complete 84e95d3c8e86: Verifying Checksum 84e95d3c8e86: Download complete 84e95d3c8e86: Pull complete 346fbb1c1374: Pull complete ee6fd8af66b7: Pull complete 4aa49641ece7: Pull complete 63c4289a51b5: Pull complete d30b6a16bc56: Pull complete e1db3a188b43: Pull complete 51822089210a: Pull complete f9f1192b4856: Pull complete 2444964feaf2: Pull complete f7528ed15535: Pull complete 37c7e1e07c34: Pull complete 5c616c9a436e: Pull complete bbc038cf8320: Pull complete 1bb4b506c963: Pull complete fb120174c068: Pull complete 02be656189fb: Pull complete de8a83fd916b: Pull complete 446398363fb9: Pull complete 90f5e012fe0f: Pull complete b30e7651a1f4: Pull complete 0cd2ded5b9d2: Pull complete d4f1c3a9b5b2: Pull complete 85f108799b48: Pull complete 43eb41b5e670: Pull complete 267b383c5998: Pull complete 70eb94b69e4c: Pull complete Digest: sha256:af4911a524d966c61895d44116d955e423fabd8199b94a83c12226fc420826cd Status: Downloaded newer image for jonescompneurolab/hnn:latest docker.io/jonescompneurolab/hnn:latest done

Looking for existing containers...

Command: docker.exe ps -a | grep hnn_container Stderr: not found

Checking if VcXsrv is running... no

Checking if VcXsrv is installed... done

Starting VcXsrv...

** Command: /c/Program Files/VcXsrv/vcxsrv.exe -wgl -multiwindow 2>&1 & done Started VcXsrv with PID 1248

Checking for xauth.exe... done

Checking for X11 authentication keys...

Command: "/c/Program Files/VcXsrv/xauth.exe" -f "/c/Users/HP 840 G2/.Xauthority" nlist localhost:0 Stderr: C:\Program Files\VcXsrv\xauth.exe: file C:\Users\HP 840 G2.Xauthority does not exist Output: no valid keys

Generating xauth key for display localhost:0...

Command: "/c/Program Files/VcXsrv/xauth.exe" -f "/c/Users/HP 840 G2/.Xauthority" generate localhost:0 . Output: C:\Program Files\VcXsrv\xauth.exe: file C:\Users\HP 840 G2.Xauthority does not exist done

(retry) Checking for X11 authentication keys...

Command: "/c/Program Files/VcXsrv/xauth.exe" -f "/c/Users/HP 840 G2/.Xauthority" nlist localhost:0 Stderr: Output: suppresed done

Updating xauth keys for use with docker...

Command: "/c/Program Files/VcXsrv/xauth.exe" nlist localhost:0 | sed -e 's/^..../ffff/' | "/c/Program Files/VcXsrv/xauth.exe" -f "/c/Users/HP 840 G2/.Xauthority" -b -i nmerge - Output: done

Locating HNN source code... /c/Users/HP 840 G2/hnn

Setting up SSH authentication files...

Command: echo -e " " | ssh-keygen -f ./installer/docker/id_rsa_hnn -t rsa -N '' Output: Generating public/private rsa key pair. Your identification has been saved in ./installer/docker/id_rsa_hnn. Your public key has been saved in ./installer/docker/id_rsa_hnn.pub. The key fingerprint is: SHA256:OFUw1JIoUAsjUYkyvHnJ+6Q5Cj0jXFLwYB0biGXihXw HP 840 G2@DESKTOP-L1B7BCD The key's randomart image is: +---[RSA 2048]----+ |BO@Bo o++. | |BOE+.. oo. | |.o=+o. .. | | o.+ o | | .... o S | |..o. . . | |o.+ = | |.. . | | .. . | +----[SHA256]-----+ done

Starting HNN

Command: docker.exe ps -a | grep hnn_container Stderr: Looking for existing images...

Command: docker.exe images | grep jonescompneurolab/hnn Stderr: ** Stdout: jonescompneurolab/hnn latest 184ba4b79c11 19 hours ago 1.3GB

Creating HNN container...

Command: docker-compose.exe --no-ansi -f C:\Users\HP 840 G2\hnn\installer\windows\docker-compose.yml up --no-start hnn Stderr: No such command: 840

Commands: build Build or rebuild services bundle Generate a Docker bundle from the Compose file config Validate and view the Compose file create Create services down Stop and remove containers, networks, images, and volumes events Receive real time events from containers exec Execute a command in a running container help Get help on a command images List images kill Kill containers logs View output from containers pause Pause services port Print the public port for a port binding ps List containers pull Pull service images push Push service images restart Restart services rm Remove stopped containers run Run a one-off command scale Set number of containers for a service start Start services stop Stop services top Display the running processes unpause Unpause services up Create and start containers version Show the Docker-Compose version information failed

===================== cleanup() called from: fail_on_bad_exit (L:133)

Stopping VcXsrv...

Command: cmd.exe //c taskkill //F //IM vcxsrv.exe Stderr: Performing pre-checks before starting HNN

Checking OS version... windows

Checking if Docker is installed...

Command: which docker.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker.exe done

Checking if docker-compose is found...

Command: which docker-compose.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker-compose.exe done

Command: which docker-machine.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker-machine.exe

Checking if Docker is working... ok (Docker Toolbox)

Downloading new HNN image from Docker Hub...

Command: docker.exe pull jonescompneurolab/hnn Stderr: ** Stdout: Using default tag: latest latest: Pulling from jonescompneurolab/hnn Digest: sha256:af4911a524d966c61895d44116d955e423fabd8199b94a83c12226fc420826cd Status: Image is up to date for jonescompneurolab/hnn:latest docker.io/jonescompneurolab/hnn:latest done

Looking for existing containers...

Command: docker.exe ps -a | grep hnn_container Stderr: not found

Checking if VcXsrv is running... no

Checking if VcXsrv is installed... done

Starting VcXsrv...

** Command: /c/Program Files/VcXsrv/vcxsrv.exe -wgl -multiwindow 2>&1 & done Started VcXsrv with PID 5152

Checking for xauth.exe... done

Checking for X11 authentication keys...

Command: "/c/Program Files/VcXsrv/xauth.exe" -f "/c/Users/HP 840 G2/.Xauthority" nlist localhost:0 Stderr: Output: suppresed done

Updating xauth keys for use with docker...

Command: "/c/Program Files/VcXsrv/xauth.exe" nlist localhost:0 | sed -e 's/^..../ffff/' | "/c/Program Files/VcXsrv/xauth.exe" -f "/c/Users/HP 840 G2/.Xauthority" -b -i nmerge - Output: done

Locating HNN source code... /c/Users/HP 840 G2/hnn

Starting HNN

Command: docker.exe ps -a | grep hnn_container Stderr: Looking for existing images...

Command: docker.exe images | grep jonescompneurolab/hnn Stderr: ** Stdout: jonescompneurolab/hnn latest 184ba4b79c11 19 hours ago 1.3GB

Creating HNN container...

Command: docker-compose.exe --no-ansi -f C:\Users\HP 840 G2\hnn\installer\windows\docker-compose.yml up --no-start hnn Stderr: No such command: 840

Commands: build Build or rebuild services bundle Generate a Docker bundle from the Compose file config Validate and view the Compose file create Create services down Stop and remove containers, networks, images, and volumes events Receive real time events from containers exec Execute a command in a running container help Get help on a command images List images kill Kill containers logs View output from containers pause Pause services port Print the public port for a port binding ps List containers pull Pull service images push Push service images restart Restart services rm Remove stopped containers run Run a one-off command scale Set number of containers for a service start Start services stop Stop services top Display the running processes unpause Unpause services up Create and start containers version Show the Docker-Compose version information failed

===================== cleanup() called from: fail_on_bad_exit (L:133)

Stopping VcXsrv...

Command: cmd.exe //c taskkill //F //IM vcxsrv.exe Stderr: Performing pre-checks before starting HNN

Checking OS version... windows

Checking if Docker is installed...

Command: which docker.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker.exe done

Checking if docker-compose is found...

Command: which docker-compose.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker-compose.exe done

Command: which docker-machine.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker-machine.exe

Checking if Docker is working...

Command: which docker-machine.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker-machine.exe ok (Docker Toolbox)

Checking if VcXsrv is running... no

Checking if VcXsrv is installed... done

Starting VcXsrv...

** Command: /c/Program Files/VcXsrv/vcxsrv.exe -wgl -multiwindow 2>&1 & done Started VcXsrv with PID 6484

Checking for xauth.exe... done

Checking for X11 authentication keys...

Command: "/c/Program Files/VcXsrv/xauth.exe" -f "/c/Users/HP 840 G2/.Xauthority" nlist localhost:0 Stderr: Output: suppresed done

Updating xauth keys for use with docker...

Command: "/c/Program Files/VcXsrv/xauth.exe" nlist localhost:0 | sed -e 's/^..../ffff/' | "/c/Program Files/VcXsrv/xauth.exe" -f "/c/Users/HP 840 G2/.Xauthority" -b -i nmerge - Output: done

Locating HNN source code... /c/Users/HP 840 G2/hnn

Starting HNN

Command: docker.exe ps -a | grep hnn_container Stderr: Looking for existing images...

Command: docker.exe images | grep jonescompneurolab/hnn Stderr: ** Stdout: jonescompneurolab/hnn latest 184ba4b79c11 20 hours ago 1.3GB

Creating HNN container...

Command: docker-compose.exe --no-ansi -f C:\Users\HP 840 G2\hnn\installer\windows\docker-compose.yml up --no-start hnn Stderr: No such command: 840

Commands: build Build or rebuild services bundle Generate a Docker bundle from the Compose file config Validate and view the Compose file create Create services down Stop and remove containers, networks, images, and volumes events Receive real time events from containers exec Execute a command in a running container help Get help on a command images List images kill Kill containers logs View output from containers pause Pause services port Print the public port for a port binding ps List containers pull Pull service images push Push service images restart Restart services rm Remove stopped containers run Run a one-off command scale Set number of containers for a service start Start services stop Stop services top Display the running processes unpause Unpause services up Create and start containers version Show the Docker-Compose version information failed

===================== cleanup() called from: fail_on_bad_exit (L:133)

Stopping VcXsrv...

Command: cmd.exe //c taskkill //F //IM vcxsrv.exe Stderr: Performing pre-checks before starting HNN

Checking OS version... windows

Checking if Docker is installed...

Command: which docker.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker.exe done

Checking if docker-compose is found...

Command: which docker-compose.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker-compose.exe done

Command: which docker-machine.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker-machine.exe

Checking if Docker is working... ok (Docker Toolbox)

Downloading new HNN image from Docker Hub...

Command: docker.exe pull jonescompneurolab/hnn Stderr: ** Stdout: Using default tag: latest latest: Pulling from jonescompneurolab/hnn Digest: sha256:af4911a524d966c61895d44116d955e423fabd8199b94a83c12226fc420826cd Status: Image is up to date for jonescompneurolab/hnn:latest docker.io/jonescompneurolab/hnn:latest done

Looking for existing containers...

Command: docker.exe ps -a | grep hnn_container Stderr: not found

Checking if VcXsrv is running... no

Checking if VcXsrv is installed... done

Starting VcXsrv...

** Command: /c/Program Files/VcXsrv/vcxsrv.exe -wgl -multiwindow 2>&1 & done Started VcXsrv with PID 12736

Checking for xauth.exe... done

Checking for X11 authentication keys...

Command: "/c/Program Files/VcXsrv/xauth.exe" -f "/c/Users/HP 840 G2/.Xauthority" nlist localhost:0 Stderr: Output: suppresed done

Updating xauth keys for use with docker...

Command: "/c/Program Files/VcXsrv/xauth.exe" nlist localhost:0 | sed -e 's/^..../ffff/' | "/c/Program Files/VcXsrv/xauth.exe" -f "/c/Users/HP 840 G2/.Xauthority" -b -i nmerge - Output: done

Locating HNN source code... /c/Users/HP 840 G2/hnn

Starting HNN

Command: docker.exe ps -a | grep hnn_container Stderr: Looking for existing images...

Command: docker.exe images | grep jonescompneurolab/hnn Stderr: ** Stdout: jonescompneurolab/hnn latest 184ba4b79c11 20 hours ago 1.3GB

Creating HNN container...

Command: docker-compose.exe --no-ansi -f C:\Users\HP 840 G2\hnn\installer\windows\docker-compose.yml up --no-start hnn Stderr: No such command: 840

Commands: build Build or rebuild services bundle Generate a Docker bundle from the Compose file config Validate and view the Compose file create Create services down Stop and remove containers, networks, images, and volumes events Receive real time events from containers exec Execute a command in a running container help Get help on a command images List images kill Kill containers logs View output from containers pause Pause services port Print the public port for a port binding ps List containers pull Pull service images push Push service images restart Restart services rm Remove stopped containers run Run a one-off command scale Set number of containers for a service start Start services stop Stop services top Display the running processes unpause Unpause services up Create and start containers version Show the Docker-Compose version information failed

===================== cleanup() called from: fail_on_bad_exit (L:133)

Stopping VcXsrv...

Command: cmd.exe //c taskkill //F //IM vcxsrv.exe Stderr:


Thank you so much for your help !

blakecaldwell commented 4 years ago

Hi again @emmatx, I've made a change to the hnn_docker.sh script to handle path names with spaces. I believe this should resolve the problems you were seeing. Please let me know if not. Thanks!

emmatx commented 4 years ago

Hi @blakecaldwell ; I tried again this morning and it didn't work. I tried the 3 installations paths, although my configuration is Windows 10 Pro (Docker Desktop installation crashed before). Here is what Docker displays for : Starting HNN container requested

Performing pre-checks before starting HNN

Checking OS version... windows Checking if docker is installed... done Checking if Docker (Toolbox) is working... done Checking if docker-compose is installed... done Checking for docker configuration... /c/Users/HP 840 G2/hnn/installer/docker Downloading new HNN image from Docker Hub... done Looking for existing containers... not found Checking if VcXsrv is running... no Checking for vcxsrv... found Starting VcXsrv... tee: /c/Users/HP: Permission denied tee: G2/hnn/hnn_docker.log: No such file or directory done Checking for xauth... found Checking for X11 authentication keys... done Updating xauth keys for use with docker... done Checking for SSH authentication files... failed failed Setting up SSH authentication files... done

Starting HNN

Looking for existing images... found Creating HNN container... failed Stopping VcXsrv... done

====================================== Error: Please see /c/Users/HP 840 G2/hnn/hnn_docker.log for more details


and here is hnn.docker.log :


Performing pre-checks before starting HNN

Checking OS version... windows

Checking if docker is installed...

Command: which docker.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker.exe done

Checking if Docker (Toolbox) is working...

Command: timeout 5 docker.exe version Stderr: ** Stdout: Client: Version: 19.03.1 API version: 1.40 Go version: go1.12.7 Git commit: 74b1e89e8a Built: Wed Jul 31 15:18:18 2019 OS/Arch: windows/amd64 Experimental: false

Server: Docker Engine - Community Engine: Version: 19.03.5 API version: 1.40 (minimum version 1.12) Go version: go1.12.12 Git commit: 633a0ea838 Built: Wed Nov 13 07:28:45 2019 OS/Arch: linux/amd64 Experimental: false containerd: Version: v1.2.10 GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339 runc: Version: 1.0.0-rc8+dev GitCommit: 3e425f80a8c931f88e6d94a8c831b9d5aa481657 docker-init: Version: 0.18.0 GitCommit: fec3683 done

Checking if docker-compose is installed...

Command: which docker-compose.exe Stderr: ** Stdout: /c/Program Files/Docker Toolbox/docker-compose.exe done

Checking for docker configuration... /c/Users/HP 840 G2/hnn/installer/docker

Downloading new HNN image from Docker Hub...

Command: docker.exe pull jonescompneurolab/hnn Stderr: ** Stdout: Using default tag: latest latest: Pulling from jonescompneurolab/hnn 35c102085707: Pulling fs layer 251f5509d51d: Pulling fs layer 8e829fe70a46: Pulling fs layer 6001e1789921: Pulling fs layer 84e95d3c8e86: Pulling fs layer d29d8f9b1a9e: Pulling fs layer 4918c7bec287: Pulling fs layer 9cc4bf83d1bb: Pulling fs layer 927c562c30af: Pulling fs layer 3fd0f4c329fb: Pulling fs layer 8833a49027ad: Pulling fs layer 63a272edfcdb: Pulling fs layer b3deaab95cdf: Pulling fs layer 4f9c98118464: Pulling fs layer 03cb338364c4: Pulling fs layer 39869cadc9dd: Pulling fs layer 41150e61ed9f: Pulling fs layer 8c6d864c2d96: Pulling fs layer 4afa8b4003a4: Pulling fs layer 1aaa232f15f6: Pulling fs layer e485c639cf92: Pulling fs layer 6a1968451a12: Pulling fs layer 0238a0c01bb9: Pulling fs layer 808492fa0c3a: Pulling fs layer f383b00bdbe0: Pulling fs layer af0f74b16e8b: Pulling fs layer 071065564021: Pulling fs layer f2b042a744b1: Pulling fs layer 48da79853e31: Pulling fs layer 3e326b365378: Pulling fs layer 1885b5ee718e: Pulling fs layer 84e95d3c8e86: Waiting d29d8f9b1a9e: Waiting 9cc4bf83d1bb: Waiting 4918c7bec287: Waiting 927c562c30af: Waiting 3fd0f4c329fb: Waiting 8833a49027ad: Waiting 63a272edfcdb: Waiting 6001e1789921: Waiting b3deaab95cdf: Waiting 4f9c98118464: Waiting 0238a0c01bb9: Waiting 03cb338364c4: Waiting 808492fa0c3a: Waiting 39869cadc9dd: Waiting 41150e61ed9f: Waiting f383b00bdbe0: Waiting 8c6d864c2d96: Waiting f2b042a744b1: Waiting 48da79853e31: Waiting 4afa8b4003a4: Waiting 3e326b365378: Waiting 1aaa232f15f6: Waiting e485c639cf92: Waiting 1885b5ee718e: Waiting 6a1968451a12: Waiting 071065564021: Waiting af0f74b16e8b: Waiting 8e829fe70a46: Verifying Checksum 8e829fe70a46: Download complete 251f5509d51d: Download complete 6001e1789921: Verifying Checksum 6001e1789921: Download complete 35c102085707: Verifying Checksum 35c102085707: Download complete 35c102085707: Pull complete 251f5509d51d: Pull complete d29d8f9b1a9e: Verifying Checksum d29d8f9b1a9e: Download complete 8e829fe70a46: Pull complete 6001e1789921: Pull complete 4918c7bec287: Verifying Checksum 4918c7bec287: Download complete 927c562c30af: Verifying Checksum 927c562c30af: Download complete 3fd0f4c329fb: Verifying Checksum 3fd0f4c329fb: Download complete 8833a49027ad: Verifying Checksum 8833a49027ad: Download complete 9cc4bf83d1bb: Verifying Checksum 9cc4bf83d1bb: Download complete 63a272edfcdb: Verifying Checksum 63a272edfcdb: Download complete 4f9c98118464: Verifying Checksum 4f9c98118464: Download complete b3deaab95cdf: Verifying Checksum b3deaab95cdf: Download complete 03cb338364c4: Verifying Checksum 03cb338364c4: Download complete 41150e61ed9f: Verifying Checksum 41150e61ed9f: Download complete 8c6d864c2d96: Verifying Checksum 8c6d864c2d96: Download complete 4afa8b4003a4: Verifying Checksum 4afa8b4003a4: Download complete 84e95d3c8e86: Verifying Checksum 84e95d3c8e86: Download complete e485c639cf92: Verifying Checksum e485c639cf92: Download complete 1aaa232f15f6: Verifying Checksum 1aaa232f15f6: Download complete 0238a0c01bb9: Verifying Checksum 0238a0c01bb9: Download complete 808492fa0c3a: Verifying Checksum 808492fa0c3a: Download complete 6a1968451a12: Verifying Checksum 6a1968451a12: Download complete af0f74b16e8b: Verifying Checksum af0f74b16e8b: Download complete f383b00bdbe0: Verifying Checksum f383b00bdbe0: Download complete f2b042a744b1: Verifying Checksum f2b042a744b1: Download complete 071065564021: Verifying Checksum 071065564021: Download complete 48da79853e31: Verifying Checksum 48da79853e31: Download complete 3e326b365378: Verifying Checksum 3e326b365378: Download complete 1885b5ee718e: Download complete 39869cadc9dd: Verifying Checksum 39869cadc9dd: Download complete 84e95d3c8e86: Pull complete d29d8f9b1a9e: Pull complete 4918c7bec287: Pull complete 9cc4bf83d1bb: Pull complete 927c562c30af: Pull complete 3fd0f4c329fb: Pull complete 8833a49027ad: Pull complete 63a272edfcdb: Pull complete b3deaab95cdf: Pull complete 4f9c98118464: Pull complete 03cb338364c4: Pull complete 39869cadc9dd: Pull complete 41150e61ed9f: Pull complete 8c6d864c2d96: Pull complete 4afa8b4003a4: Pull complete 1aaa232f15f6: Pull complete e485c639cf92: Pull complete 6a1968451a12: Pull complete 0238a0c01bb9: Pull complete 808492fa0c3a: Pull complete f383b00bdbe0: Pull complete af0f74b16e8b: Pull complete 071065564021: Pull complete f2b042a744b1: Pull complete 48da79853e31: Pull complete 3e326b365378: Pull complete 1885b5ee718e: Pull complete Digest: sha256:3f0986b29ea8d6e2357b906637c6379177a3279b051d4001ff44836fe32d0f73 Status: Downloaded newer image for jonescompneurolab/hnn:latest docker.io/jonescompneurolab/hnn:latest done

Looking for existing containers...

Command: docker.exe ps -a | grep hnn_container Stderr: not found

Checking if VcXsrv is running... no

Checking for vcxsrv... found

Starting VcXsrv...

** Command: /c/Program Files/VcXsrv/vcxsrv.exe -wgl -multiwindow 2>&1 & Started VcXsrv with PID 3448

Checking for xauth... found

Checking for X11 authentication keys...

Command: "" -f "/c/Users/HP 840 G2/.Xauthority" nlist localhost:0 Stderr: Stdout: suppresed ** done

Command: "" -f "/c/Users/HP 840 G2/.Xauthority" nlist localhost:0 Stderr: Stdout: suppresed **

Updating xauth keys for use with docker...

Command: "/c/Program Files/VcXsrv/xauth.exe" nlist localhost:0 | sed -e 's/^..../ffff/' | "/c/Program Files/VcXsrv/xauth.exe" -f "/c/Users/HP 840 G2/.Xauthority" -b -i nmerge - Output: done

Checking for SSH authentication files... failed One or more ssh key missing. Keys need to be recreated failed

Setting up SSH authentication files...

** Command: echo -e " " ssh-keygen -f /c/Users/HP 840 G2/hnn/installer/docker/id_rsa_hnn -t rsa -N '' ** Output: Generating public/private rsa key pair. Your identification has been saved in /c/Users/HP 840 G2/hnn/installer/docker/id_rsa_hnn. Your public key has been saved in /c/Users/HP 840 G2/hnn/installer/docker/id_rsa_hnn.pub. The key fingerprint is: SHA256:a0KkKyeWIeg6HyKrJekbUH76QZbTspIj5TiKijHNZyE HP 840 G2@DESKTOP-L1B7BCD The key's randomart image is: +---[RSA 2048]----+
. .
.o =
+ E X o S
oO X B .
@o/ B . o
O@.@ . o
@=o .

+----[SHA256]-----+ done

Starting HNN

Command: docker.exe ps -a | grep hnn_container Stderr: Looking for existing images...

Command: docker.exe images | grep jonescompneurolab/hnn Stderr: ** Stdout: jonescompneurolab/hnn latest fea0e116e742 15 hours ago 1.32GB

Creating HNN container...

Command: docker-compose.exe --no-ansi up --no-start hnn Stderr: Creating network "docker_default" with the default driver Creating hnn_container ...

Creating hnn_container ... error

ERROR: for hnn_container Cannot create container for service hnn: invalid mount config for type "bind": bind source path does not exist: /c/Users/HP 840 G2/hnn_out

ERROR: for hnn Cannot create container for service hnn: invalid mount config for type "bind": bind source path does not exist: /c/Users/HP 840 G2/hnn_out Encountered errors while bringing up the project. failed

===================== cleanup() called from: fail_on_bad_exit (L:151)

Stopping VcXsrv...

Command: cmd.exe //c taskkill //F //IM vcxsrv.exe Stderr: ** Stdout: Op‚ration r‚ussieÿ: le processus "vcxsrv.exe" de PID 14348 a ‚t‚ arrˆt‚. done Killing VcXsrv PID

===================== Call tree: 1: scripts/utils.sh:138 errexit(...) 2: scripts/utils.sh:138 errexit(...) 3: scripts/utils.sh:138 errexit(...) Exiting with status 2

Thanks a lot for your work ; and absolutely no personal matter if it is due to my computer only, I finally installed it on another computer to start working in the mean time.

blakecaldwell commented 4 years ago

Hi @emmatx. I made some more changes that might finally fix your issue. The problem comes from the space in your username, which is surprisingly difficult to manage between docker and the shell script. I've enables an automated test with a user 'test user', which is passing. So it might work for you again.

If you are still having problems, we should probably discuss this in a new issue.

INNFINITEMINDS commented 4 years ago

image

INNFINITEMINDS commented 4 years ago

still geting error on windows 10 docker