Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotspot did not start #32

Open
Ny-Mic opened this issue Aug 23, 2024 · 3 comments
Open

Hotspot did not start #32

Ny-Mic opened this issue Aug 23, 2024 · 3 comments

Comments

@Ny-Mic
Copy link

Ny-Mic commented Aug 23, 2024

Hello!
I tried to install Hassio Hotspot on

  • Core 2024.8.2
  • Supervisor 2024.08.0
  • Operating System 13.1

Following errors are display in the protocol:
Starting...
Set nmcli managed no
Warning: nmcli (1.46.2) and NetworkManager (1.44.2) versions don't match. Restarting NetworkManager is advised.
Network interface set to wlan0
Deleting iptables
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
Setup hostapd ...
Setup interface ...
Resseting interfaces
ifdown: interface wlan0 not configured
Setup udhcpd ...
Starting DHCP server...
udhcpd: started, v1.36.1
udhcpd: can't open '/var/lib/udhcpd/udhcpd.leases': No such file or directory
Starting HostAP daemon ...
Interface stats:
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.254
ether dc:a6:32:2d:2d:2d txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 23 bytes 3257 (3.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Failed to set beacon parameters
wlan0: Could not connect to kernel driver
Interface initialization failed
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
wlan0: Unable to setup interface.
wlan0: interface state DISABLED->DISABLED
wlan0: AP-DISABLED
wlan0: CTRL-EVENT-TERMINATING
hostapd_free_hapd_data: Interface wlan0 wasn't started
nl80211: deinit ifname=wlan0 disabled_11b_rates=0

what is wrong?
BG
Ny

@susesKaninchen
Copy link

Same Problem here

@joaofl
Copy link
Owner

joaofl commented Nov 15, 2024

I really want to assist here, but I could not yet find the time to do it... Hopefully soon...

If you would like to give some try, let me know, and maybe I can assist.

@mrichar1
Copy link

mrichar1 commented Jan 4, 2025

I've had what I think is the same issue, and it appears to be that HAOS starts with the wifi stack disabled by default - i.e. rfkill blocked. /sys/class/rfkill/rfkill0/soft is set to 1.

To unblock it permanently, you need to connect to the HA server 'root' console (i.e physical keyboard and screen, NOT through SSH & Terminal Addon which is 'inside' the HAOS container). then do the following:

ha> login
~> nmcli radio wifi
disabled
~> nmcli radio wifi on
enabled

(This updates the NetworkManager config which is passed into the HAOS container when it starts).

You should now be able to restart the server and restart hassio-hotspot and the wifi card should start correctly - i.e. something like:

Starting...
Set nmcli managed no
Warning: nmcli (1.50.1) and NetworkManager (1.44.2) versions don't match. Restarting NetworkManager is advised.
Network interface set to wlp0s20f0u3
Deleting iptables
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
iptables: Bad rule (does a matching rule exist in that chain?).
Setup hostapd ...
Setup interface ...
Resseting interfaces
ifdown: interface wlp0s20f0u3 not configured
Setup udhcpd ...
Starting DHCP server...
udhcpd: started, v1.37.0
Starting HostAP daemon ...
Interface stats:
wlp0s20f0u3: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.2.1  netmask 255.255.255.0  broadcast 192.168.2.254
        ether 90:de:80:41:a1:37  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
rfkill: Cannot open RFKILL control device
wlp0s20f0u3: interface state UNINITIALIZED->ENABLED
wlp0s20f0u3: AP-ENABLED 

If this works for others let us know here, and I can make a PR putting this into the README or similar for others hitting the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants