#1  
Old 15th January 2007, 12:34
asyadiqin asyadiqin is offline
Senior Member
 
Join Date: Jul 2006
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Exclamation amavisd dead but subsys locked

I've followed the installation guide from "Virtual Users And Domains With Postfix, Courier And MySQL (Fedora Core 5)" and everything was going well.

However, when I came to the part where I have to restart Amavis, there was an error message

Quote:
/etc/init.d/amavisd restart
Shutting down amavisd: The amavisd daemon is not running
[FAILED]
Starting amavisd: Pid_file "/var/run/amavisd/amavisd.pid" already exists. Overwriting!
[ OK ]
I check the status and got this response

Quote:
/etc/init.d/amavisd status
amavisd dead but subsys locked
This is what I get from the logs on /var/log/maillog

Quote:
Jan 15 11:23:51 fc5-i2 amavis[32563]: starting. /usr/sbin/amavisd at fc5-i2.mydomain.com amavisd-new-2.4.4 (20061120), Unicode aware, LANG="en_US.UTF-8"
Jan 15 11:23:51 fc5-i2 amavis[32563]: Perl version 5.008008
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Amavis::Conf 2.075
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Archive::Tar 1.30
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Archive::Zip 1.16
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module BerkeleyDB 0.27
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Compress::Zlib 1.41
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Convert::TNEF 0.17
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Convert::UUlib 1.06
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module DBD::mysql 3.0002
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module DBI 1.52
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module DB_File 1.814
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Digest::MD5 2.36
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module MIME::Entity 5.420
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module MIME::Parser 5.420
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module MIME::Tools 5.420
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Mail::Header 1.74
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Mail::Internet 1.74
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Mail::SPF::Query 1.999001
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Mail::SpamAssassin 3.001007
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Net::Cmd 2.26
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Net::DNS 0.59
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Net::SMTP 2.29
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Net::Server 0.94
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Razor2::Client::Version 2.77
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Time::HiRes 1.86
Jan 15 11:23:51 fc5-i2 amavis[32564]: Module Unix::Syslog 0.100
Jan 15 11:23:51 fc5-i2 amavis[32564]: Amavis::DB code loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: Amavis::Cache code loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: SQL base code loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: SQL::Log code NOT loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: SQL::Quarantine NOT loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: Lookup::SQL code loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: Lookup::LDAP code NOT loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: AM.PDP-in proto code loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: SMTP-in proto code loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: Courier proto code NOT loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: SMTP-out proto code loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: Pipe-out proto code NOT loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: BSMTP-out proto code NOT loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: Local-out proto code loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: OS_Fingerprint code NOT loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: ANTI-VIRUS code loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: ANTI-SPAM code loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: ANTI-SPAM-SA code loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: Unpackers code loaded
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found $file at /usr/bin/file
Jan 15 11:23:51 fc5-i2 amavis[32564]: No $dspam, not using it
Jan 15 11:23:51 fc5-i2 amavis[32564]: Internal decoder for .mail
Jan 15 11:23:51 fc5-i2 amavis[32564]: Internal decoder for .asc
Jan 15 11:23:51 fc5-i2 amavis[32564]: Internal decoder for .uue
Jan 15 11:23:51 fc5-i2 amavis[32564]: Internal decoder for .hqx
Jan 15 11:23:51 fc5-i2 amavis[32564]: Internal decoder for .ync
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found decoder for .F at /usr/bin/unfreeze
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found decoder for .Z at /usr/bin/gzip -d
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found decoder for .gz at /usr/bin/gzip -d
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found decoder for .bz2 at /usr/bin/bzip2 -d
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found decoder for .lzo at /usr/bin/lzop -d
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found decoder for .rpm at /usr/bin/rpm2cpio
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found decoder for .cpio at /usr/bin/pax
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found decoder for .tar at /usr/bin/pax
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found decoder for .deb at /usr/bin/ar
Jan 15 11:23:51 fc5-i2 amavis[32564]: Internal decoder for .zip
Jan 15 11:23:51 fc5-i2 amavis[32564]: No decoder for .rar tried: rar, unrar
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found decoder for .arj at /usr/bin/arj
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found decoder for .arc at /usr/bin/nomarch
Jan 15 11:23:51 fc5-i2 amavis[32564]: No decoder for .zoo tried: zoo, unzoo
Jan 15 11:23:51 fc5-i2 amavis[32564]: No decoder for .lha tried: lha
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found decoder for .cab at /usr/bin/cabextract
Jan 15 11:23:51 fc5-i2 amavis[32564]: No decoder for .tnef tried: tnef
Jan 15 11:23:51 fc5-i2 amavis[32564]: Internal decoder for .tnef
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found decoder for .exe at /usr/bin/arj
Jan 15 11:23:51 fc5-i2 amavis[32564]: Using internal av scanner code for (primary) ClamAV-clamd
Jan 15 11:23:51 fc5-i2 amavis[32564]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
Jan 15 11:23:51 fc5-i2 amavis[32564]: Creating db in /var/spool/amavisd/db/; BerkeleyDB 0.27, libdb 4.3
Somehow, something is stopping amavisd from running and I have no idea what it is. Any ideas?
Reply With Quote
Sponsored Links
  #2  
