Dnsmasq: impossible de lier la socket serveur DHCP : Adresse déjà utilisée

Matériel: Raspberry Pi à la maison
Version de YunoHost: 4.0.8
J’ai accès à mon serveur : En SSH | Par la webadmin

Description du problème

Bonjour, j’ai une erreur au démarrage du service ynh-hotspot

        journalctl
        -- Logs begin at Fri 2020-10-09 18:04:14 CEST, end at Fri 2020-10-09 21:14:22 CEST. --
oct. 09 18:04:43 ynh-hotspot[704]: Set forwarding
oct. 09 18:04:43 ynh-hotspot[704]: Run hostapd
oct. 09 18:04:45 ynh-hotspot[704]: hotspot0: Set IPv4 NAT address
oct. 09 18:04:45 ynh-hotspot[704]: hotspot0: Start the DHCPv4 server (dnsmasq)
oct. 09 18:04:45 ynh-hotspot[704]: dnsmasq: impossible de lier la socket serveur DHCP : Adresse déjà utilisée
oct. 09 18:04:45 dnsmasq[1534]: impossible de lier la socket serveur DHCP : Adresse déjà utilisée
oct. 09 18:04:45 dnsmasq[1534]: IMPOSSIBLE de démarrer
oct. 09 18:04:45 systemd[1]: Started YunoHost Wifi Hotspot..
-- Subject: L'unité (unit) ynh-hotspot.service a terminé son démarrage
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- L'unité (unit) ynh-hotspot.service a terminé son démarrage, avec le résultat done.
oct. 09 19:11:22 systemd[1]: Stopping YunoHost Wifi Hotspot....
-- Subject: L'unité (unit) ynh-hotspot.service a commencé à s'arrêter
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- L'unité (unit) ynh-hotspot.service a commencé à s'arrêter.
oct. 09 19:11:22 ynh-hotspot[21774]: Retrieving Yunohost settings... OK
oct. 09 19:11:22 ynh-hotspot[21774]: [hotspot] Stopping...
oct. 09 19:11:22 ynh-hotspot[21774]: Unset NAT
oct. 09 19:11:22 ynh-hotspot[21774]: Unset forwarding
oct. 09 19:11:22 ynh-hotspot[21774]: hotspot0: Unset IPv4 NAT address
oct. 09 19:11:23 ynh-hotspot[21774]: Stop hostapd
oct. 09 19:11:23 systemd[1]: ynh-hotspot.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The unit ynh-hotspot.service has successfully entered the 'dead' state.
oct. 09 19:11:23 systemd[1]: Stopped YunoHost Wifi Hotspot..
-- Subject: L'unité (unit) ynh-hotspot.service a terminé son arrêt
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- L'unité (unit) ynh-hotspot.service a terminé son arrêt.
oct. 09 19:11:23 systemd[1]: Starting YunoHost Wifi Hotspot....
-- Subject: L'unité (unit) ynh-hotspot.service a commencé à démarrer
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- L'unité (unit) ynh-hotspot.service a commencé à démarrer.
oct. 09 19:11:23 ynh-hotspot[21902]: Retrieving Yunohost settings... OK
oct. 09 19:11:23 ynh-hotspot[21902]: [hotspot] Starting...
oct. 09 19:11:24 ynh-hotspot[21902]: Set NAT
oct. 09 19:11:24 ynh-hotspot[21902]: Set forwarding
oct. 09 19:11:24 ynh-hotspot[21902]: Run hostapd
oct. 09 19:11:25 ynh-hotspot[21902]: hotspot0: Set IPv4 NAT address
oct. 09 19:11:25 ynh-hotspot[21902]: hotspot0: Start the DHCPv4 server (dnsmasq)
oct. 09 19:11:25 ynh-hotspot[21902]: dnsmasq: impossible de lier la socket serveur DHCP : Adresse déjà utilisée
oct. 09 19:11:25 dnsmasq[22034]: impossible de lier la socket serveur DHCP : Adresse déjà utilisée
oct. 09 19:11:25 dnsmasq[22034]: IMPOSSIBLE de démarrer
oct. 09 19:11:25 systemd[1]: Started YunoHost Wifi Hotspot..
-- Subject: L'unité (unit) ynh-hotspot.service a terminé son démarrage
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- L'unité (unit) ynh-hotspot.service a terminé son démarrage, avec le résultat done.
oct. 09 21:14:06 systemd[1]: Stopping YunoHost Wifi Hotspot....
-- Subject: L'unité (unit) ynh-hotspot.service a commencé à s'arrêter
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- L'unité (unit) ynh-hotspot.service a commencé à s'arrêter.
oct. 09 21:14:07 ynh-hotspot[30662]: Retrieving Yunohost settings... OK
oct. 09 21:14:07 ynh-hotspot[30662]: [hotspot] Stopping...
oct. 09 21:14:07 ynh-hotspot[30662]: Unset NAT
oct. 09 21:14:07 ynh-hotspot[30662]: Unset forwarding
oct. 09 21:14:07 ynh-hotspot[30662]: hotspot0: Unset IPv4 NAT address
oct. 09 21:14:07 ynh-hotspot[30662]: Stop hostapd
oct. 09 21:14:07 systemd[1]: ynh-hotspot.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The unit ynh-hotspot.service has successfully entered the 'dead' state.
oct. 09 21:14:07 systemd[1]: Stopped YunoHost Wifi Hotspot..
-- Subject: L'unité (unit) ynh-hotspot.service a terminé son arrêt
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- L'unité (unit) ynh-hotspot.service a terminé son arrêt.
oct. 09 21:14:07 systemd[1]: Starting YunoHost Wifi Hotspot....
-- Subject: L'unité (unit) ynh-hotspot.service a commencé à démarrer
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- L'unité (unit) ynh-hotspot.service a commencé à démarrer.
oct. 09 21:14:08 ynh-hotspot[30784]: Retrieving Yunohost settings... OK
oct. 09 21:14:08 ynh-hotspot[30784]: [hotspot] Starting...
oct. 09 21:14:08 ynh-hotspot[30784]: Set NAT
oct. 09 21:14:08 ynh-hotspot[30784]: Set forwarding
oct. 09 21:14:08 ynh-hotspot[30784]: Run hostapd
oct. 09 21:14:09 ynh-hotspot[30784]: hotspot0: Set IPv4 NAT address
oct. 09 21:14:09 ynh-hotspot[30784]: hotspot0: Start the DHCPv4 server (dnsmasq)
oct. 09 21:14:09 ynh-hotspot[30784]: dnsmasq: impossible de lier la socket serveur DHCP : Adresse déjà utilisée
oct. 09 21:14:09 dnsmasq[30917]: impossible de lier la socket serveur DHCP : Adresse déjà utilisée
oct. 09 21:14:09 dnsmasq[30917]: IMPOSSIBLE de démarrer
oct. 09 21:14:10 systemd[1]: Started YunoHost Wifi Hotspot..
-- Subject: L'unité (unit) ynh-hotspot.service a terminé son démarrage
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- L'unité (unit) ynh-hotspot.service a terminé son démarrage, avec le résultat done.

