Wifi not connecting Pi Zero W

Hi Peter,

From the logs I see that NetworkManager does not indicate to find the connection profile file at all, which is very odd as it is listed there. Since you are using Windows to edit the file, maybe you can try setting the line endings of this file to Unix style - ‘\n’, not ‘\r\n’?

For debugging this type of issue it is best to have a USB to Ethernet adapter compatible with the RPi Zero W like this one: https://shop.pimoroni.com/products/three-port-usb-hub-with-ethernet-and-microb-connector. This way you may connect it to the Ethernet and provide support access to us to investigate it properly.

If you cannot get this file to be recognized by NetworkManager, do you have a way to get one of those so that we can take a closer look?

Thanks,
Zahari

Thx Zahari

Hi, did Zahari’s suggedstion work for you ?

not yet

Note that the initial setup was done in Linux, I just used Windows for the last troubleshooting step (I may be on one or the other OS at different times of the day).

I will not buy any more gear at this stage.

That said, I will reflash it again from scratch, in linux, then change the logging tag, and start over fresh.

" NetworkManager does not indicate to find the connection profile file at all" This is much more than what we knew 2 days ago - thx a lot whatsover :slight_smile:

Starting fresh.
First observation: the cli does not setup the persistentlogging as expected (and as reported :()

After first boot -> still 4 flashes.
Cannot find any logs / folder
Json contents reordered by the system - persistentLogging still “True”
image

  1. replaced “True” by true with no quotes.
  2. still not connected. output of sudo journalctl --directory /media/peter/resin-data/root-overlay/var/log/journal/ | grep Network > ~/balena.txt here

Hey there! Can you show me the NetworkManager profile? The logs show a warning which hints some profile is setting wifi.hidden=yes. If your profile is setting that, then this might indicate that NetworkManager is detecting the profile, but its working for some reason. Otherwise, maybe some other profile is getting in between?

Aug 20 20:00:21 7c2991b NetworkManager[1394]: <warn>  [1597917621.4156] device (wlan0): wifi-scan: active scanning for networks due to profiles with wifi.hidden=yes. This makes you trackable
[connection]
id=resin-wifi-01
type=wifi

[wifi]
hidden=true
mode=infrastructure
ssid=4pi

[ipv4]
method=auto

[ipv6]
addr-gen-mode=stable-privacy
method=auto

[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
psk=----hidden----

I’ll try now with this set at=no

Yeah, let’s try without it, and see if the warning log line I shared before disappears from the NetworkManager logs. If it does, then we know that NetworkManager is loading the profile, and that there is something else going on

Setting it up to false does not change a thing. As discussed earlier- it looks like it does not find the file or does not load it.

Is there a way you can get into the device and inspect the contents of the /etc/NetworkManager/system-connections/ directory? In particular, it’d be interesting to see if the profile you created ends up getting copied in there, and whether it is exactly the same file (i.e. you can calculate their respective checksums)

I can’t get in there whilst the pi is up - but I can get there “cold”.
Looks like it is copied there (edit : I wrote NO erroneously before)
the resin-wifi-01 under resin-state/root-overlay/etc/NetworkManager/system-connections$ is the same as the one under the boot partition.

what’s weird, is that the “sample” one in there exist both with a .ignore and without.
I’m gonna try to rename the sample on .ignore2

https://paste.ubuntu.com/p/brgFvZhWyD

Hi there,

I believe the wifi profile should be under the /etc/NetworkManager/system-connections/resin-wifi-1 file you can see in this snapshot…

A file has been uploaded using Jellyfish: https://jel.ly.fish/e1affd88-6e10-4900-af39-6c5cef974ea3

A file has been uploaded using Jellyfish: https://jel.ly.fish/e1affd88-6e10-4900-af39-6c5cef974ea3

Hi there,

I believe the file is preset as ./resin-boot/system-connections/resin-wifi-01. Can you check the contents of this file?

Lucy-Jane

Im having some issues with things disappearing and not posting on this thread so apologies if there are some double ups here

Jellyfish is asking for credentials :frowning: but I don; think I need anything there?
As said mulitple times already the contents of resin-boot/system-connections/resin-wifi-01 match my network indeed

Hi there – apologies for the Jellyfish links. This is for our internal support system, and you can ignore those links.

We’re still looking into this and trying to figure out what could be going on here. In the meantime:

  • It looks like the NetworkManager logs you posted to pastebin.pl have expired. Could we ask you to have a look at the journal files on your device and paste them again?

  • I wonder if it’s possible that you need to specify the country you’re in, in order for NetworkManager to configure WiFi correctly. Can you take a look at our documentation for this feature and see if it applies to you?

All the best,
Hugh