ip configuration was unavailable

Using wifi to connect to hotspots i have been on before then come back another day and try to log onto again i get the message “ip configuration was unavailable” and “connection has been deactivated”.

my wifi adapters are recognized and have have drivers.
another symptom that may help - after i connect a hotspot, NetworkManager still tries to connect to other networks and sometimes actually connects to two different networks at the same time. I have tried all i know to do - please help

Next time you have an issue connecting to a hotspot, examine the NetworkManager log with

sudo journalctl -u NetworkManager

You can capture to a text file with something like

sudo journalctl -u NetworkManager > output.txt

then you can copy/paste the relevant section and upload to http://paste.opensuse.org/ and post the link to it here for others to review further if necessary.

If you want to observe only the current output generated, open a terminal anddo

sudo journalctl -fu NetworkManager

then watch output as you try to connect.

You could try restarting NM when this next happens

sudo systemctl restart NetworkManager

then connect to the desired network again.

thank you for responding. I managed to capture some files or you

 Jun 23 08:02:26 linux-d9oj NetworkManager[937]:   NetworkManager state is now CONNECTING Jun 23 08:02:26 linux-d9oj NetworkManager[937]:   (wlan0): device state change: prepare -> config (reason 'none') [40 50 0] Jun 23 08:02:26 linux-d9oj NetworkManager[937]:   (wlan0): Activation: (wifi) connection 'Squidlips_Guest' requires no security.  No secrets needed. Jun 23 08:02:26 linux-d9oj NetworkManager[937]:   Config: added 'ssid' value 'Squidlips_Guest' Jun 23 08:02:26 linux-d9oj NetworkManager[937]:   Config: added 'scan_ssid' value '1' Jun 23 08:02:26 linux-d9oj NetworkManager[937]:   Config: added 'key_mgmt' value 'NONE' Jun 23 08:02:26 linux-d9oj NetworkManager[937]:   Connection disconnected (reason -3) Jun 23 08:02:26 linux-d9oj NetworkManager[937]:   (wlan0): supplicant interface state: completed -> disconnected Jun 23 08:02:26 linux-d9oj NetworkManager[937]:   Failed to GDBus.Error:fi.w1.wpa_supplicant1.NotConnected: This interface is not connected: disconnect. Jun 23 08:02:26 linux-d9oj NetworkManager[937]:   Config: set interface ap_scan to 1 Jun 23 08:02:27 linux-d9oj NetworkManager[937]:   (wlan0): supplicant interface state: disconnected -> authenticating Jun 23 08:02:27 linux-d9oj NetworkManager[937]:   (wlan0): supplicant interface state: authenticating -> associating Jun 23 08:02:27 linux-d9oj NetworkManager[937]:   (wlan0): supplicant interface state: associating -> completed Jun 23 08:02:27 linux-d9oj NetworkManager[937]:   (wlan0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'Squidlips_Guest'. Jun 23 08:02:27 linux-d9oj NetworkManager[937]:   (wlan0): device state change: config -> ip-config (reason 'none') [50 70 0] Jun 23 08:02:27 linux-d9oj NetworkManager[937]:   Activation (wlan0) Beginning DHCPv4 transaction (timeout in 45 seconds) Jun 23 08:02:27 linux-d9oj NetworkManager[937]:   dhclient started with pid 1536 Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   (wlan0): DHCPv4 request timed out. Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   (wlan0): DHCPv4 state changed unknown -> timeout Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   (wlan0): canceled DHCP transaction, DHCP client pid 1536 Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   (wlan0): DHCPv4 state changed timeout -> done Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   (wlan0): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5] Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   NetworkManager state is now DISCONNECTED Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   Disabling autoconnect for connection 'Squidlips_Guest'. Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   (wlan0): Activation: failed for connection 'Squidlips_Guest' Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0] Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   Connection disconnected (reason -3) Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   (wlan0): supplicant interface state: completed -> disconnected Jun 23 08:03:47 linux-d9oj NetworkManager[937]:   (wlan0): Activation: starting connection 'Squidlips_Guest' (e3d20fbc-7cd3-4a0f-bcc3-aa0b5a5616bf) Jun 23 08:03:47 linux-d9oj NetworkManager[937]:   (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]  

