Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section FTP Server
  • Search

Error: Connection timed out after 20 seconds of inactivity

Questions regarding the FTP Server
vsFTPd, ProFTPd
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
lemonadv
Posts: 6
Joined: Thu Feb 25, 2016 10:18 pm

Error: Connection timed out after 20 seconds of inactivity
  • Quote

Post by lemonadv » Thu Feb 25, 2016 10:24 pm

Hi,

I'm new in VestaCP. Can you someone help me with the problem that I have?
When I log to FTP account and start upload a mass of files like 1000-2000 so the firs 10-20 files are uploading fast then the message appear:

Error: Connection timed out after 20 seconds of inactivity
Error: File transfer failed

Wait 20-30 seconds and uploading start again but after 10 files the same message appear and etc...
Uploading the whole 1000-2000 files take a lot of time.

How can I fix this problem?

Thanks!
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Error: Connection timed out after 20 seconds of inactivity
  • Quote

Post by skamasle » Mon Feb 29, 2016 7:56 pm

What FTP server you use ?

In default vesta installation you can edit vsftpd time out in /etc/vsftpd/vsftpd.conf

Also may you have some problems whit pasive ports, you need do more information, check your log in /var/log

You can check this post viewtopic.php?f=44&t=10269

Same problem there :)
Top

lemonadv
Posts: 6
Joined: Thu Feb 25, 2016 10:18 pm

Re: Error: Connection timed out after 20 seconds of inactivity
  • Quote

Post by lemonadv » Tue Mar 01, 2016 9:57 pm

Thank you for the reply!

I use vsftpd form the default installation. I check my config file but it is located in /etc/vsftpd.conf not in folder /etc/vsftpd as you wrote. I don't know is that a problem?

So, here is my vsftpd.conf file:

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=002
anon_upload_enable=NO
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
dual_log_enable=YES
chroot_local_user=YES
listen=YES
pam_service_name=vsftpd
userlist_enable=NO
tcp_wrappers=YES
force_dot_files=YES
ascii_upload_enable=YES
ascii_download_enable=YES
#allow_writable_chroot=YES
allow_writeable_chroot=YES
seccomp_sandbox=NO
pasv_enable=YES
pasv_max_port=12100
pasv_min_port=12000
pasv_addr_resolve=NO
port_enable=YES
pasv_address=46.101.216.59

----------
46.101.216.59 is my server IP.
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Error: Connection timed out after 20 seconds of inactivity
  • Quote

Post by skamasle » Tue Mar 01, 2016 10:43 pm

What about log ?

Maybe you use all your pasive ports, so you make alot of conections, log may have more information.

Stop firewall and test whitout firewall ( not recomended in production but you can test for discard it )
Top

lemonadv
Posts: 6
Joined: Thu Feb 25, 2016 10:18 pm

Re: Error: Connection timed out after 20 seconds of inactivity
  • Quote

Post by lemonadv » Thu Mar 03, 2016 9:08 pm

Here is the log:

