Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ferry server failed due to rootdir #15

Closed
lijin850591109 opened this issue Aug 12, 2014 · 5 comments
Closed

ferry server failed due to rootdir #15

lijin850591109 opened this issue Aug 12, 2014 · 5 comments

Comments

@lijin850591109
Copy link

Hi
I followed the instruction in http://ferry.opencore.io/en/latest/install.html ,But it failed as follow:
root@test-VirtualBox:# ferry server
[08/12/2014 08:30:44] [WARNING] checking for btrfs
[08/12/2014 08:30:44] [WARNING] using public dns
[08/12/2014 08:30:44] [WARNING] nohup docker-ferry -d -H=unix:////var/run/ferry.sock -g=/var/lib/ferry -p=/var/run/ferry.pid --dns 8.8.8.8 --dns 8.8.4.4 --icc=true 1>/var/lib/ferry/docker.log 2>&1 &
[08/12/2014 08:30:46] [WARNING] using key directory tmp:///usr/local/lib/python2.7/dist-packages/ferry/data/key
[08/12/2014 08:30:46] [WARNING] cleaning previous mongo resources
[08/12/2014 08:30:46] [WARNING] docker-ferry -H=unix:////var/run/ferry.sock ps | grep ferry/mongodb | awk '{print $1}' | xargs docker-ferry -H=unix:////var/run/ferry.sock stop
[08/12/2014 08:30:46] [WARNING] using key directory tmp:///usr/local/lib/python2.7/dist-packages/ferry/data/key
Traceback (most recent call last):
File "/usr/local/bin/ferry", line 9, in
load_entry_point('ferry==0.2.3.1', 'console_scripts', 'ferry')()
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 837, in main
msg = cli.dispatch_cmd(c, all_cmds[c], options)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 769, in dispatch_cmd
self.installer.start_web(options)
File "/usr/local/lib/python2.7/dist-packages/ferry/install.py", line 417, in start_web
self.cli._check_ssh_key(root=True, server=True)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 667, in _check_ssh_key
keydir, proto = self._read_key_dir(options=options, root=root)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 612, in _read_key_dir
with open(keydir, 'r') as f:
IOError: [Errno 2] No such file or directory: '/home/test/.ferry/rootdir'
root@test-VirtualBox:
# ls /home/test/.ferry/
keydir
root@test-VirtualBox:~#

@jhorey
Copy link
Owner

jhorey commented Aug 12, 2014

Apologies, while I'm fixing this for real, can you try to the following?

cp /home/test/.ferry/keydir /home/test/.ferry/rootdir
ferry server

Thanks!
--James

On Tue, Aug 12, 2014 at 5:41 AM, lijin850591109 [email protected]
wrote:

Hi
I followed the instruction in
http://ferry.opencore.io/en/latest/install.html ,But it failed as follow:
root@test-VirtualBox:# ferry server
[08/12/2014 08:30:44] [WARNING] checking for btrfs
[08/12/2014 08:30:44] [WARNING] using public dns
[08/12/2014 08:30:44] [WARNING] nohup docker-ferry -d
-H=unix:////var/run/ferry.sock -g=/var/lib/ferry -p=/var/run/ferry.pid
--dns 8.8.8.8 --dns 8.8.4.4 --icc=true 1>/var/lib/ferry/docker.log 2>&1 &
[08/12/2014 08:30:46] [WARNING] using key directory
tmp:///usr/local/lib/python2.7/dist-packages/ferry/data/key
[08/12/2014 08:30:46] [WARNING] cleaning previous mongo resources
[08/12/2014 08:30:46] [WARNING] docker-ferry
-H=unix:////var/run/ferry.sock ps | grep ferry/mongodb | awk '{print $1}' |
xargs docker-ferry -H=unix:////var/run/ferry.sock stop
[08/12/2014 08:30:46] [WARNING] using key directory
tmp:///usr/local/lib/python2.7/dist-packages/ferry/data/key
Traceback (most recent call last):
File "/usr/local/bin/ferry", line 9, in
load_entry_point('ferry==0.2.3.1', 'console_scripts', 'ferry')()
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 837,
in main
msg = cli.dispatch_cmd(c, all_cmds[c], options)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 769,
in dispatch_cmd
self.installer.start_web(options)
File "/usr/local/lib/python2.7/dist-packages/ferry/install.py", line 417,
in start_web
self.cli._check_ssh_key(root=True, server=True)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 667,
in _check_ssh_key
keydir, proto = self._read_key_dir(options=options, root=root)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line 612,
in _read_key_dir
with open(keydir, 'r') as f:
IOError: [Errno 2] No such file or directory: '/home/test/.ferry/rootdir'
root@test-VirtualBox:
# ls /home/test/.ferry/
keydir
root@test-VirtualBox:~#


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

@Ravenwater
Copy link

Got the same error. The .ferry directory and .ferry/keydir are set up as
root, so I chgrp/chown'ed it to myself to execute the cmds below.
starting the ferry server changes the error to this for me:

...
[08/12/2014 02:59:24] [WARNING] starting dhcp server
Traceback (most recent call last):
File "/usr/local/bin/ferry", line 9, in
load_entry_point('ferry==0.2.3.1', 'console_scripts', 'ferry')()
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
837, in main
msg = cli.dispatch_cmd(c, all_cmds[c], options)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
769, in dispatch_cmd
self.installer.start_web(options)
File "/usr/local/lib/python2.7/dist-packages/ferry/install.py", line
472, in start_web
self.network.reserve_ip(ip)
File "/usr/local/lib/python2.7/dist-packages/ferry/ip/client.py", line
35, in reserve_ip
res = request.put(DHCP_SERVER + '/ip', data=payload)
File "/usr/local/lib/python2.7/dist-packages/ferry/requests/api.py",
line 99, in put
return request('put', url, data=data, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/ferry/requests/api.py",
line 44, in request
return session.request(method=method, url=url, *_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ferry/requests/session.py", line
361, in request
resp = self.send(prep, *_send_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ferry/requests/session.py", line
464, in send
r = adapter.send(request, *_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ferry/requests/adapters.py",
line 356, in send
raise ConnectionError(e)
requests.exceptions.ConnectionError:
HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded
with url: /ip (Caused by <class 'socker.error'>: [Errno 111] Connection
refused)

Theo

On 8/12/2014 9:55 AM, James Horey wrote:

Apologies, while I'm fixing this for real, can you try to the following?

cp /home/test/.ferry/keydir /home/test/.ferry/rootdir
ferry server

Thanks!
--James

On Tue, Aug 12, 2014 at 5:41 AM, lijin850591109
[email protected]
wrote:

Hi
I followed the instruction in
http://ferry.opencore.io/en/latest/install.html ,But it failed as
follow:
root@test-VirtualBox:# ferry server
[08/12/2014 08:30:44] [WARNING] checking for btrfs
[08/12/2014 08:30:44] [WARNING] using public dns
[08/12/2014 08:30:44] [WARNING] nohup docker-ferry -d
-H=unix:////var/run/ferry.sock -g=/var/lib/ferry -p=/var/run/ferry.pid
--dns 8.8.8.8 --dns 8.8.4.4 --icc=true 1>/var/lib/ferry/docker.log
2>&1 &
[08/12/2014 08:30:46] [WARNING] using key directory
tmp:///usr/local/lib/python2.7/dist-packages/ferry/data/key
[08/12/2014 08:30:46] [WARNING] cleaning previous mongo resources
[08/12/2014 08:30:46] [WARNING] docker-ferry
-H=unix:////var/run/ferry.sock ps | grep ferry/mongodb | awk '{print
$1}' |
xargs docker-ferry -H=unix:////var/run/ferry.sock stop
[08/12/2014 08:30:46] [WARNING] using key directory
tmp:///usr/local/lib/python2.7/dist-packages/ferry/data/key
Traceback (most recent call last):
File "/usr/local/bin/ferry", line 9, in
load_entry_point('ferry==0.2.3.1', 'console_scripts', 'ferry')()
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
837,
in main
msg = cli.dispatch_cmd(c, all_cmds[c], options)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
769,
in dispatch_cmd
self.installer.start_web(options)
File "/usr/local/lib/python2.7/dist-packages/ferry/install.py", line
417,
in start_web
self.cli._check_ssh_key(root=True, server=True)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
667,
in _check_ssh_key
keydir, proto = self._read_key_dir(options=options, root=root)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
612,
in _read_key_dir
with open(keydir, 'r') as f:
IOError: [Errno 2] No such file or directory:
'/home/test/.ferry/rootdir'
root@test-VirtualBox:
# ls /home/test/.ferry/
keydir
root@test-VirtualBox:~#


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


Reply to this email directly or view it on GitHub
#15 (comment).

Dr. E. Theodore L. Omtzigt
CEO and Founder
Stillwater Supercomputing, Inc.
office US: EST (617) 314 6424, PST (415) 738 7387
mobile US: +1 916 296-7901
mobile EU: +31 6 292 000 50
3941 Park Drive, Suite 20-354
El Dorado Hills, CA 95762
USA

@jhorey
Copy link
Owner

jhorey commented Aug 13, 2014

Hey Theo, could you try copying the keydir file into rootdir and then
perform a 'ferry quit'? That last command should exit the existing Ferry
processes. I'm in the process of completely removing this part of the code
for the next release...

On Tuesday, August 12, 2014, Theodore Omtzigt [email protected]
wrote:

Got the same error. The .ferry directory and .ferry/keydir are set up as
root, so I chgrp/chown'ed it to myself to execute the cmds below.
starting the ferry server changes the error to this for me:

...
[08/12/2014 02:59:24] [WARNING] starting dhcp server
Traceback (most recent call last):
File "/usr/local/bin/ferry", line 9, in
load_entry_point('ferry==0.2.3.1', 'console_scripts', 'ferry')()
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
837, in main
msg = cli.dispatch_cmd(c, all_cmds[c], options)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
769, in dispatch_cmd
self.installer.start_web(options)
File "/usr/local/lib/python2.7/dist-packages/ferry/install.py", line
472, in start_web
self.network.reserve_ip(ip)
File "/usr/local/lib/python2.7/dist-packages/ferry/ip/client.py", line
35, in reserve_ip
res = request.put(DHCP_SERVER + '/ip', data=payload)
File "/usr/local/lib/python2.7/dist-packages/ferry/requests/api.py",
line 99, in put
return request('put', url, data=data, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/ferry/requests/api.py",
line 44, in request
return session.request(method=method, url=url, *_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ferry/requests/session.py", line
361, in request
resp = self.send(prep, *_send_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ferry/requests/session.py", line
464, in send
r = adapter.send(request, *_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ferry/requests/adapters.py",
line 356, in send
raise ConnectionError(e)
requests.exceptions.ConnectionError:
HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded
with url: /ip (Caused by <class 'socker.error'>: [Errno 111] Connection
refused)

Theo

On 8/12/2014 9:55 AM, James Horey wrote:

Apologies, while I'm fixing this for real, can you try to the following?

cp /home/test/.ferry/keydir /home/test/.ferry/rootdir
ferry server

Thanks!
--James

On Tue, Aug 12, 2014 at 5:41 AM, lijin850591109
<[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');>
wrote:

Hi
I followed the instruction in
http://ferry.opencore.io/en/latest/install.html ,But it failed as
follow:
root@test-VirtualBox:# ferry server
[08/12/2014 08:30:44] [WARNING] checking for btrfs
[08/12/2014 08:30:44] [WARNING] using public dns
[08/12/2014 08:30:44] [WARNING] nohup docker-ferry -d
-H=unix:////var/run/ferry.sock -g=/var/lib/ferry -p=/var/run/ferry.pid
--dns 8.8.8.8 --dns 8.8.4.4 --icc=true 1>/var/lib/ferry/docker.log
2>&1 &
[08/12/2014 08:30:46] [WARNING] using key directory
tmp:///usr/local/lib/python2.7/dist-packages/ferry/data/key
[08/12/2014 08:30:46] [WARNING] cleaning previous mongo resources
[08/12/2014 08:30:46] [WARNING] docker-ferry
-H=unix:////var/run/ferry.sock ps | grep ferry/mongodb | awk '{print
$1}' |
xargs docker-ferry -H=unix:////var/run/ferry.sock stop
[08/12/2014 08:30:46] [WARNING] using key directory
tmp:///usr/local/lib/python2.7/dist-packages/ferry/data/key
Traceback (most recent call last):
File "/usr/local/bin/ferry", line 9, in
load_entry_point('ferry==0.2.3.1', 'console_scripts', 'ferry')()
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
837,
in main
msg = cli.dispatch_cmd(c, all_cmds[c], options)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
769,
in dispatch_cmd
self.installer.start_web(options)
File "/usr/local/lib/python2.7/dist-packages/ferry/install.py", line
417,
in start_web
self.cli._check_ssh_key(root=True, server=True)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
667,
in _check_ssh_key
keydir, proto = self._read_key_dir(options=options, root=root)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
612,
in _read_key_dir
with open(keydir, 'r') as f:
IOError: [Errno 2] No such file or directory:
'/home/test/.ferry/rootdir'
root@test-VirtualBox:
# ls /home/test/.ferry/
keydir
root@test-VirtualBox:~#


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


Reply to this email directly or view it on GitHub
#15 (comment).

Dr. E. Theodore L. Omtzigt
CEO and Founder
Stillwater Supercomputing, Inc.
office US: EST (617) 314 6424, PST (415) 738 7387
mobile US: +1 916 296-7901
mobile EU: +31 6 292 000 50
3941 Park Drive, Suite 20-354
El Dorado Hills, CA 95762
USA


Reply to this email directly or view it on GitHub
#15 (comment).

--James

@Ravenwater
Copy link

after the 'sudo ferry quit' I issued a 'sudo ferry server' and that gets
stuck now in asking for a password for
[email protected]. indicating that the passwordless keys are not setup
properly anymore.

On 8/12/2014 8:51 PM, James Horey wrote:

Hey Theo, could you try copying the keydir file into rootdir and then
perform a 'ferry quit'? That last command should exit the existing Ferry
processes. I'm in the process of completely removing this part of the
code
for the next release...

On Tuesday, August 12, 2014, Theodore Omtzigt [email protected]
wrote:

Got the same error. The .ferry directory and .ferry/keydir are set
up as
root, so I chgrp/chown'ed it to myself to execute the cmds below.
starting the ferry server changes the error to this for me:

...
[08/12/2014 02:59:24] [WARNING] starting dhcp server
Traceback (most recent call last):
File "/usr/local/bin/ferry", line 9, in
load_entry_point('ferry==0.2.3.1', 'console_scripts', 'ferry')()
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
837, in main
msg = cli.dispatch_cmd(c, all_cmds[c], options)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
769, in dispatch_cmd
self.installer.start_web(options)
File "/usr/local/lib/python2.7/dist-packages/ferry/install.py", line
472, in start_web
self.network.reserve_ip(ip)
File "/usr/local/lib/python2.7/dist-packages/ferry/ip/client.py", line
35, in reserve_ip
res = request.put(DHCP_SERVER + '/ip', data=payload)
File "/usr/local/lib/python2.7/dist-packages/ferry/requests/api.py",
line 99, in put
return request('put', url, data=data, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/ferry/requests/api.py",
line 44, in request
return session.request(method=method, url=url, *_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ferry/requests/session.py",
line
361, in request
resp = self.send(prep, *_send_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ferry/requests/session.py",
line
464, in send
r = adapter.send(request, *_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ferry/requests/adapters.py",
line 356, in send
raise ConnectionError(e)
requests.exceptions.ConnectionError:
HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded
with url: /ip (Caused by <class 'socker.error'>: [Errno 111] Connection
refused)

Theo

On 8/12/2014 9:55 AM, James Horey wrote:

Apologies, while I'm fixing this for real, can you try to the
following?

cp /home/test/.ferry/keydir /home/test/.ferry/rootdir
ferry server

Thanks!
--James

On Tue, Aug 12, 2014 at 5:41 AM, lijin850591109
<[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');>
wrote:

Hi
I followed the instruction in
http://ferry.opencore.io/en/latest/install.html ,But it failed as
follow:
root@test-VirtualBox:# ferry server
[08/12/2014 08:30:44] [WARNING] checking for btrfs
[08/12/2014 08:30:44] [WARNING] using public dns
[08/12/2014 08:30:44] [WARNING] nohup docker-ferry -d
-H=unix:////var/run/ferry.sock -g=/var/lib/ferry
-p=/var/run/ferry.pid
--dns 8.8.8.8 --dns 8.8.4.4 --icc=true 1>/var/lib/ferry/docker.log
2>&1 &
[08/12/2014 08:30:46] [WARNING] using key directory
tmp:///usr/local/lib/python2.7/dist-packages/ferry/data/key
[08/12/2014 08:30:46] [WARNING] cleaning previous mongo resources
[08/12/2014 08:30:46] [WARNING] docker-ferry
-H=unix:////var/run/ferry.sock ps | grep ferry/mongodb | awk
'{print
$1}' |
xargs docker-ferry -H=unix:////var/run/ferry.sock stop
[08/12/2014 08:30:46] [WARNING] using key directory
tmp:///usr/local/lib/python2.7/dist-packages/ferry/data/key
Traceback (most recent call last):
File "/usr/local/bin/ferry", line 9, in
load_entry_point('ferry==0.2.3.1', 'console_scripts', 'ferry')()
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py",
line
837,
in main
msg = cli.dispatch_cmd(c, all_cmds[c], options)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py",
line
769,
in dispatch_cmd
self.installer.start_web(options)
File "/usr/local/lib/python2.7/dist-packages/ferry/install.py",
line
417,
in start_web
self.cli._check_ssh_key(root=True, server=True)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py",
line
667,
in _check_ssh_key
keydir, proto = self._read_key_dir(options=options, root=root)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py",
line
612,
in _read_key_dir
with open(keydir, 'r') as f:
IOError: [Errno 2] No such file or directory:
'/home/test/.ferry/rootdir'
root@test-VirtualBox:
# ls /home/test/.ferry/
keydir
root@test-VirtualBox:~#


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


Reply to this email directly or view it on GitHub
#15 (comment).

Dr. E. Theodore L. Omtzigt
CEO and Founder
Stillwater Supercomputing, Inc.
office US: EST (617) 314 6424, PST (415) 738 7387
mobile US: +1 916 296-7901
mobile EU: +31 6 292 000 50
3941 Park Drive, Suite 20-354
El Dorado Hills, CA 95762
USA


Reply to this email directly or view it on GitHub
#15 (comment).

--James


Reply to this email directly or view it on GitHub
#15 (comment).

Dr. E. Theodore L. Omtzigt
CEO and Founder
Stillwater Supercomputing, Inc.
office US: EST (617) 314 6424, PST (415) 738 7387
mobile US: +1 916 296-7901
mobile EU: +31 6 292 000 50
3941 Park Drive, Suite 20-354
El Dorado Hills, CA 95762
USA

@jhorey
Copy link
Owner

jhorey commented Aug 13, 2014

Ok it's probably easiest to start from scratch and try again. It involves
killing the Ferry processes. Removing the keydir and rootdir, and removing
/var/run/ferry.sock. I'll send more clear directions once I'm back on my
computer...

On Wednesday, August 13, 2014, Theodore Omtzigt [email protected]
wrote:

after the 'sudo ferry quit' I issued a 'sudo ferry server' and that gets
stuck now in asking for a password for
[email protected]. javascript:_e(%7B%7D,'cvml','[email protected].'); indicating
that the passwordless keys are not setup
properly anymore.

On 8/12/2014 8:51 PM, James Horey wrote:

Hey Theo, could you try copying the keydir file into rootdir and then
perform a 'ferry quit'? That last command should exit the existing Ferry
processes. I'm in the process of completely removing this part of the
code
for the next release...

On Tuesday, August 12, 2014, Theodore Omtzigt <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');>
wrote:

Got the same error. The .ferry directory and .ferry/keydir are set
up as
root, so I chgrp/chown'ed it to myself to execute the cmds below.
starting the ferry server changes the error to this for me:

...
[08/12/2014 02:59:24] [WARNING] starting dhcp server
Traceback (most recent call last):
File "/usr/local/bin/ferry", line 9, in
load_entry_point('ferry==0.2.3.1', 'console_scripts', 'ferry')()
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
837, in main
msg = cli.dispatch_cmd(c, all_cmds[c], options)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py", line
769, in dispatch_cmd
self.installer.start_web(options)
File "/usr/local/lib/python2.7/dist-packages/ferry/install.py", line
472, in start_web
self.network.reserve_ip(ip)
File "/usr/local/lib/python2.7/dist-packages/ferry/ip/client.py", line
35, in reserve_ip
res = request.put(DHCP_SERVER + '/ip', data=payload)
File "/usr/local/lib/python2.7/dist-packages/ferry/requests/api.py",
line 99, in put
return request('put', url, data=data, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/ferry/requests/api.py",
line 44, in request
return session.request(method=method, url=url, *_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ferry/requests/session.py",
line
361, in request
resp = self.send(prep, *_send_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ferry/requests/session.py",
line
464, in send
r = adapter.send(request, *_kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ferry/requests/adapters.py",
line 356, in send
raise ConnectionError(e)
requests.exceptions.ConnectionError:
HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded
with url: /ip (Caused by <class 'socker.error'>: [Errno 111] Connection
refused)

Theo

On 8/12/2014 9:55 AM, James Horey wrote:

Apologies, while I'm fixing this for real, can you try to the
following?

cp /home/test/.ferry/keydir /home/test/.ferry/rootdir
ferry server

Thanks!
--James

On Tue, Aug 12, 2014 at 5:41 AM, lijin850591109
<[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');
<javascript:_e(%7B%7D,'cvml','[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');');>>
wrote:

Hi
I followed the instruction in
http://ferry.opencore.io/en/latest/install.html ,But it failed as
follow:
root@test-VirtualBox:# ferry server
[08/12/2014 08:30:44] [WARNING] checking for btrfs
[08/12/2014 08:30:44] [WARNING] using public dns
[08/12/2014 08:30:44] [WARNING] nohup docker-ferry -d
-H=unix:////var/run/ferry.sock -g=/var/lib/ferry
-p=/var/run/ferry.pid
--dns 8.8.8.8 --dns 8.8.4.4 --icc=true 1>/var/lib/ferry/docker.log
2>&1 &
[08/12/2014 08:30:46] [WARNING] using key directory
tmp:///usr/local/lib/python2.7/dist-packages/ferry/data/key
[08/12/2014 08:30:46] [WARNING] cleaning previous mongo resources
[08/12/2014 08:30:46] [WARNING] docker-ferry
-H=unix:////var/run/ferry.sock ps | grep ferry/mongodb | awk
'{print
$1}' |
xargs docker-ferry -H=unix:////var/run/ferry.sock stop
[08/12/2014 08:30:46] [WARNING] using key directory
tmp:///usr/local/lib/python2.7/dist-packages/ferry/data/key
Traceback (most recent call last):
File "/usr/local/bin/ferry", line 9, in
load_entry_point('ferry==0.2.3.1', 'console_scripts', 'ferry')()
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py",
line
837,
in main
msg = cli.dispatch_cmd(c, all_cmds[c], options)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py",
line
769,
in dispatch_cmd
self.installer.start_web(options)
File "/usr/local/lib/python2.7/dist-packages/ferry/install.py",
line
417,
in start_web
self.cli._check_ssh_key(root=True, server=True)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py",
line
667,
in _check_ssh_key
keydir, proto = self._read_key_dir(options=options, root=root)
File "/usr/local/lib/python2.7/dist-packages/ferry/cli/cli.py",
line
612,
in _read_key_dir
with open(keydir, 'r') as f:
IOError: [Errno 2] No such file or directory:
'/home/test/.ferry/rootdir'
root@test-VirtualBox:
# ls /home/test/.ferry/
keydir
root@test-VirtualBox:~#


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


Reply to this email directly or view it on GitHub
#15 (comment).

Dr. E. Theodore L. Omtzigt
CEO and Founder
Stillwater Supercomputing, Inc.
office US: EST (617) 314 6424, PST (415) 738 7387
mobile US: +1 916 296-7901
mobile EU: +31 6 292 000 50
3941 Park Drive, Suite 20-354
El Dorado Hills, CA 95762
USA


Reply to this email directly or view it on GitHub
#15 (comment).

--James


Reply to this email directly or view it on GitHub
#15 (comment).

Dr. E. Theodore L. Omtzigt
CEO and Founder
Stillwater Supercomputing, Inc.
office US: EST (617) 314 6424, PST (415) 738 7387
mobile US: +1 916 296-7901
mobile EU: +31 6 292 000 50
3941 Park Drive, Suite 20-354
El Dorado Hills, CA 95762
USA


Reply to this email directly or view it on GitHub
#15 (comment).

--James

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants