jhorey / ferry

Ferry lets you define, run, and deploy big data applications on AWS, OpenStack, and your local machine using Docker

Home Page:http://ferry.opencore.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ferry start failed due to key dir

wush978 opened this issue · comments

Hi,

I followed the instruction in http://ferry.opencore.io/en/latest/install.html and http://ferry.opencore.io/en/latest/examples/openmpi.html to try ferry with openmpi. But it failed as follow:

root@ip-10-179-155-66:~/Ferry#  ferry --key=/root/.ssh start openmpi
Traceback (most recent call last):
  File "/usr/local/bin/ferry", line 9, in <module>
    load_entry_point('ferry==0.2.2', 'console_scripts', 'ferry')()
  File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 809, in main
    msg = cli.dispatch_cmd(c, all_cmds[c], options)
  File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 684, in dispatch_cmd
    self._check_ssh_key()
  File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 620, in _check_ssh_key
    keydir, _ = self._read_key_dir(root)
  File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 604, in _read_key_dir
    with open(keydir, 'r') as f: 
IOError: [Errno 2] No such file or directory: '/var/lib/ferry/keydir'

It seems that the keydir is incorrect.

You should reproduce the example on AWS from in US-EAST with AMI: ami-8c679ce4

Thanks, I'll take a look.

--James

On Wed, Jun 25, 2014 at 6:59 AM, wush978 notifications@github.com wrote:

Hi,

I followed the instruction in
http://ferry.opencore.io/en/latest/install.html and
http://ferry.opencore.io/en/latest/examples/openmpi.html to try ferry
with openmpi. But it failed as follow:

root@ip-10-179-155-66:~/Ferry# ferry --key=/root/.ssh start openmpi
Traceback (most recent call last):
File "/usr/local/bin/ferry", line 9, in
load_entry_point('ferry==0.2.2', 'console_scripts', 'ferry')()
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 809, in main
msg = cli.dispatch_cmd(c, all_cmds[c], options)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 684, in dispatch_cmd
self._check_ssh_key()
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 620, in _check_ssh_key
keydir, _ = self._read_key_dir(root)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 604, in _read_key_dir
with open(keydir, 'r') as f:
IOError: [Errno 2] No such file or directory: '/var/lib/ferry/keydir'

It seems that the keydir is incorrect.

You should reproduce the example on AWS from in US-EAST with AMI:
ami-8c679ce4


Reply to this email directly or view it on GitHub
#13.

Ok, should be fixed in master. If you're running version 0.2.2, then you should be able to clone/update, and then reinstall (python setup.py install). Otherwise, if you're running < 0.2.2, you'll need to also perform a ferry install -u afterwards since the base images have changed.