[rulatir@berbelek scripts]$ mkdir testdir; cd testdir
[rulatir@berbelek testdir]$ ls
[rulatir@berbelek testdir]$ touch test; echo $?
touch: cannot touch `test': No such file or directory
1
[rulatir@berbelek testdir]$ ls
test
As the summary says, touch succeeds but reports failure. This confuses most file managers.
Debug output:
unique: 1178, opcode: LOOKUP (1), nodeid: 90, insize: 45
LOOKUP /public_html/scripts/testdir/test
ftpfs: operation ftpfs_getattr failed because No such file or directory
unique: 1178, error: -2 (No such file or directory), outsize: 16
unique: 1179, opcode: CREATE (35), nodeid: 90, insize: 53
ftpfs: operation ftpfs_chmod failed because Operation not permitted
ftpfs: operation ftpfs_getattr failed because No such file or directory
unique: 1180, opcode: GETATTR (3), nodeid: 90, insize: 56
ftpfs: operation ftpfs_flush failed because Input/output error
unique: 1180, error: 0 (Success), outsize: 112
unique: 1179, error: -2 (No such file or directory), outsize: 16
unique: 1181, opcode: LOOKUP (1), nodeid: 90, insize: 45
LOOKUP /public_html/scripts/testdir/test
unique: 1181, error: -2 (No such file or directory), outsize: 16
A more detailed debug log here:
unique: 408, opcode: LOOKUP (1), nodeid: 20, insize: 45
LOOKUP /public_html/scripts/testdir/test
* Couldn't find host ****************.pl in the .netrc file; using defaults
* Re-using existing connection! (#0) with host ****************.pl
* Connected to ****************.pl (xxx.xxx.xxx.xxx) port 21 (#0)
> CWD /
< 250 OK. Current directory is /
> CWD public_html
< 250 OK. Current directory is /public_html
> CWD scripts
< 250 OK. Current directory is /public_html/scripts
> CWD testdir
< 250 OK. Current directory is /public_html/scripts/testdir
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (xxx,xxx,xxx,xxx,233,152)
* Trying xxx.xxx.xxx.xxx... * connected
* Connecting to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 59800
> LIST -a
< 150 Accepted data connection
* Maxdownload = -1
* Remembering we are in dir "public_html/scripts/testdir/"
< 226-Options: -a -l
< 226 2 matches total
* Connection #0 to host ****************.pl left intact
ftpfs: operation ftpfs_getattr failed because No such file or directory
unique: 408, error: -2 (No such file or directory), outsize: 16
unique: 409, opcode: CREATE (35), nodeid: 20, insize: 53
* Couldn't find host ****************.pl in the .netrc file; using defaults
* About to connect() to ****************.pl port 21 (#0)
* Trying xxx.xxx.xxx.xxx... * connected
* Connected to ****************.pl (xxx.xxx.xxx.xxx) port 21 (#0)
< 220---------- Welcome to Pure-FTPd [TLS] ----------
< 220-You are user number 2 of 50 allowed.
< 220-Local time is now 03:29. Server port: 21.
< 220-This is a private system - No anonymous login
< 220 You will be disconnected after 15 minutes of inactivity.
> USER *************
< 331 User ************* OK. Password required
> PASS *************
< 230-User ************* has group access to: *************
< 230 OK. Current restricted directory is /
> PWD
< 257 "/" is your current location
* Entry path is '/'
> CWD public_html
< 250 OK. Current directory is /public_html
> CWD scripts
< 250 OK. Current directory is /public_html/scripts
> CWD testdir
< 250 OK. Current directory is /public_html/scripts/testdir
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (xxx,xxx,xxx,xxx,253,232)
* Trying xxx.xxx.xxx.xxx... * connected
* Connecting to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 65000
> TYPE I
< 200 TYPE is now 8-bit binary
> STOR test
< 150 Accepted data connection
* Couldn't find host ****************.pl in the .netrc file; using defaults
* Re-using existing connection! (#0) with host ****************.pl
* Connected to ****************.pl (xxx.xxx.xxx.xxx) port 21 (#0)
* Request has same path as previous transfer
* Remembering we are in dir "public_html/scripts/testdir/"
> SITE CHMOD 644 test
< 550 Could not change perms on test: No such file or directory
* QUOT string not accepted: SITE CHMOD 644 test
* Connection #0 to host ****************.pl left intact
ftpfs: operation ftpfs_chmod failed because Operation not permitted
* Couldn't find host ****************.pl in the .netrc file; using defaults
* Re-using existing connection! (#0) with host ****************.pl
* Connected to ****************.pl (xxx.xxx.xxx.xxx) port 21 (#0)
* Request has same path as previous transfer
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (xxx,xxx,xxx,xxx,164,11)
* Trying xxx.xxx.xxx.xxx... * connected
* Connecting to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 41995
> LIST -a
< 150 Accepted data connection
* Maxdownload = -1
* Remembering we are in dir "public_html/scripts/testdir/"
< 226-Options: -a -l
< 226 3 matches total
* Connection #0 to host ****************.pl left intact
ftpfs: operation ftpfs_getattr failed because No such file or directory
* Remembering we are in dir "public_html/scripts/testdir/"
< 226 File successfully transferred
* Uploaded unaligned file size (0 out of 4294967295 bytes)
* Connection #0 to host ****************.pl left intact
> QUIT
< 221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
< 221 Logout.
* Closing connection #0
ftpfs: operation ftpfs_flush failed because Input/output error
unique: 409, error: -2 (No such file or directory), outsize: 16
unique: 410, opcode: LOOKUP (1), nodeid: 20, insize: 45
LOOKUP /public_html/scripts/testdir/test
unique: 410, error: -2 (No such file or directory), outsize: 16
unique: 411, opcode: GETATTR (3), nodeid: 20, insize: 56
* Couldn't find host ****************.pl in the .netrc file; using defaults
* Re-using existing connection! (#0) with host ****************.pl
* Connected to ****************.pl (xxx.xxx.xxx.xxx) port 21 (#0)
> CWD /
< 250 OK. Current directory is /
> CWD public_html
< 250 OK. Current directory is /public_html
> CWD scripts
< 250 OK. Current directory is /public_html/scripts
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (xxx,xxx,xxx,xxx,196,177)
* Trying xxx.xxx.xxx.xxx... * connected
* Connecting to xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx) port 50353
> LIST -a
< 150 Accepted data connection
* Maxdownload = -1
* Remembering we are in dir "public_html/scripts/"
< 226-Options: -a -l
< 226 15 matches total
* Connection #0 to host ****************.pl left intact
unique: 411, error: 0 (Success), outsize: 112