Kašpi - 2012-01-18

Hello,

I'm having a problem with curlftpfs. It seems, the mounting itself works - running

/mnt> curlftpfs -d -o user='html@musique-pdg.freehostingcloud.com:XXXX' ftp://ftp.musique-pdg.freehostingcloud.com musique-pdg/ -o ftpfs_debug=5 -v

yields

* Couldn't find host ftp.musique-pdg.freehostingcloud.com in the .netrc file; using defaults
* About to connect() to ftp.musique-pdg.freehostingcloud.com port 21 (#0)
*   Trying 174.34.131.82... * connected
< 220 FreeHostingCloud - FTP Server Ready
> USER html@musique-pdg.freehostingcloud.com
< 331 Password required for html@musique-pdg.freehostingcloud.com
> PASS abcd2t
< 230-Welcome to the FreeHostingCloud FTP platform.  Please note there is a 30MB file size limit.
< 230 User html@musique-pdg.freehostingcloud.com logged in
> PWD
< 257 "/" is the current directory
* Entry path is '/'
* Remembering we are in dir ""
* Connection #0 to host ftp.musique-pdg.freehostingcloud.com left intact
FUSE library version: 2.8.6
nullpath_ok: 0
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.17
flags=0x0000047b
max_readahead=0x00020000
   INIT: 7.12
   flags=0x00000011
   max_readahead=0x00020000
   max_write=0x00020000
   unique: 1, success, outsize: 40

However, when I try listing the mount directory it looks empty (even though it isn't):

/mnt> ll -a musique-pdg/
total 0

This listing command produces this debug output

unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56
getattr /
 1326892165 ftpfs.c:291 ftpfs_getattr: / dir_path=ftp://ftp.musique-pdg.freehostingcloud.com/
* Couldn't find host ftp.musique-pdg.freehostingcloud.com in the .netrc file; using defaults
* Re-using existing connection! (#0) with host ftp.musique-pdg.freehostingcloud.com
* Connected to ftp.musique-pdg.freehostingcloud.com (174.34.131.82) port 21 (#0)
* Request has same path as previous transfer
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (174,34,131,82,197,23).
*   Trying 174.34.131.82... * connected
* Connecting to 174.34.131.82 (174.34.131.82) port 50455
> TYPE A
< 200 Type set to A
> LIST -a
< 150 Opening ASCII mode data connection for file list
* Maxdownload = -1
 1326892166 ftpfs.c:241 read_data: 1124
  1326892166 ftpfs.c:242 drwxr-sr-x   4 html@musique-pdg.freehostingcloud.com musiquep     4096 Jan 18 11:04 .
drwxr-sr-x   4 html@musique-pdg.freehostingcloud.com musiquep     4096 Jan 18 11:04 ..
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep      242 Sep 27 10:31 category_list
drwxr-xr-x   2 html@musique-pdg.freehostingcloud.com musiquep     4096 Sep 26 20:11 cgi-bin
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep       28 Sep 27 11:00 common.php
drwxr-xrwx   5 html@musique-pdg.freehostingcloud.com musiquep     4096 Sep 27 10:31 data
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep    12932 Sep 27 10:31 edit_song.php
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep     2283 Sep 27 10:31 email.png
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep     8921 Sep 27 10:31 index.php
-rwxr-x---   1 html@musique-pdg.freehostingcloud.com musiquep        0 Sep 26 20:12 place-webpages-here
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep     1017 Sep 27 10:31 style.css
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep       21 Sep 27 10:35 test.php
* Remembering we are in dir ""
< 226 Transfer complete
* Connection #0 to host ftp.musique-pdg.freehostingcloud.com left intact
   unique: 2, success, outsize: 120
unique: 3, opcode: GETXATTR (22), nodeid: 1, insize: 72
   unique: 3, error: -38 (Function not implemented), outsize: 16
unique: 4, opcode: OPENDIR (27), nodeid: 1, insize: 48
   unique: 4, success, outsize: 32
unique: 5, opcode: READDIR (28), nodeid: 1, insize: 80
getdir[0]
1326892166 ftpfs.c:261 ftpfs_getdir: ftp://ftp.musique-pdg.freehostingcloud.com/
* Couldn't find host ftp.musique-pdg.freehostingcloud.com in the .netrc file; using defaults
* Re-using existing connection! (#0) with host ftp.musique-pdg.freehostingcloud.com
* Connected to ftp.musique-pdg.freehostingcloud.com (174.34.131.82) port 21 (#0)
* Request has same path as previous transfer
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (174,34,131,82,196,27).
*   Trying 174.34.131.82... * connected
* Connecting to 174.34.131.82 (174.34.131.82) port 50203
> LIST -a
< 150 Opening ASCII mode data connection for file list
* Maxdownload = -1
 1326892166 ftpfs.c:241 read_data: 1124
  1326892166 ftpfs.c:242 drwxr-sr-x   4 html@musique-pdg.freehostingcloud.com musiquep     4096 Jan 18 11:04 .
drwxr-sr-x   4 html@musique-pdg.freehostingcloud.com musiquep     4096 Jan 18 11:04 ..
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep      242 Sep 27 10:31 category_list
drwxr-xr-x   2 html@musique-pdg.freehostingcloud.com musiquep     4096 Sep 26 20:11 cgi-bin
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep       28 Sep 27 11:00 common.php
drwxr-xrwx   5 html@musique-pdg.freehostingcloud.com musiquep     4096 Sep 27 10:31 data
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep    12932 Sep 27 10:31 edit_song.php
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep     2283 Sep 27 10:31 email.png
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep     8921 Sep 27 10:31 index.php
-rwxr-x---   1 html@musique-pdg.freehostingcloud.com musiquep        0 Sep 26 20:12 place-webpages-here
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep     1017 Sep 27 10:31 style.css
-rw-r--r--   1 html@musique-pdg.freehostingcloud.com musiquep       21 Sep 27 10:35 test.php
* Remembering we are in dir ""
< 226 Transfer complete
* Connection #0 to host ftp.musique-pdg.freehostingcloud.com left intact
 1326892166 ftpfs.c:213 ftpfs_getdir successful
   unique: 5, success, outsize: 16
unique: 6, opcode: RELEASEDIR (29), nodeid: 1, insize: 64
   unique: 6, success, outsize: 16

Which contains correct directory contents.

Where is the problem?

Many thanks in advance,

Jan.