Pi Cnc.js

Anyone else having issues with wifi…
I can get hardwired working just fine. But when I try wifi, I get nothing.

WPA/WPA2 secured

network={
ssid=“
psk="
**********"

uncomment the US at the bottom.
Nothing connects.

thoughts?
thanks

Can you upload the config file so I can see exactly what is in there? Also, what version of pi is it?

network={
  ssid="PNope"
  psk="whatever"
}

## Open/unsecured
#network={
#  ssid="put SSID here"
#  key_mgmt=NONE
#}

## WEP "secured"
##
## WEP can be cracked within minutes. If your network is still relying on this
## encryption scheme you should seriously consider to update your network ASAP.
#network={
#  ssid="put SSID here"
#  key_mgmt=NONE
#  wep_key0="put password here"
#  wep_tx_keyidx=0
#}

# Uncomment the country your Pi is in to activate Wifi in RaspberryPi 3 B+ and above
# For full list see: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
country=GB # United Kingdom
#country=CA # Canada
#country=DE # Germany
#country=FR # France
country=US # United States

### You should not have to change the lines below #####################

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
1 Like

and its a raspberry pi 4

These forums are wrecking it. There is a button for “preformatted text (Ctrl + Shift + C)”

You can also put three backticks in front and after the preformatted text, or upload the whole file as an attachment.

thanks, backticks worked

That looks good, except you have the country code set twice. It may be throwing out the whole config file because of that. Put a # in front of the GB entry.

If that doesn’t work, and you can ssh in using a wired interface, you might try using raspi-config. Here is a reference that looks like it’s up to date:

https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md

But the summary is that raspi-config has limited abilities to set up wifi. But otherwise, it’s asking you to use the file method.

I have been looking, but I can’t find a command that will tell you why it isn’t working. It would be nice if there was a utility you could run from the wired ssh connection that would tell you “PNope not found” or “Can’t read config file. Too many countries” or whatever.

Yeah that GB thing didnt fix it… So strange. I ended up turning off advanced IOT protection etc from my mesh wifi, which has caused some issues in past devices. but that didnt work either.
silly

Hmm, I thought I’d see something related to the wifi connecting in the logs (/var/log), but I’m not finding it. I’m pretty sure you’d see something scroll past on boot, if you could hook up a monitor. Most new-ish tv’s have hdmi. I do that occasionally when having issues getting a new pi set up.

Edit. You might look for “wlan0” or similar in /var/log/syslog…

Problem is pi 4 needs hdmi micro dongle :frowning: of course its my first 4, so I didnt buy it… so i have no visuals at the moment… pain in the butt

I didn’t realize that a dongle was required on the 4. Unsurprisingly, I wasn’t finding anything in the logs at first, because the first pi I logged onto to check has a wired ethernet connection. DOH! 8^)

Unless something has changed in the pi4, a

cat /var/log/syslog | grep wlan0

should turn something up…

1 Like

Yea, the 4 can drive two displays at the same time, so they went with micro hdmi.

I re imaged again last night, updatedthe file and wifi still wouldnt work… No idea why.
Went with a power line adapter and physical nic in the mean time.

Did you select country of origin ?

yes, absolutely… strange thing is @jeffeb3 when I re-imaged the GB was not commented out again, so the img was compiled that way… Perhaps on purpose, perhaps not…
but yes, i changed it… still no go

1 Like

The Raspberry Pi foundation is UK based, defaulting to GB for country code is probably intentional.

1 Like

Did you try the command Pete suggested? Looking in the log for wlan?

