The only difference between yours and mine is I don't have a key_mgmt line (and I left the comments in):
## WPA/WPA2 secured
network={
ssid="Morgan"
psk="REDACTED"
}
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
I reflashed a new Octopi image with your WPA Supplicant, Morgan. No dice (obviously changed the country code, and id/psk). Wlan0 still doesn't boot into the "up" status.
I'm doing a new reflash follow the procedure OutsourcedGuru has further up. Will also disconnect everything except power for the first boot with that and see if having something plugged it was causing some issue.
Update. I picked up another PI, 3B+ this time. Same issues. Wifi doesn't want to connect/even start in the "up" condition. But I am able to connect to octopi.local when I hooked Ethernet to the Pi, but the PI does not have access to the internet.
There is something unusual about your network configuration so we probably need more details about it. Start with details about your router(s) (wired and WiFi). Tell us about the system you are connecting to the RPi from. An "ipconfig /all" or an "ifconfig" from that system as well as an "ifconfig" and "iwconfig" from the RPi. What (if any) programs are running for anti-virus, ad blocking, etc.
I ended up trying my mobile phone as a hotspot, and typed that into the Supplicant file, worked perfectly fine, like I'd have expected it to. Then I did Sudo apt update and updating everything. Installed the desktop, and then was able to connect to my local Wifi network through the desktop and it worked perfect.
Have been working on a pi3 wifi issue for a couple of days now with no luck and I am hoping somebody can give me a pointer as to what to try next:
Pi3 that has been working flawless for a couple years or more. I needed to change the SSID and password.My first go around was to change that in the octopi-wpa-supplicant.txt file.
Pi will boot just fine but will not connect to the network.
Burnt a new image, updated it and it works just fine.
Copied the octopi-wpa-supplicant.txt file from the working image SD card to the non-working SD card figuring I might have screwed something up with the editor - same result.
The octopi starts up and seems fully operational except that during startup it looks for the network (pauses) and then carries on without getting an IP. I can log into the pi at the prompt presented.
I seem to recall that the octopi-wpa-supplicant.txt file is only read once during the initial startup of the system but have read other posts that suggest it is being read every time .... if I change the octopi-wpa-supplicant.txt file, is it reloaded automatically or do I need to do something else?
Given that I can log into the pi, can I do anything to force connection to the network and once done can that be made permanent?
Again, same pi, one old SD card that was working for years and now longer connects, one new SD card with that same pi and it connects fine so I assume the issue is strictly with the SD card.
Some more info: I ran sudo raspi-config and tried >Network Options>wifi and got 'could not communicate with wpa_supplicant'
I am not sure if I have a permission problem and for that matter which file permissions need changing.
In any case, ifconfig shows that the wireless lan is not connected (no ip number listed)
iwconfig also shows that there is no wifi connection
Last update: issue has been resolved by messing around with the wpa_supplicant.conf file. I am pretty certain that I had replaced the file with the same file from the working SD card but who knows after so much messing around.
I suspect a non-printable character of some kind but I do not know for sure - I did not use any of the bizarre Windows or Mac editors that seem to feel they don't have to be bound to standards and customs that everyone else expects (yeah Linux)
All is well that ends well ....
Hi I had a very serious connection problem with 0.17.0 fresh install.
octopi-wpa-supplicant.txt file was correct, but didn't connect via wifi.
I connected with cable wifi scan showed the Wi-Fis around but octopi didn't connect. I restore a backup with:
OctoPrint version : 1.3.10
OctoPi version : 0.15.1
Everything is just ok so my raspberry pi, wifi dongle DS card were ok.
I tried fresh install because since I updated to 1.4.1 (from 1.4.0) i had several connection issues especially plugins weren't available because octopi was saying no internet connection.
I'm giving this information to investigate by developers.
I hope it can be helpful.
I finally signed up for an account to thank you. Nothing I had done had fixed my issue where I remove the network plug and the WiFi also goes away.
Putting the country code in front of the network string did it (I just edited the default config ). Thank you so much, I can finally move my printer away from my LAN network!!
Can't Connect to my WiFi
My Pi's Wifi Works as far as I know, and I can SSH via Ethernet. When I run "sudo iwlist wlan0 scan", I get back "wlan0 Interface doesn't support scanning."
Any idea what causes this? I've tried everything in the wifi troubleshooting post.
My other devices connect to the WiFi and "octopi.local" opens when connected via Ethernet SSH which would have me beleive it's not my Micro SD.
I have an issue where my 2 yr old octopi install would not update due to something else that could not be updated in raspbian itself or so. Was advised to flash v17.
Raspberry PI 3 B
Got a new sd card
Got v17
Flashed that.
Setup the ssid & password & country.
Could log on locally.
Tried to get the desktop loaded, so I could get the touch screen setup again.
Could not get the desktop installed. Etc.
Commands work, but when looking closely, during install there's constant fetch errors.
Which lead me to find out that the unit is probably not even on wifi.
Having the same issues with 3B. wlan scan shows the network SSID but refuses to connect at all. Tried all configs for wpa_supplicant.txt in the thread.
Manually init wpa_supplicant prints success followed by repeated errors:
Hi,
I'm having an issue with the raspberry pi 4b 8GB, i'm asking here though compatibilty is unknown, because maybe it is a known and solvable issue.
Im using a raspberry pi 4b 8GB, with the nightly build 0.18.0 dated 2020/11/30.
Connection via ethernet cable works just fine, i am able to ssh login into the pi and the ip is assigned perfectly fine.
When it comes to wifi tho, even if it seems connected during boot, the ip shown looks really weird. My router is supposed to assign ip in the form 192.168.10.xxx, but the one shown is 269.254.165.178.
I also noticed that the netmask on my windows machine and the one on the pi are different. the one on windows is 255.0.0.0, while the pi one is 255.255.0.0.
is there a quick fix for this issue, or a known workaround?
thank in advance for every answer!
Your network is wierd. The address you say the router is supposed to assign should have a netmask of 255.255.255.0.
The ethernet IP and netmask on the RPi (when things are working) is?
When its working (i.e. you can SSH), what is the Windows IP address and netmask?
The answer to both of these should be 192.168.10.* with a netmask of 255.255.255.0.
Now to WiFi on the RPi. A 269.254.. address (with a netmask of 255.255.0.0) is, I believe, a self assigned address when a DHCP server can't be located. I think this means that your WiFi credentials are correct, but the WiFi the RPi is connected to can't find the DHCP server.
You need to describe your network in a bit more detail for me to go any further.
The dhcp server is an optic fiber modem, linked to a firewall. the network i am able to work with is a subnetwork of the modem one, which consists of a radio link from the firewall, a network switch, and an access point linked to the switch.
Whats weird is that ethernet connected devices like my win machine have perfectly fine ips, wireless devices such as my laptop and my phone do as well. Could assigning a static ip address to the pi from the modem, linking it to the mac address work?
anyway, to answer the questions:
1: the working ip and netmask of the pi are 192.168.10.107 and 255.0.0.0
2: the windows ip and netmask are 192.168.10.102 and 255.0.0.0
(to end the reply, im sorry if the english i'm writing with is a pain to read)
Please check your laptop when it is sitting next to the RPi and tell me the IP, mask, SSID, and wireless band. On the RPi, make sure it is connected to the same SSID and the same band and then check the IP, mask, and SSID (on the RPi, ifconfig and iwconfig).
We may need to look at the DHCP client output on the RPi but I don't remember where that is ATM. I'll get back later if I figure it out.
Hello my old SD card was corrupted so i triy to install 0.17 on a new one. But it didnot connect to my wifi. i tried everything so i used a pi4 instead of my pi3 it connected instantly to my wifi. my next step was to figure out if my wlan is broken. i tried another pi3 same issue, so i tried a backup of another system (raspbian). No problem wit wlan, all ok. so octopi on the sd card but the same problem, with ethernet i see the octopi server. so i tried to reconnect wlan via terminal. it seems the adapter is not supported. If my englisch is too bad, i can write it in German again.
Thank you
I have the same issue. I have a pi 4. I tried at first 0.17.0 but now I am on the latest nightly build.
Same issue but with way less of errors. This build I only have the one as above.
I've tried many things: different pi's, new sd cards, the settings in the supplicant file look like above.
I can connect hardwired but doesn't show on router when ethernet disconnected. I can connect with IP address and with octopi.local only when hardwired. Before with the stable build I couldn't connect at all.
Been working on this for days and I have read so posts and tried so many things I have forgotten most of them. Any help would be appreciated. octoprint.log (36.6 KB)
@Jacke_Meier, @jel111, The problems you are having with WiFi are OS (OctoPi) issues combined with local network configuration issues. Just octoprint.log alone doesn't have enough information for us to help you troubleshoot.
The first thing we need is your /boot/octopi-wpa-supplicant.txt file, the output of "ifconfig" and "iwconfig". Next we need some more information about your RPi. If you can connect to OctoPrint over a wired connection, then the System information (link at the bottom of the page) will be a good start. Last, please give us details about your WiFi configuration, separate router, access point, etc. The more information you provide, the better chance we have of finding (and fixing) the problem.
Note: Please make liberal use of the '</>' button as you post the contents of files and/or the output of commands.