I have a Pi4 that’s running the wifi-connect container.
I’ve recently changed my home network settings so I need to update the wifi details on the Pi.
I’ve set up the following Device Variables in the balena dashboard for the Pi: PORTAL_LISTENING_PORT, PORTAL_PASSPHRASE and PORTAL_SSID
Now when the Pi shows up as wifi connect on my phone, I enter the passphrase I set in the PORTAL_PASSPHRASE Device Variable in balena dashboard but it tells me authentication failed.
Hi @jangla, On the device summary page, at the top right there is a terminal which displays the logs, and a button at the top of that box which when you hover over should give you the option to download the logs as a txt file (see the screenshot), hopefully that helps!
In order to get wifi connect to actually fire up, you have to disconnect it from the internet so it turns into an access point. And at that point, nothing will be added to the online dashboard logs aside from this:
wifi-connect Checking internet connectivity ...
wifi-connect Your device is already connected to the internet.
wifi-connect Skipping setting up Wifi-Connect Access Point. Will check again in 120 seconds
wifi-connect Checking internet connectivity ...
wifi-connect Your device is already connected to the internet.
wifi-connect Skipping setting up Wifi-Connect Access Point. Will check again in 120 seconds
wifi-connect Checking internet connectivity ...
wifi-connect Your device is already connected to the internet.
wifi-connect Skipping setting up Wifi-Connect Access Point. Will check again in 120 seconds
I therefore think I need to get logs directly from the device. Which is where I have no idea what I’m doing
@jangla When a balena device is connected by ethernet, it will no longer use the wifi connection. One thing I’ve seen and experienced before is different characters in the WiFi SSID or password. For example, I have a wifi network in my home called Dan’s Google Network, notice the ’ is not the same as ' which makes it so I have to copy-paste that character in to get it to connect. Do you have any characters like that in your SSID?
The SSID is “WiFiConnect”. No unusual characters. Shows up on all WiFi devices when the wifi-connect service kicks in. Then when you ask a device to connect to it, it asks for the passphrase but won’t accept the one I’ve specified in Device Variables.
Oh I believe I may have misunderstood previously then! In terms of local access, if the device is in development mode you can use the balena ssh command to get access. From there you could look at NetworkManager logs to see if there is any weirdness: journalctl -u networkmanager. Since you are able to connect through ethernet I don’t assume there are issues with any other component like openvpn. Let me know how that goes and if you are able to access the device locally with the balena ssh command.