Moving my openhabian raspberry pi zero from one network, to another, I encountered an issue which doesn’t stop the connection, but it does issue warnings to debug. I was hoping to find out how to clean up these warnings, and perhaps amend the process so it’s more complete.
$ sudo openhabian-config
_ 30 System Settings
__ 36 WiFi setup
___ Which Wifi (SSID) do you want to connect to?
___ Password
___ <OK>
Prints this:
$ apt -y install wpasupplicant wireless-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
wireless-tools is already the newest version.
wpasupplicant is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Not writing to '/etc/network/interfaces', wlan0 entry already available. You might need to check, adopt or remove these lines.
$ wpa_cli reconfigure
Selected interface 'wlan0'
Opening /etc/network/interfaces:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Opening /etc/wpa_supplicant/wpa_supplicant.conf, the correct, updated details havve been stored:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="updated_correct_SSID"
psk="updated_correct_password"
}
And doesn’t pickup the IP address on load:
###############################################################################
################# openHABianPi ################################################
###############################################################################
## Ip = Unable to parse ip. Please debug.
## Release = Raspbian GNU/Linux 8 (jessie)
## Kernel = Linux 4.9.35+
## Platform = Raspberry Pi Zero W Rev 1.1
However, we have an IP address on the new network, and connects successfully
[10:45:53] openhabian@openHABianPi:~$ hostname -I
10.0.0.101 2001:8003:20d0:300:95ca:1380:8619:2980
Any thoughts on how to clean up this incongruity?