Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th March 2012, 12:18
mjnet mjnet is offline
Member
 
Join Date: Nov 2011
Posts: 44
Thanks: 2
Thanked 2 Times in 1 Post
Default pure-ftpd/fsockopen slow

Hi there,

After some mysql optimization trouble I'm now having a disaster with pureftpd or filesystem that will slow down not even my ftp browsing, it will slow down my wordpress too!

let me explain:
after an ubuntu (ec2 ami) updgrade my ftp connection will take about 1minute, also every folder opening take same duration of time! this is unacceptable but i can't figure out where this problem is coming from!

anonter problem is creating wordpress articles. every time i want to create an article wordpress will proceed wp-cron, wich has some fopen or fsockopen functions they're realy slow.

where's this problem coming from? syslog has no errors!

only error i figured out at this time is ispconfig cron:
setquota: Not setting block/inode grade time on /dev/by-label/cloudimg-rootfs because softlimit is no exceeded.
-> note: i've more than 60% free space on root partition.

all other events are running fast as normal. also ssh is running normal.
any ideas why this ftp (and may because of this also fsockopen) is that slow?!

thank you guys
Reply With Quote
Sponsored Links
  #2  
Old 30th March 2012, 14:07
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,418
Thanks: 834
Thanked 5,498 Times in 4,328 Posts
Default

This can be caused by dns issues. Check that the dns servers in /etc/resolv.conf are reachable from your server and working. You might want to replace them with the google dns servers, IP addresses are:

8.8.8.8
8.8.4.4
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 30th March 2012, 22:32
gleidsonlm gleidsonlm is offline
Junior Member
 
Join Date: May 2006
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default pureftp amazon ec2 private ip

I'm having a similar problem. I'm using a Ubuntu Oneiric 11.10 64 EC2 instance at Amazon AWS with a Elastic IP.

At /etc/hosts I get the correct IP and hostname of my ISPConfig3 instalation and now at /etc/resolv.conf the google cache dns servers.

Even that, I still having a problem about PureFTP inform at passive mode the EC2 NAT private IP.

Command: PASV
Response: 227 Entering Passive Mode (1#,2##,5,1##,111,61)
Status: Server sent passive reply with unroutable address. Using server address instead.
Command: MLSD
Error: Connection timed out
Error: Failed to retrieve directory listing

Do you have any suggestion?
Reply With Quote
  #4  
Old 31st March 2012, 11:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Does active mode work?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
gleidsonlm (26th April 2012)
  #5  
Old 31st March 2012, 16:31
mjnet mjnet is offline
Member
 
Join Date: Nov 2011
Posts: 44
Thanks: 2
Thanked 2 Times in 1 Post
Default

Quote:
Originally Posted by till View Post
This can be caused by dns issues. Check that the dns servers in /etc/resolv.conf are reachable from your server and working. You might want to replace them with the google dns servers, IP addresses are:

8.8.8.8
8.8.4.4
allright i gave them a try but it didn't take any effect. still the same duration of ftp connection and also still the issue with wordpress article creating.

also every time i do a ftp event (open directory or connect or whatever...) syslog is calling ispconfig server.sh, is that normal?
Mar 31 14:29:01 web CRON[2035]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
Reply With Quote
  #6  
Old 1st April 2012, 21:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

What's the output of
Code:
iptables -L
?

Quote:
Originally Posted by mjnet View Post
also every time i do a ftp event (open directory or connect or whatever...) syslog is calling ispconfig server.sh, is that normal?
Mar 31 14:29:01 web CRON[2035]: (root) CMD (/usr/local/ispconfig/server/server.sh > /dev/null 2>> /var/log/ispconfig/cron.log)
That's just a coincidence - that script is run by cron every minute.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 2nd April 2012, 07:56
mjnet mjnet is offline
Member
 
Join Date: Nov 2011
Posts: 44
Thanks: 2
Thanked 2 Times in 1 Post
Default

output is:

root@web:/home/ubuntu# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-pureftpd tcp -- anywhere anywhere multiport dports ftp
fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain fail2ban-pureftpd (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere

Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere

hope you can deal with this!?
Reply With Quote
  #8  
Old 4th April 2012, 00:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Can you switch off fail2ban for testing purposes and try again?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 4th April 2012, 03:34
mjnet mjnet is offline
Member
 
Join Date: Nov 2011
Posts: 44
Thanks: 2
Thanked 2 Times in 1 Post
Default

i tried that using: root@web:/home/ubuntu# /etc/init.d/fail2ban stop

but unfortunately no effect

do you have any other ideas?
Reply With Quote
  #10  
Old 4th April 2012, 14:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
 
Default

What's the output of
Code:
iptables -L
after you've stopped fail2ban?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wordpress admin on nginx+php5-fpm on VPS incredibly slow. Other apps/WP front end OK talkingnews General 6 28th January 2012 12:46
I need help to debug a slow website vtapas Server Operation 15 10th August 2011 10:50
Ultra Slow server no connection or console wontolla Installation/Configuration 12 5th January 2011 13:41
Site very slow after server migraion dimitar General 2 22nd February 2008 12:23
really slow website access itgroup Installation/Configuration 2 17th July 2006 15:21


All times are GMT +2. The time now is 16:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.