Hotspot works but no Internet Connection

Hello everybody,
I have been running a Freedombox in recent years and have now decided to try a Yunohost server. I am impressed by your work and enjoy my server.

My YunoHost server

Hardware: Raspberry 4 b 8 GB
YunoHost version: 4.2.6.1 (stable)
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I have installed the YNH hotspot but I can’t get internet.
I see there is no address range available for DHCP request via eth0. How can i fix that?

Jul 27 15:03:20 dnsmasq-dhcp[20860]: no address range available for DHCP request via eth0
Jul 27 15:03:22 dnsmasq-dhcp[20860]: no address range available for DHCP request via eth0
Jul 27 15:03:22 dnsmasq-dhcp[20860]: no address range available for DHCP request via eth0
Jul 27 15:06:07 dnsmasq-dhcp[20860]: no address range available for DHCP request via eth0
Jul 27 15:06:08 dnsmasq-dhcp[20860]: no address range available for DHCP request via eth0
Jul 27 15:06:10 dnsmasq-dhcp[20860]: no address range available for DHCP request via eth0
Jul 27 15:06:11 dnsmasq-dhcp[20860]: no address range available for DHCP request via eth0
Jul 27 15:31:43 dnsmasq-dhcp[20860]: no address range available for DHCP request via eth0
Jul 27 15:31:45 dnsmasq-dhcp[20860]: no address range available for DHCP request via eth0
Jul 27 15:31:46 dnsmasq-dhcp[20860]: no address range available for DHCP request via eth0
Jul 27 15:50:46 dnsmasq-dhcp[20860]: DHCPDISCOVER(wlan0) 58:9e:c6:27:1c:f6
Jul 27 15:50:46 dnsmasq-dhcp[20860]: DHCPOFFER(wlan0) 10.0.242.72 58:9e:c6:27:1c:f6
Jul 27 15:50:46 dnsmasq-dhcp[20860]: DHCPREQUEST(wlan0) 10.0.242.72 58:9e:c6:27:1c:f6
Jul 27 15:50:46 dnsmasq-dhcp[20860]: DHCPACK(wlan0) 10.0.242.72 58:9e:c6:27:1c:f6
Jul 27 16:03:25 dnsmasq-dhcp[20860]: no address range available for DHCP request via eth0
Jul 27 16:03:25 dnsmasq-dhcp[20860]: no address range available for DHCP request via eth0
Jul 27 16:24:53 dnsmasq-dhcp[20860]: DHCPREQUEST(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56
Jul 27 16:24:53 dnsmasq-dhcp[20860]: DHCPACK(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56 debianlaptop
Jul 27 16:25:35 dnsmasq-dhcp[20860]: DHCPREQUEST(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56
Jul 27 16:25:35 dnsmasq-dhcp[20860]: DHCPACK(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56 debianlaptop
Jul 27 16:26:02 dnsmasq-dhcp[20860]: DHCPREQUEST(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56
Jul 27 16:26:02 dnsmasq-dhcp[20860]: DHCPACK(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56 debianlaptop
Jul 27 16:26:17 dnsmasq-dhcp[20860]: no address range available for DHCP request via eth0
Jul 27 16:28:30 systemd[1]: Stopping YunoHost Wifi Hotspot...
Jul 27 16:28:30 ynh-hotspot[26205]: Retrieving Yunohost settings... OK
Jul 27 16:28:30 ynh-hotspot[26205]: [hotspot] Stopping...
Jul 27 16:28:30 ynh-hotspot[26205]: Unset forwarding
Jul 27 16:28:30 ynh-hotspot[26205]: hotspot0: Unset IPv4 NAT address
Jul 27 16:28:30 ynh-hotspot[26205]: hotspot0: Stop the DHCPv4 server (dnsmasq)
Jul 27 16:28:30 dnsmasq[20860]: exiting on receipt of SIGTERM
Jul 27 16:28:30 ynh-hotspot[26205]: Stop hostapd
Jul 27 16:28:31 systemd[1]: ynh-hotspot.service: Succeeded.
Jul 27 16:28:31 systemd[1]: Stopped YunoHost Wifi Hotspot.
Jul 27 16:28:31 systemd[1]: Starting YunoHost Wifi Hotspot...
Jul 27 16:28:31 ynh-hotspot[26332]: Retrieving Yunohost settings... OK
Jul 27 16:28:31 ynh-hotspot[26332]: [hotspot] Starting...
Jul 27 16:28:31 ynh-hotspot[26332]: Traceback (most recent call last):
Jul 27 16:28:31 ynh-hotspot[26332]:   File "<stdin>", line 1, in <module>
Jul 27 16:28:31 ynh-hotspot[26332]: ImportError: No module named yaml
Jul 27 16:28:31 ynh-hotspot[26332]: Set forwarding
Jul 27 16:28:31 ynh-hotspot[26332]: Run hostapd
Jul 27 16:28:32 ynh-hotspot[26332]: hotspot0: Set IPv4 NAT address
Jul 27 16:28:33 ynh-hotspot[26332]: hotspot0: Start the DHCPv4 server (dnsmasq)
Jul 27 16:28:33 dnsmasq[26472]: started, version 2.80 DNS disabled
Jul 27 16:28:33 dnsmasq[26472]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify dumpfile
Jul 27 16:28:33 dnsmasq-dhcp[26472]: DHCP, IP range 10.0.242.2 -- 10.0.242.254, lease time 4h
Jul 27 16:28:33 ynh-hotspot[26332]: Traceback (most recent call last):
Jul 27 16:28:33 ynh-hotspot[26332]:   File "<stdin>", line 1, in <module>
Jul 27 16:28:33 ynh-hotspot[26332]: ImportError: No module named yaml```


--------------------------------------------------

Ugh that’s a residue of the python2->python3 migration

You can try to apt install python-yaml and restart the hotspot service, maybe that’d solve the issue

Hi Aleks,
Thank you for your quick reply. I installed the package you recommended but I still can’t connect to Wi-Fi. Before I reported my problem yesterday here in the forum I had changed the DNS Servers in: /etc/dnsmasq.dhcpd/dhcpdv4-ssid0.conf

Send DHCPv4 option.

dhcp-option=option:dns-server,1.1.1.1,8.8.8

and I forgot to make a copy of the file. Can this be a problem? Here is the last journalctl output:

-- Logs begin at Wed 2021-07-28 04:06:19 BST, end at Wed 2021-07-28 09:20:19 BST. --
Jul 28 09:11:07 ynh-hotspot[9523]: hotspot0: Stop the DHCPv4 server (dnsmasq)
Jul 28 09:11:07 dnsmasq[1227]: exiting on receipt of SIGTERM
Jul 28 09:11:07 ynh-hotspot[9523]: Stop hostapd
Jul 28 09:11:08 systemd[1]: ynh-hotspot.service: Succeeded.
Jul 28 09:11:08 systemd[1]: Stopped YunoHost Wifi Hotspot.
Jul 28 09:11:08 systemd[1]: Starting YunoHost Wifi Hotspot...
Jul 28 09:11:08 ynh-hotspot[9653]: Retrieving Yunohost settings... OK
Jul 28 09:11:08 ynh-hotspot[9653]: [hotspot] Starting...
Jul 28 09:11:08 ynh-hotspot[9653]: Set NAT
Jul 28 09:11:08 ynh-hotspot[9653]: Set forwarding
Jul 28 09:11:08 ynh-hotspot[9653]: Run hostapd
Jul 28 09:11:10 ynh-hotspot[9653]: hotspot0: Set IPv4 NAT address
Jul 28 09:11:10 ynh-hotspot[9653]: hotspot0: Start the DHCPv4 server (dnsmasq)
Jul 28 09:11:10 dnsmasq[9792]: started, version 2.80 DNS disabled
Jul 28 09:11:10 dnsmasq[9792]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify dumpfile
Jul 28 09:11:10 dnsmasq-dhcp[9792]: DHCP, IP range 10.0.242.2 -- 10.0.242.254, lease time 4h
Jul 28 09:11:10 systemd[1]: Started YunoHost Wifi Hotspot.
Jul 28 09:11:30 dnsmasq-dhcp[9792]: DHCPREQUEST(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56
Jul 28 09:11:30 dnsmasq-dhcp[9792]: DHCPACK(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56 debianlaptop
Jul 28 09:12:06 dnsmasq-dhcp[9792]: DHCPREQUEST(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56
Jul 28 09:12:06 dnsmasq-dhcp[9792]: DHCPACK(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56 debianlaptop
Jul 28 09:12:23 dnsmasq-dhcp[9792]: DHCPREQUEST(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56
Jul 28 09:12:23 dnsmasq-dhcp[9792]: DHCPACK(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56 debianlaptop
Jul 28 09:12:46 dnsmasq-dhcp[9792]: DHCPREQUEST(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56
Jul 28 09:12:46 dnsmasq-dhcp[9792]: DHCPACK(wlan0) 10.0.242.90 fc:f8:ae:ab:d5:56 debianlaptop
Jul 28 09:13:05 dnsmasq-dhcp[9792]: no address range available for DHCP request via eth0
Jul 28 09:13:05 dnsmasq-dhcp[9792]: no address range available for DHCP request via eth0
Jul 28 09:20:16 systemd[1]: Stopping YunoHost Wifi Hotspot...
Jul 28 09:20:16 ynh-hotspot[9892]: Retrieving Yunohost settings... OK
Jul 28 09:20:16 ynh-hotspot[9892]: [hotspot] Stopping...
Jul 28 09:20:16 ynh-hotspot[9892]: Unset NAT
Jul 28 09:20:16 ynh-hotspot[9892]: Unset forwarding
Jul 28 09:20:16 ynh-hotspot[9892]: hotspot0: Unset IPv4 NAT address
Jul 28 09:20:16 ynh-hotspot[9892]: hotspot0: Stop the DHCPv4 server (dnsmasq)
Jul 28 09:20:17 dnsmasq[9792]: exiting on receipt of SIGTERM
Jul 28 09:20:17 ynh-hotspot[9892]: Stop hostapd
Jul 28 09:20:17 systemd[1]: ynh-hotspot.service: Succeeded.
Jul 28 09:20:17 systemd[1]: Stopped YunoHost Wifi Hotspot.
Jul 28 09:20:17 systemd[1]: Starting YunoHost Wifi Hotspot...
Jul 28 09:20:17 ynh-hotspot[10007]: Retrieving Yunohost settings... OK
Jul 28 09:20:17 ynh-hotspot[10007]: [hotspot] Starting...
Jul 28 09:20:18 ynh-hotspot[10007]: Set NAT
Jul 28 09:20:18 ynh-hotspot[10007]: Set forwarding
Jul 28 09:20:18 ynh-hotspot[10007]: Run hostapd
Jul 28 09:20:19 ynh-hotspot[10007]: hotspot0: Set IPv4 NAT address
Jul 28 09:20:19 ynh-hotspot[10007]: hotspot0: Start the DHCPv4 server (dnsmasq)
Jul 28 09:20:19 dnsmasq[10147]: started, version 2.80 DNS disabled
Jul 28 09:20:19 dnsmasq[10147]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify dumpfile
Jul 28 09:20:19 dnsmasq-dhcp[10147]: DHCP, IP range 10.0.242.2 -- 10.0.242.254, lease time 4h
Jul 28 09:20:19 systemd[1]: Started YunoHost Wifi Hotspot.

Greetings from Sweden

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