Raspberry Pi OSMC wont connect to WPA

I have read a few similar posts detailing similar issues but have not yet seen a suitable solution.

I have OSMC installed on a Pi 2, works perfectly over ethernet, but I wish to use it over WiFi. I have used a TPLINKWN772N and a ALFAAWUS036NEH but get the same issues.

I have my wifi set as WPA and on a static channel, all other devices can connect to it no problem. The Pi and the wireless AP are both located within a few metres of each other and signal shows as strong. The connection is made no problem if security is taken off the network but with WPA on the network it fails to connect.

Happy to post logs if reqd, i also see that there may be some conman settings that could be the way to solve this. Only question is, do these need executing upon every boot or do they get remebered?

Yes, please post logs.

Just to clarify, do you mean WPA - and not WPA2?

I see that the TP-Link TL-WN772N supports WPA2. What’s the router?

1 Like

Thanks for the reply, sorry I meant to qualify that with ‘can you tell me what you need’ in terms of logs if required.

I mean WPA2, the router is a whitelabelled sagecom 2704n

Also should have stated that I have used the TPLink dongle to connect a VM (hosted in VMWare on a Windows host) to this same AP so the card is sound with a debian driver.

Struggling to follow the directions there @ActionA as I can only generate the logs when I have no network connection so dont know how I can exfil them from the Pi.

So here is a grep ‘wlan0’ of uploadlogs showing connections to an open network ‘wifiniusmaximus’ and also to a WPA2 hotspot spawned from my phone.

