-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iotedged can't work with systemd < 227 #14
Comments
Hi. We are aware of this issue. It is one of the main reasons we don't officially support Debian 8. We would like to not be dependent on Currently, we have two listening sockets, which have different permissions. Socket unit files support multiple Listen stanzas but do not support setting different permissions for these stanzas. This is why there are two socket units. We need to make some updates to allow for the same permissions across the sockets so that we can eliminate the As a note, you can set the As a workaround, you can skip using the systemd socket activation altogether, and specify |
However, iotedge daemon does not set the correct permissions to the sockets files, so edgeHub for example cannot write to workload socket as its user is not root: ls -la /var/run/iotedge/total 0 Config: connect: This happens on rhel7.5 |
This was addressed here and will be available in the next release: #113 I'm going to close this for now. As we add more platforms, we will verify that they work with the systemd version for the distribution. Thanks. |
Remove Hub and Device IDs from Deployment and Pod names.
systemd introduced
sd_listen_fds_with_names
since version 227 and Debian 8 use systemd 215 which won't pass env LISTEN_FDNAMES to iotedged.Here is a workaround for me now, by adding
Environment=LISTEN_FDNAMES=iotedge.mgmt.socket:iotedge.socket
manually in/etc/systemd/system/multi-user.target.wants/iotedge.service
The entire file:
Do iotedged really need to use
LISTEN_FDNAMES
? Or maybe add a fallback mechanism would be great.The text was updated successfully, but these errors were encountered: