Hi
I got some timeout problems with my server.
proftp timesout after 300s
mysql timesout after few mins
proftp:
When i want to connect to my server sftp or ftp is everything. (i use filezilla)
When i edit a file directly from filezilla and save it after one 10/20/50/min or 1/2/3/hours no problems. Only when i want to browse the folder send command [CDUP] or [CWD folder] he will hang and get the following error after 30sec.
Error: Disconnected from server: ECONNABORTED - Connection aborted
Error: Failed to retrieve directory listing
Only in the 300s it will work without problems
No server logs found on the server. only find logs about my files i downloaded.
When i go to my proftpd.conf i changed the timeouts to 3600 but that has no effect.
My proftpd.conf
(proftpd.include) is a empty file generated by plesk.
I find that the server is started inside initd. so i checked those files if i find any config file thats has some timeout options. no results.
The only thing i can find is when i go to my ssh(putty) and i enter the command proftpd - V
i get those results:
There is see PR_TUNABLE_TIMEOUTNOXFER = 300. I think that this is my problem but i can't find any hay how to change that. i search almost all the config files i can find on my server and google but with no result. Can someone help me with this?
With mysql i got the same problem with remote connection (i use navicat). Only i can't find any config about here.
ssh has also the same timeout issue but i fixed that by keep connection alive in putty.
My firewall config is the default that's installed with plesk install. Ony added port 2525 for smtp and made mysql allow for outside connections.
Thanks.
I got some timeout problems with my server.
proftp timesout after 300s
mysql timesout after few mins
proftp:
When i want to connect to my server sftp or ftp is everything. (i use filezilla)
When i edit a file directly from filezilla and save it after one 10/20/50/min or 1/2/3/hours no problems. Only when i want to browse the folder send command [CDUP] or [CWD folder] he will hang and get the following error after 30sec.
Error: Disconnected from server: ECONNABORTED - Connection aborted
Error: Failed to retrieve directory listing
Only in the 300s it will work without problems
No server logs found on the server. only find logs about my files i downloaded.
When i go to my proftpd.conf i changed the timeouts to 3600 but that has no effect.
My proftpd.conf
Code:
#
# To have more informations about Proftpd configuration
# look at : http://www.proftpd.org/
#
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "ProFTPD"
#ServerType standalone
ServerType inetd
DefaultServer on
<Global>
DefaultRoot ~ psacln
AllowOverwrite on
# timeouts
TimeoutIdle 3600
TimeoutNoTransfer 3600
</Global>
DefaultTransferMode binary
UseFtpUsers on
TimesGMT off
SetEnv TZ :/etc/localtime
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
#Following part of this config file were generate by PSA automatically
#Any changes in this part will be overwritten by next manipulation
#with Anonymous FTP feature in PSA control panel.
#Include directive should point to place where FTP Virtual Hosts configurations
#preserved
ScoreboardFile /var/run/proftpd_scoreboard
# Primary log file mest be outside of system logrotate province
TransferLog /opt/psa/var/log/xferlog
#Change default group for new files and directories in vhosts dir to psacln
<Directory /var/www/vhosts>
GroupOwner psacln
</Directory>
# Enable PAM authentication
AuthPAM on
AuthPAMConfig proftpd
IdentLookups off
UseReverseDNS off
AuthGroupFile /etc/group
Include /etc/proftpd.include
(proftpd.include) is a empty file generated by plesk.
I find that the server is started inside initd. so i checked those files if i find any config file thats has some timeout options. no results.
The only thing i can find is when i go to my ssh(putty) and i enter the command proftpd - V
i get those results:
Code:
Compile-time Settings:
Version: 1.3.4c (maint)
Platform: LINUX [Linux 3.2.0-41-generic x86_64]
Built: Tue May 28 2013 15:12:10 NOVT
Built With:
configure '--with-modules=mod_ratio:mod_readme:mod_quotatab:mod_quotatab_file:mod_tls' '--enable-nls' '--enable-auth-pam' '--enable-ncurses' '--enable-ipv6' '--enable-buffer-size=8192' '--prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib' '--datadir=/usr/share' '--sysconfdir=/etc' '--sharedstatedir=/usr/com' '--localstatedir=/var' '--libdir=/usr/lib' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CC=gcc' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'
CFLAGS: -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall
LDFLAGS: -L$(top_srcdir)/lib -Wl,-Bsymbolic-functions -Wl,-z,relro
LIBS: -lssl -lcrypto -L$(top_srcdir)/lib/libcap -lcap -lssl -lcrypto -lpam -lsupp -lcrypt -ldl -ldl -lz
Files:
Configuration File:
/etc/proftpd.conf
Pid File:
/var/proftpd.pid
Scoreboard File:
/var/proftpd.scoreboard
Features:
- Autoshadow support
- Controls support
+ curses support
- Developer support
- DSO support
+ IPv6 support
+ Largefile support
- Lastlog support
- Memcache support
+ ncurses support
+ NLS support
+ OpenSSL support
- PCRE support
- POSIX ACL support
+ Shadow file support
+ Sendfile support
+ Trace support
Tunable Options:
PR_TUNABLE_BUFFER_SIZE = 8192
PR_TUNABLE_DEFAULT_RCVBUFSZ = 8192
PR_TUNABLE_DEFAULT_SNDBUFSZ = 8192
PR_TUNABLE_GLOBBING_MAX_MATCHES = 100000
PR_TUNABLE_GLOBBING_MAX_RECURSION = 8
PR_TUNABLE_HASH_TABLE_SIZE = 40
PR_TUNABLE_NEW_POOL_SIZE = 512
PR_TUNABLE_SCOREBOARD_BUFFER_SIZE = 80
PR_TUNABLE_SCOREBOARD_SCRUB_TIMER = 30
PR_TUNABLE_SELECT_TIMEOUT = 30
PR_TUNABLE_TIMEOUTIDENT = 10
PR_TUNABLE_TIMEOUTIDLE = 600
PR_TUNABLE_TIMEOUTLINGER = 30
PR_TUNABLE_TIMEOUTLOGIN = 300
PR_TUNABLE_TIMEOUTNOXFER = 300
PR_TUNABLE_TIMEOUTSTALLED = 3600
PR_TUNABLE_XFER_SCOREBOARD_UPDATES = 10
There is see PR_TUNABLE_TIMEOUTNOXFER = 300. I think that this is my problem but i can't find any hay how to change that. i search almost all the config files i can find on my server and google but with no result. Can someone help me with this?
With mysql i got the same problem with remote connection (i use navicat). Only i can't find any config about here.
ssh has also the same timeout issue but i fixed that by keep connection alive in putty.
My firewall config is the default that's installed with plesk install. Ony added port 2525 for smtp and made mysql allow for outside connections.
Thanks.