Jul 17 11:52:57 osmc connmand[327]: wlan0 {create} index 4 type 1 <ETHER>
Jul 17 11:52:57 osmc connmand[327]: wlan0 {update} flags 4098 <DOWN>
Jul 17 11:52:57 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Jul 17 11:52:57 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Jul 17 11:52:58 osmc kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 17 11:52:58 osmc connmand[327]: Adding interface wlan0 [ wifi ]
Jul 17 11:52:58 osmc connmand[327]: wlan0 {update} flags 36931 <UP,RUNNING>
Jul 17 11:52:58 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Jul 17 11:52:58 osmc connmand[327]: wlan0 {newlink} index 4 operstate 0 <UNKNOWN>
Jul 17 11:52:58 osmc connmand[327]: wlan0 {update} flags 36867 <UP>
Jul 17 11:52:58 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Jul 17 11:52:58 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Jul 17 11:52:58 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Jul 17 11:52:58 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Jul 17 11:52:58 osmc net.agent[475]: net.agent add event for wlan0 not handled.
Jul 17 11:57:01 osmc wpa_supplicant[414]: wlan0: SME: Trying to authenticate with f4:6b:ef:8d:d4:90 (SSID='WifiniusMaxiumus' freq=2427 MHz)
Jul 17 11:57:01 osmc kernel: wlan0: authenticate with f4:6b:ef:8d:d4:90
Jul 17 11:57:02 osmc kernel: wlan0: send auth to f4:6b:ef:8d:d4:90 (try 1/3)
Jul 17 11:57:02 osmc kernel: wlan0: aborting authentication with f4:6b:ef:8d:d4:90 by local choice (Reason: 3=DEAUTH_LEAVING)
Jul 17 11:57:02 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-DISCONNECTED bssid=f4:6b:ef:8d:d4:90 reason=3 locally_generated=1
Jul 17 11:57:17 osmc wpa_supplicant[414]: wlan0: SME: Trying to authenticate with f4:6b:ef:8d:d4:90 (SSID='WifiniusMaxiumus' freq=2427 MHz)
Jul 17 11:57:17 osmc kernel: wlan0: authenticate with f4:6b:ef:8d:d4:90
Jul 17 11:57:18 osmc kernel: wlan0: send auth to f4:6b:ef:8d:d4:90 (try 1/3)
Jul 17 11:57:18 osmc kernel: wlan0: aborting authentication with f4:6b:ef:8d:d4:90 by local choice (Reason: 3=DEAUTH_LEAVING)
Jul 17 11:57:18 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-DISCONNECTED bssid=f4:6b:ef:8d:d4:90 reason=3 locally_generated=1
Jul 17 11:57:24 osmc connmand[327]: wlan0 {update} flags 36866 <DOWN>
Jul 17 11:57:24 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Jul 17 11:57:24 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Jul 17 11:57:27 osmc kernel: IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jul 17 11:57:27 osmc connmand[327]: wlan0 {update} flags 36867 <UP>
Jul 17 11:57:27 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Jul 17 11:57:27 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Jul 17 11:57:27 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Jul 17 11:57:27 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Jul 17 11:57:37 osmc wpa_supplicant[414]: wlan0: SME: Trying to authenticate with f4:6b:ef:8d:d4:90 (SSID='WifiniusMaxiumus' freq=2427 MHz)
Jul 17 11:57:37 osmc kernel: wlan0: authenticate with f4:6b:ef:8d:d4:90
Jul 17 11:57:38 osmc wpa_supplicant[414]: wlan0: Trying to associate with f4:6b:ef:8d:d4:90 (SSID='WifiniusMaxiumus' freq=2427 MHz)
Jul 17 11:57:38 osmc kernel: wlan0: send auth to f4:6b:ef:8d:d4:90 (try 1/3)
Jul 17 11:57:38 osmc kernel: wlan0: authenticated
Jul 17 11:57:38 osmc kernel: wlan0: associate with f4:6b:ef:8d:d4:90 (try 1/3)
Jul 17 11:57:38 osmc kernel: wlan0: RX AssocResp from f4:6b:ef:8d:d4:90 (capab=0x401 status=0 aid=1)
Jul 17 11:57:38 osmc connmand[327]: wlan0 {add} route fe80:: gw :: scope 0 <UNIVERSE>
Jul 17 11:57:38 osmc connmand[327]: wlan0 {update} flags 102403 <UP,LOWER_UP>
Jul 17 11:57:38 osmc wpa_supplicant[414]: wlan0: Associated with f4:6b:ef:8d:d4:90
Jul 17 11:57:38 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Jul 17 11:57:38 osmc connmand[327]: wlan0 {newlink} index 4 operstate 5 <DORMANT>
Jul 17 11:57:38 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-CONNECTED - Connection to f4:6b:ef:8d:d4:90 completed [id=0 id_str=]
Jul 17 11:57:38 osmc connmand[327]: wlan0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
Jul 17 11:57:38 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Jul 17 11:57:38 osmc connmand[327]: wlan0 {newlink} index 4 operstate 6 <UP>
Jul 17 11:57:38 osmc kernel: wlan0: associated
Jul 17 11:57:38 osmc kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jul 17 11:57:38 osmc connmand[327]: wlan0 {del} route fe80:: gw :: scope 0 <UNIVERSE>
Jul 17 11:57:38 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-47 noise=9999 txrate=57800
Jul 17 11:57:40 osmc avahi-daemon[303]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.9.
Jul 17 11:57:40 osmc avahi-daemon[303]: New relevant interface wlan0.IPv4 for mDNS.
Jul 17 11:57:40 osmc avahi-daemon[303]: Registering new address record for 192.168.1.9 on wlan0.IPv4.
Jul 17 11:57:40 osmc connmand[327]: wlan0 {add} address 192.168.1.9/24 label wlan0 family 2
Jul 17 11:57:40 osmc connmand[327]: wlan0 {add} route 192.168.1.0 gw 0.0.0.0 scope 253 <LINK>
Jul 17 11:57:40 osmc connmand[327]: wlan0 {add} route 192.168.1.254 gw 0.0.0.0 scope 253 <LINK>
Jul 17 11:57:40 osmc connmand[327]: wlan0 {add} route 0.0.0.0 gw 192.168.1.254 scope 0 <UNIVERSE>
Jul 17 11:57:41 osmc ntpd[5076]: Listen normally on 4 wlan0 192.168.1.9 UDP 123
Jul 17 11:57:46 osmc connmand[327]: wlan0 {add} route 159.253.212.250 gw 192.168.1.254 scope 0 <UNIVERSE>
Jul 17 11:57:48 osmc connmand[327]: wlan0 {del} route 159.253.212.250 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:22:41 osmc rc.local[367]: Tue Sep 19 13:22:41 2017 ROUTE_GATEWAY 192.168.1.254/255.255.255.0 IFACE=wlan0 HWADDR=c4:e9:84:db:d1:86
Sep 19 13:22:46 osmc connmand[327]: wlan0 {add} route 199.19.95.187 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:23:03 osmc avahi-daemon[303]: Withdrawing address record for 192.168.1.9 on wlan0.
Sep 19 13:23:03 osmc avahi-daemon[303]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.9.
Sep 19 13:23:03 osmc avahi-daemon[303]: Interface wlan0.IPv4 no longer relevant for mDNS.
Sep 19 13:23:03 osmc avahi-daemon[303]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.1.
Sep 19 13:23:03 osmc avahi-daemon[303]: New relevant interface wlan0.IPv4 for mDNS.
Sep 19 13:23:03 osmc avahi-daemon[303]: Registering new address record for 192.168.1.1 on wlan0.IPv4.
Sep 19 13:23:03 osmc connmand[327]: wlan0 {del} address 192.168.1.9/24 label wlan0
Sep 19 13:23:03 osmc connmand[327]: wlan0 {del} route 192.168.1.0 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:23:03 osmc connmand[327]: wlan0 {add} address 192.168.1.1/24 label wlan0 family 2
Sep 19 13:23:03 osmc connmand[327]: wlan0 {add} route 192.168.1.0 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:23:03 osmc connmand[327]: wlan0 {add} route 192.168.1.254 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:23:03 osmc connmand[327]: wlan0 {add} route 0.0.0.0 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:23:05 osmc ntpd[5076]: Listen normally on 6 wlan0 192.168.1.1 UDP 123
Sep 19 13:23:05 osmc ntpd[5076]: Deleting interface #4 wlan0, 192.168.1.9#123, interface stats: received=25, sent=30, dropped=0, active_time=56 secs
Sep 19 13:23:13 osmc connmand[327]: wlan0 {del} route 192.168.1.254 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:23:14 osmc connmand[327]: wlan0 {add} route 159.253.212.250 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:23:14 osmc connmand[327]: wlan0 {del} route 159.253.212.250 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:31:55 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-42 noise=9999 txrate=72200
Sep 19 13:46:07 osmc kernel: wlan0: deauthenticating from f4:6b:ef:8d:d4:90 by local choice (Reason: 3=DEAUTH_LEAVING)
Sep 19 13:46:08 osmc avahi-daemon[303]: Withdrawing address record for 192.168.1.1 on wlan0.
Sep 19 13:46:08 osmc avahi-daemon[303]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.1.
Sep 19 13:46:08 osmc avahi-daemon[303]: Interface wlan0.IPv4 no longer relevant for mDNS.
Sep 19 13:46:08 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-DISCONNECTED bssid=f4:6b:ef:8d:d4:90 reason=3 locally_generated=1
Sep 19 13:46:08 osmc connmand[327]: wlan0 {del} route 0.0.0.0 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:46:08 osmc connmand[327]: wlan0 {del} address 192.168.1.1/24 label wlan0
Sep 19 13:46:08 osmc connmand[327]: wlan0 {del} route 192.168.1.0 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:46:08 osmc connmand[327]: wlan0 {RX} 8976 packets 4919484 bytes
Sep 19 13:46:08 osmc connmand[327]: wlan0 {TX} 5734 packets 923210 bytes
Sep 19 13:46:08 osmc connmand[327]: wlan0 {update} flags 36867 <UP>
Sep 19 13:46:08 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:46:08 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Sep 19 13:46:08 osmc connmand[327]: wlan0 {RX} 8976 packets 4919484 bytes
Sep 19 13:46:08 osmc connmand[327]: wlan0 {TX} 5734 packets 923210 bytes
Sep 19 13:46:08 osmc connmand[327]: wlan0 {update} flags 36866 <DOWN>
Sep 19 13:46:08 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:46:08 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Sep 19 13:46:10 osmc ntpd[5076]: Deleting interface #6 wlan0, 192.168.1.1#123, interface stats: received=0, sent=0, dropped=0, active_time=1385 secs
Sep 19 13:47:43 osmc connmand[327]: wlan0 {RX} 8976 packets 4919484 bytes
Sep 19 13:47:43 osmc connmand[327]: wlan0 {TX} 5734 packets 923210 bytes
Sep 19 13:47:43 osmc connmand[327]: wlan0 {update} flags 36867 <UP>
Sep 19 13:47:43 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:47:43 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Sep 19 13:47:43 osmc connmand[327]: wlan0 {RX} 8976 packets 4919484 bytes
Sep 19 13:47:43 osmc connmand[327]: wlan0 {TX} 5734 packets 923210 bytes
Sep 19 13:47:43 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:47:43 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Sep 19 13:47:44 osmc wpa_supplicant[414]: wlan0: SME: Trying to authenticate with f4:6b:ef:8d:d4:90 (SSID='WifiniusMaxiumus' freq=2427 MHz)
Sep 19 13:47:44 osmc kernel: wlan0: authenticate with f4:6b:ef:8d:d4:90
Sep 19 13:47:45 osmc wpa_supplicant[414]: wlan0: Trying to associate with f4:6b:ef:8d:d4:90 (SSID='WifiniusMaxiumus' freq=2427 MHz)
Sep 19 13:47:45 osmc kernel: wlan0: send auth to f4:6b:ef:8d:d4:90 (try 1/3)
Sep 19 13:47:45 osmc kernel: wlan0: authenticated
Sep 19 13:47:45 osmc kernel: wlan0: associate with f4:6b:ef:8d:d4:90 (try 1/3)
Sep 19 13:47:45 osmc kernel: wlan0: RX AssocResp from f4:6b:ef:8d:d4:90 (capab=0x401 status=0 aid=1)
Sep 19 13:47:45 osmc wpa_supplicant[414]: wlan0: Associated with f4:6b:ef:8d:d4:90
Sep 19 13:47:45 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-CONNECTED - Connection to f4:6b:ef:8d:d4:90 completed [id=0 id_str=]
Sep 19 13:47:45 osmc connmand[327]: wlan0 {RX} 8976 packets 4919484 bytes
Sep 19 13:47:45 osmc connmand[327]: wlan0 {TX} 5734 packets 923210 bytes
Sep 19 13:47:45 osmc connmand[327]: wlan0 {update} flags 102403 <UP,LOWER_UP>
Sep 19 13:47:45 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:47:45 osmc connmand[327]: wlan0 {newlink} index 4 operstate 5 <DORMANT>
Sep 19 13:47:45 osmc connmand[327]: wlan0 {RX} 8976 packets 4919484 bytes
Sep 19 13:47:45 osmc connmand[327]: wlan0 {TX} 5734 packets 923210 bytes
Sep 19 13:47:45 osmc connmand[327]: wlan0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
Sep 19 13:47:45 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:47:45 osmc connmand[327]: wlan0 {newlink} index 4 operstate 6 <UP>
Sep 19 13:47:45 osmc avahi-daemon[303]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.1.
Sep 19 13:47:45 osmc kernel: wlan0: associated
Sep 19 13:47:45 osmc avahi-daemon[303]: New relevant interface wlan0.IPv4 for mDNS.
Sep 19 13:47:45 osmc avahi-daemon[303]: Registering new address record for 192.168.1.1 on wlan0.IPv4.
Sep 19 13:47:45 osmc connmand[327]: wlan0 {add} address 192.168.1.1/24 label wlan0 family 2
Sep 19 13:47:45 osmc connmand[327]: wlan0 {add} route 192.168.1.0 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:47:45 osmc connmand[327]: wlan0 {add} route 192.168.1.254 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:47:45 osmc connmand[327]: wlan0 {add} route 0.0.0.0 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:47:47 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-56 noise=9999 txrate=65000
Sep 19 13:47:47 osmc connmand[327]: wlan0 {add} route 159.253.212.250 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:47:47 osmc connmand[327]: wlan0 {del} route 159.253.212.250 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:47:49 osmc ntpd[5076]: Listen normally on 7 wlan0 192.168.1.1 UDP 123
Sep 19 13:48:36 osmc kernel: wlan0: deauthenticating from f4:6b:ef:8d:d4:90 by local choice (Reason: 3=DEAUTH_LEAVING)
Sep 19 13:48:37 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-DISCONNECTED bssid=f4:6b:ef:8d:d4:90 reason=3 locally_generated=1
Sep 19 13:48:37 osmc connmand[327]: wlan0 {del} route 192.168.1.254 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:48:37 osmc connmand[327]: wlan0 {del} route 0.0.0.0 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:48:37 osmc connmand[327]: wlan0 {del} address 192.168.1.1/24 label wlan0
Sep 19 13:48:37 osmc connmand[327]: wlan0 {del} route 192.168.1.0 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:48:37 osmc avahi-daemon[303]: Withdrawing address record for 192.168.1.1 on wlan0.
Sep 19 13:48:37 osmc avahi-daemon[303]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.1.
Sep 19 13:48:37 osmc avahi-daemon[303]: Interface wlan0.IPv4 no longer relevant for mDNS.
Sep 19 13:48:37 osmc connmand[327]: wlan0 {RX} 9110 packets 4931570 bytes
Sep 19 13:48:37 osmc connmand[327]: wlan0 {TX} 5830 packets 944977 bytes
Sep 19 13:48:37 osmc connmand[327]: wlan0 {update} flags 36867 <UP>
Sep 19 13:48:37 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:48:37 osmc connmand[327]: wlan0 {newlink} index 4 operstate 5 <DORMANT>
Sep 19 13:48:37 osmc connmand[327]: wlan0 {RX} 9110 packets 4931570 bytes
Sep 19 13:48:37 osmc connmand[327]: wlan0 {TX} 5830 packets 944977 bytes
Sep 19 13:48:37 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:48:37 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Sep 19 13:48:37 osmc wpa_supplicant[414]: wlan0: SME: Trying to authenticate with f4:6b:ef:8d:d4:90 (SSID='WifiniusMaxiumus' freq=2427 MHz)
Sep 19 13:48:37 osmc kernel: wlan0: authenticate with f4:6b:ef:8d:d4:90
Sep 19 13:48:38 osmc wpa_supplicant[414]: wlan0: Trying to associate with f4:6b:ef:8d:d4:90 (SSID='WifiniusMaxiumus' freq=2427 MHz)
Sep 19 13:48:38 osmc kernel: wlan0: send auth to f4:6b:ef:8d:d4:90 (try 1/3)
Sep 19 13:48:38 osmc kernel: wlan0: authenticated
Sep 19 13:48:38 osmc kernel: wlan0: associate with f4:6b:ef:8d:d4:90 (try 1/3)
Sep 19 13:48:38 osmc kernel: wlan0: RX AssocResp from f4:6b:ef:8d:d4:90 (capab=0x401 status=0 aid=1)
Sep 19 13:48:38 osmc kernel: wlan0: associated
Sep 19 13:48:38 osmc connmand[327]: wlan0 {RX} 9110 packets 4931570 bytes
Sep 19 13:48:38 osmc connmand[327]: wlan0 {TX} 5830 packets 944977 bytes
Sep 19 13:48:38 osmc connmand[327]: wlan0 {update} flags 102403 <UP,LOWER_UP>
Sep 19 13:48:38 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:48:38 osmc connmand[327]: wlan0 {newlink} index 4 operstate 5 <DORMANT>
Sep 19 13:48:38 osmc wpa_supplicant[414]: wlan0: Associated with f4:6b:ef:8d:d4:90
Sep 19 13:48:38 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-CONNECTED - Connection to f4:6b:ef:8d:d4:90 completed [id=0 id_str=]
Sep 19 13:48:38 osmc connmand[327]: wlan0 {RX} 9110 packets 4931570 bytes
Sep 19 13:48:38 osmc connmand[327]: wlan0 {TX} 5830 packets 944977 bytes
Sep 19 13:48:38 osmc connmand[327]: wlan0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
Sep 19 13:48:38 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:48:38 osmc connmand[327]: wlan0 {newlink} index 4 operstate 6 <UP>
Sep 19 13:48:38 osmc avahi-daemon[303]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.1.
Sep 19 13:48:38 osmc avahi-daemon[303]: New relevant interface wlan0.IPv4 for mDNS.
Sep 19 13:48:38 osmc avahi-daemon[303]: Registering new address record for 192.168.1.1 on wlan0.IPv4.
Sep 19 13:48:38 osmc connmand[327]: wlan0 {add} address 192.168.1.1/24 label wlan0 family 2
Sep 19 13:48:38 osmc connmand[327]: wlan0 {add} route 192.168.1.0 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:48:38 osmc connmand[327]: wlan0 {add} route 192.168.1.254 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:48:38 osmc connmand[327]: wlan0 {add} route 0.0.0.0 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:48:38 osmc connmand[327]: wlan0 {add} route 159.253.212.250 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:48:38 osmc connmand[327]: wlan0 {del} route 159.253.212.250 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:48:38 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-58 noise=9999 txrate=72200
Sep 19 13:49:18 osmc avahi-daemon[303]: Withdrawing address record for 192.168.1.1 on wlan0.
Sep 19 13:49:18 osmc avahi-daemon[303]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.1.
Sep 19 13:49:18 osmc avahi-daemon[303]: Interface wlan0.IPv4 no longer relevant for mDNS.
Sep 19 13:49:18 osmc kernel: wlan0: deauthenticating from f4:6b:ef:8d:d4:90 by local choice (Reason: 3=DEAUTH_LEAVING)
Sep 19 13:49:18 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-DISCONNECTED bssid=f4:6b:ef:8d:d4:90 reason=3 locally_generated=1
Sep 19 13:49:18 osmc connmand[327]: wlan0 {del} route 192.168.1.254 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:49:18 osmc connmand[327]: wlan0 {del} route 0.0.0.0 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:49:18 osmc connmand[327]: wlan0 {del} address 192.168.1.1/24 label wlan0
Sep 19 13:49:18 osmc connmand[327]: wlan0 {del} route 192.168.1.0 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:49:18 osmc connmand[327]: wlan0 {RX} 9188 packets 4936731 bytes
Sep 19 13:49:18 osmc connmand[327]: wlan0 {TX} 5881 packets 958938 bytes
Sep 19 13:49:18 osmc connmand[327]: wlan0 {update} flags 36867 <UP>
Sep 19 13:49:18 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:49:18 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Sep 19 13:49:19 osmc wpa_supplicant[414]: wlan0: SME: Trying to authenticate with 32:07:4d:59:f3:2c (SSID='AndroidAP' freq=2462 MHz)
Sep 19 13:49:19 osmc kernel: wlan0: authenticate with 32:07:4d:59:f3:2c
Sep 19 13:49:19 osmc wpa_supplicant[414]: wlan0: Trying to associate with 32:07:4d:59:f3:2c (SSID='AndroidAP' freq=2462 MHz)
Sep 19 13:49:19 osmc kernel: wlan0: send auth to 32:07:4d:59:f3:2c (try 1/3)
Sep 19 13:49:19 osmc kernel: wlan0: authenticated
Sep 19 13:49:19 osmc kernel: wlan0: associate with 32:07:4d:59:f3:2c (try 1/3)
Sep 19 13:49:19 osmc kernel: wlan0: RX AssocResp from 32:07:4d:59:f3:2c (capab=0x431 status=0 aid=1)
Sep 19 13:49:19 osmc connmand[327]: wlan0 {RX} 9188 packets 4936731 bytes
Sep 19 13:49:19 osmc connmand[327]: wlan0 {TX} 5881 packets 958938 bytes
Sep 19 13:49:19 osmc connmand[327]: wlan0 {update} flags 102403 <UP,LOWER_UP>
Sep 19 13:49:19 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:49:19 osmc connmand[327]: wlan0 {newlink} index 4 operstate 5 <DORMANT>
Sep 19 13:49:19 osmc wpa_supplicant[414]: wlan0: Associated with 32:07:4d:59:f3:2c
Sep 19 13:49:19 osmc kernel: wlan0: associated
Sep 19 13:49:19 osmc kernel: wlan0: Limiting TX power to 20 (20 - 0) dBm as advertised by 32:07:4d:59:f3:2c
Sep 19 13:49:19 osmc wpa_supplicant[414]: wlan0: WPA: Key negotiation completed with 32:07:4d:59:f3:2c [PTK=CCMP GTK=CCMP]
Sep 19 13:49:19 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-CONNECTED - Connection to 32:07:4d:59:f3:2c completed [id=0 id_str=]
Sep 19 13:49:19 osmc connmand[327]: wlan0 {RX} 9190 packets 4937013 bytes
Sep 19 13:49:19 osmc connmand[327]: wlan0 {TX} 5883 packets 959226 bytes
Sep 19 13:49:19 osmc connmand[327]: wlan0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
Sep 19 13:49:19 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:49:19 osmc connmand[327]: wlan0 {newlink} index 4 operstate 6 <UP>
Sep 19 13:49:20 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=-67 noise=9999 txrate=57800
Sep 19 13:49:21 osmc ntpd[5076]: Deleting interface #7 wlan0, 192.168.1.1#123, interface stats: received=0, sent=0, dropped=0, active_time=92 secs
Sep 19 13:49:22 osmc avahi-daemon[303]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.43.19.
Sep 19 13:49:22 osmc avahi-daemon[303]: New relevant interface wlan0.IPv4 for mDNS.
Sep 19 13:49:22 osmc avahi-daemon[303]: Registering new address record for 192.168.43.19 on wlan0.IPv4.
Sep 19 13:49:22 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-63 noise=9999 txrate=65000
Sep 19 13:49:22 osmc connmand[327]: wlan0 {add} address 192.168.43.19/24 label wlan0 family 2
Sep 19 13:49:22 osmc connmand[327]: wlan0 {add} route 192.168.43.0 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:49:22 osmc connmand[327]: wlan0 {add} route 192.168.43.1 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:49:22 osmc connmand[327]: wlan0 {add} route 0.0.0.0 gw 192.168.43.1 scope 0 <UNIVERSE>
Sep 19 13:49:23 osmc connmand[327]: wlan0 {add} route 159.253.212.250 gw 192.168.43.1 scope 0 <UNIVERSE>
Sep 19 13:49:25 osmc ntpd[5076]: Listen normally on 8 wlan0 192.168.43.19 UDP 123
Sep 19 13:49:25 osmc connmand[327]: wlan0 {del} route 159.253.212.250 gw 192.168.43.1 scope 0 <UNIVERSE>
Sep 19 13:49:36 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-60 noise=9999 txrate=72200
Sep 19 13:50:03 osmc kernel: wlan0: deauthenticating from 32:07:4d:59:f3:2c by local choice (Reason: 3=DEAUTH_LEAVING)
Sep 19 13:50:04 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-DISCONNECTED bssid=32:07:4d:59:f3:2c reason=3 locally_generated=1
Sep 19 13:50:04 osmc avahi-daemon[303]: Withdrawing address record for 192.168.43.19 on wlan0.
Sep 19 13:50:04 osmc avahi-daemon[303]: Leaving mDNS multicast group on interface wlan0.IPv4 with address 192.168.43.19.
Sep 19 13:50:04 osmc avahi-daemon[303]: Interface wlan0.IPv4 no longer relevant for mDNS.
Sep 19 13:50:04 osmc connmand[327]: wlan0 {RX} 9212 packets 4939918 bytes
Sep 19 13:50:04 osmc connmand[327]: wlan0 {TX} 5934 packets 975597 bytes
Sep 19 13:50:04 osmc connmand[327]: wlan0 {update} flags 36867 <UP>
Sep 19 13:50:04 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:50:04 osmc connmand[327]: wlan0 {newlink} index 4 operstate 5 <DORMANT>
Sep 19 13:50:04 osmc connmand[327]: wlan0 {del} address 192.168.43.19/24 label wlan0
Sep 19 13:50:04 osmc connmand[327]: wlan0 {del} route 192.168.43.0 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:50:04 osmc connmand[327]: wlan0 {RX} 9212 packets 4939918 bytes
Sep 19 13:50:04 osmc connmand[327]: wlan0 {TX} 5934 packets 975597 bytes
Sep 19 13:50:04 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:50:04 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Sep 19 13:50:04 osmc connmand[327]: wlan0 {RX} 9212 packets 4939918 bytes
Sep 19 13:50:04 osmc connmand[327]: wlan0 {TX} 5934 packets 975597 bytes
Sep 19 13:50:04 osmc connmand[327]: wlan0 {update} flags 36866 <DOWN>
Sep 19 13:50:04 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:50:04 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Sep 19 13:50:05 osmc connmand[327]: wlan0 {RX} 9212 packets 4939918 bytes
Sep 19 13:50:05 osmc connmand[327]: wlan0 {TX} 5934 packets 975597 bytes
Sep 19 13:50:05 osmc connmand[327]: wlan0 {update} flags 36867 <UP>
Sep 19 13:50:05 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:50:05 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Sep 19 13:50:05 osmc connmand[327]: wlan0 {RX} 9212 packets 4939918 bytes
Sep 19 13:50:05 osmc connmand[327]: wlan0 {TX} 5934 packets 975597 bytes
Sep 19 13:50:05 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:50:05 osmc connmand[327]: wlan0 {newlink} index 4 operstate 2 <DOWN>
Sep 19 13:50:06 osmc wpa_supplicant[414]: wlan0: SME: Trying to authenticate with f4:6b:ef:8d:d4:90 (SSID='WifiniusMaxiumus' freq=2427 MHz)