Old 16th January 2007, 15:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Have you tried to reboot the system?
__________________
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
  #3  
Old 16th January 2007, 17:12
asyadiqin asyadiqin is offline
Senior Member
 
Join Date: Jul 2006
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Red face

Quote:
Originally Posted by falko
Have you tried to reboot the system?
Not when I received those error. I did try to reboot it but accidentally shutdown the server instead. I will have to go to the datacentre and physically reboot the server next week.

beside rebooting the server, could there be any other possible reason for amavisd not starting properly.

FYI, prior to following the guide, this is a freshly installed server, which I followed from "The Perfect Setup Guide for Fedora Core 5". I do not know if there could be any connection to that.

Anyway, I'll update you when I've rebooted the server. Thanks.
Reply With Quote
  #4  
Old 17th January 2007, 19:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by asyadiqin
beside rebooting the server, could there be any other possible reason for amavisd not starting properly.
I thought rebooting the server was easier than telling you to check pid and lock files (e.g. in /var/run/amavisd/). Those files (that could cause the error) are removed on reboot.
__________________
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
  #5  
Old 26th January 2007, 12:54
asyadiqin asyadiqin is offline
Senior Member
 
Join Date: Jul 2006
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Default Rebooting Didn't Solve The Problem

Just an update. Seems the reboot didn't actual do anything. The boot-up log specified that amavisd started up ok, but when I entered the following in shell

Quote:
/etc/init.d/amavisd status
it still return the same error

Quote:
amavisd dead but subsys locked
I can find the .pid file but not the .lock file. Deleted the .pid file and tried restarting amavisd, but same thing.

Anyway, since I am at the datacentre, I decided to try to do a fresh install on the server and try again. Hopefully, this time it will installed without any problem.

One last question, though I know its out of topic. Assuming that I get this to work, eg. "Virtual Users And Domains With Postfix, Courier And MySQL (Fedora Core 5)", is there anyway to make it work with IspConfig?

Would appreciate any tips, guides or hints from anyone who managed to get this setup working with IspConfig.

Thanks again.
Reply With Quote
  #6  
Old 27th January 2007, 14:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

Quote:
Originally Posted by asyadiqin
One last question, though I know its out of topic. Assuming that I get this to work, eg. "Virtual Users And Domains With Postfix, Courier And MySQL (Fedora Core 5)", is there anyway to make it work with IspConfig?
No, this setup is completely incompatible with ISPConfig.
__________________
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
amavisd conf (Postfix and virtual users on debian sarge) Es-web.dk HOWTO-Related Questions 0 29th November 2006 22:18
amavisd error in Postfix+Courier+SpamAssassin HowTo brianwc HOWTO-Related Questions 1 4th September 2006 19:22
Order of maildrop, amavisd ColdDoT Server Operation 2 25th August 2006 13:12
amavisd crash vinx HOWTO-Related Questions 9 11th April 2006 14:04


All times are GMT +2. The time now is 08:04.


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