wifi-connect icon indicating copy to clipboard operation
wifi-connect copied to clipboard

Update the Dockerfile so that it will use a newer version, `4.11.1`.

Open nicomiguelino opened this issue 1 year ago • 1 comments

Overview

I tried deploying wifi-connect on my own Balena fleet (Raspberry Pi 3), but got the following errors when I'm using the files (Dockerfile, docker-compose.yml, and scripts/start.sh) out of the box.

15.03.23 13:49:50 (-0700)  wifi-connect  Starting WiFi Connect
15.03.23 13:49:50 (-0700)  wifi-connect  [network_manager::device:WARN] Undefined device type: 30
15.03.23 13:49:50 (-0700)  wifi-connect  Starting WiFi Connect
15.03.23 13:49:50 (-0700)  wifi-connect  [network_manager::device:WARN] Undefined device type: 30
15.03.23 13:49:50 (-0700)  wifi-connect  WiFi device: wlan0
15.03.23 13:49:50 (-0700)  wifi-connect  [network_manager::dbus_api:ERROR] Get org.freedesktop.NetworkManager.AccessPoint::RsnFlags property failed on /org/freedesktop/NetworkManager/AccessPoint/6: wrong property type
15.03.23 13:49:50 (-0700)  wifi-connect  Error: Getting access points failed
15.03.23 13:49:50 (-0700)  wifi-connect    caused by: D-Bus failure: Get org.freedesktop.NetworkManager.AccessPoint::RsnFlags property failed on /org/freedesktop/NetworkManager/AccessPoint/6: wrong property type

The version currently pinned in Dockerfile.template is 4.4.0.

After bumping the version to 4.11.1, it seems that wifi-connect is working fine now (at least on my Pi 3 Model B+). Here's a sample console output. Some info was removed/redacted for security reasons.

15.03.23 15:32:25 (-0700)  wifi-connect  Starting WiFi Connect
15.03.23 15:32:25 (-0700)  wifi-connect  Starting WiFi Connect
15.03.23 15:32:25 (-0700)  wifi-connect  WiFi device: wlan0
15.03.23 15:32:26 (-0700)  wifi-connect  Access points: [redacted]
15.03.23 15:32:26 (-0700)  wifi-connect  Starting access point...
15.03.23 15:32:27 (-0700)  wifi-connect  Access point 'WiFi Connect' created
15.03.23 15:32:27 (-0700)  wifi-connect  Starting HTTP server on 192.168.42.1:80
15.03.23 15:51:40 (-0700)  wifi-connect  request error = Header
15.03.23 15:51:43 (-0700)  wifi-connect  User connected to the captive portal
15.03.23 15:52:04 (-0700)  wifi-connect  request error = Header
15.03.23 15:52:05 (-0700)  wifi-connect  User connected to the captive portal
15.03.23 15:52:33 (-0700)  wifi-connect  Stopping access point 'WiFi Connect'...
15.03.23 15:52:35 (-0700)  wifi-connect  Access point 'WiFi Connect' stopped
15.03.23 15:52:38 (-0700)  wifi-connect  Access points: [redacted]
15.03.23 15:52:38 (-0700)  wifi-connect  Connecting to access point '[redacted]'...
15.03.23 15:52:46 (-0700)  wifi-connect  Internet connectivity established

nicomiguelino avatar Mar 15 '23 23:03 nicomiguelino

Note also this will impact the success of the above diff: #498

meawoppl avatar Aug 10 '23 23:08 meawoppl