Sep 19 13:50:06 osmc kernel: wlan0: authenticate with f4:6b:ef:8d:d4:90
Sep 19 13:50:07 osmc kernel: wlan0: send auth to f4:6b:ef:8d:d4:90 (try 1/3)
Sep 19 13:50:07 osmc kernel: wlan0: authenticated
Sep 19 13:50:07 osmc wpa_supplicant[414]: wlan0: Trying to associate with f4:6b:ef:8d:d4:90 (SSID='WifiniusMaxiumus' freq=2427 MHz)
Sep 19 13:50:07 osmc kernel: wlan0: associate with f4:6b:ef:8d:d4:90 (try 1/3)
Sep 19 13:50:07 osmc kernel: wlan0: RX AssocResp from f4:6b:ef:8d:d4:90 (capab=0x401 status=0 aid=1)
Sep 19 13:50:07 osmc connmand[327]: wlan0 {RX} 9212 packets 4939918 bytes
Sep 19 13:50:07 osmc connmand[327]: wlan0 {TX} 5934 packets 975597 bytes
Sep 19 13:50:07 osmc connmand[327]: wlan0 {update} flags 102403 <UP,LOWER_UP>
Sep 19 13:50:07 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:50:07 osmc connmand[327]: wlan0 {newlink} index 4 operstate 5 <DORMANT>
Sep 19 13:50:07 osmc wpa_supplicant[414]: wlan0: Associated with f4:6b:ef:8d:d4:90
Sep 19 13:50:07 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-CONNECTED - Connection to f4:6b:ef:8d:d4:90 completed [id=0 id_str=]
Sep 19 13:50:07 osmc connmand[327]: wlan0 {RX} 9212 packets 4939918 bytes
Sep 19 13:50:07 osmc connmand[327]: wlan0 {TX} 5934 packets 975597 bytes
Sep 19 13:50:07 osmc connmand[327]: wlan0 {update} flags 102467 <UP,RUNNING,LOWER_UP>
Sep 19 13:50:07 osmc connmand[327]: wlan0 {newlink} index 4 address C4:E9:84:DB:D1:86 mtu 1500
Sep 19 13:50:07 osmc connmand[327]: wlan0 {newlink} index 4 operstate 6 <UP>
Sep 19 13:50:07 osmc avahi-daemon[303]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.1.1.
Sep 19 13:50:07 osmc kernel: wlan0: associated
Sep 19 13:50:07 osmc avahi-daemon[303]: New relevant interface wlan0.IPv4 for mDNS.
Sep 19 13:50:07 osmc avahi-daemon[303]: Registering new address record for 192.168.1.1 on wlan0.IPv4.
Sep 19 13:50:07 osmc connmand[327]: wlan0 {add} address 192.168.1.1/24 label wlan0 family 2
Sep 19 13:50:07 osmc connmand[327]: wlan0 {add} route 192.168.1.0 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:50:07 osmc connmand[327]: wlan0 {add} route 192.168.1.254 gw 0.0.0.0 scope 253 <LINK>
Sep 19 13:50:07 osmc connmand[327]: wlan0 {add} route 0.0.0.0 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:50:08 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-56 noise=9999 txrate=65000
Sep 19 13:50:09 osmc connmand[327]: wlan0 {add} route 159.253.212.250 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:50:09 osmc connmand[327]: wlan0 {del} route 159.253.212.250 gw 192.168.1.254 scope 0 <UNIVERSE>
Sep 19 13:50:11 osmc ntpd[5076]: Listen normally on 9 wlan0 192.168.1.1 UDP 123
Sep 19 13:50:11 osmc ntpd[5076]: Deleting interface #8 wlan0, 192.168.43.19#123, interface stats: received=0, sent=0, dropped=0, active_time=46 secs
Sep 19 13:50:25 osmc wpa_supplicant[414]: wlan0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-48 noise=9999 txrate=72200
[   11.405572] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  254.389277] wlan0: authenticate with f4:6b:ef:8d:d4:90
[  255.397007] wlan0: send auth to f4:6b:ef:8d:d4:90 (try 1/3)
[  255.407909] wlan0: aborting authentication with f4:6b:ef:8d:d4:90 by local choice (Reason: 3=DEAUTH_LEAVING)
[  270.395793] wlan0: authenticate with f4:6b:ef:8d:d4:90
[  271.407156] wlan0: send auth to f4:6b:ef:8d:d4:90 (try 1/3)
[  271.414796] wlan0: aborting authentication with f4:6b:ef:8d:d4:90 by local choice (Reason: 3=DEAUTH_LEAVING)
[  280.807496] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  290.711558] wlan0: authenticate with f4:6b:ef:8d:d4:90
[  291.384796] wlan0: send auth to f4:6b:ef:8d:d4:90 (try 1/3)
[  291.386869] wlan0: authenticated
[  291.393064] wlan0: associate with f4:6b:ef:8d:d4:90 (try 1/3)
[  291.397170] wlan0: RX AssocResp from f4:6b:ef:8d:d4:90 (capab=0x401 status=0 aid=1)
[  291.421690] wlan0: associated
[  291.421921] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1733.024891] wlan0: deauthenticating from f4:6b:ef:8d:d4:90 by local choice (Reason: 3=DEAUTH_LEAVING)

And here is something showing the contents of my wpa_supplicant folder:

@osmc:/etc/wpa_supplicant$ ls
action_wpa.sh functions.sh ifupdown.sh

should there not be an entry in here?

As some further trouble shooting I have changed my password on my home router to something easy temporarirly. first chance it didnt connect, second time I actually got a connection!!

Now I am showing some network information configured through DHCP, but when I ping the IP shown I get nothing.

I’ve reformatted the log to make it more readable.

It looks like you are not getting an IP address from the router (via DHCP) and it is using avahi/mDNS to allocate an arbitrary address. So first ensure that DHCP is working on the router.

I then think the best thing is to start with a fresh connman configuration for the Pi, which will require the deletion of the old entry. Please post the full output from running:

sudo connmanctl
services          
config wifi_xxxxxxxxxx_yyyyyy_managed_psk --remove
agent on
connect wifi_xxxxxxxxxx_yyyyyy_managed_psk
<Enter passphrase>
services wifi_xxxxxxxxxx_yyyyyy_managed_psk
quit

(Choose the correct name for the wifi service.)

Then run ifconfig.