Comments (7)
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.
something to do with ujail
from wifi-presence.
Temporary solution, delete or move /etc/capabilities/wpad.json file:
root@OpenWrt:~# mv /etc/capabilities/wpad.json ./
from wifi-presence.
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.
I have the same issue
from wifi-presence.
Seems like this issue is fixed in the latest version(0.3.0)
from wifi-presence.
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)
- JSON configuration persistency HOT 3
- Support for newer version of hostapd in OpenWrt master HOT 3
- __nanosleep_time64: symbol not found HOT 2
- Ability to publish status for all devices HOT 1
- opkg version outdated HOT 1
- MQTT entity name starts with the device name HOT 2
- Roaming between multiple APs HOT 2
- Conflict with wpad-basic-mbedtls HOT 1
- Support for MQTT over TLS (MQTTS)?
- Needs to be started as network user/group in openwrt HOT 14
- Error in wifi-presence: EventUnrecognized HOT 4
- OpenWrt Boot racecondition HOT 2
- SSID with mixed UTF-8 and ASCII characters cannot be handled correctly HOT 3
- Doesn't work after update to 22.03.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wifi-presence.