LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-19-2011, 03:00 AM   #1
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Rep: Reputation: 16
Dovecot failed to start after reboot


Dear all,

Few days ago we had a server maintenance.
The system was shutdown, we fix the CPU fan, and start the system again.
But somehow when the system starts, our IMAP server - dovecot is not running. It just sit like a rock.
Because the machine had a CPanel/WHM, I tried to restart dovecot using cpanel and got a message:
Code:
imap has failed, please contact the sysadmin (result was "dovecot is not running").
That was not really useful....

when I tried to restart dovecot using command line, I got nothing. really nothing.

Code:
root@machine [~]# /sbin/service dovecot restart
root@machine [~]#
I've been checking /var/log/messages and /var/log/maillog and both give me nothing about dovecot. Not even a single line. Previously I got some log from dovecot to /var/log/maillog

Can anyone tells me how to find out what happens to my IMAP/dovecot? And anyway to make it run again?

I'm using CentOS 5.5 X64 with dovecot 1.2.16

regards,

Yoachan

Last edited by yoachan; 03-19-2011 at 03:20 AM. Reason: adding linux and dovecot version
 
Old 03-19-2011, 03:03 AM   #2
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Original Poster
Rep: Reputation: 16
I've been doing some digging and found out that update time backward can cause dovecot to crash.
But I've been asking my friend who did the maintenance and he said that he didn't change the time.
I don't know if somehow few minutes shutdown can cause my machine to roll back it's time,
or is not not related to the problem that I'm having -- I really have no idea.

any help appreciated.

regards,

Yoachan
 
Old 03-19-2011, 05:32 AM   #3
jamrock
Member
 
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
I have not seen this exact situation. However, I have seen something similar. I am not near a server now so I don't have all the details.

If the server shuts down abnormally Dovecot does not remove the process id (pid) from the master.pid file. This can prevent the application from restarting.

Search for the master.pid file. It should be in one of the dovecot directories. Set the value to 0 (zero) and see if that resolves the issue.

You can also try renaming the master.pid.

The master.pid might be located in /var/run/dovecot/master.pid

Last edited by jamrock; 03-19-2011 at 05:39 AM.
 
Old 03-19-2011, 11:30 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
I don't know if somehow few minutes shutdown can cause my machine to roll back it's time,
or is not not related to the problem that I'm having -- I really have no idea.
not a big deal. it probably means that your hardware clock is off. battery? dovecot (among other things)
is sensitive to time adjustments. you just have to arrange for ntp to set the system time before
dovecot starts, or to manually start/restart dovecot after the system time adjustment. really, you
should see about the hwclock, e.g. manually set the time ("hwclock --systohc") and query it
once in a while ("hwclock --show") to see if it's drifting.

also, check out the halt and reboot scripts in init.d/. if it's not on by default,
there should be an option to synch the hardware clock to the system clock at shutdown.

in case you haven't seen it, TimeMovedBackwards is on the wiki.

Last edited by Berhanie; 03-19-2011 at 11:42 AM. Reason: link to dovecot page
 
Old 03-20-2011, 12:57 AM   #5
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Original Poster
Rep: Reputation: 16
@Jamrock:
U r ROCK! Thanks! It works!

@Berhanie:
I see... so if the "Time Moved Backwards" thing happens only when dovecot is started and somehow time moved backward.
that explains a lot.
Thanks

@all:
case closed.
thanks
 
  


Reply

Tags
dovecot, imap, stop



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Dovecot user authentication failed lxc5089 Linux - Security 2 06-30-2010 09:09 AM
Dovecot Failing to start mrJimmbo Linux - Server 6 01-24-2007 08:51 PM
dovecot can't start hilhunter Linux - Software 1 03-12-2006 01:38 PM
dovecot failed to start xchido Fedora 0 03-10-2006 04:25 PM
Gnome failed to start automatically on reboot moacirponti Red Hat 0 09-08-2004 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration