What is the problem?
OctoPrint connects to the wrong SSID, despite a different SSID being specified in octopi-wpa-supplicant.txt.
I have a Uibiquiti network setup, and the AP has two SSIDs available. One for 5GHz and one for 2.4 GHz.
In octopi-wpa-supplicant.txt, I have specifically stated the Pi to connect to the 2.4 GHz SSID, because the 5GHz one has poor signal in the room my printer and RPi is. Recently I realized the bandwidth to the RPi is rather slow, so I installed the recently released Wifi plugin. It shows the Pi connected to the 5 GHz SSID, which was really surprising.
What did you already try to solve it?
Nothing. I really don't know where to start.
Have you tried running in safe mode and if so did it solve the issue?
Yes, issue remains.
Complete Logs
octoprint.log
, serial.log
or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support! Not log excerpts, complete logs.)
Here's the entire octopi-wpa-supplicant.txt file content (password is masked here):
# Use this file to configure your wifi connection(s).
#
# Just uncomment the lines prefixed with a single # of the configuration
# that matches your wifi setup and fill in SSID and passphrase.
#
# You can configure multiple wifi connections by adding more 'network'
# blocks.
#
# See https://linux.die.net/man/5/wpa_supplicant.conf
# (or 'man -s 5 wpa_supplicant.conf') for advanced options going beyond
# the examples provided below (e.g. various WPA Enterprise setups).
#
# !!!!! HEADS-UP WINDOWS USERS !!!!!
#
# Do not use Wordpad for editing this file, it will mangle it and your
# configuration won't work. Use a proper text editor instead.
# Recommended: Notepad++, VSCode, Atom, SublimeText.
#
# !!!!! HEADS-UP MACOSX USERS !!!!!
#
# If you use Textedit to edit this file make sure to use "plain text format"
# and "disable smart quotes" in "Textedit > Preferences", otherwise Textedit
# will use none-compatible characters and your network configuration won't
# work!
## WPA/WPA2 secured
network={
ssid="war4peace-2_4"
psk="*************"
}
## 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=RO # Romania
#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
Here's the output from iwconfig:
pi@octopi:/boot $ iwconfig
wlan0 IEEE 802.11 ESSID:"war4peace-5"
Mode:Managed Frequency:5.18 GHz Access Point: FC:EC:DA:B5:8E:9F
Bit Rate=90 Mb/s Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=33/70 Signal level=-77 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:12460 Invalid misc:0 Missed beacon:0
eth0 no wireless extensions.
lo no wireless extensions.
I had the 5 GHz configured back in May, when I first installed OctoPrint, but switched the configuration to 2.4 GHz after about a week due to poor signal. It had been sitting under 2.4 GHz ever since, or at least that's what I was assuming, until today when I have checked and saw it was connecting to 5 Ghz SSID.
Question is: how do I ensure OctoPrint uses the 2.4 GHz wireless SSID, as specified in the octopi-wpa-supplicant.txt file?
Additional information about your setup
OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
OctoPrint 1.4.2
Python 3.7.3
OctoPi 0.17.0