• ベストアンサー

Centos5.7 Dovecotが止まる

Dovecotが止まってしまう現象が発生しています。 ログを見ると下記のように出ていました。 I'll sleep now until we're back in present. http://wiki.dovecot.org/TimeMovedBackwards ググって色々と調べるとNTPサーバーが同期した時に起きることがあるとありました。 Centos5.3~5.6まではこのような現象に陥ったことはありませんでした。 どの様な要因でこのような症状がでるのかご存知の方がいましたら 原因と対策をご教授ください。

質問者が選んだベストアンサー

  • ベストアンサー
  • entree
  • ベストアンサー率55% (405/735)
回答No.1

リンク先に書いてあるとおりではないでしょうか? 「TimeMovedBackwards」からも想像が付くかと思います。 要するに時間が戻されたときにご指摘のような事象が発生するのではないかと。 NTPをstepモードからslewモードに変更して運用されては如何でしょうか? slewモードだと同期のタイミングで時間が戻されることは無くなります。 slewモードにするにはntpdを-xオプション付きで起動すればOKです。 /etc/sysconfig/ntpdのOPTIONSの先頭に「-x」を追加すればよいでしょう。

wakatonsx
質問者

お礼

ありがとうございました。

関連するQ&A

  • dovecotからメールを取り出せません

    現在、CentOS6 + dovecot-1.2.0-2el6_1.1 + postfixの組み合わせでメール環境を構築してあります。 ところが、昨日から突然クライアント(Windows上のThunderbird14.0)でメールが読めなくなってしまいました。 Thunderbirdを起動するとパスワードの入力を求められ、正しいパスワードを入力しているのですが、 「サーバ server.example.org へのログインに失敗しました。」 と表示され、もう一度パスワードの入力を求められます。 それを繰り返しているうちに画面右下のあたりに「サーバとの接続に失敗しました」と表示されます。 そこでWindowsPCから >telnet server.example.org 143 としてサーバにつなぐと * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE START TLS AUTH=PLIN] Dovecot ready. と返事が返ってきます。 そこで A LOGIN ユーザ名 パスワード と入力すると * BYE Internal error occurred. Refer to server log for more information. と表示され、即効で ホストとの接続が切断されました。 と表示され、接続が切断されます。 logを見て確認しようと思ったのですが、dovecotがどこにメッセージをはいているのかわからず、ここままでお手上げになってしまいました。 ちなみに /etc/dovecot/conf.d/10-auth.conf には disable_plaintext_auth = no としてあり、 上記のユーザ名とパスワードはコンソールからログインするときに使うプレインテキストを使っています。 また、メール送信は問題なく、受信もhome/Maildir/new/の中のファイルを直接lessしたところ問題ないことを確認してあります。 今、別のアカウントを作って試してみたところ受信のエラーも出ず、telnetしてa loginしてみても a OK [CAPABILITY IMAP4rev1 LITERAL+ SASL -IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESSORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS] Logged in と表示され、無事ログインできます。 となると、私のアカウントのみがログインできない状態になってしまっているようです。 どなたか、ここが怪しいといった点でも結構ですので、ヒントをいただけないでしょうか?

  • CentOSのNTP時刻同期エラー

    表題の通りCentOSのNTPサーバーエラーについて質問します。 状況 CentOSでNTPを使用していたのですが、気がついた時には NTPサーバーがエラーで止まっていました。  内容を確認してみると、/etc/ntp.confで設定している同期するサーバーと ntpq -p で確認するサーバーが違っている事に気が付きました。 このntpqコマンドで確認できるサーバーは、昔使っていた古いアドレスの物で 現在は使われていない為に今回のエラーになっていると考え、 設定されている場所を探したのですが、見つからなかった為、 yum erase ntp* で一旦全て削除して、 yum install ntp* で再インストールを 行いましたが、状態が変わりませんでした。 現在のntp.confの内容============================================== # Permit time synchronization with our time source, but do not # permit the source to query or modify the service on this system. #restrict default kod nomodify notrap nopeer noquery #restrict -6 default kod nomodify notrap nopeer noquery # Permit all access over the loopback interface. This could# be tightened as well, but to do so would effect some o f# the administrative functions.#restrict 127.0.0.1 #restrict -6 ::1 #ipv6 # Hosts on local network are less restricted. # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). #server 0.centos.pool.ntp.org #server 1.centos.pool.ntp.org #server 2.centos.pool.ntp.org server 133.100.9.2 #clock.nc.fukuoka-u.ac.jp server 210.173.160.27 #ntp1.jst.mfeed.ad.jp server 202.224.32.4 #ntp.asahi-net.or.jp #broadcast 192.168.1.255 key 42 # broadcast server #broadcastclient # broadcast client #broadcast 224.0.1.1 key 42 # multicast server #multicastclient 224.0.1.1 # multicast client #manycastserver 239.255.254.254 # manycast server #manycastclient 239.255.254.254 key 42 # manycast client # Undisciplined Local Clock. This is a fake driver intended for backup # and when no outside source of synchronized time is available. #server 127.127.1.0 # local clock #fudge 127.127.1.0 stratum 10 # Drift file. Put this in a directory which the daemon can write to. # No symbolic links allowed, either, since the daemon updates the file # by creating a temporary in the same directory and then rename()'ing # it to the file. driftfile /var/lib/ntp/drift # Key file containing the keys and key identifiers used when operating # with symmetric key cryptography. keys /etc/ntp/keys # Specify the key identifiers which are trusted. #trustedkey 4 8 42 # Specify the key identifier to use with the ntpdc utility. #requestkey 8 # Specify the key identifier to use with the ntpq utility. #controlkey 8 ======================================================== ntpq -p で確認した内容==================================== remote refid st t when poll reach delay offset jitter ============================================================================== clock.nc.fukuok .GPS. 1 u 45 64 1 25.585 22436.7 0.002 ntp1.jst.mfeed. 210.173.176.251 2 u 44 64 1 5.803 22465.5 0.002 orion.asahi-net 133.243.238.244 2 u 43 64 1 5.787 22495.2 0.002 ============================================================================== この時、/var/log/messageには何もログは表示されていません。 また、ntpdate -u -b clock.nc.fukuoka-u.ac.jp で強制的に時刻同期させると 以下のように時刻の同期ができます。 29 Sep 22:17:15 ntpdate[29572]: step time server 133.100.9.2 offset 27.863054 sec 以上の内容から、ntpq -p で表示されている古いサーバー情報がどこかに 残っている為に、今回のエラーになっていると思えるのですが、 自分では、どこに残っているのかがわからない為、 皆様のお知恵をお借りできれば幸いです。 宜しくお願い致します。

  • POPサーバ(dovecot) が5時に止まります!

    http://centossrv.com/を参考に自宅サーバを立てました。 OS: centos5.1 メールソフト:postfix+Dovecot(SRPM)+qmail+vpopmail (http://centossrv.com/postfix-vpopmail.shtml を参考に) クライアントは、IMAPでなくPOPで接続してます。 症状としましては、 毎朝5:00頃にDovecotがrestartしているのですが、 その再起動に失敗してしまいます。 ■/var/log/maillog を見ると Jan 1 04:59:25 sv01 dovecot: Killed with signal 15 Jan 1 04:59:28 sv01 dovecot: Dovecot v1.0.rc15 starting up Jan 1 04:59:29 sv01 dovecot: Auth process died too early - shutting down Jan 1 04:59:29 sv01 dovecot: auth(default): Unknown passdb driver 'vpopmail' (typo, or Dovecot was built without support for it? Check with dovecot --build-options) Jan 1 04:59:29 sv01 dovecot: child 9137 (auth) returned error 89 Jan 1 04:59:29 sv01 dovecot: Temporary failure in creating login processes, slowing down for now となっています。driverがないよとなってます。 ■ビルドオプションを確認すると、 [root@sv01 ~]# dovecot --build-options Build options: ioloop=poll notify=dnotify ipv6 openssl SQL drivers: mysql postgresql Passdb: checkpassword ldap pam passwd passwd-file shadow sql Userdb: checkpassword ldap passwd prefetch passwd-file sql static あれ?認証方法がsqlになってる?vpopmail認証になっていない??? ■dovecot(SRPM)を再インストールして確認すると、 [root@sv01 ~]# dovecot --build-options Build options: ioloop=poll notify=inotify ipv6 openssl SQL drivers: Passdb: checkpassword ldap pam passwd passwd-file shadow vpopmail Userdb: checkpassword ldap passwd prefetch passwd-file static vpopmail vpopmail認証になったので、問題解消・・・・・・ と思ったのですが、次の日の朝、同様にエラーが発生して、 ビルドオプション見るとsql認証に戻ってしまってました…。 ということで、どうやら再起動時に認証方法が変わってしまうようです。 /etc/dovecot.conf を見ても設定が変わってませんので、 原因が分からず、どうしようもなく、毎朝dovecotの再インストールしてます・・・ どこかに古いファイルが残ったりしてるのでしょうか? ここを見ろ!というところぜひ教えて下さい! 新年早々みなさん忙しいと思いますが、お願いします!

  • 友達からのメッセージについて

    いつまでここに滞在する予定なのか聞いたところ、まだいる、とのことでしたので、 Can we meet tomorrow? と送りました。 すると、Yes! I'll be around と返ってきました。 その後、I'll be in my room today too until 9と、きたので You mean you're going to leave at 9:00 pm today?と送りました。 Just for the night と返ってきたのですが、今日だけ家に帰る ということでしょうか?

  • Why can't we ~

    Why can't we just have what we have now? がわかりません。 why not と続いているのでしょうか? できれば文法的な説明も含めお願いいたします。 CHANDLER: C'mon, we're great together, why not? AURORA: Why can't we just have what we have now? Why can't we just talk, and laugh, and make love, without feeling obligated to one another... and up until tonight I thought that's what you wanted too. http://www.reocities.com/Hollywood/9151/106.htm

  • SNTP設定

    PDCの時間同期を行うため、外部のNTPサーバから同期を行っているのですが、うまく合わせれていません。最初は、コマンドプロンプトから"net time"コマンドを使用して同期を行っておりました。 net time /setsntp:"ntpサーバアドレス" といった形で設定しており、 net time /querysntp で確認すると、ntpサーバを表示するため設定自体はできているようです。 次に、"桜時計"という時間合わせソフトを試してみたのですが、サーバとの交信はできるのですが、時間合わせができていません。(桜時計の場合は時間を修正するとログのようなものが残りますが、全くでません) これらを試してみて、実際のPDCの時間を見てみると1~5分ずれているのが現状です。 ADでドメインを組んでいるため、クライアントはPDCの時間を参照するためPDCの時間同期をどうしても正確に行いたいのです。同じような現象になった方、もしくは解決方を知っている方がいらしたら教えてください。よろしくお願いします。

  • 自分では翻訳できない歌があります

    自分では翻訳できない歌があります AUGUSTANAのアルバム『Can't Love, Can't Hurt』の10曲目、 ♪Where Love Went Wrong という曲の意訳が自分ではできなくて困っています。 誰か時間があるときにでも意訳をお願いします。 簡単な直訳でもかまいません。 自分自身で訳してはみたものの、 『on your shoulder』のような文は 決まり文句系だろうなぁとは想像できるのですが、 翻訳しようがない状態なので... どうかよろしくお願いします。 "Where Love Went Wrong" The day is done, and now we're older The feeling's gone, so now you'll show her Where love went wrong, on your shoulder You're all alone, and you can't take it You're just too tired to suffocate it And all along we'll just fake it But I tried I tried, goodbye You try to breathe, you try to save it But it marks your skin, until they break it Well could you call when They're taking all that you left for me

  • 1.ニハリとハリームは非常に似通った料理(肉の入っ

    1.ニハリとハリームは非常に似通った料理(肉の入ったシチュー)だがそもそもどのような違いで分けるのだろうか? 2.皆さんはニハリとハリームをどのように見分けられますでしょうか? 3.皆さんにとってニハリ、ハリームとは? 料理カテゴリー皆さんの ご回答のほど、 お待ちしております。 https://ja.m.wikipedia.org/wiki/ニハリ https://es.wikipedia.org/wiki/Nihari https://ja.m.wikipedia.org/wiki/ハリーム https://en.wikipedia.org/wiki/Haleem 1. Nihari and Harim are very similar dishes (meat stew), but what are the differences between them in the first place? 2. How can you distinguish between hari and harim? 3. What's up with you, Harim? Cooking category of everyone As you answer, We'll be expecting you.

  • 南北首脳会談が明日実施されるが、我々は南北会談をど

    南北首脳会談が明日実施されるが、我々は南北会談をどのように見ればよいだろうか?(利点欠点限界盲点とは?) 皆さんは南北首脳会議をどのように見られるだろうか? The inter-Korean summit will be held tomorrow, but how should we see the inter-Korean talks? How can you see the inter-Korean summit? Social Category All of you As you answered, We'll be expecting you. https://www.google.com/amp/s/www.bbc.com/english/amp/43579447 https://en.wikipedia.org/wiki/ North-South Summit Meeting https://en.wikipedia.org/wiki/Inter-Korean_summit 社会カテゴリー皆さんの ご回答のほど、 お待ちしております。 https://www.google.co.jp/amp/s/www.bbc.com/japanese/amp/43579447 https://ja.wikipedia.org/wiki/南北首脳会談 https://en.wikipedia.org/wiki/Inter-Korean_summit

  • 時計が3分進みます

    パソコン(WinsowsXPProSP2)の時計が約3分進みます。 TClockというフリーソフトを利用しており、これで1時間ごとにNTPサーバー (ntp1.jst.mfeed.ad.jp)を見に行って時計を合わせる設定にしているのです が、毎回約3分進んでいます。 TClockのログはこんな感じで、毎回3分遅らせて正常に戻しています。 03/16 09:00:50 synchronized -03:13.850 (0000) 03/16 10:00:29 synchronized -03:22.398 (0000) 03/16 11:00:11 synchronized -03:19.026 (0000) 03/16 11:59:53 synchronized -03:17.796 (0016) 03/16 12:59:34 synchronized -03:17.889 (0000) 03/16 13:59:15 synchronized -03:21.913 (0000) 03/16 14:58:57 synchronized -03:17.658 (0016) ただ、1時間に3分進むわけではなく、TClockで同期後しばらくは合っていて ふと気がつくと3分進んでいます。また同期を取る設定を外して放っておいて もそれ以上(5分とか10分とか)進むということはありません。 どうも3分進んでいるNTPサーバーを勝手に見に行って同期を取っているよう な気がするのですが、Windowsの日付と時刻のプロパティやコントロールパネ ルなどを見てもそれらしい設定は見つけられません。 会社で私の周りで同じ現象のパソコンが何台かありますが、特にメーカーや機 種や入れているソフトなどでこれがおかしい、と特定できません。 時計が3分進むくらい仕事に支障はないのですが、気づいてしまうと気持ち悪 いので、原因や解決策わかる方いらっしゃいましたらお願いします。