[tahoe-dev] Tahoe / Owncloud via SFTP
til
tilllt at yahoo.com
Sat Jun 8 14:59:52 UTC 2013
Hi,
Ok so i took a step back and tried FTP access first
--- FTP ---
ftp 127.0.0.1 8021
Connected to 127.0.0.1.
220 Twisted 13.0.0 FTP Server
Name (127.0.0.1:pi): test
331 Password required for test.
Password:
230 User logged in, proceed
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT OK
125 Data connection already open, starting transfer
drw------- 1 test test 0 Feb 06 00:21 test_for_martin
-rw------- 1 test test 28 Apr 19 20:28
hellotest.txt
-rw------- 1 test test 57466 May 25 17:03 cf-agent.c
drw------- 1 test test 0 Apr 02 00:37 testingtesting
-rw------- 1 test test 15 Mar 05 12:38 test_for_poldi
-rw------- 1 test test 173934 May 31 03:07 AbdulHassanPassport.jpg
drw------- 1 test
test 0 Apr 13 12:45 test_bruno
drw------- 1 test test 0 Apr 19 20:30 goofy
-rw------- 1 test test 22 May 21 00:30 this_shit
-rw------- 1 test test 3527 May 28 06:44 Nehemiah.usfm
drw------- 1 test test 0 May 15 21:00
test
drw------- 1 test test 0 Feb 13 19:37 testsubdirectories
drw------- 1 test test 0 May 10 09:21 spedemon
drw------- 1 test test 0 May 19 11:38 test_tom
drw------- 1 test test 0 Feb 09 22:03 test_for_martin-readonly
226 Transfer Complete.
-----
When connecting with Owncloud (5.0.7) it doesnt work though.
Twistd.log shows this (on FTP from Owncloud):
2013-06-08 16:44:43+0200 [-] Unexpected FTP error
2013-06-08 16:44:43+0200 [-] Unhandled Error
Traceback (most recent call last):
File "/home/pi/src/allmydata-tahoe-1.10.0/support/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-armv6l.egg/twisted/internet/base.py", line 824, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/local/lib/python2.7/dist-packages/foolscap-0.6.4-py2.7.egg/foolscap/eventual.py", line 26, in _turn
cb(*args, **kwargs)
File
"/home/pi/src/allmydata-tahoe-1.10.0/support/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-armv6l.egg/twisted/internet/defer.py", line 380, in callback
self._startRunCallbacks(result)
File "/home/pi/src/allmydata-tahoe-1.10.0/support/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-armv6l.egg/twisted/internet/defer.py", line 488, in _startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "/home/pi/src/allmydata-tahoe-1.10.0/support/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-armv6l.egg/twisted/internet/defer.py", line 575, in
_runCallbacks
current.result = callback(current.result, *args, **kw)
File "/home/pi/src/allmydata-tahoe-1.10.0/src/allmydata/frontends/ftpd.py", line 222, in _render
assert not IDirectoryNode.providedBy(node)
exceptions.AssertionError:
and this:
2013-06-08 16:52:25+0200 [-] Unexpected FTP error
2013-06-08 16:52:25+0200 [-] Unhandled Error
Traceback (most recent call last):
File "/home/pi/src/allmydata-tahoe-1.10.0/support/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-armv6l.egg/twisted/internet/base.py", line 824, in
runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/local/lib/python2.7/dist-packages/foolscap-0.6.4-py2.7.egg/foolscap/eventual.py", line 26, in _turn
cb(*args, **kwargs)
File "/home/pi/src/allmydata-tahoe-1.10.0/support/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-armv6l.egg/twisted/internet/defer.py", line 380, in callback
self._startRunCallbacks(result)
File "/home/pi/src/allmydata-tahoe-1.10.0/support/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-armv6l.egg/twisted/internet/defer.py", line 488, in
_startRunCallbacks
self._runCallbacks()
--- <exception caught here> ---
File "/home/pi/src/allmydata-tahoe-1.10.0/support/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-armv6l.egg/twisted/internet/defer.py", line 575, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/home/pi/src/allmydata-tahoe-1.10.0/src/allmydata/dirnode.py", line 520, in <lambda>
node.get_child_and_metadata_at_path(remaining_pathx))
exceptions.AttributeError: 'LiteralFileNode' object has no attribute
'get_child_and_metadata_at_path'
------
Owncloud on the other hand shows this:
{"app":"PHP","message":"filetype(): Lstat failed for ftp:\/\/test:test at 127.0.0.1:8021\/test\/407.pdf\/407.pdf at \/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#33","level":2,"time":1370703037}
{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test at 127.0.0.1:8021\/test\/407.pdf\/407.pdf at \/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#81","level":2,"time":1370703042}
{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test at 127.0.0.1:8021\/test\/SODA10_101_goodrichm.pdf\/SODA10_101_goodrichm.pdf at \/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#81","level":2,"time":1370703063}
{"app":"PHP","message":"filetype(): Lstat failed for ftp:\/\/test:test at 127.0.0.1:8021\/test\/SODA10_101_goodrichm.pdf\/SODA10_101_goodrichm.pdf at
\/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#33","level":2,"time":1370703067}
{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test at 127.0.0.1:8021\/test\/SODA10_101_goodrichm.pdf\/SODA10_101_goodrichm.pdf at \/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#81","level":2,"time":1370703072}
{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test at 127.0.0.1:8021\/test\/Maurer02b.pdf\/Maurer02b.pdf at \/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#81","level":2,"time":1370703090}
{"app":"PHP","message":"filetype(): Lstat failed for ftp:\/\/test:test at 127.0.0.1:8021\/test\/Maurer02b.pdf\/Maurer02b.pdf at \/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#33","level":2,"time":1370703095}
{"app":"PHP","message":"stat(): stat failed for
ftp:\/\/test:test at 127.0.0.1:8021\/test\/Maurer02b.pdf\/Maurer02b.pdf at \/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#81","level":2,"time":1370703101}
{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test at 127.0.0.1:8021\/Nehemiah.usfm\/Nehemiah.usfm at \/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#81","level":2,"time":1370703119}
{"app":"PHP","message":"filetype(): Lstat failed for ftp:\/\/test:test at 127.0.0.1:8021\/Nehemiah.usfm\/Nehemiah.usfm at \/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#33","level":2,"time":1370703122}
{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test at 127.0.0.1:8021\/Nehemiah.usfm\/Nehemiah.usfm at \/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#81","level":2,"time":1370703124}
{"app":"PHP","message":"stat(): stat failed for
ftp:\/\/test:test at 127.0.0.1:8021\/this_shit\/this_shit at \/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#81","level":2,"time":1370703140}
{"app":"PHP","message":"filetype(): Lstat failed for ftp:\/\/test:test at 127.0.0.1:8021\/this_shit\/this_shit at \/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#33","level":2,"time":1370703142}
{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test at 127.0.0.1:8021\/this_shit\/this_shit at \/usr\/share\/nginx\/www\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#81","level":2,"time":1370703145}
________________________________
From: Zooko O'Whielacronx <zookog at gmail.com>
To: til <tilllt at yahoo.com>; Tahoe-LAFS development <tahoe-dev at tahoe-lafs.org>
Sent: Saturday, June 8, 2013 3:07 PM
Subject: Re: [tahoe-dev] Tahoe / Owncloud via SFTP
Hi t.!
How about test the SFTP service directly and make sure that works
before trying to connect ownCloud to it? Run the "sftp" client and
connect it to the appropriate port, login with the username and
password that you configured into the accounts file (per
https://tahoe-lafs.org/trac/tahoe-lafs/browser/trunk/docs/frontends/FTP-and-SFTP.rst),
and run "ls".
If everything works, then you should
see the listing of the directory
whose capability you configured into the accounts file.
But I guess what will happen instead is that you'll get some error
message. Someone else was doing this same thing yesterday, and it
turned out that the error was due to the cap in the accounts files
having a trailing slash on it:
https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1999
Regards,
Zooko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20130608/3f4cae0d/attachment-0001.html>
More information about the tahoe-dev
mailing list