J'ai regardé sur quoi écoutait dnsmasq:    
admin@pilapo:~ $ sudo netstat -pauwnt | grep dnsm
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      23475/dnsmasq
tcp6       0      0 :::53                   :::*                    LISTEN      23475/dnsmasq
udp        0      0 0.0.0.0:53              0.0.0.0:*                           23475/dnsmasq
udp        0      0 0.0.0.0:67              0.0.0.0:*                           23475/dnsmasq
udp6       0      0 :::53                   :::*                                23475/dnsmasq

J'ai regardé dnsmasq status:
admin@pilapo:~ $ sudo service dnsmasq status
● 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 Fri 2020-10-09 19:26:29 CEST; 2h 9min ago
 Main PID: 23475 (dnsmasq)
    Tasks: 1 (limit: 3862)
   CGroup: /system.slice/dnsmasq.service
           └─23475 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service -

Oct 09 19:26:28 pilapo.fr dnsmasq[23475]: utilise le serveur de nom 2a00:5881:8100:1000::3#53
Oct 09 19:26:28 pilapo.fr dnsmasq[23475]: utilise le serveur de nom 84.200.69.80#53
Oct 09 19:26:28 pilapo.fr dnsmasq[23475]: utilise le serveur de nom 2001:913::8#53
Oct 09 19:26:28 pilapo.fr dnsmasq[23475]: utilise le serveur de nom 2a0c:e300::100#53
Oct 09 19:26:28 pilapo.fr dnsmasq[23475]: utilise le serveur de nom 89.234.141.66#53
Oct 09 19:26:28 pilapo.fr dnsmasq[23475]: utilise le serveur de nom 2001:910:800::12#53
Oct 09 19:26:28 pilapo.fr dnsmasq[23475]: utilise le serveur de nom 2a0c:e300::101#53
Oct 09 19:26:28 pilapo.fr dnsmasq[23475]: lecture /etc/hosts - 6 adresses
Oct 09 19:26:29 pilapo.fr dnsmasq[23476]: /etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /etc/resolvconf/r
Oct 09 19:26:29 pilapo.fr systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.


Alors je vois bien qu'il y a un conflit d' @ip déjà utilisée, mais je suis sec.

Pouvez-vous me guider svp?

Merci

Bonjour @bachouchage

Je n’ai jamais utilisé ynh-hotspot donc je ne suis pas sûr de pouvoir t’aider.

En revanche si tu va sur la page du projet https://github.com/labriqueinternet/hotspot_ynh et que tu regarde ou ajoute un ticket sur https://github.com/labriqueinternet/hotspot_ynh/issues

Autre piste : peut-être que cette application ne marche que sur stretch (précédente version de debian) alors que là tu es sous buster ? Si tu es à l’aise techniquement tu peux essayer la branche “testing” du projet voir si ce problème est corrigé .

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