Thu Mar 3 22:59:03 2016 [pid 23104] CONNECT: Client "212.233.150.139"
Thu Mar 3 22:59:03 2016 [pid 23103] [admin_waterproof] OK LOGIN: Client "212.233.150.139"
Thu Mar 3 22:59:03 2016 [pid 23106] [admin_waterproof] OK MKDIR: Client "212.233.150.139", "/public_html/3d"
Thu Mar 3 22:59:04 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/radioswim.html", 1106 bytes, 12.92Kbyte/sec
Thu Mar 3 22:59:04 2016 [pid 23106] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/a10.html", 1109 bytes, 12.94Kbyte/sec
Thu Mar 3 22:59:04 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/swim-1.html", 1100 bytes, 13.04Kbyte/sec
Thu Mar 3 22:59:04 2016 [pid 23106] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/swim-2.html", 1101 bytes, 12.83Kbyte/sec
Thu Mar 3 22:59:04 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/swimhead.html", 1104 bytes, 15.79Kbyte/sec
Thu Mar 3 22:59:04 2016 [pid 23106] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/z30.html", 1109 bytes, 13.65Kbyte/sec
Thu Mar 3 22:59:04 2016 [pid 23107] [admin_waterproof] OK MKDIR: Client "212.233.150.139", "/public_html/3d/configuration"
Thu Mar 3 22:59:05 2016 [pid 23106] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/configuration/radioswim.xml", 7832 bytes, 61.48Kbyte/sec
Thu Mar 3 22:59:05 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/configuration/a10.xml", 7826 bytes, 72.50Kbyte/sec
Thu Mar 3 22:59:05 2016 [pid 23106] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/configuration/swim-1.xml", 7829 bytes, 61.98Kbyte/sec
Thu Mar 3 22:59:05 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/configuration/swim-2.xml", 7829 bytes, 59.11Kbyte/sec
Thu Mar 3 22:59:05 2016 [pid 23106] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/configuration/z30.xml", 7826 bytes, 66.83Kbyte/sec
Thu Mar 3 22:59:05 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/configuration/swimhead.xml", 7831 bytes, 61.21Kbyte/sec
Thu Mar 3 22:59:05 2016 [pid 23107] [admin_waterproof] OK MKDIR: Client "212.233.150.139", "/public_html/3d/css"
Thu Mar 3 22:59:05 2016 [pid 23106] [admin_waterproof] OK MKDIR: Client "212.233.150.139", "/public_html/3d/js"
Thu Mar 3 22:59:05 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/css/fonts.css", 1256 bytes, 17.10Kbyte/sec
Thu Mar 3 22:59:06 2016 [pid 23106] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/js/buttons.js", 1042 bytes, 9.44Kbyte/sec
Thu Mar 3 22:59:06 2016 [pid 23106] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/js/pngFixer.js", 394 bytes, 4.68Kbyte/sec
Thu Mar 3 22:59:06 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/js/Expo360.js", 69227 bytes, 321.66Kbyte/sec
Thu Mar 3 22:59:06 2016 [pid 23106] [admin_waterproof] OK MKDIR: Client "212.233.150.139", "/public_html/3d/ui_images"
Thu Mar 3 22:59:06 2016 [pid 23106] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/ui_images/close_button.png", 1770 bytes, 20.24Kbyte/sec
Thu Mar 3 22:59:06 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/ui_images/divider.png", 3601 bytes, 24.65Kbyte/sec
Thu Mar 3 22:59:06 2016 [pid 23106] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/ui_images/grabhand_closed.png", 812 bytes, 9.80Kbyte/sec
Thu Mar 3 22:59:07 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/ui_images/grabhand_open.png", 875 bytes, 10.11Kbyte/sec
Thu Mar 3 22:59:07 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/ui_images/hotspot_over.png", 1780 bytes, 25.49Kbyte/sec
Thu Mar 3 22:59:07 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/ui_images/hyperlink_out.png", 1388 bytes, 19.30Kbyte/sec
Thu Mar 3 22:59:07 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/ui_images/hyperlink_over.png", 948 bytes, 13.60Kbyte/sec
Thu Mar 3 22:59:07 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/ui_images/left_out.png", 835 bytes, 12.01Kbyte/sec
Thu Mar 3 22:59:07 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/ui_images/left_over.png", 524 bytes, 7.37Kbyte/sec
Thu Mar 3 22:59:08 2016 [pid 23107] [admin_waterproof] OK UPLOAD: Client "212.233.150.139", "/public_html/3d/ui_images/menu_tile.jpg", 11997 bytes, 71.19Kbyte/sec
Thu Mar 3 22:59:27 2016 [pid 23110] CONNECT: Client "212.233.150.139"
Thu Mar 3 22:59:27 2016 [pid 23108] [admin_waterproof] OK LOGIN: Client "212.233.150.139"
Thu Mar 3 22:59:28 2016 [pid 23115] CONNECT: Client "212.233.150.139"
Thu Mar 3 22:59:28 2016 [pid 23114] [admin_waterproof] OK LOGIN: Client "212.233.150.139"

Here is the massage form the Filezillia:

Logged in
Status: Starting upload of D:\Rabotna 2016\3d\3d\ui_images\hotspot_out.png
Status: Retrieving directory listing of "/public_html/3d/ui_images"...
Command: PASV
Response: 227 Entering Passive Mode (46,101,216,59,47,62).
Command: STOR minus_out.png
Response: 150 Ok to send data.
Error: Connection timed out after 20 seconds of inactivity
Error: File transfer failed
Status: Disconnected from server
Status: Resolving address of waterproofplayer.com
Status: Connecting to 46.101.216.59:21...
Status: Connection established, waiting for welcome message...

I tried the test with firewall OFF but no any changes, the massage appear again.

Here is my pasv ports:

pasv_max_port=12100
pasv_min_port=12000

What do you mean with this: Maybe you use all your pasive ports, so you make alot of conections, log may have more information. How to find how many pasv ports I'm using?

Thanks!
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Error: Connection timed out after 20 seconds of inactivity
  • Quote

Post by skamasle » Sat Mar 05, 2016 11:40 am

I cant explain this in english.

But check your firewall and open pasive ports if are close.

Change range of pasive ports:

pasv_max_port=14000
pasv_min_port=12000

Open range on firewall and it should work.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “FTP Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password