and more

 linux-d9oj:~ # sudo journalctl -u NetworkManager -- Logs begin at Fri 2016-04-01 11:47:04 EDT, end at Thu 2016-06-23 08:07:34 EDT. -- Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   NetworkManager (version 1.0.6) is starting... Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Read config: /etc/NetworkManager/NetworkManager.conf Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   VPN: loaded org.freedesktop.NetworkManager.openvpn Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   VPN: loaded org.freedesktop.NetworkManager.vpnc Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   VPN: loaded org.freedesktop.NetworkManager.pptp Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded settings plugin ifcfg-suse: (C) 2008 Novell, Inc.  To report bu Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded settings plugin keyfile: (c) 2007 - 2015 Red Hat, Inc.  To repo Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   monitoring kernel firmware directory '/lib/firmware'. Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   rfkill0: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000: Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   WiFi hardware radio set enabled Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   WWAN hardware radio set enabled Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMVxlanFactory (internal) Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMVlanFactory (internal) Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMVethFactory (internal) Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMTunFactory (internal) Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMMacvlanFactory (internal) Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMInfinibandFactory (internal) Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMGreFactory (internal) Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMEthernetFactory (internal) Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMBridgeFactory (internal) Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMBondFactory (internal) Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMAtmManager (/usr/lib64/NetworkManager/libnm-de Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMWifiFactory (/usr/lib64/NetworkManager/libnm-d Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMWwanFactory (/usr/lib64/NetworkManager/libnm-d Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   Loaded device plugin: NMBluezManager (/usr/lib64/NetworkManager/libnm- Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   WiFi enabled by radio killswitch; enabled by state file Apr 01 11:47:21 linux-d9oj NetworkManager[1064]:   WWAN enabled by radio killswitch; enabled by state file linux-d9oj:~ # ^C  

i you need more just tell me - again, tank you

Unfortunately, the formatting is messed up so difficult to read. I’ve tidied some of it up a bit…

Jun 23 08:02:27 linux-d9oj NetworkManager[937]:   Activation (wlan0)  Beginning DHCPv4 transaction (timeout in 45 seconds)
Jun 23 08:02:27  linux-d9oj NetworkManager[937]:   dhclient started with pid 1536
Jun 23  08:03:12 linux-d9oj NetworkManager[937]:   (wlan0): DHCPv4 request timed  out.
Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   (wlan0): DHCPv4  state changed unknown -> timeout
Jun 23 08:03:12 linux-d9oj  NetworkManager[937]:   (wlan0): canceled DHCP transaction, DHCP client  pid 1536 Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   (wlan0):  DHCPv4 state changed timeout -> done
Jun 23 08:03:12 linux-d9oj  NetworkManager[937]:   (wlan0): device state change: ip-config ->  failed (reason 'ip-config-unavailable') [70 120 5]
Jun 23 08:03:12  linux-d9oj NetworkManager[937]:   NetworkManager state is now  DISCONNECTED Jun 23 08:03:12 linux-d9oj NetworkManager[937]:   Disabling  autoconnect for connection 'Squidlips_Guest'.
Jun 23 08:03:12  linux-d9oj NetworkManager[937]:   (wlan0): Activation: failed for  connection 'Squidlips_Guest' Jun 23 08:03:12 linux-d9oj  NetworkManager[937]:   (wlan0): device state change: failed ->  disconnected (reason 'none') [120 30 0]
Jun 23 08:03:12 linux-d9oj  NetworkManager[937]:   Connection disconnected (reason -3) Jun 23  08:03:12 linux-d9oj NetworkManager[937]:   (wlan0): supplicant interface  state: completed -> disconnected
Jun 23 08:03:47 linux-d9oj  NetworkManager[937]:   (wlan0): Activation: starting connection  'Squidlips_Guest' (e3d20fbc-7cd3-4a0f-bcc3-aa0b5a5616bf)
Jun 23 08:03:47  linux-d9oj NetworkManager[937]:   (wlan0): device state change:  disconnected -> prepare (reason 'none')

From that I note that a DHCP timeout occurred. That could just be due to attempting to connect to a congested network (public hotspot?) where the DHCP server doesn’t respond in time. Not sure that there is much you can do as a client, except try connecting again until to do get an address assigned.

AFAIU, roaming can occur where there are multiple APs nearby, with wpa_supplicant and the wireless kernel driver making the changes dynamically based on signal strengths and errors etc. It is possible to prevent this behaviour though by locking to a particular BSSID or restrict to a particular device in the NM connection configuration.