Code Monkey home page Code Monkey logo

daemon.err wifi-presence[6693]: Error: unable to connect to hostapd control socket "/var/run/hostapd/wlan0": ping error: read error from "PING" command: read unixgram /tmp/wp.wlan0->/var/run/hostapd/wlan0: i/o timeout about wifi-presence HOT 7 OPEN

awilliams avatar awilliams commented on May 30, 2024
daemon.err wifi-presence[6693]: Error: unable to connect to hostapd control socket "/var/run/hostapd/wlan0": ping error: read error from "PING" command: read unixgram /tmp/wp.wlan0->/var/run/hostapd/wlan0: i/o timeout

from wifi-presence.

Comments (7)

Ordspilleren avatar Ordspilleren commented on May 30, 2024 1

I also ran intro this issue and discovered that simply running the service as the network user solves the problem by adding procd_set_param user network to the init file.

Alternatively, running wifi-presence in a jail with the same capabilities as hostapd also seems to solve the issue:

procd_add_jail fdfd log requirejail
procd_set_param capabilities /etc/capabilities/wpad.json

from wifi-presence.

pablomarquesmendez avatar pablomarquesmendez commented on May 30, 2024

something to do with ujail

from wifi-presence.

pablomarquesmendez avatar pablomarquesmendez commented on May 30, 2024

Temporary solution, delete or move /etc/capabilities/wpad.json file:
root@OpenWrt:~# mv /etc/capabilities/wpad.json ./

from wifi-presence.

awilliams avatar awilliams commented on May 30, 2024

Please try running wifi-presence using ujail with the same configuration options as hostapd.

For example, on my OS I see hostapd being run with these settings:

# ps w | grep hostapd | grep ujail
 1575 root      2656 S    {hostapd} /sbin/ujail -t 5 -n hostapd -U network -G network -C /etc/capabilities/wpad.json -c -- /usr/sbi

I'm then able to run wifi-presence in a similar way:

# /sbin/ujail -U network -G network -C /etc/capabilities/wpad.json -n wifi-presence /tmp/wifi-presence -mqtt.addr=tcp://mosquitto:1883 -verbose=1

Once there's more documentation for ujail I'll work on incorporating this into the run script.

Thanks for the bug report.

from wifi-presence.

presidentio avatar presidentio commented on May 30, 2024

I have the same issue

from wifi-presence.

presidentio avatar presidentio commented on May 30, 2024

Seems like this issue is fixed in the latest version(0.3.0)

from wifi-presence.

aiac avatar aiac commented on May 30, 2024

Even at 0.3.0 I had to do the procd_set_param user network trick in /etc/init.d/wifi-presence

from wifi-presence.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.