instance fail to mount EBS volume

26 views
Skip to first unread message

Jingqi

unread,
Feb 21, 2018, 11:36:27 PM2/21/18
to Cryo-EM in the cloud
I suddenly failed to have my data volume mounted to instance (p2.xlarge or p2.16xlarge) with following error:

Waiting for instance  i-03fd833c03d2999a6 to initialize...
[ubu...@54.211.84.206] run: ls /data
Traceback (most recent call last):
  File "/Users/dreyfusslab/CloudSoftwareTools/cryoem-cloud-tools/aws//launch_AWS_instance.py", line 594, in <module>
    AttachMountEBSVol(instanceID,params['volume'],PublicIP,keyPath,params)
  File "/Users/dreyfusslab/CloudSoftwareTools/cryoem-cloud-tools/aws//launch_AWS_instance.py", line 522, in AttachMountEBSVol
    dir_exists=exec_remote_cmd('ls /%s' %(params['dirname']))
  File "/Users/dreyfusslab/CloudSoftwareTools/cryoem-cloud-tools/aws//launch_AWS_instance.py", line 549, in exec_remote_cmd
    return run(cmd)
  File "/Users/dreyfusslab/Library/Python/2.7/lib/python/site-packages/fabric/network.py", line 687, in host_prompting_wrapper
    return func(*args, **kwargs)
  File "/Users/dreyfusslab/Library/Python/2.7/lib/python/site-packages/fabric/operations.py", line 1090, in run
    shell_escape=shell_escape, capture_buffer_size=capture_buffer_size,
  File "/Users/dreyfusslab/Library/Python/2.7/lib/python/site-packages/fabric/operations.py", line 930, in _run_command
    channel=default_channel(), command=wrapped_command, pty=pty,
  File "/Users/dreyfusslab/Library/Python/2.7/lib/python/site-packages/fabric/state.py", line 435, in default_channel
    chan = _open_session()
  File "/Users/dreyfusslab/Library/Python/2.7/lib/python/site-packages/fabric/state.py", line 420, in _open_session
    session = transport.open_session(timeout=env.timeout)
  File "build/bdist.macosx-10.10-intel/egg/paramiko/transport.py", line 732, in open_session
  File "build/bdist.macosx-10.10-intel/egg/paramiko/transport.py", line 860, in open_channel
paramiko.ssh_exception.SSHException: Timeout openning channel.


Any suggestion?

Jingqi

Ali Khan

unread,
Mar 26, 2018, 3:19:32 PM3/26/18
to Cryo-EM in the cloud
I have suddenly started having the same error myself when I run the command:

$awslaunch --instance=t2.micro --spot 0.1 --availZone=us-east-1b --volume=vol-xxxxxxxxxxx

Michael, do you have any suggestions?

Michael Cianfrocco

unread,
Mar 26, 2018, 10:50:19 PM3/26/18
to Cryo-EM in the cloud
Hi Ali & Jingqi, 

I am not having this issue - do you think something changed on your computer? The errors you are getting are related to the software program 'fabric' - perhaps try uninstalled and reinstalling? 

$ pip uninstall fabric
$ pip install fabric

Mike

Ali Khan

unread,
Mar 27, 2018, 12:09:05 PM3/27/18
to Cryo-EM in the cloud
Hey Mike,

Unfortunately, that did not fix it. I will keep you informed if I come up with anything.

Ali

Jingqi

unread,
Mar 28, 2018, 9:31:54 PM3/28/18
to Cryo-EM in the cloud
 It happened sporadically. For me, I just cycle awskill i-******************** and awslaunch *** until it had 100% success.

Ali Khan

unread,
May 1, 2018, 5:34:14 PM5/1/18
to Cryo-EM in the cloud
Hey Jingqi and Mike,

I was curious if any solutions were found for this problem. I unfortunately haven't figured out a solution. I tried to use a side route to attach the volume using aws_ebs_attach, but even in this scenario, the attached EBS drive in not in the folder /data, though aws says it is successfully attached.

Ali

mcia...@umich.edu

unread,
May 4, 2018, 8:37:05 AM5/4/18
to Cryo-EM in the cloud
Hi Ali,

This is very weird - I still suspect this is a python / software version issue. I have yet to reproduce this on my machines at Michigan so it's hard for me to troubleshoot. Do you want to summarize any new attempts you made and what you saw? Maybe a fresh look could fix this.

Mike

Reply all
Reply to author
Forward
0 new messages