Problem with ftp uploading

Discussion in 'General' started by rockan, Sep 1, 2011.

  1. rockan

    rockan New Member

    I have problems overwriting current files on a site via FTP filezilla.

    The log transfers says it goes perfect but when I look at the file size and try to browse them nothing has changed.

    Svar: 150 Accepted data connection
    Svar: 226-File successfully transferred
    Svar: 226 0.006 seconds (measured here), 1.25 Mbytes per second
    Status: Filöverföringen lyckades, överförde 7*434 byte på 1 sekund

    I guess it has to do with file rights so I check with Winscp and it is 644 web1 [5004] / client1 [5006]

    What I am doing wrong?

    Deleting the file with Filezilla and reuploading a new works though but it is a hassle.
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Thats ok.

    Please check the filezille settings if ovewriting of files is enabled there. Additionally, check the pure-ftpd.conf file if overwriting of files is enabled there too.
     
  3. rockan

    rockan New Member

    Is it odd if I can't find the pure-ftpd.conf in /etc?


    root@william:~# find / -name pure-ftpd.conf
    /etc/fail2ban/filter.d/pure-ftpd.conf
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Which Linux distribution do you use?
     
  5. rockan

    rockan New Member

    Linux version 2.6.32-5-amd64 (Debian 2.6.32-34squeeze1) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Wed May 18 23:13:22 UTC 2011

    It was made after a perfect server tutorial here on howtoforge.

    Thanks till.
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Please post the output of:

    /etc/pure-ftpd/conf/

    And check the settings in filezilla and try a different FTP client like fireftp plugin in firefox to verify that its not a problem with the ftp client settings.
     
  7. erosbk

    erosbk New Member

    Under Debian, conf files must be in /etc/pure-ftpd/conf/

    do a vdir there and post here file list you have there pls.

    edit: go to file that you are trying to overwritte, and see permissions pls. If a file is created as root in a client folder, the ftp user is not allowed to overwrite it.
     
  8. rockan

    rockan New Member

    root@william:/etc/pure-ftpd/conf# ls
    AltLog FSCharset PureDB
    BrokenClientsCompatibility MinUID TLS
    ChrootEveryone MySQLConfigFile UnixAuthentication
    DisplayDotFiles NoAnonymous
    DontResolve PAMAuthentication



    root@william:/etc/pure-ftpd/conf# vdir
    total 52
    -rw-r--r-- 1 root root 36 Dec 15 2010 AltLog
    -rw-r--r-- 1 root root 4 Aug 30 19:23 BrokenClientsCompatibility
    -rw-r--r-- 1 root root 4 Aug 30 19:23 ChrootEveryone
    -rw-r--r-- 1 root root 4 Aug 30 19:23 DisplayDotFiles
    -rw-r--r-- 1 root root 4 Apr 7 14:39 DontResolve
    -rw-r--r-- 1 root root 6 Dec 15 2010 FSCharset
    -rw-r--r-- 1 root root 5 Dec 15 2010 MinUID
    -rw-r--r-- 1 root root 29 Dec 16 2010 MySQLConfigFile
    -rw-r--r-- 1 root root 4 Dec 15 2010 NoAnonymous
    -rw-r--r-- 1 root root 4 Dec 15 2010 PAMAuthentication
    -rw-r--r-- 1 root root 28 Dec 15 2010 PureDB
    -rw-r--r-- 1 root root 2 Apr 7 14:02 TLS
    -rw-r--r-- 1 root root 3 Dec 15 2010 UnixAuthentication
     
  9. erosbk

    erosbk New Member

    See timestamp of the file in the client path pls. Next, upload it again. See again if timestamp of the file has been changed. I had a similar problem 1 week ago... I was overwritting a file, all was ok... but browsin the file it was showing same old content... it was a broken link pointing to same file in another directory... I don't know is this is the same case but... well...

    By the way, this is happening with every file or just this?
     
  10. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    If the tipps from Erbosk dont work, then please try to execute this:

    echo 0 > /etc/pure-ftpd/conf/AutoRename

    and restart pure-ftpd.
     
  11. rockan

    rockan New Member

    The timestamp changes, but no changes to the file. The bytes also differs from my local edited copy. This happens to all files on the server, I can't overwrite but deleting and reuploading works.
     
  12. rockan

    rockan New Member

    root@william:/etc/pure-ftpd/conf# echo 0 > /etc/pure-ftpd/conf/AutoRename
    root@william:/etc/pure-ftpd/conf# sudo service pure-ftpd-mysql restart
    Restarting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql :/etc/pure-ftpd/db/mysql.conf -l pam -Y 1 -A -D -8 UTF-8 -H -O clf:/var/log/pure -ftpd/transfer.log -E -b -u 1000 -B
     
  13. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Ok, and did it help?
     
  14. rockan

    rockan New Member

    No, sorry. I am currently downloading firefox and fireftpd as I am using Chrome at the moment to find out if this is Filezillas fault.
     
  15. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Also try active and passive ftp mode please.
     
  16. rockan

    rockan New Member

    It is Filezillas fault, maybe in combination with my NICs driver. In FireFTPd it works without any problems.

    I found this thread, http://forum.filezilla-project.org/viewtopic.php?f=2&t=17153 and it might relate. But I tried to set a speed cap on uploading in filezilla but it didnt help.

    Interesting is that I also got a Gigabyte motherboard as in the thread above.

    I have a Endian Firewall setup but I don't believe it is causing the problems since Fireftp works.
     

Share This Page