Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jun 2008 15:59:21 +0200
From:      "Johan Hendriks" <Johan@double-l.nl>
To:        "Nicolas Letellier" <nicolas@nicoelro.net>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: problem with dovecot and mysql at boot
Message-ID:  <57200BF94E69E54880C9BB1AF714BBCB5DDF07@w2003s01.double-l.local>
References:  <20080616123634.2c5be529.nicolas@nicoelro.net><485649B8.6040501@gmail.com> <20080616153501.266a809b.nicolas@nicoelro.net>

next in thread | previous in thread | raw e-mail | index | archive | help


>> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57200BF94E69E54880C9BB1AF714BBCB5DDF07>