Closed MattCosturos closed 5 months ago
User add error was not related to the chown error.
I had to sudo apt-get autoremove --purge aziot-edge
several time, and reboot, and I'm not exactly sure what else.
But traces of a previous install caused the chown error.
Then I did
sudo apt install -y aziot-identity-service
which worked
then I did
sudo apt install -y aziot-edge
which "worked" even tho the user add still had a conflict
Is there any documentation on manually adding edgeagentuser
to the system?
I assume I will need to manually create 2 users.
useradd -r -g iotedge -c "edgeAgent user" -s /sbin/nologin edgeagentuser
useradd -r -c "edgeHub user" -s /sbin/nologin edgehubuser
But then how do I use those userIds?
I saw something about the EDGEAGENTUSER_ID
env var, but not exactly sure what process needs to know this uid.
I believe being able to set the EDGEAGENTUSER_ID env var was added as backwards compatibility with previous iotedge versions. You should be able to add it in your deployment manifest in the env section: https://learn.microsoft.com/en-us/azure/iot-edge/module-edgeagent-edgehub?view=iotedge-1.4#edgeagent-desired-properties
@MattCosturos Can you give it a try with the deployment manifest change per Bilal above?
@MattCosturos any updates?
I might be missing it, I don't see any mention of EDGEAGENTUSER_ID
in that linked article.
I will go ahead and add an env var called EDGEAGENTUSER_ID
to the creation options and test that today and report back
Yes. setting the env vars EDGEAGENTUSER_ID
AND EDGEHUBUSER_ID
in a deployment manifests allows one to specify which user Id should be used for the modules.
Expected Behavior
The install should work
Current Behavior
The install fails
Steps to Reproduce
Have a system linked to our domain / privileged identity management system that has 1000s of users.
Run
sudo apt install -y aziot-edge
Are the
useradd
errors related to theNo such file or directory
error?output
Context (Environment)
Output of
iotedge check
N/ A
Device Information
Ubuntu 20.04, amd64