<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div class="y_msg_container"><div id="yiv4438194636"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;">Hi,<br><br>Ok so i took a step back and tried FTP access first<br><br>--- FTP ---<br><br>ftp 127.0.0.1 8021<br>Connected to 127.0.0.1.<br>220 Twisted 13.0.0 FTP Server<br>Name (127.0.0.1:pi): test<br>331 Password required for test.<br>Password:<br>230 User logged in, proceed<br>Remote system type is UNIX.<br>Using binary mode to transfer files.<br>ftp> ls<br>200 PORT OK<br>125 Data connection already open, starting transfer<br>drw------- 1 test
test 0 Feb 06 00:21 test_for_martin<br>-rw------- 1 test test 28 Apr 19 20:28
hellotest.txt<br>-rw------- 1 test test 57466 May 25 17:03 cf-agent.c<br>drw------- 1 test test 0 Apr 02 00:37 testingtesting<br>-rw------- 1 test test 15 Mar 05 12:38 test_for_poldi<br>-rw------- 1 test test 173934 May 31 03:07 AbdulHassanPassport.jpg<br>drw------- 1 test
test 0 Apr 13 12:45 test_bruno<br>drw------- 1 test test 0 Apr 19 20:30 goofy<br>-rw------- 1 test test 22 May 21 00:30 this_shit<br>-rw------- 1 test test 3527 May 28 06:44 Nehemiah.usfm<br>drw------- 1 test test 0 May 15 21:00
test<br>drw------- 1 test test 0 Feb 13 19:37 testsubdirectories<br>drw------- 1 test test 0 May 10 09:21 spedemon<br>drw------- 1 test test 0 May 19 11:38 test_tom<br>drw------- 1 test test 0 Feb 09 22:03 test_for_martin-readonly<br>226 Transfer Complete.<br><br>-----<br><br>When connecting with Owncloud (5.0.7) it doesnt work though.
Twistd.log shows this (on FTP from Owncloud):<br><br>2013-06-08 16:44:43+0200 [-] Unexpected FTP error<br>2013-06-08 16:44:43+0200 [-] Unhandled Error<br> Traceback (most recent call last):<br> 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<br> call.func(*call.args, **call.kw)<br> File "/usr/local/lib/python2.7/dist-packages/foolscap-0.6.4-py2.7.egg/foolscap/eventual.py", line 26, in _turn<br> cb(*args, **kwargs)<br> 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<br> self._startRunCallbacks(result)<br> 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<br> self._runCallbacks()<br> --- <exception caught here> ---<br> 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<br> current.result = callback(current.result, *args, **kw)<br> File "/home/pi/src/allmydata-tahoe-1.10.0/src/allmydata/frontends/ftpd.py", line 222, in _render<br> assert not IDirectoryNode.providedBy(node)<br> exceptions.AssertionError: <br><br>and this:<br><br>2013-06-08 16:52:25+0200 [-] Unexpected FTP error<br>2013-06-08 16:52:25+0200 [-] Unhandled Error<br> Traceback (most recent call last):<br> 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<br> call.func(*call.args, **call.kw)<br> File "/usr/local/lib/python2.7/dist-packages/foolscap-0.6.4-py2.7.egg/foolscap/eventual.py", line 26, in _turn<br> cb(*args, **kwargs)<br> 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<br> self._startRunCallbacks(result)<br> 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<br> self._runCallbacks()<br> --- <exception caught here> ---<br> 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<br> current.result = callback(current.result, *args, **kw)<br> File "/home/pi/src/allmydata-tahoe-1.10.0/src/allmydata/dirnode.py", line 520, in <lambda><br> node.get_child_and_metadata_at_path(remaining_pathx))<br> exceptions.AttributeError: 'LiteralFileNode' object has no attribute
'get_child_and_metadata_at_path'<br><br>------<br><br>Owncloud on the other hand shows this:<br><br>{"app":"PHP","message":"filetype(): Lstat failed for ftp:\/\/test:test@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}<br>{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test@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}<br>{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test@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}<br>{"app":"PHP","message":"filetype(): Lstat failed for ftp:\/\/test:test@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}<br>{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test@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}<br>{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test@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}<br>{"app":"PHP","message":"filetype(): Lstat failed for ftp:\/\/test:test@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}<br>{"app":"PHP","message":"stat(): stat failed for
ftp:\/\/test:test@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}<br>{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test@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}<br>{"app":"PHP","message":"filetype(): Lstat failed for ftp:\/\/test:test@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}<br>{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test@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}<br>{"app":"PHP","message":"stat(): stat failed for
ftp:\/\/test:test@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}<br>{"app":"PHP","message":"filetype(): Lstat failed for ftp:\/\/test:test@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}<br>{"app":"PHP","message":"stat(): stat failed for ftp:\/\/test:test@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}<br><br><div><span><br></span></div><div><br></div> <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <hr size="1"> <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Zooko
O'Whielacronx <zookog@gmail.com><br> <b><span style="font-weight:bold;">To:</span></b> til <tilllt@yahoo.com>; Tahoe-LAFS development <tahoe-dev@tahoe-lafs.org> <br> <b><span style="font-weight:bold;">Sent:</span></b> Saturday, June 8, 2013 3:07 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [tahoe-dev] Tahoe / Owncloud via SFTP<br> </font> </div> <div class="yiv4438194636y_msg_container"><br>Hi t.!<br><br>How about test the SFTP service directly and make sure that works<br>before trying to connect ownCloud to it? Run the "sftp" client and<br>connect it to the appropriate port, login with the username and<br>password that you configured into the accounts file (per<br><a rel="nofollow" target="_blank" href="https://tahoe-lafs.org/trac/tahoe-lafs/browser/trunk/docs/frontends/FTP-and-SFTP.rst">https://tahoe-lafs.org/trac/tahoe-lafs/browser/trunk/docs/frontends/FTP-and-SFTP.rst</a>),<br>and run "ls".<br><br>If everything
works, then you should
see the listing of the directory<br>whose capability you configured into the accounts file.<br><br>But I guess what will happen instead is that you'll get some error<br>message. Someone else was doing this same thing yesterday, and it<br>turned out that the error was due to the cap in the accounts files<br>having a trailing slash on it:<br><br><a rel="nofollow" target="_blank" href="https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1999">https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1999</a><br><br>Regards,<br><br>Zooko<br><br><br></div> </div> </div> </div></div></div><br><br></div> </div> </div> </div></body></html>