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

FluiddPi cannot connect to wifi #38

Open
LuigiBrito opened this issue Jun 12, 2022 · 5 comments
Open

FluiddPi cannot connect to wifi #38

LuigiBrito opened this issue Jun 12, 2022 · 5 comments
Labels
GH - Bug Something isn't working GH - Evaluation Needed

Comments

@LuigiBrito
Copy link

Used the raspberrypi imager and set the SSID and PW correctly.

I checked the wpa_supplicant files in /etc/wpasupplicant/ and in /boot/fluiddpi-wpa-supplicant.txt and both are showing the correct ssid and a hexadecimal pw

On boot, literally nothing happens. I'm waiting on my unifi to pickup even an attempt but nein. Nothing.

@LuigiBrito
Copy link
Author

if I connect to it manually and do a sudo wpa_supplicant -c <conf file> -i wlan 0 it works. But the device it self doesn't seem to do this on its own on reboot

@matmen matmen added GH - Bug Something isn't working GH - Evaluation Needed labels Jun 27, 2022
@TheFanatr
Copy link

Same problem for me, except I couldn't even get SSH.

@rodrigo2019
Copy link

same for me, I got this problem with the V1.17 image, I have another fluidd running with the V1.16.2 image and it's fine

@ressu
Copy link

ressu commented Oct 21, 2022

Assuming that this is the same case that we were troubleshooting recently then the issue should be a race condition with mounting boot volume. For some reason systemd finds a cyclic dependency somewhere and removes some local-fs dependencies and that messes up the order of how services come up. Not having the wpa configuration present means that dhcpcd never starts wpa supplicant.

So with that long explanation, the workaround is rather simple. Creating an override for dhcpcd systemd unit with the following contents forces the service to wait for boot.mount

[Unit]
After=boot.mount

Easiest way to create the override in the correct location is to use systemctl edit dhcpcd.service. The actual file location is /etc/systemd/system/dhcpcd.service.d/override.conf

That all being said, we were unable to find the cause for the circular dependency.

@Drkmttr82
Copy link

Assuming that this is the same case that we were troubleshooting recently then the issue should be a race condition with mounting boot volume. For some reason systemd finds a cyclic dependency somewhere and removes some local-fs dependencies and that messes up the order of how services come up. Not having the wpa configuration present means that dhcpcd never starts wpa supplicant.

So with that long explanation, the workaround is rather simple. Creating an override for dhcpcd systemd unit with the following contents forces the service to wait for boot.mount

[Unit]
After=boot.mount

Easiest way to create the override in the correct location is to use systemctl edit dhcpcd.service. The actual file location is /etc/systemd/system/dhcpcd.service.d/override.conf

That all being said, we were unable to find the cause for the circular dependency.

Is there a reason why I would be denied when trying to use this workaround? I've gotten to ssh into my pi and I can log in. But the web service doesn't start. Checked the supplicant file and all that is good. But when trying this command I get access denied. Not sure how I'm not the SU but it's frustrating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GH - Bug Something isn't working GH - Evaluation Needed
Projects
None yet
Development

No branches or pull requests

6 participants