-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I regularly run into issues with the vdi_jupyter.py script. I usually have to run it quite a few times to actually connect properly. Below are two example errors that I sometimes run into. If anyone has any suggests on how to fix/get around these (or whether they are normal/expected), I'd love to hear them.
ryan@RYANSURF6:/mnt/c/Users/holme/Cloud/Research/Utilities/python/nci_scripts$ ./vdi_jupyter.py
[10:01:30 jupyter_vdi.py] Using config file: /home/ryan/cosima_cookbook.conf
[10:01:30 jupyter_vdi.py] Checking SSH keys to VDI are configured...
password:
[10:01:36 jupyter_vdi.py] SSH keys configured OK
[10:01:36 jupyter_vdi.py] Determine if VDI session is already running...
[10:01:37 jupyter_vdi.py] Time remaining: 167:55:31
[10:01:37 jupyter_vdi.py] Determine jobid for VDI session...47707
[10:01:37 jupyter_vdi.py] Get exechost for VDI session...
[10:01:38 jupyter_vdi.py] exechost: vdi-n1.nci.org.au
[10:01:38 jupyter_vdi.py] Running Jupyter on VDI...
[10:01:38 jupyter_vdi.py] Waiting for Jupyter to start...
Traceback (most recent call last):
File "./vdi_jupyter.py", line 267, in <module>
main_argv()
File "./vdi_jupyter.py", line 263, in main_argv
main(args)
File "./vdi_jupyter.py", line 239, in main
ret = s.expect('http://\S*:(?P<jupyterport>\d+)/\?token=(?P<token>[a-zA-Z0-9]+)')
File "/home/ryan/.local/lib/python2.7/site-packages/pexpect/spawnbase.py", line 344, in expect
timeout, searchwindowsize, async_)
File "/home/ryan/.local/lib/python2.7/site-packages/pexpect/spawnbase.py", line 372, in expect_list
return exp.expect_loop(timeout)
File "/home/ryan/.local/lib/python2.7/site-packages/pexpect/expect.py", line 181, in expect_loop
return self.timeout(e)
File "/home/ryan/.local/lib/python2.7/site-packages/pexpect/expect.py", line 144, in timeout
raise exc
pexpect.exceptions.TIMEOUT: Timeout exceeded.
<pexpect.pty_spawn.spawn object at 0x7f08347380d0>
command: /usr/bin/ssh
args: ['/usr/bin/ssh', '-x', '-l', 'rmh561', 'vdi-n1.nci.org.au', '-t', 'bash -l -c "module use /g/data3/hh5/public/modules && module load conda/analysis3 && jupyter notebook --no-browser --port 8889"']
buffer (last 100 chars): "rmh561@vdi-n1.nci.org.au's password: "
before (last 100 chars): "rmh561@vdi-n1.nci.org.au's password: "
after: <class 'pexpect.exceptions.TIMEOUT'>
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 101
child_fd: 5
closed: False
timeout: 30
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0.05
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_re:
0: re.compile('http://\\S*:(?P<jupyterport>\\d+)/\\?token=(?P<token>[a-zA-Z0-9]+)')
ryan@RYANSURF6:/mnt/c/Users/holme/Cloud/Research/Utilities/python/nci_scripts$ ./vdi_jupyter.py
[10:02:12 jupyter_vdi.py] Using config file: /home/ryan/cosima_cookbook.conf
[10:02:12 jupyter_vdi.py] Checking SSH keys to VDI are configured...
password:
[10:02:16 jupyter_vdi.py] SSH keys configured OK
[10:02:16 jupyter_vdi.py] Determine if VDI session is already running...
[10:02:17 jupyter_vdi.py] Time remaining: 167:54:51
[10:02:17 jupyter_vdi.py] Determine jobid for VDI session...47707
[10:02:17 jupyter_vdi.py] Get exechost for VDI session...
Traceback (most recent call last):
File "./vdi_jupyter.py", line 267, in <module>
main_argv()
File "./vdi_jupyter.py", line 263, in main_argv
main(args)
File "./vdi_jupyter.py", line 219, in main
params.update(m.groupdict())
AttributeError: 'NoneType' object has no attribute 'groupdict'
Metadata
Metadata
Assignees
Labels
No labels