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

Upgrading to bridge mode fails #226

Open
jpokornyiii opened this issue Nov 26, 2022 · 4 comments
Open

Upgrading to bridge mode fails #226

jpokornyiii opened this issue Nov 26, 2022 · 4 comments

Comments

@jpokornyiii
Copy link

Occasionally, if I switch from AP to bridge mode via the web UI, the wpa_supplicant file fails to fully write my information and therefore I cannot start up in bridge mode. I checked wpa_supplicant_wpilibpi.conf and here is what was written:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

BELOW THIS LINE EDITED BY RPICONFIGSERVER

network={
ssid="My Network"
p

workaround is to manually update this file to look like this:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

BELOW THIS LINE EDITED BY RPICONFIGSERVER

network={
ssid="My Network"
psk-="MyPassword"
}

Note, this seems to happen randomly as if there is a race condition upon Save.

@PeterJohnson
Copy link
Member

Yeah, it looks like the file is only getting partially written. There's nothing in the code that could cause that, so my guess is this is some kind of filesystem corruption happening due to a hard power-off following the change. Right now we restart various services in place, but maybe a better approach is just to have it reboot following this kind of change?

@veysby
Copy link

veysby commented Jan 19, 2023

Constantly hitting this issue after upgrading to v2023.1.1

Steps to reproduce:

  1. Write new image to SSD and start Romi
  2. Connect to WPILibPi-<number> network and Navigate to wpilibpi.local / Network Settings
  3. Switch to writable mode and change Wifi Mode to Bridge
  4. Provide SSID and WPA2 Passphrase and hit Save

First thing that happens on UI - SSID and WPA2 Passphrase becomes empty. After restart (I've tried both - hardware and using System Status / Restart System) Romi becomes unavailable. The only way to bring it back is like was suggested in #226 (comment) is to manually edit wpa_supplicant_wpilibpi.conf (in my case this file always empty)

@seliger
Copy link

seliger commented Dec 27, 2023

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=US

BELOW THIS LINE EDITED BY RPICONFIGSERVER

network={ ssid="My Network" psk-="MyPassword" }

Having this same exact problem consistently.

@paulsp
Copy link

paulsp commented Aug 2, 2024

This issue also exists in v2023.2.1.

As noted above, a workaround is to add the following to /boot/wpa_supplicant_wpilibpi.conf. Notice the key for the password is psk not psk- as in earlier posts.

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US

network={
ssid="mySSID"
psk="myPassword"
}

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

5 participants