Re: Erreur MySQL
Salut la liste !
> Plutôt que d'un port TCP, il peut s'agir d'un code erreur :
> https://mariadb.com/kb/en/operating-system-error-codes/
>
> 110 ETIMEDOUT Connection timed out
C'est loin d'être improbable !
>
> tail /var/log/mail.err :
> "Error: mysql(127.0.0.1): Connect failed to database (virtual_email):
> Can't connect to MySQL server on '127.0.0.1' (110)".
>
> netstat -petulan|grep mysqld :
> tcp6 0 0 :::3306 :::* LISTEN 111 6946153 15550/mysqld
>
> Le port de mysql est 3306.
> (110) c'est autre chose.
Comme il semblait que le mail retentissait sur MySQL, j'ai pensé que
ça pouvait être le port.
Moi, je n'ai pas de *.lock dans /run/mysqld :
root@box:~# ls -al /run/mysqld
total 4
drwxr-xr-x 2 mysql root 80 sept. 16 2020 .
drwxr-xr-x 23 root root 760 mars 27 18:29 ..
-rw-rw---- 1 mysql mysql 4 sept. 16 2020 mysqld.pid
srwxrwxrwx 1 mysql mysql 0 sept. 16 2020 mysqld.sock
Mais j'en ai dans le service de courrier entrant :
root@box:~# ps -ax | grep 110
721 ? Ssl 30:45 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 110:114
7271 ? S 0:01 /usr/sbin/courierlogger -pid=/run/courier/pop3d.pid -start -name=pop3d /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -nodnslookup -noidentlookup 110 /usr/lib/courier/courier/courierpop3login /usr/lib/courier/courier/courierpop3d Maildir
7272 ? S 0:02 /usr/sbin/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -nodnslookup -noidentlookup 110 /usr/lib/courier/courier/courierpop3login /usr/lib/courier/courier/courierpop3d Maildir
20775 pts/0 S+ 0:00 grep 110
root@box:~# ls -al /run/courier
total 16
drwxrwxr-x 3 root courier 220 sept. 17 2020 .
drwxr-xr-x 23 root root 760 mars 27 18:29 ..
drwxr-xr-x 2 courier courier 100 sept. 16 2020 authdaemon
-rw-r--r-- 1 root root 5 sept. 16 2020 imapd.pid
-rw------- 1 root root 0 sept. 16 2020 imapd.pid.lock
-rw-r--r-- 1 root root 6 sept. 17 2020 imapd-ssl.pid
-rw------- 1 root root 0 sept. 17 2020 imapd-ssl.pid.lock
-rw-r--r-- 1 root root 5 sept. 16 2020 pop3d.pid
-rw------- 1 root root 0 sept. 16 2020 pop3d.pid.lock
-rw-r--r-- 1 root root 6 sept. 17 2020 pop3d-ssl.pid
-rw------- 1 root root 0 sept. 17 2020 pop3d-ssl.pid.lock
Le *.sock, c'est le fichier du socket, mais j'ignore à quoi se rapporte le *.lock
Bon, ben voilà. Maintenant, je done ma langue au chat aussi…
Dans le respect des gestes barrière !
Ph. Gras
Reply to: