Waziup / WaziGate

Waziup LoRa Edge gateway
21 stars 20 forks source link

Cannot connect to Wifi #61

Closed cdupont closed 4 years ago

cdupont commented 4 years ago

I freshly installed V1.1-beta1, but cannot connect to local Wifi:

2020-01-28T10:50:41.717692031Z [Info  ] executing [ ip link set wlan0 up ] 
2020-01-28T10:50:41.727487512Z [Exec  ]: Host Command [ sudo cp /etc/wpa_supplicant/wpa_supplicant.conf.orig /etc/wpa_supplicant/wpa_supplicant.conf; ]
2020-01-28T10:50:41.879980125Z [Exec  ]: Host Command [ sudo wpa_passphrase "311-verona" "1a2s3d4f5g" >> /etc/wpa_supplicant/wpa_supplicant.conf;  ]
2020-01-28T10:50:42.017725870Z [Exec  ]: Host Command [ sudo bash start_wifi.sh ]
2020-01-28T10:50:42.211620607Z [OLED  ] "
2020-01-28T10:50:42.211781648Z Connecting to
2020-01-28T10:50:42.211817377Z    WiFi..."
2020-01-28T10:51:00.238189700Z [Info   ] FAIL
2020-01-28T10:51:00.238339230Z Successfully initialized wpa_supplicant
2020-01-28T10:51:00.238375689Z ctrl_iface exists and seems to be in use - cannot override it
2020-01-28T10:51:00.238405220Z Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
2020-01-28T10:51:00.238434178Z Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=netdev'.
2020-01-28T10:51:00.238468136Z You may have another wpa_supplicant process already running or the file was
2020-01-28T10:51:00.238499959Z left by an unclean termination of wpa_supplicant in which case you will need
2020-01-28T10:51:00.238528605Z to manually remove this file before starting wpa_supplicant again.
2020-01-28T10:51:00.238557146Z 
2020-01-28T10:51:00.238584698Z nl80211: deinit ifname=wlan0 disabled_11b_rates=0
2020-01-28T10:51:00.238612667Z [Exec  ]: Host Command [ systemctl is-active --quiet hostapd && echo 1 ]
2020-01-28T10:51:03.262790014Z [Exec  ]: Host Command [ iwgetid ]
2020-01-28T10:51:05.767064923Z [Exec  ]: Host Command [ curl --unix-socket /var/run/docker.sock http://localhost/containers/json?all=true ]
cdupont commented 4 years ago

Same today

cdupont commented 4 years ago

https://github.com/codywd/NetGUI/issues/22 Maybe running:

wpa_cli terminate

before start_wifi.sh.

cdupont commented 4 years ago

https://github.com/Waziup/WaziGate/commit/2b803c5f685295f656e0e5f47c7d8fb315f73623 closing.