Closed orbitz closed 1 year ago
The wpa_cli
tool depends on the Unix Domain Socket (UDS) pass-through feature, which might be the cause why you cannot make a connection to it. When this happens, it is worth to check if the daemon: wifibox-uds-passthru
and (more importantly) the socat
processes are launched properly. For example:
$ pgrep -lf socat
39949 /usr/local/bin/socat UNIX-RECVFROM:/var/run/wpa_supplicant/wlan0,reuseaddr,fork,unlink-early,user=root,group=0,mode=770 TCP4:10.0.0.1:1200
Problems with that shall be recorded in wifibox.log
too, so relevant snippets might be useful to see. You can also check the guest by entering via the console and see if the uds_passthru
script is running and socat
is also there. For example:
% pgrep -lfa socat
962 /usr/bin/socat TCP4-LISTEN:1200,reuseaddr,bind=10.0.0.1,range=10.0.0.1:255.255.255.0,fork UNIX-SENDTO:/var/run/wpa_supplicant/wlan0,bind=/tmp/tmp.GEHmcI/tmp.INJMeL,unlink-early
When socat
is not running on the guest, the messages
file shall contain information on the causes (error messages). To find them, search for uds_passthru
like this:
% fgrep uds_passthru /var/log/messages
[..]
May 9 23:20:22 wifibox daemon.debug uds_passthru[953]: Configuration: network=10.0.0.1:255.255.255.0, sockets=[path=/var/run/wpa_supplicant/wlan0,user=root,group=0,mode=770,port=1200]
May 9 23:20:22 wifibox daemon.info uds_passthru[953]: Associating 10.0.0.1:1200 (10.0.0.1:255.255.255.0) with /var/run/wpa_supplicant/wlan0 (/tmp/tmp.GEHmcI/tmp.INJMeL)
May 9 23:20:22 wifibox daemon.info uds_passthru[953]: Waiting for PID 968 to stop.
@orbitz ?
@pgj Sorry, this has not happened to me again in some time so I haven't been able to debug. I'll close this for now and if/when it happens again, add more information.
Description
Sometimes when I start wifibox, the internet connection works fine but all
wpa_cli
operations fail. Restarting wifibox does not address the issue. I have to restart the OS. I do not know how to consistently reproduce this.Host operating system
Wireless NIC
Logs
Additional context
Add any other context about the problem here that might help the investigation.
Have you tried to turn it on and off?