From owner-freebsd-questions@FreeBSD.ORG Mon Jun 16 13:59:21 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E0591065670 for ; Mon, 16 Jun 2008 13:59:21 +0000 (UTC) (envelope-from Johan@double-l.nl) Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by mx1.freebsd.org (Postfix) with ESMTP id 19A158FC25 for ; Mon, 16 Jun 2008 13:59:20 +0000 (UTC) (envelope-from Johan@double-l.nl) Received: from w2003s01.double-l.local (dpm.xs4all.nl [80.126.205.144]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id m5GDxJI3074098; Mon, 16 Jun 2008 15:59:20 +0200 (CEST) (envelope-from Johan@double-l.nl) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 16 Jun 2008 15:59:21 +0200 Content-class: urn:content-classes:message Message-ID: <57200BF94E69E54880C9BB1AF714BBCB5DDF07@w2003s01.double-l.local> X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: problem with dovecot and mysql at boot Thread-Index: AcjPtj4ChhHyd5mUT5OHZL6Ku1QCtAAApR5g References: <20080616123634.2c5be529.nicolas@nicoelro.net><485649B8.6040501@gmail.com> <20080616153501.266a809b.nicolas@nicoelro.net> From: "Johan Hendriks" To: "Nicolas Letellier" X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: RE: problem with dovecot and mysql at boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2008 13:59:21 -0000 >> Nicolas Letellier wrote: >> > Hello. >> > >> > In my rc.conf, I have: >> > dovecot_enable=3D"YES" >> > mysql_enable=3D"YES" >> > >> > At boot, I have this error: >> > Jun 16 12:34:16 trinite dovecot: auth-worker(default): mysql: Connect failed to localhost (panel): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) - waiting for 1 seconds before retry >> > >> > I think it's because mysql is started after dovecot. How resolve this, and specify to launch dovecot after mysql is running? >> > >> > Best regards, >> > >> > =20 >>=20 >> Are you sure this is what's happening? I have mysql and dovecot, and=20 >> dovecot starts after mysql in my system. >> Try something like >>=20 >> rcorder /etc/rc.d/* /usr/local/etc/rc.d/* >>=20 >> or >>=20 >> dmesg -a |more >>=20 >> to see the startup order. Do you actually have to start it by hand after=20 >> boot, or does it really start on the retry? >Ok, the problem is due to my my.cnf. However, I cannot explain which value >of this file causes this problem. I deleted it, and after reboot, the >probleme has disapeared. I re-cp it, and reboot, and the problem was not >here. I think sometimes, and with my.cnf options, mysql is too slow to be >launched, and then, dovecot and others applications could have a problem. >So, I cannot explain this problem. On the other hand, it was not -big- >problem, just a warning. Does you're my.cnf file contains an entry that needs to be resolved by dns and if so can it be resolved! Maybe named is not started before mysql. Try setting that entry in /etc/hosts. Regards, Johan