sdm: Hotspot not working
When I first boot, the following error prints out three times: “[FAILED] Failed to start Access point and authentication server for Wi-Fi and Et”
I am trying to get the hotspot and WiFi to work at the same time. I previously accomplished this using this process: https://forums.raspberrypi.com/viewtopic.php?t=211542#p1355569 (https://github.com/idev1/rpihotspot). Some of the approach in sdm is similar, but I’m not sure exactly what’s missing. One difference is that sdm references eth0 instead of wlan0. I’m not sure if that means it will only work if I connect to a wired network connection.
Some more debugging data:
root@mmdwatrous:/etc/sdm# ./0piboot/040-hostapd-enable.sh
Synchronizing state of hostapd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable hostapd
Synchronizing state of dnsmasq.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable dnsmasq
This doesn’t bring up uap0
root@mmdwatrous:/etc/sdm# ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 28 bytes 3318 (3.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 28 bytes 3318 (3.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.68.131 netmask 255.255.255.0 broadcast 192.168.68.255
inet6 fe80::4246:82d6:7319:dc0b prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:ca:c3:8a txqueuelen 1000 (Ethernet)
RX packets 7909 bytes 1358009 (1.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 721 bytes 131783 (128.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@mmdwatrous:/etc/sdm# systemctl status hostapd
● hostapd.service - Access point and authentication server for Wi-Fi and Ethernet
Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2023-09-16 16:35:22 CDT; 2s ago
Docs: man:hostapd(8)
Process: 4197 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF} (code=exited, statu>
CPU: 45ms
root@mmdwatrous:/etc/sdm# 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 2023-09-16 15:29:12 CDT; 1h 6min ago
Main PID: 397 (dnsmasq)
Tasks: 1 (limit: 414)
CPU: 887ms
CGroup: /system.slice/dnsmasq.service
└─397 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -r /run/dnsmasq/resolv.conf -7 /etc/dnsmasq>
Sep 16 15:29:09 mmdwatrous dnsmasq[397]: read /etc/hosts - 5 addresses
Sep 16 15:29:11 mmdwatrous dnsmasq[397]: no servers found in /run/dnsmasq/resolv.conf, will retry
Sep 16 15:29:12 mmdwatrous systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
Sep 16 15:29:26 mmdwatrous dnsmasq[397]: reading /run/dnsmasq/resolv.conf
Sep 16 15:29:26 mmdwatrous dnsmasq[397]: using nameserver 75.75.75.75#53
Sep 16 15:29:26 mmdwatrous dnsmasq[397]: using nameserver 75.75.76.76#53
Sep 16 16:14:27 mmdwatrous dnsmasq[397]: no servers found in /run/dnsmasq/resolv.conf, will retry
Sep 16 16:14:34 mmdwatrous dnsmasq[397]: reading /run/dnsmasq/resolv.conf
Sep 16 16:14:34 mmdwatrous dnsmasq[397]: using nameserver 75.75.75.75#53
Sep 16 16:14:34 mmdwatrous dnsmasq[397]: using nameserver 75.75.76.76#53
I know you’re busy with the current release. When you get around to working on hotspot, I’m ready to test. If I make progress before then, I’ll report back on this issue.
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 29 (17 by maintainers)
I think there are much better ways to go at that now than there were 5 years ago when that post was written.
Once I get the release done I’ll convert the existing hotspot to a plugin, then have a look at adding an option for simultaneous hotspot and wifi client.