pi@v1pi:~ $ cat /var/log/syslog | grep wlan0
Sep 26 01:24:31 v1pi dhcpcd[278]: wlan0: starting wpa_supplicant
Sep 26 01:24:31 v1pi dhcpcd-run-hooks[384]: wlan0: starting wpa_supplicant
Sep 26 01:24:31 v1pi kernel: [   11.387802] IPv6: ADDRCONF(NETDEV_UP): wlan0: li          nk is not ready
Sep 26 01:24:32 v1pi dhcpcd[278]: wlan0: waiting for carrier
Sep 26 01:24:32 v1pi dhcpcd[278]: wlan0: carrier acquired
Sep 26 01:24:32 v1pi dhcpcd[278]: wlan0: IAID 32:2a:4f:be
Sep 26 01:24:32 v1pi dhcpcd[278]: wlan0: adding address fe80::31bb:db06:1724:a47          c
Sep 26 01:24:32 v1pi avahi-daemon[264]: Joining mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::31bb:db06:1724:a47c.
Sep 26 01:24:32 v1pi avahi-daemon[264]: New relevant interface wlan0.IPv6 for mD          NS.
Sep 26 01:24:32 v1pi avahi-daemon[264]: Registering new address record for fe80:          :31bb:db06:1724:a47c on wlan0.*.
Sep 26 01:24:32 v1pi dhcpcd[278]: wlan0: probing address 10.3.141.1/24
Sep 26 01:24:32 v1pi dhcpcd[278]: wlan0: carrier lost
Sep 26 01:24:32 v1pi dhcpcd[278]: wlan0: deleting address fe80::31bb:db06:1724:a          47c
Sep 26 01:24:32 v1pi avahi-daemon[264]: Withdrawing address record for fe80::31b          b:db06:1724:a47c on wlan0.
Sep 26 01:24:32 v1pi avahi-daemon[264]: Leaving mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::31bb:db06:1724:a47c.
Sep 26 01:24:32 v1pi avahi-daemon[264]: Interface wlan0.IPv6 no longer relevant           for mDNS.
Sep 26 01:24:38 v1pi dhcpcd[278]: wlan0: carrier acquired
Sep 26 01:24:38 v1pi kernel: [   17.911765] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0          : link becomes ready
Sep 26 01:24:38 v1pi dhcpcd[278]: wlan0: IAID 32:2a:4f:be
Sep 26 01:24:38 v1pi dhcpcd[278]: wlan0: adding address fe80::7023:a6a1:955:7f49
Sep 26 01:24:38 v1pi avahi-daemon[264]: Joining mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::7023:a6a1:955:7f49.
Sep 26 01:24:38 v1pi avahi-daemon[264]: New relevant interface wlan0.IPv6 for mD          NS.
Sep 26 01:24:38 v1pi avahi-daemon[264]: Registering new address record for fe80:          :7023:a6a1:955:7f49 on wlan0.*.
Sep 26 01:24:38 v1pi dhcpcd[278]: wlan0: probing address 10.3.141.1/24
Sep 26 01:24:39 v1pi dhcpcd[278]: wlan0: soliciting an IPv6 router
Sep 26 01:24:42 v1pi dhcpcd[278]: wlan0: using static address 10.3.141.1/24
Sep 26 01:24:42 v1pi avahi-daemon[264]: Joining mDNS multicast group on interfac          e wlan0.IPv4 with address 10.3.141.1.
Sep 26 01:24:42 v1pi avahi-daemon[264]: New relevant interface wlan0.IPv4 for mD          NS.
Sep 26 01:24:42 v1pi dhcpcd[278]: wlan0: adding route to 10.3.141.0/24
Sep 26 01:24:42 v1pi avahi-daemon[264]: Registering new address record for 10.3.          141.1 on wlan0.IPv4.
Sep 26 01:24:42 v1pi dhcpcd[278]: wlan0: adding default route via 10.3.141.1
Sep 26 01:24:44 v1pi dhcpcd[817]: wlan0: carrier lost
Sep 26 01:24:44 v1pi dhcpcd[817]: wlan0: deleting address fe80::7023:a6a1:955:7f          49
Sep 26 01:24:44 v1pi avahi-daemon[264]: Withdrawing address record for fe80::702          3:a6a1:955:7f49 on wlan0.
Sep 26 01:24:44 v1pi avahi-daemon[264]: Leaving mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::7023:a6a1:955:7f49.
Sep 26 01:24:44 v1pi avahi-daemon[264]: Interface wlan0.IPv6 no longer relevant           for mDNS.
Sep 26 01:24:44 v1pi avahi-daemon[264]: Withdrawing address record for 10.3.141.          1 on wlan0.
Sep 26 01:24:44 v1pi avahi-daemon[264]: Leaving mDNS multicast group on interfac          e wlan0.IPv4 with address 10.3.141.1.
Sep 26 01:24:44 v1pi avahi-daemon[264]: Interface wlan0.IPv4 no longer relevant           for mDNS.
Sep 26 01:24:44 v1pi dhcpcd[817]: wlan0: deleting route to 10.3.141.0/24
Sep 26 01:24:44 v1pi dhcpcd[817]: wlan0: deleting default route via 10.3.141.1
Sep 26 01:24:44 v1pi hostapd[822]: wlan0: Could not connect to kernel driver
Sep 26 01:24:44 v1pi hostapd[822]: Using interface wlan0 with hwaddr dc:a6:32:2a          :4f:be and ssid "v1pi"
Sep 26 01:24:44 v1pi vnstatd[825]: "wlan0" added with 1000 Mbit bandwidth limit.
Sep 26 01:24:44 v1pi vnstatd[825]: Info: Monitoring: eth0 (10 Mbit) wlan0 (1000           Mbit)
Sep 26 01:24:44 v1pi hostapd[822]: wlan0: interface state UNINITIALIZED->ENABLED
Sep 26 01:24:44 v1pi hostapd[822]: wlan0: AP-ENABLED
Sep 26 01:24:44 v1pi dhcpcd[817]: wlan0: carrier acquired
Sep 26 01:24:44 v1pi dhcpcd[817]: wlan0: IAID 32:2a:4f:be
Sep 26 01:24:44 v1pi dhcpcd[817]: wlan0: adding address fe80::7023:a6a1:955:7f49
Sep 26 01:24:44 v1pi avahi-daemon[264]: Joining mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::7023:a6a1:955:7f49.
Sep 26 01:24:44 v1pi avahi-daemon[264]: New relevant interface wlan0.IPv6 for mD          NS.
Sep 26 01:24:44 v1pi avahi-daemon[264]: Registering new address record for fe80:          :7023:a6a1:955:7f49 on wlan0.*.
Sep 26 01:24:44 v1pi dhcpcd[817]: wlan0: probing address 10.3.141.1/24
Sep 26 01:24:45 v1pi dhcpcd[817]: wlan0: soliciting an IPv6 router
Sep 26 01:24:49 v1pi dhcpcd[817]: wlan0: using static address 10.3.141.1/24
Sep 26 01:24:49 v1pi avahi-daemon[264]: Joining mDNS multicast group on interfac          e wlan0.IPv4 with address 10.3.141.1.
Sep 26 01:24:49 v1pi dhcpcd[817]: wlan0: adding route to 10.3.141.0/24
Sep 26 01:24:49 v1pi dhcpcd[817]: wlan0: adding default route via 10.3.141.1
Sep 26 01:24:49 v1pi avahi-daemon[264]: New relevant interface wlan0.IPv4 for mD          NS.
Sep 26 01:24:49 v1pi avahi-daemon[264]: Registering new address record for 10.3.          141.1 on wlan0.IPv4.
Sep 26 01:24:54 v1pi dhcpcd[817]: wlan0: carrier lost
Sep 26 01:24:54 v1pi dhcpcd[817]: wlan0: deleting address fe80::7023:a6a1:955:7f          49
Sep 26 01:24:54 v1pi avahi-daemon[264]: Withdrawing address record for fe80::702          3:a6a1:955:7f49 on wlan0.
Sep 26 01:24:54 v1pi avahi-daemon[264]: Leaving mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::7023:a6a1:955:7f49.
Sep 26 01:24:54 v1pi avahi-daemon[264]: Interface wlan0.IPv6 no longer relevant           for mDNS.
Sep 26 01:24:54 v1pi avahi-daemon[264]: Withdrawing address record for 10.3.141.          1 on wlan0.
Sep 26 01:24:54 v1pi avahi-daemon[264]: Leaving mDNS multicast group on interfac          e wlan0.IPv4 with address 10.3.141.1.
Sep 26 01:24:54 v1pi avahi-daemon[264]: Interface wlan0.IPv4 no longer relevant           for mDNS.
Sep 26 01:24:54 v1pi dhcpcd[817]: wlan0: deleting route to 10.3.141.0/24
Sep 26 01:24:54 v1pi dhcpcd[817]: wlan0: deleting default route via 10.3.141.1
Sep 26 01:24:54 v1pi dhcpcd[817]: wlan0: removing interface
Sep 26 01:24:55 v1pi hostapd[1144]: wlan0: Could not connect to kernel driver
Sep 26 01:24:55 v1pi kernel: [   35.129820] IPv6: ADDRCONF(NETDEV_UP): wlan0: li          nk is not ready
Sep 26 01:24:55 v1pi hostapd[1144]: Using interface wlan0 with hwaddr dc:a6:32:2          a:4f:be and ssid "v1pi"
Sep 26 01:24:55 v1pi hostapd[1144]: wlan0: interface state UNINITIALIZED->ENABLE          D
Sep 26 01:24:55 v1pi hostapd[1144]: wlan0: AP-ENABLED
Sep 26 01:24:55 v1pi kernel: [   35.236865] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0          : link becomes ready
Sep 26 01:24:58 v1pi dhcpcd[1162]: wlan0: IAID 32:2a:4f:be
Sep 26 01:24:58 v1pi dhcpcd[1162]: wlan0: adding address fe80::31bb:db06:1724:a4          7c
Sep 26 01:24:58 v1pi avahi-daemon[264]: Joining mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::31bb:db06:1724:a47c.
Sep 26 01:24:58 v1pi dhcpcd[1162]: wlan0: probing address 10.3.141.1/24
Sep 26 01:24:58 v1pi avahi-daemon[264]: New relevant interface wlan0.IPv6 for mD          NS.
Sep 26 01:24:58 v1pi avahi-daemon[264]: Registering new address record for fe80:          :31bb:db06:1724:a47c on wlan0.*.
Sep 26 01:24:59 v1pi dhcpcd[1162]: wlan0: soliciting an IPv6 router
Sep 26 01:25:04 v1pi dhcpcd[1162]: wlan0: using static address 10.3.141.1/24
Sep 26 01:25:04 v1pi avahi-daemon[264]: Joining mDNS multicast group on interfac          e wlan0.IPv4 with address 10.3.141.1.
Sep 26 01:25:04 v1pi avahi-daemon[264]: New relevant interface wlan0.IPv4 for mD          NS.
Sep 26 01:25:04 v1pi dhcpcd[1162]: wlan0: adding route to 10.3.141.0/24
Sep 26 01:25:04 v1pi dhcpcd[1162]: wlan0: adding default route via 10.3.141.1
Sep 26 01:25:04 v1pi avahi-daemon[264]: Registering new address record for 10.3.          141.1 on wlan0.IPv4.
Sep 26 01:25:12 v1pi dhcpcd[1204]: wlan0: no IPv6 Routers available
Feb 14 05:38:21 v1pi dhcpcd[326]: wlan0: starting wpa_supplicant
Feb 14 05:38:21 v1pi dhcpcd-run-hooks[439]: wlan0: starting wpa_supplicant
Feb 14 05:38:21 v1pi kernel: [    6.628710] IPv6: ADDRCONF(NETDEV_UP): wlan0: li          nk is not ready
Feb 14 05:38:22 v1pi dhcpcd[326]: wlan0: waiting for carrier
Feb 14 05:38:22 v1pi dhcpcd[326]: wlan0: carrier acquired
Feb 14 05:38:22 v1pi dhcpcd[326]: wlan0: IAID 32:2a:4f:be
Feb 14 05:38:22 v1pi dhcpcd[326]: wlan0: adding address fe80::31bb:db06:1724:a47          c
Feb 14 05:38:22 v1pi avahi-daemon[306]: Joining mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::31bb:db06:1724:a47c.
Feb 14 05:38:22 v1pi dhcpcd[326]: wlan0: probing address 10.3.141.1/24
Feb 14 05:38:22 v1pi avahi-daemon[306]: New relevant interface wlan0.IPv6 for mD          NS.
Feb 14 05:38:22 v1pi avahi-daemon[306]: Registering new address record for fe80:          :31bb:db06:1724:a47c on wlan0.*.
Feb 14 05:38:22 v1pi dhcpcd[326]: wlan0: carrier lost
Feb 14 05:38:22 v1pi dhcpcd[326]: wlan0: deleting address fe80::31bb:db06:1724:a          47c
Feb 14 05:38:22 v1pi avahi-daemon[306]: Withdrawing address record for fe80::31b          b:db06:1724:a47c on wlan0.
Feb 14 05:38:22 v1pi avahi-daemon[306]: Leaving mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::31bb:db06:1724:a47c.
Feb 14 05:38:22 v1pi avahi-daemon[306]: Interface wlan0.IPv6 no longer relevant           for mDNS.
Feb 14 05:38:27 v1pi kernel: [   12.781203] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0          : link becomes ready
Feb 14 05:38:27 v1pi dhcpcd[326]: wlan0: carrier acquired
Feb 14 05:38:28 v1pi dhcpcd[326]: wlan0: IAID 32:2a:4f:be
Feb 14 05:38:28 v1pi dhcpcd[326]: wlan0: adding address fe80::7023:a6a1:955:7f49
Feb 14 05:38:28 v1pi dhcpcd[326]: wlan0: probing address 10.3.141.1/24
Feb 14 05:38:28 v1pi avahi-daemon[306]: Joining mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::7023:a6a1:955:7f49.
Feb 14 05:38:28 v1pi avahi-daemon[306]: New relevant interface wlan0.IPv6 for mD          NS.
Feb 14 05:38:28 v1pi avahi-daemon[306]: Registering new address record for fe80:          :7023:a6a1:955:7f49 on wlan0.*.
Feb 14 05:38:28 v1pi dhcpcd[326]: wlan0: soliciting an IPv6 router
Feb 14 05:38:31 v1pi dhcpcd[709]: wlan0: carrier lost
Feb 14 05:38:31 v1pi dhcpcd[709]: wlan0: deleting address fe80::7023:a6a1:955:7f          49
Feb 14 05:38:31 v1pi hostapd[719]: wlan0: Could not connect to kernel driver
Feb 14 05:38:31 v1pi hostapd[719]: Using interface wlan0 with hwaddr dc:a6:32:2a          :4f:be and ssid "v1pi"
Feb 14 05:38:31 v1pi avahi-daemon[306]: Withdrawing address record for fe80::702          3:a6a1:955:7f49 on wlan0.
Feb 14 05:38:31 v1pi avahi-daemon[306]: Leaving mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::7023:a6a1:955:7f49.
Feb 14 05:38:31 v1pi avahi-daemon[306]: Interface wlan0.IPv6 no longer relevant           for mDNS.
Feb 14 05:38:31 v1pi dnsmasq[755]: warning: interface wlan0 does not currently e          xist
Feb 14 05:38:31 v1pi vnstatd[712]: Info: Monitoring: eth0 (100 Mbit) wlan0 (1000           Mbit)
Feb 14 05:38:31 v1pi hostapd[719]: wlan0: interface state UNINITIALIZED->ENABLED
Feb 14 05:38:31 v1pi hostapd[719]: wlan0: AP-ENABLED
Feb 14 05:38:31 v1pi dhcpcd[709]: wlan0: carrier acquired
Feb 14 05:38:31 v1pi dhcpcd[709]: wlan0: IAID 32:2a:4f:be
Feb 14 05:38:31 v1pi dhcpcd[709]: wlan0: adding address fe80::7023:a6a1:955:7f49
Feb 14 05:38:31 v1pi avahi-daemon[306]: Joining mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::7023:a6a1:955:7f49.
Feb 14 05:38:31 v1pi avahi-daemon[306]: New relevant interface wlan0.IPv6 for mD          NS.
Feb 14 05:38:31 v1pi dhcpcd[709]: wlan0: probing address 10.3.141.1/24
Feb 14 05:38:31 v1pi avahi-daemon[306]: Registering new address record for fe80:          :7023:a6a1:955:7f49 on wlan0.*.
Feb 14 05:38:32 v1pi dhcpcd[709]: wlan0: soliciting an IPv6 router
Feb 14 05:38:32 v1pi dhcpcd[709]: wlan0: carrier lost
Feb 14 05:38:32 v1pi dhcpcd[709]: wlan0: deleting address fe80::7023:a6a1:955:7f          49
Feb 14 05:38:32 v1pi avahi-daemon[306]: Withdrawing address record for fe80::702          3:a6a1:955:7f49 on wlan0.
Feb 14 05:38:32 v1pi avahi-daemon[306]: Leaving mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::7023:a6a1:955:7f49.
Feb 14 05:38:32 v1pi avahi-daemon[306]: Interface wlan0.IPv6 no longer relevant           for mDNS.
Feb 14 05:38:33 v1pi dhcpcd[709]: wlan0: removing interface
Feb 14 05:38:34 v1pi hostapd[904]: wlan0: Could not connect to kernel driver
Feb 14 05:38:34 v1pi kernel: [   19.224919] IPv6: ADDRCONF(NETDEV_UP): wlan0: li          nk is not ready
Feb 14 05:38:34 v1pi hostapd[904]: Using interface wlan0 with hwaddr dc:a6:32:2a          :4f:be and ssid "v1pi"
Feb 14 05:38:34 v1pi hostapd[904]: wlan0: interface state UNINITIALIZED->ENABLED
Feb 14 05:38:34 v1pi hostapd[904]: wlan0: AP-ENABLED
Feb 14 05:38:34 v1pi kernel: [   19.361825] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0          : link becomes ready
Feb 14 05:38:37 v1pi dhcpcd[921]: wlan0: IAID 32:2a:4f:be
Feb 14 05:38:37 v1pi dhcpcd[921]: wlan0: adding address fe80::31bb:db06:1724:a47          c
Feb 14 05:38:37 v1pi avahi-daemon[306]: Joining mDNS multicast group on interfac          e wlan0.IPv6 with address fe80::31bb:db06:1724:a47c.
Feb 14 05:38:37 v1pi avahi-daemon[306]: New relevant interface wlan0.IPv6 for mD          NS.
Feb 14 05:38:37 v1pi avahi-daemon[306]: Registering new address record for fe80:          :31bb:db06:1724:a47c on wlan0.*.
Feb 14 05:38:37 v1pi dhcpcd[921]: wlan0: probing address 10.3.141.1/24
Feb 14 05:38:37 v1pi dhcpcd[921]: wlan0: soliciting an IPv6 router
Feb 14 05:38:42 v1pi dhcpcd[939]: wlan0: using static address 10.3.141.1/24
Feb 14 05:38:42 v1pi avahi-daemon[306]: Joining mDNS multicast group on interfac          e wlan0.IPv4 with address 10.3.141.1.
Feb 14 05:38:42 v1pi avahi-daemon[306]: New relevant interface wlan0.IPv4 for mD          NS.
Feb 14 05:38:42 v1pi dhcpcd[939]: wlan0: adding route to 10.3.141.0/24
Feb 14 05:38:42 v1pi avahi-daemon[306]: Registering new address record for 10.3.          141.1 on wlan0.IPv4.
Feb 14 05:38:42 v1pi dhcpcd[939]: wlan0: adding default route via 10.3.141.1
Feb 14 05:38:51 v1pi dhcpcd[939]: wlan0: no IPv6 Routers available