Le service dnsmasq ne fonctionne plus suite à la migration YunoHost de 4.4.x vers 11.0.9.1

Le résultat des deux commande :

admin@lesinfos:~$ sudo systemctl restart dnsmasq
Job for dnsmasq.service failed because the control process exited with error code.
See "systemctl status dnsmasq.service" and "journalctl -xe" for details.
admin@lesinfos:~$ sudo systemctl status dnsmasq
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
     Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2022-08-13 18:54:15 CEST; 22s ago
    Process: 27392 ExecStartPre=/etc/init.d/dnsmasq checkconfig (code=exited, status=0/SUCCESS)
    Process: 27399 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=2)

août 13 18:54:15 lesinfos.top systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
août 13 18:54:15 lesinfos.top dnsmasq[27399]: dnsmasq: impossible de créer une socket d'écoute pour port 53 : Adresse déjà utilisée
août 13 18:54:15 lesinfos.top dnsmasq[27399]: impossible de créer une socket d'écoute pour port 53 : Adresse déjà utilisée
août 13 18:54:15 lesinfos.top dnsmasq[27399]: IMPOSSIBLE de démarrer
août 13 18:54:15 lesinfos.top systemd[1]: dnsmasq.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
août 13 18:54:15 lesinfos.top systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
août 13 18:54:15 lesinfos.top systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
admin@lesinfos:~$

zgrmbl then let’s identify exactly what process is causing the issue with sudo netstat -tulpn | grep 53

Voilà le résultat de la commande :

admin@lesinfos:~$ sudo netstat -tulpn | grep 53
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      1530/dovecot
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      22097/dnsmasq
tcp        0      0 0.0.0.0:4190            0.0.0.0:*               LISTEN      1530/dovecot
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      1530/dovecot
tcp6       0      0 :::143                  :::*                    LISTEN      1530/dovecot
tcp6       0      0 :::53                   :::*                    LISTEN      22097/dnsmasq
tcp6       0      0 :::4190                 :::*                    LISTEN      1530/dovecot
tcp6       0      0 :::993                  :::*                    LISTEN      1530/dovecot
udp        0      0 0.0.0.0:53              0.0.0.0:*                           22097/dnsmasq
udp6       0      0 :::53                   :::*                                22097/dnsmasq
admin@lesinfos:~$

Yeah let’s try to kill -9 22097 and see if we’re able to restart dnsmasq now …

J’ai fait les manips suivantes :

admin@lesinfos:~$ sudo kill -9 22097
admin@lesinfos:~$ sudo netstat -tulpn | grep 53
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN      1530/dovecot
tcp        0      0 0.0.0.0:4190            0.0.0.0:*               LISTEN      1530/dovecot
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN      1530/dovecot
tcp6       0      0 :::143                  :::*                    LISTEN      1530/dovecot
tcp6       0      0 :::4190                 :::*                    LISTEN      1530/dovecot
tcp6       0      0 :::993                  :::*                    LISTEN      1530/dovecot
admin@lesinfos:~$ sudo systemctl restart dnsmasq
admin@lesinfos:~$ sudo systemctl status dnsmasq
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
     Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2022-08-13 19:02:43 CEST; 18s ago
    Process: 27527 ExecStartPre=/etc/init.d/dnsmasq checkconfig (code=exited, status=0/SUCCESS)
    Process: 27534 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
    Process: 27544 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS)
   Main PID: 27543 (dnsmasq)
      Tasks: 1 (limit: 2299)
     Memory: 2.7M
     CGroup: /system.slice/dnsmasq.service
             └─27543 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,20326,8,2,e06d44b80b8f1d39a9>

août 13 19:02:43 lesinfos.top dnsmasq[27543]: utilise le serveur de nom 89.234.141.66#53
août 13 19:02:43 lesinfos.top dnsmasq[27543]: utilise le serveur de nom 2001:1608:10:25::1c04:b12f#53
août 13 19:02:43 lesinfos.top dnsmasq[27543]: utilise le serveur de nom 84.200.70.40#53
août 13 19:02:43 lesinfos.top dnsmasq[27543]: utilise le serveur de nom 2a01:3a0:53:53::#53
août 13 19:02:43 lesinfos.top dnsmasq[27543]: utilise le serveur de nom 2001:910:800::40#53
août 13 19:02:43 lesinfos.top dnsmasq[27543]: utilise le serveur de nom 84.200.69.80#53
août 13 19:02:43 lesinfos.top dnsmasq[27543]: utilise le serveur de nom 185.233.100.100#53
août 13 19:02:43 lesinfos.top dnsmasq[27543]: utilise le serveur de nom 2a00:5881:8100:1000::3#53
août 13 19:02:43 lesinfos.top dnsmasq[27543]: lecture /etc/hosts - 9 adresses
août 13 19:02:43 lesinfos.top systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
lines 1-22/22 (END)
**strong text**

Le Diagnostic est tout au vert maintenant :+1: :smiley:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.