Comments (1)
Found out that this seems to be a bug in proxmox for long time now. -> https://forum.proxmox.com/threads/ping-with-unprivileged-user-in-lxc-container-linux-capabilities.42308/
The problem is that the rights are not correct set for ping.
I have written a simple script to check if the rights are correct and if not they will be set. I am not sure where is the best place to add this function, while the same bug possible effect other adapter when they want to use ping.
We should also remember that a system update can change the rights again, as someone has written on the forum thread.
`const os = require('os');
const { exec } = require('child_process');
if (os.type() === 'Linux') {
exec('setcap -v cap_net_raw+p /bin/ping', (error, stdout, stderr) => {
if (stdout) {
if (stdout.includes('differs in [p]')) {
exec('sudo setcap cap_net_raw+p /bin/ping', (error, stdout, stderr) => {
if (stderr) {
console.error(`Error setting permissions: ${error}`);
} else {
console.log('Permission set for pinging.');
}
});
}
}
});
}`
from iobroker.discovery.
Related Issues (20)
- Update stable version in repo from 2.7.3 to 2.7.5
- Adding support for openknx HOT 6
- Adding support for e3dc-rscp HOT 6
- Think about to fix the issues found by adapter checker HOT 1
- Compatibility check to js-controller 4.0 HOT 1
- Update stable version in repo from 2.7.5 to 2.8.0
- Text der Einstellungen im dunklen Farbmodus nicht lesbar HOT 2
- Expert Mode for Network Seqments HOT 2
- Update stable version in repo from 2.8.0 to 3.0.3
- Update stable version in repo from 3.0.3 to 3.0.5
- Run discovery "slowly" in background once a day
- Transform discovery into a js-controller plugin to be controlled via messages
- Update stable version in repo from 3.0.5 to 3.1.0
- Update stable version in repo from 3.1.0 to 3.2.0 HOT 1
- upnp method does not reliably find all ssdp servers in the network HOT 3
- Update stable version in repo from 3.1.0 to 4.2.0 HOT 3
- Add generic MDNS/UPNP discovery and propose adapters
- Allow to specify the network segment(s) to scan HOT 1
- Update stable version in repo from 4.4.0 to 4.5.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 iobroker.discovery.