mattlongman / Hassio-Access-Point

Hass.io addon to let you create a WiFi access point, perfect for using WiFi devices on off-grid installations.
MIT License
81 stars 63 forks source link

run.sh: line 62: nmcli: command not found #31

Closed adosikas closed 2 years ago

adosikas commented 2 years ago

I am getting the following behavior after updating system packages (running on a Pi3B+, supervised install):

On container restart, AP works fine for a couple minutes, then devices are unable to keep connections with AP-STA-POSSIBLE-PSK-MISMATCH in log.

Manually running sudo nmcli dev set wlan0 managed no and restarting the container seems to work as workaround.

Log from startup:

Jun 18 15:31:27 raspberrypi 08057aaa60fe[522]: s6-rc: info: service s6rc-oneshot-runner: starting
Jun 18 15:31:27 raspberrypi 08057aaa60fe[522]: s6-rc: info: service s6rc-oneshot-runner successfully started
Jun 18 15:31:27 raspberrypi 08057aaa60fe[522]: s6-rc: info: service fix-attrs: starting
Jun 18 15:31:27 raspberrypi 08057aaa60fe[522]: s6-rc: info: service fix-attrs successfully started
Jun 18 15:31:27 raspberrypi 08057aaa60fe[522]: s6-rc: info: service legacy-cont-init: starting
Jun 18 15:31:27 raspberrypi 08057aaa60fe[522]: s6-rc: info: service legacy-cont-init successfully started
Jun 18 15:31:27 raspberrypi 08057aaa60fe[522]: s6-rc: info: service legacy-services: starting
Jun 18 15:31:27 raspberrypi 08057aaa60fe[522]: s6-rc: info: service legacy-services successfully started
Jun 18 15:31:33 raspberrypi 08057aaa60fe[522]: Starting Hass.io Access Point Addon
Jun 18 15:31:33 raspberrypi 08057aaa60fe[522]: /run.sh: line 62: nmcli: command not found
Jun 18 15:31:33 raspberrypi 08057aaa60fe[522]: /run.sh: line 186: nmcli: command not found
Jun 18 15:31:33 raspberrypi 08057aaa60fe[522]: Couldn't get DNS servers from host. Consider setting with 'client_dns_override' config option.
Jun 18 15:31:33 raspberrypi 08057aaa60fe[522]: rfkill: Cannot open RFKILL control device
Jun 18 15:31:34 raspberrypi 08057aaa60fe[522]: wlan0: interface state UNINITIALIZED->ENABLED
Jun 18 15:31:34 raspberrypi 08057aaa60fe[522]: wlan0: AP-ENABLED 
[...]
Jun 18 15:32:46 raspberrypi 08057aaa60fe[522]: wlan0: INTERFACE-DISABLED 
[...]
Jun 18 15:32:46 raspberrypi 08057aaa60fe[522]: wlan0: INTERFACE-ENABLED 
Jun 18 15:32:46 raspberrypi 08057aaa60fe[522]: nl80211: kernel reports: key not allowed
Jun 18 15:32:46 raspberrypi 08057aaa60fe[522]: Failed to set beacon parameters
mattlongman commented 2 years ago

Just saw this and found that nmcli now needs installing separately. Verified this issue by connecting to the running container and found that nmcli wasn't installed at all.

Pushed 0.4.3 which has an updated Dockerfile to install networkmanager-cli. Please try this and see if it fixes the issue.

adosikas commented 2 years ago

That fixed it, thanks