[SOLVED] FTP cancels download

    • [SOLVED] FTP cancels download

      Hi
      I have a problem with my ftp server.
      If a user starts a download, he will be kicked after 600 seconds of downloading.

      The system log says:
      :User login successful.
      :Datatransfer stall timeout: 600 seconds
      :FTP session closed

      The FTP is working with SSL.
      And the Timelimit is on 0.

      So why is the FTP kicking the user out after 600 seconds of downloading ?
      The Data's are about 8-10GB.

      Any ideas ?

      The post was edited 1 time, last by Ego ().

    • Re: FTP cancels download

      Doing a fast search i found this: proftpd.org/docs/directives/li…nfig_ref_TimeoutIdle.html

      Can you confirm that data is transmitted during this time? If not, the connection is automatically closed by this option.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • Re: FTP cancels download

      Hey
      Thanks for your answer.
      Yes, till the poínt of disconnect the Data has been downloaded with the full upload speed.
      But why is the server not able to send the data anymore?
      There is no setting in the OMV which could be the reason for that disconnect. (in my opinion)

      Do you think that the reson for this fault coud be the router ?
      the aktiv port and the passiv ports are set in the router.
    • Re: FTP cancels download

      Would it be possible for you to upload:

      your proftd configuration file: /etc/proftpd/proftpd.conf
      the proftpd log: /var/log/proftpd/proftpd
      and the transfer log: /var/log/xferlog

      It seems very strange to me that you are getting a data timeout stalled error when the data connection is open.
    • Re: FTP cancels download

      :shock: ok i locked in as root (in shell)
      and tryed it with /etc/proftpd/proftpd.conf , but it says that i have no permision.
      When i try /var/log/proftpd/proftpd it says data and foulder not found.
      When i try /var/log/xferlog, there i have also no permision as root ???
      What the hell is wrong with my NAS :?:
    • Re: FTP cancels download

      Once you have logged in as root, what is the output of $groups root

      It should say something like root: root.

      Regardless, root should be the owner of /var/log so it seems very strange, it could be permissions corruption; otherwise your log files could be stored elsewhere.

      Is this a standard OMV install, or did you install it on top of Debian Wheezy or an Ubuntu variant?
    • Re: FTP cancels download

      From ls -l / comes

      Source Code

      1. drwxr-xr-x 2 root root 4096 9. Okt 20:23 bin
      2. drwxr-xr-x 3 root root 4096 10. Okt 00:42 boot
      3. drwxr-xr-x 17 root root 3240 10. Okt 23:11 dev
      4. drwxrwxr-x 81 root root 4096 12. Okt 12:27 etc
      5. drwxr-xr-x 2 root root 4096 21. Aug 17:48 export
      6. drwxr-xr-x 3 root root 4096 9. Okt 20:23 home
      7. lrwxrwxrwx 1 root root 30 9. Okt 20:23 initrd.img -> boot/initrd.img-2.6.32-5-amd64
      8. drwxr-xr-x 11 root root 4096 9. Okt 20:23 lib
      9. lrwxrwxrwx 1 root root 4 9. Okt 20:23 lib64 -> /lib
      10. drwx------ 2 root root 16384 9. Okt 20:23 lost+found
      11. drwxr-xr-x 7 root root 4096 10. Okt 23:28 media
      12. drwxr-xr-x 2 root root 4096 14. Feb 2013 mnt
      13. drwxr-xr-x 2 root root 4096 24. Aug 12:55 opt
      14. dr-xr-xr-x 160 root root 0 10. Okt 23:11 proc
      15. drwx------ 3 root root 4096 10. Okt 00:35 root
      16. drwxr-xr-x 2 root root 4096 9. Okt 20:30 sbin
      17. drwxr-xr-x 2 root root 4096 21. Jul 2010 selinux
      18. drwxr-xr-x 3 root root 4096 9. Okt 20:23 srv
      19. drwxr-xr-x 13 root root 0 10. Okt 23:11 sys
      20. drwxrwxrwt 3 root root 140 13. Okt 23:09 tmp
      21. drwxr-xr-x 10 root root 4096 9. Okt 20:23 usr
      22. drwxr-xr-x 15 root root 4096 9. Okt 20:23 var
      23. lrwxrwxrwx 1 root root 27 9. Okt 20:23 vmlinuz -> boot/vmlinuz-2.6.32-5-amd64
      Display All


      and from ls -l /var/log

      Source Code

      1. -rw-r--r-- 1 root root 482 10. Okt 00:42 alternatives.log
      2. drwxr-x--- 2 root adm 4096 13. Okt 08:31 apache2
      3. drwxr-xr-x 2 root root 4096 9. Okt 20:30 apt
      4. -rw-r----- 1 root adm 78213 13. Okt 23:10 auth.log
      5. -rw-r----- 1 root adm 487065 13. Okt 08:30 auth.log.1
      6. -rw-r----- 1 root adm 3336 10. Okt 23:11 boot
      7. -rw-r----- 1 root adm 3314 10. Okt 00:52 boot.0
      8. -rw-r----- 1 root adm 1000 10. Okt 00:33 boot.1.gz
      9. -rw-r----- 1 root adm 1006 10. Okt 00:21 boot.2.gz
      10. -rw-r----- 1 root adm 999 10. Okt 00:13 boot.3.gz
      11. -rw-r----- 1 root adm 27 24. Aug 13:02 boot.4.gz
      12. -rw-r--r-- 1 root root 0 24. Aug 13:02 bootstrap.log
      13. -rw-rw---- 1 root utmp 1536 13. Okt 22:04 btmp
      14. drwxr-xr-x 2 clamav clamav 4096 13. Okt 08:31 clamav
      15. drwxr-xr-x 2 root root 4096 13. Okt 08:31 cron-apt
      16. -rw-r----- 1 root adm 507852 13. Okt 23:13 daemon.log
      17. -rw-r----- 1 root adm 11463540 13. Okt 08:31 daemon.log.1
      18. -rw-r----- 1 root adm 0 13. Okt 08:32 debug
      19. -rw-r----- 1 root adm 103911 12. Okt 12:27 debug.1
      20. -rw-r----- 1 root adm 57363 10. Okt 23:11 dmesg
      21. -rw-r----- 1 root adm 53890 10. Okt 00:52 dmesg.0
      22. -rw-r----- 1 root adm 12198 10. Okt 00:33 dmesg.1.gz
      23. -rw-r----- 1 root adm 12329 10. Okt 00:21 dmesg.2.gz
      24. -rw-r----- 1 root adm 12204 10. Okt 00:13 dmesg.3.gz
      25. -rw-r----- 1 root adm 28 24. Aug 13:02 dmesg.4.gz
      26. -rw-r--r-- 1 root root 36628 12. Okt 12:25 dpkg.log
      27. -rw-r--r-- 1 root root 32032 9. Okt 23:31 faillog
      28. -rw-r--r-- 1 root root 0 24. Aug 13:02 fontconfig.log
      29. drwxr-xr-x 2 root root 4096 9. Okt 20:23 fsck
      30. drwxr-xr-x 3 root root 4096 9. Okt 20:33 installer
      31. -rw-r----- 1 root adm 0 13. Okt 08:32 kern.log
      32. -rw-r----- 1 root adm 421104 12. Okt 12:27 kern.log.1
      33. -rw-rw-r-- 1 root utmp 292292 13. Okt 23:10 lastlog
      34. -rw-r----- 1 root adm 0 10. Okt 00:13 lpr.log
      35. -rw-r----- 1 root adm 1735 13. Okt 22:17 mail.err
      36. -rw-r----- 1 root adm 10285 13. Okt 08:17 mail.err.1
      37. -rw-r----- 1 root adm 5146 13. Okt 23:05 mail.info
      38. -rw-r----- 1 root adm 30185 13. Okt 08:31 mail.info.1
      39. -rw-r----- 1 root adm 5146 13. Okt 23:05 mail.log
      40. -rw-r----- 1 root adm 30185 13. Okt 08:31 mail.log.1
      41. -rw-r----- 1 root adm 5146 13. Okt 23:05 mail.warn
      42. -rw-r----- 1 root adm 30185 13. Okt 08:31 mail.warn.1
      43. -rw-r----- 1 root adm 163 13. Okt 08:32 messages
      44. -rw-r----- 1 root adm 331632 13. Okt 08:32 messages.1
      45. -rw-r--r-- 1 minidlna minidlna 0 12. Okt 00:16 minidlna.log
      46. drwxr-xr-x 2 root root 4096 10. Okt 00:13 news
      47. drwxr-xr-x 2 ntp ntp 4096 17. Okt 2010 ntpstats
      48. drwxr-xr-x 2 root root 4096 9. Okt 20:30 openmediavault
      49. drwxr-xr-x 2 root root 4096 13. Okt 08:31 proftpd
      50. -rw-r----- 1 root adm 0 10. Okt 00:13 rsyncd.log
      51. drwxr-xr-x 3 root root 4096 13. Okt 08:32 samba
      52. -rw-r----- 1 root adm 0 13. Okt 08:31 smartd.log
      53. -rw-r----- 1 root adm 503 9. Okt 23:44 smartd.log.1.gz
      54. -rw-r----- 1 root adm 576045 13. Okt 23:13 syslog
      55. -rw-r----- 1 root adm 949719 13. Okt 08:31 syslog.1
      56. -rw-r----- 1 root adm 341246 12. Okt 08:29 syslog.2.gz
      57. -rw-r----- 1 root adm 0 13. Okt 08:32 user.log
      58. -rw-r----- 1 root adm 9351 13. Okt 08:31 user.log.1
      59. drwxr-xr-x 2 root root 4096 18. Jun 2010 watchdog
      60. -rw-rw-r-- 1 root utmp 280320 13. Okt 23:10 wtmp
      61. -rw-r--r-- 1 root root 283501 13. Okt 22:23 xferlog
      Display All
    • Re: FTP cancels download

      Well the permissions look fine and nothing glaringly stands out, the files are owned by root; I cannot see why you should be able to open/download them.

      Source Code

      1. drwxr-xr-x 2 root root 4096 13. Okt 08:31 proftpd
      2. ...
      3. -rw-r--r-- 1 root root 283501 13. Okt 22:23 xferlog
    • Re: FTP cancels download

      Yes, that is the correct location of the file.

      on my machine for example:

      Source Code

      1. root@dexter:~# cat /etc/proftpd/proftpd.conf
      2. Include /etc/proftpd/modules.conf
      3. UseIPv6 on
      4. ServerName "dexter"
      5. ServerType standalone
      6. DeferWelcome off
      7. ...
      8. root@dexter:~# cat /var/log/proftpd/proftpd.log
      9. Oct 14 08:38:11 dexter proftpd[19033]: 127.0.1.1 - ProFTPD 1.3.3a standalone mode SHUTDOWN
      10. Oct 14 08:38:13 dexter proftpd[23949]: 127.0.1.1 - ProFTPD 1.3.3a (maint) (built Sat Sep 28 2013 17:02:15 UTC) standalone mode STARTUP
      11. Oct 14 09:26:46 dexter proftpd[23949]: 127.0.1.1 - ProFTPD killed (signal 15)
      12. Oct 14 09:26:46 dexter proftpd[23949]: 127.0.1.1 - ProFTPD 1.3.3a standalone mode SHUTDOWN
      13. Oct 14 09:28:33 dexter proftpd[1886]: 127.0.1.1 - ProFTPD 1.3.3a (maint) (built Sat Sep 28 2013 17:02:15 UTC) standalone mode STARTUP
      14. ...
      15. root@dexter:~# cat /var/log/xferlog
      16. Sun Oct 13 18:56:12 2013 16 ::ffff:192.168.1.1 9829231 /home/ftp/Music/Jewel/Greatest_Hits_(2013)/03_Jewel_-_Foolish_Games.mp3 b _ o r mitchtay ftp 0 * c
      17. Sun Oct 13 18:56:17 2013 17 ::ffff:192.168.1.1 10060153 /home/ftp/Music/Jewel/Greatest_Hits_(2013)/13_Jewel_-_Satisfied.mp3 b _ o r mitchtay ftp 0 * c
      18. Sun Oct 13 18:56:29 2013 16 ::ffff:192.168.1.1 9674088 /home/ftp/Music/Alanis_Morissette/Flavors_Of_Entanglement/10_-_Tapes.mp3 b _ o r mitchtay ftp 0 * i
      19. Sun Oct 13 18:56:29 2013 11 ::ffff:192.168.1.1 6731752 /home/ftp/Music/Alanis_Morissette/Flavors_Of_Entanglement/11_-_Incomplete.mp3 b _ o r mitchtay ftp 0 * i
      20. Sun Oct 13 18:57:24 2013 23 ::ffff:192.168.1.1 9310962 /home/ftp/Music/Eminem/The_Re-Up/02_Jewel_-_You_Were_Meant_For_Me.mp3 b _ i r mitchtay ftp 0 * c
      21. ...
      Display All
    • Re: FTP cancels download

      Ok i got it.

      Source Code

      1. UseIPv6 on
      2. ServerName "EVA1"
      3. ServerType standalone
      4. DeferWelcome off
      5. MultilineRFC2228 on
      6. DefaultServer on
      7. ShowSymlinks on
      8. DisplayLogin /home/ftp/welcome.msg
      9. DisplayChdir .message true
      10. ListOptions "-l"
      11. MaxInstances 30
      12. DenyFilter \*.*/
      13. AuthPAMConfig proftpd
      14. User proftpd
      15. Group nogroup
      16. Umask 000 000
      17. UseFtpUsers off
      18. PersistentPasswd off
      19. DefaultRoot /home/ftp
      20. TimesGMT off
      21. AllowOverwrite on
      22. AuthOrder mod_auth_pam.c* mod_auth_unix.c
      23. DefaultTransferMode ascii
      24. #TransferLog /var/log/proftpd/xferlog
      25. #SystemLog /var/log/proftpd/proftpd.log
      26. <IfModule mod_facl.c>
      27. FACLEngine on
      28. </IfModule>
      29. <IfModule mod_quotatab.c>
      30. QuotaEngine off
      31. </IfModule>
      32. <IfModule mod_ratio.c>
      33. Ratios off
      34. </IfModule>
      35. <IfModule mod_delay.c>
      36. DelayEngine on
      37. </IfModule>
      38. <IfModule mod_ctrls.c>
      39. ControlsEngine on
      40. ControlsMaxClients 2
      41. ControlsLog /var/log/proftpd/controls.log
      42. ControlsInterval 5
      43. ControlsSocket /var/run/proftpd/proftpd.sock
      44. </IfModule>
      45. <IfModule mod_ctrls_admin.c>
      46. AdminControlsEngine off
      47. </IfModule>
      48. <IfModule mod_ban.c>
      49. BanEngine off
      50. BanControlsACLs all allow user root
      51. BanLog /var/log/proftpd/ban.log
      52. BanMessage Host %a has been banned
      53. BanTable /var/run/proftpd/ban.tab
      54. </ifModule>
      55. Include /etc/proftpd/tls.conf
      56. Port 21
      57. RequireValidShell on
      58. IdentLookups on
      59. UseReverseDNS on
      60. TimeoutIdle 0
      61. TimeoutNoTransfer 600
      62. TimeoutStalled 600
      63. PassivePorts 2000 5000
      64. RootLogin on
      65. AllowRetrieveRestart on
      66. AllowStoreRestart on
      67. DeleteAbortedStores off
      68. AllowForeignAddress on
      69. MaxClients 5
      70. MaxLoginAttempts 5
      71. <Directory /home/ftp>
      72. HideFiles (welcome.msg)
      73. </Directory>
      74. <Directory /home/ftp/Dokumentationen>
      75. <Limit ALL>
      76. AllowUser OR root,Frank
      77. AllowGroup OR root
      78. DenyAll
      79. </Limit>
      80. <Limit READ DIRS>
      81. AllowUser OR root,Frank
      82. AllowGroup OR root
      83. DenyAll
      84. </Limit>
      85. </Directory>
      86. <Directory /home/ftp/Serien>
      87. <Limit ALL>
      88. AllowUser OR root,Frank
      89. AllowGroup OR root
      90. DenyAll
      91. </Limit>
      92. <Limit READ DIRS>
      93. AllowUser OR root,Frank
      94. AllowGroup OR root
      95. DenyAll
      96. </Limit>
      97. </Directory>
      98. <Directory /home/ftp/Filme_2>
      99. <Limit ALL>
      100. AllowUser OR root,Frank
      101. AllowGroup OR root
      102. DenyAll
      103. </Limit>
      104. <Limit READ DIRS>
      105. AllowUser OR root,Frank
      106. AllowGroup OR root
      107. DenyAll
      108. </Limit>
      109. </Directory>
      110. <Directory /home/ftp/Filme>
      111. <Limit ALL>
      112. AllowUser OR root,Frank
      113. AllowGroup OR root
      114. DenyAll
      115. </Limit>
      116. <Limit READ DIRS>
      117. AllowUser OR root,Frank
      118. AllowGroup OR root
      119. DenyAll
      120. </Limit>
      121. </Directory>
      122. <IfModule mod_ban.c>
      123. BanEngine off
      124. BanControlsACLs all allow user root
      125. BanLog /var/log/proftpd/ban.log
      126. BanMessage Host %a has been banned
      127. BanTable /var/run/proftpd/ban.tab
      128. </ifModule>
      129. <IfModule mod_wrap.c>
      130. TCPAccessFiles /etc/hosts.allow /etc/hosts.deny
      131. TCPAccessSyslogLevels info warn
      132. TCPServiceName ftpd
      Display All