FTP Issues!

Discussion in 'General' started by BinkS, Feb 18, 2008.

  1. BinkS

    BinkS New Member

    Hi all,

    After getting back from being away on holiday, I try to upload some new bits for my website,

    Code:
    [11:47:19] MKD /web/modules
    [11:47:19] 550 /web/modules: File exists
    [11:47:19] CWD /web/modules
    [11:47:19] 250 CWD command successful
    [11:47:19] PWD
    [11:47:19] 257 "/web/modules" is current directory.
    [11:47:19] MKD /web/modules/Forums
    [11:47:19] 550 /web/modules/Forums: File exists
    [11:47:19] CWD /web/modules/Forums
    [11:47:19] 250 CWD command successful
    [11:47:19] PWD
    [11:47:19] 257 "/web/modules/Forums" is current directory.
    [11:47:19] MKD /web/modules/Forums/templates
    [11:47:19] 550 /web/modules/Forums/templates: File exists
    [11:47:19] CWD /web/modules/Forums/templates
    [11:47:19] 250 CWD command successful
    [11:47:19] PWD
    [11:47:19] 257 "/web/modules/Forums/templates" is current directory.
    [11:47:19] PASV
    [11:47:19] 227 Entering Passive Mode (193,33,186,34,224,203).
    [11:47:19] Opening data connection to 193.33.186.34 Port: 57547
    [11:47:19] LIST -aL
    [11:47:19] 150 Opening ASCII mode data connection for file list
    [11:47:19] 374 bytes transferred. (11.7 KB/s) (31 ms)
    [11:47:19] 226 Transfer complete.
    [11:47:19] Remote file exist check: "fiblack.zip".
    [11:47:19] TYPE I
    [11:47:19] 200 Type set to I
    [11:47:19] SIZE fiblack.zip
    [11:47:19] 550 fiblack.zip: No such file or directory
    [11:47:19] File size check (SIZE) failed. File not found or permission denied.
    [11:47:19] PASV
    [11:47:19] 227 Entering Passive Mode (193,33,186,34,219,190).
    [11:47:20] Opening data connection to 193.33.186.34 Port: 56254
    [11:47:20] STOR fiblack.zip
    [11:47:20] 550 fiblack.zip: Permission denied
    [11:47:20] 0 bytes transferred. (N/A/s) (0 ms)
    [11:47:20] CWD /web
    [11:47:20] 250 CWD command successful
    [11:47:20] PWD
    [11:47:20] 257 "/web" is current directory.
    [11:47:20] TYPE A
    [11:47:20] 200 Type set to A
    [11:47:20] PASV
    [11:47:20] 227 Entering Passive Mode (193,33,186,34,144,18).
    [11:47:20] Opening data connection to 193.33.186.34 Port: 36882
    [11:47:20] LIST -aL
    [11:47:20] 150 Opening ASCII mode data connection for file list
    [11:47:20] 1673 bytes transferred. (52.7 KB/s) (31 ms)
    [11:47:20] 226 Transfer complete.
    [11:47:20] Transfer failed. Use the Transfer Queue for automatic retries.
    [11:47:41] MKD /web/modules
    [11:47:41] 550 /web/modules: File exists
    [11:47:41] CWD /web/modules
    [11:47:41] 250 CWD command successful
    [11:47:41] PWD
    [11:47:41] 257 "/web/modules" is current directory.
    [11:47:41] MKD /web/modules/Forums
    [11:47:41] 550 /web/modules/Forums: File exists
    [11:47:41] CWD /web/modules/Forums
    [11:47:42] 250 CWD command successful
    [11:47:42] PWD
    [11:47:42] 257 "/web/modules/Forums" is current directory.
    [11:47:42] MKD /web/modules/Forums/templates
    [11:47:42] 550 /web/modules/Forums/templates: File exists
    [11:47:42] CWD /web/modules/Forums/templates
    [11:47:42] 250 CWD command successful
    [11:47:42] PWD
    [11:47:42] 257 "/web/modules/Forums/templates" is current directory.
    [11:47:42] MKD /web/modules/Forums/templates/fiblack
    [11:47:42] 550 /web/modules/Forums/templates/fiblack: File exists
    [11:47:42] CWD /web/modules/Forums/templates/fiblack
    [11:47:42] 250 CWD command successful
    [11:47:42] PWD
    [11:47:42] 257 "/web/modules/Forums/templates/fiblack" is current directory.
    [11:47:42] PASV
    [11:47:42] 227 Entering Passive Mode (193,33,186,34,160,0).
    [11:47:42] Opening data connection to 193.33.186.34 Port: 40960
    [11:47:42] LIST -aL
    [11:47:42] 150 Opening ASCII mode data connection for file list
    [11:47:42] 870 bytes transferred. (27.4 KB/s) (31 ms)
    [11:47:42] 226 Transfer complete.
    [11:47:42] Remote file exist check: "agreement.tpl".
    [11:47:42] TYPE I
    [11:47:42] 200 Type set to I
    [11:47:42] SIZE agreement.tpl
    [11:47:42] 550 agreement.tpl: No such file or directory
    [11:47:42] File size check (SIZE) failed. File not found or permission denied.
    [11:47:42] PASV
    [11:47:42] 227 Entering Passive Mode (193,33,186,34,191,212).
    [11:47:42] Opening data connection to 193.33.186.34 Port: 49108
    [11:47:42] STOR agreement.tpl
    [11:47:42] 550 agreement.tpl: Permission denied
    [11:47:42] 0 bytes transferred. (N/A/s) (0 ms)
    [11:47:42] CWD /web
    [11:47:42] 250 CWD command successful
    [11:47:42] PWD
    [11:47:42] 257 "/web" is current directory.
    [11:47:42] TYPE A
    [11:47:42] 200 Type set to A
    [11:47:42] PASV
    [11:47:42] 227 Entering Passive Mode (193,33,186,34,214,155).
    [11:47:42] Opening data connection to 193.33.186.34 Port: 54939
    [11:47:42] LIST -aL
    [11:47:42] 150 Opening ASCII mode data connection for file list
    [11:47:42] 1673 bytes transferred. (108 KB/s) (15 ms)
    [11:47:42] 226 Transfer complete.
    [11:47:42] Transfer failed. Use the Transfer Queue for automatic retries.
    
    This fails every time. This is only happening on my FTP Account/Site as far as I can tell it only seems to do this when uploading multiple files (in a queue)

    Any Ideas?
     
  2. BinkS

    BinkS New Member

    Does anyone have any idea about this? I have also tried to create a new admin account on that website, and that still didn't work!

    I am fresh out of idea's :(
     
  3. falko

    falko Super Moderator ISPConfig Developer

    Hsve you tried active and passive transfers in your FTP client? Does it work when you transfer only one file at a time?
     
  4. BinkS

    BinkS New Member

    Yes, I have tried both active and passive.

    It does only work if I transfer one file at a time!
     
  5. BinkS

    BinkS New Member

    Famous last words, Single transfers are no longer working, and I haven't even touched anything!!
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Hm, are there any errors in your logs?
     
  7. BinkS

    BinkS New Member

    Sorry for delay, main PC decided to pop :(

    ProFTPD logs?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Have a look inti the xferlog, auth.log, messages or syslog depending on your linux distribution.
     
  9. BinkS

    BinkS New Member

    Sorry, have only just remembered about this :(

    Some reason it seems to be working now!
     
  10. BinkS

    BinkS New Member

    and now it doesnt work again :(

    Any ideas what logs I need to post up?
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Have a look inti the xferlog, auth.log, messages or syslog depending on your linux distribution.
     
  12. BinkS

    BinkS New Member

    OK, it will upload if its in the main directory, but if I branch off, it wont upload:

    messages:
    Code:
    Mar 14 20:47:17 mix-project -- MARK --
    <-- Last entry (I tried the upload @ 21.05)

    xferlog
    Code:
    Fri Mar 14 21:03:59 2008 0 cpc1-nfds10-0-0-cust36.lei3.cable.ntl.com 226 /var/www/web9/web/XNeon/XNeon/ReadMe.txt b _ i r web9_ian ftp 1 * c
    Fri Mar 14 21:04:06 2008 6 cpc1-nfds10-0-0-cust36.lei3.cable.ntl.com 156545 /var/www/web9/web/XNeon/XNeon/Extra/avatar.psd b _ i r web9_ian ftp 1 * c
    Fri Mar 14 21:04:14 2008 7 cpc1-nfds10-0-0-cust36.lei3.cable.ntl.com 178176 /var/www/web9/web/XNeon/XNeon/Extra/header_01_02.psd b _ i r web9_ian ftp 1 * c
    Fri Mar 14 21:04:18 2008 0 cpc1-nfds10-0-0-cust36.lei3.cable.ntl.com 156545 /var/www/web9/web/XNeon/XNeon/Extra/avatar.psd a _ d r web9_ian ftp 1 * c
    Fri Mar 14 21:04:18 2008 0 cpc1-nfds10-0-0-cust36.lei3.cable.ntl.com 178176 /var/www/web9/web/XNeon/XNeon/Extra/header_01_02.psd a _ d r web9_ian ftp 1 * c
    Fri Mar 14 21:04:18 2008 0 cpc1-nfds10-0-0-cust36.lei3.cable.ntl.com 226 /var/www/web9/web/XNeon/XNeon/ReadMe.txt a _ d r web9_ian ftp 1 * c
    Fri Mar 14 21:04:35 2008 0 cpc1-nfds10-0-0-cust36.lei3.cable.ntl.com 1587 /var/www/web9/web/easyinternetwebsitebuilder/import.txt b _ i r web9_ian ftp 1 * c
    Fri Mar 14 21:05:15 2008 39 cpc1-nfds10-0-0-cust36.lei3.cable.ntl.com 899072 /var/www/web9/web/easyinternetwebsitebuilder/setup.exe b _ i r web9_ian ftp 1 * c
    Fri Mar 14 21:05:19 2008 0 cpc1-nfds10-0-0-cust36.lei3.cable.ntl.com 1587 /var/www/web9/web/easyinternetwebsitebuilder/import.txt a _ d r web9_ian ftp 1 * c
    Fri Mar 14 21:05:20 2008 0 cpc1-nfds10-0-0-cust36.lei3.cable.ntl.com 899072 /var/www/web9/web/easyinternetwebsitebuilder/setup.exe a _ d r web9_ian ftp 1 * c
    Now with the above one, that one uploaded,

    when I tried to upload that same file in /var/www/web9/web/downloads/

    it failed

    auth.log
    Code:
    Mar 14 21:02:45 mix-project proftpd: pam_unix(proftpd:session): session opened for user web9_ian by (uid=0)
    Mar 14 21:09:01 mix-project CRON[766]: pam_unix(cron:session): session opened for user root by (uid=0)
    Mar 14 21:09:01 mix-project CRON[766]: pam_unix(cron:session): session closed for user root
    Mar 14 21:10:25 mix-project proftpd: pam_unix(proftpd:session): session closed for user web9_ian
    SmartFTP:
    Code:
    [21:05:35] 227 Entering Passive Mode (193,33,186,34,157,202).
    [21:05:35] Opening data connection to 193.33.186.34 Port: 40394
    [21:05:35] LIST -aL
    [21:05:35] 150 Opening ASCII mode data connection for file list
    [21:05:35] 392 bytes transferred. (12.3 KB/s) (31 ms)
    [21:05:35] 226 Transfer complete.
    [21:05:35] Transfer failed. Use the Transfer Queue for automatic retries.
    Other FTP clients work the same, always fail. Only way I can upload is via Webmin

    Just noticed, WebFTP throws up this error:

    Code:
    The following error occurred: 
    FTP: Failed to write Array/.htaccess 
     
  13. falko

    falko Super Moderator ISPConfig Developer

  14. BinkS

    BinkS New Member


    Code:
    binks@mix-project:~$ ls -la /var/www/web9/web/downloads/
    total 2180
    drwxr-xr-x  4 root     root    4096 2008-03-14 19:32 .
    drwxrwxr-x 19 web9_ian web9    4096 2008-03-14 21:05 ..
    drwxr-xr-x  2 root     root    4096 2005-11-09 01:12 dlf
    -rw-r--r--  1 root     root 2196461 2008-03-13 10:27 easyinternetwebsitebuilder.zip
    -rw-r--r--  1 root     root   11940 2005-11-09 01:49 index.php
    drwxrwxr-x  3 web9_ian web9    4096 2008-02-10 23:12 radio
    
     
  15. falko

    falko Super Moderator ISPConfig Developer

    Try
    Code:
    chown web9_ian:web9 /var/www/web9/web/downloads
     
  16. BinkS

    BinkS New Member

    That seemed to work, but what about the rest of my users etc? :(
     
  17. BinkS

    BinkS New Member

    Code:
    [20:49:41] 226 Transfer complete.
    [20:49:50] MKD escort
    [20:49:50] 550 escort: Permission denied
    Got that just a min ago

    Edit: After running

    Code:
    chown web9_ian:web9 /var/www/web9/web/ian/images
    
    it worked, this would get a bit annoying with every user though :(
     
    Last edited: Mar 17, 2008
  18. falko

    falko Super Moderator ISPConfig Developer

    How did you create the folders in /var/www/web9/web? Try to use FTP and log in with the admin user of that web site (e.g. web9_ian), and the folders will automatically have the correct owner and group. :)
     
  19. BinkS

    BinkS New Member

    Thanks I will try that :)
     
  20. zars

    zars New Member

    Ok I'm having these problems too. I have 2 sites, in one of them I can have full access through the webftp and ftp clients and in the other I can only access but not upload.
     

Share This Page