Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Closed Thread
 
Thread Tools Display Modes
  #1  
Old 17th December 2006, 09:48
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 211
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default Monit says: Proftpd "Execution failed"

Since a quiet long time i use Monit as my system monitor.
Since yetserday Monit says that the status for Proftpd is "Execution failed".

I wonder how this is possible, because uploading/downloading files via ProFTP is no problem at all and is going quiet fast.
What could be the reason for this?

I have restarted Proftpd and monit as well, but this makes no difference.
Attached Images
 
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Sponsored Links
  #2  
Old 18th December 2006, 14:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,703 Times in 2,546 Posts
Default

Can you post the Proftpd part of your monitrc file?
__________________
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:
  #3  
Old 18th December 2006, 16:02
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 211
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Within the attachement you find the output of the file.
Attached Files
File Type: txt monitrc.txt (1.8 KB, 325 views)
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
  #4  
Old 19th December 2006, 20:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,703 Times in 2,546 Posts
Default

What are the outputs of
Code:
ls -la /var/run/proftpd.pid
and
Code:
netstat -tap
?
__________________
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:
  #5  
Old 19th December 2006, 20:58
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 211
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default no pid file found

Falko,

I think the problem is that the pid-file can not be found, because the output of ls -la /var/run/proftpd.pid is: no such file or directory



How can this be solved?

netstat -tap has a line like this:

tcp 0 0 *:2812 *:* LISTEN 18237/monit
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 19th December 2006 at 21:01.
  #6  
Old 20th December 2006, 14:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,703 Times in 2,546 Posts
Default

If you are absolutely sure that Proftpd is running, run
Code:
updatedb
locate proftpd.pid
What's the output?

Also, check /etc/init.d/proftpd. Maybe the pid file is named differently.
__________________
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:
  #7  
Old 21st December 2006, 11:39
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 211
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default I had to restore the .pid-file for proftpd

The strange thing was that i had no pid file.
I do not know if i made a good decision;
i supercopied (scp) the backup of this file from my backup-server via SSH to the /var/run/ directory again on the production server.

The output of ls -la /var/run/proftpd.pid now is:

-rw-r--r-- 1 root root 5 2006-12-21 11:29 /var/run/proftpd.pid


Monit still gives the failure.
What can i do now?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
  #8  
Old 21st December 2006, 20:04
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 211
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

When i do an: ps aux | grep ftp
The result is:

nobody 7923 0.0 0.7 4772 2292 ? Ss Dec18 0:00 proftpd: (accepting connections)
root 3141 0.0 0.2 3112 600 pts/0 S+ 19:57 0:00 grep ftp

And using FTP goes fast indeed.
However monit still now that the process Proftpd "does not excists".
I guess this is because Proftpd is not creating any pid files when the process is started again.

I really do not understand this , any one knows a solution?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
  #9  
Old 22nd December 2006, 13:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,703 Times in 2,546 Posts
Default

What's in /etc/init.d/proftpd, and what's the output of
Code:
ls -la /var/run
?
__________________
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:
  #10  
Old 23rd December 2006, 00:41
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 211
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
 
Default The requested info:

Falko,

within the attachment you find the proftpd file.

The output of ls -la /var/run is:

server1:/home/admin# ls -la /var/run
total 108
drwxr-xr-x 15 root root 4096 2006-12-21 19:51 .
drwxr-xr-x 16 root root 4096 2006-06-07 20:14 ..
drwxr-xr-x 2 root root 4096 2006-12-21 12:47 apache2
-rw-r--r-- 1 root root 6 2006-12-21 12:47 apache2.pid
-rw-r--r-- 1 root root 5 2006-12-12 21:57 atd.pid
drwxr-xr-x 3 root root 4096 2006-03-31 11:14 bind
drwxr-xr-x 3 daemon daemon 4096 2006-12-12 21:57 courier
-rw-r--r-- 1 root root 6 2006-12-18 20:48 crond.pid
---------- 1 root root 0 2006-12-12 21:57 crond.reboot
drwxr-xr-x 2 dcc dcc 4096 2006-12-12 22:49 dcc
drwxr-x--- 2 Debian-exim Debian-exim 4096 2006-03-31 11:26 exim4
drwx------ 2 fetchmail nogroup 4096 2006-03-31 11:08 fetchmail
drwxr-xr-x 2 identd nogroup 4096 2006-03-31 10:02 identd
-rw-r--r-- 1 root root 5 2006-12-12 21:57 inetd.pid
-rw-r--r-- 1 root root 5 2006-12-12 21:57 klogd.pid
-rw-r--r-- 1 root root 5 2006-12-12 21:57 mdadm.pid
-rw-r--r-- 1 root root 5 2006-12-21 19:51 monit.pid
drwxr-xr-x 2 munin root 4096 2006-12-23 00:35 munin
drwxr-xr-x 2 mysql root 4096 2006-12-18 20:36 mysqld
drwxr-xr-x 2 root root 4096 2006-12-23 00:37 proftpd
drwx--x--- 2 root sasl 4096 2006-09-28 00:01 saslauthd
-rw-r--r-- 1 root root 6 2006-12-12 23:03 spamd.pid
drwxr-xr-x 2 root root 4096 2004-11-29 13:51 sshd
-rw-r--r-- 1 root root 5 2006-12-12 21:57 sshd.pid
-rw-r--r-- 1 root root 5 2006-12-12 21:57 syslogd.pid
drwxr-xr-x 2 root root 4096 2005-04-07 18:37 usb
-rw-rw-r-- 1 root utmp 7680 2006-12-23 00:29 utmp

You see, there is no proftpd.pid file
Attached Files
File Type: txt proftpd.txt (3.8 KB, 221 views)
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Closed Thread

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
proftpd anonymous login gabrix Server Operation 10 14th November 2006 14:54
Virtual Hosting With Proftpd And MySQL Problems bigredgecko HOWTO-Related Questions 1 7th July 2006 12:56
553 "Permission denied on server" ProFTPD 553 Permission denied on server slow_boy Server Operation 15 9th June 2006 12:36
proftpd virtual host not working DaddyFix Installation/Configuration 6 19th April 2006 19:59
Im thinking about throwing proftpd to the trashcan danf.1979 Installation/Configuration 2 23rd December 2005 09:27


All times are GMT +2. The time now is 02:35.


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