$ sudo setcap cap_net_bind_service=+ep 'realpath /usr/bin/java'
Failed to set capabilities on file `realpath /usr/bin/java' (Invalid argument) The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
Don’t think the thing name is a problem (but I’ll change it anyway). The ping functionality works perfectly. It’s just DHCP that doesn’t work
Hi.
Jumping in here since I have a similar problem. Thing is though that even when I use the “real” file it doesn’t work:
root@cube:~# setcap cap_net_bind_service=+ep /usr/lib/jvm/java-8-oracle/jre/bin/java
Failed to set capabilities on file `/usr/lib/jvm/java-8-oracle/jre/bin/java’ (Invalid argument)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file
After some Googling I suspect maybe this is something that is missing in my kernel, but I don’t know how to verify that hypothesis. Also I don’t think I can change kernel (got a somewhat complicated uboot setup), is there any way of going around this?
Seems legit. Too bad. I’m afraid I can’t help here. Is this OS you are running on “Cube” something special? Which java version did you install from where? I’ve seen the exact same error message, but was indeed trying to work with a not exisiting or symlink file…
It’s a CuBox server (from an Israeli company named Solidrun, very nice little computer), hence the name cube. It’s running a normal Debian 8.7, just with a not really standard kernel. The Java is Oracles official one, but I don’t think this error is really Java related. Guess I’ll have to read up on that setcap stuff…
Unfortunately not. I still think it’s kernel related but I haven’t succeeded in upgrading my kernel (spent an entire day giving u-boot a hard time but it simply refused). Do you have some special kernel as well?
I run the OH2 official Docker image on my Synology DS415+.
From this Docker issue #5650, the Capabilities functions are not supported by AUFS.
My storage backend is well AUFS:
sudo docker info | grep Driver
Storage Driver: aufs
Hi, I am just starting to configure OH2 on a Beaglebone Black running Debian.
I cannot get DHCP listen to work, hope it’s appropriate to post in this thread.
I have set the cap_net_bind_service+ep capability for java, but instead of the “Permission denied” error, I now get:
[ERROR] [nding.network.service.NetworkService] - Cannot use DHCP listen: Address already in use (Bind failed)
23:32:45.590 [INFO ] [smarthome.event.ThingUpdatedEvent ] - Thing 'network:device:192_168_3_146' has been updated.
23:32:45.641 [ERROR] [nding.network.service.NetworkService] - Cannot use DHCP listen: Address already in use (Bind failed)