
30th March 2012, 12:18
|
|
Member
|
|
Join Date: Nov 2011
Posts: 44
Thanks: 2
Thanked 1 Time in 1 Post
|
|
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
|

30th March 2012, 14:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,888
Thanks: 693
Thanked 4,188 Times in 3,205 Posts
|
|
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
|

30th March 2012, 22:32
|
|
Junior Member
|
|
Join Date: May 2006
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
|
|
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?
|

31st March 2012, 11:49
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Does active mode work?
|
|
The Following User Says Thank You to falko For This Useful Post:
|
|

31st March 2012, 16:31
|
|
Member
|
|
Join Date: Nov 2011
Posts: 44
Thanks: 2
Thanked 1 Time in 1 Post
|
|
Quote:
Originally Posted by till
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)
|

1st April 2012, 21:11
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
What's the output of ?
Quote:
Originally Posted by mjnet
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.
|

2nd April 2012, 07:56
|
|
Member
|
|
Join Date: Nov 2011
Posts: 44
Thanks: 2
Thanked 1 Time in 1 Post
|
|
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!?
|

4th April 2012, 00:18
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
Can you switch off fail2ban for testing purposes and try again?
|

4th April 2012, 03:34
|
|
Member
|
|
Join Date: Nov 2011
Posts: 44
Thanks: 2
Thanked 1 Time in 1 Post
|
|
i tried that using: root@web:/home/ubuntu# /etc/init.d/fail2ban stop
but unfortunately no effect
do you have any other ideas?
|

4th April 2012, 14:58
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,592 Times in 2,443 Posts
|
|
What's the output of after you've stopped fail2ban?
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 07:54.
|
|
Recent comments
1 day 5 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 14 hours ago
1 day 18 hours ago
1 day 19 hours ago
1 day 22 hours ago
2 days 11 hours ago
2 days 12 hours ago