Code Monkey home page Code Monkey logo

Comments (7)

MattCosturos avatar MattCosturos commented on June 14, 2024

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

from iotedge.

MattCosturos avatar MattCosturos commented on June 14, 2024

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.

from iotedge.

bilalsellak avatar bilalsellak commented on June 14, 2024

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

from iotedge.

konichi3 avatar konichi3 commented on June 14, 2024

@MattCosturos Can you give it a try with the deployment manifest change per Bilal above?

from iotedge.

david-emakenemi avatar david-emakenemi commented on June 14, 2024

@MattCosturos any updates?

from iotedge.

MattCosturos avatar MattCosturos commented on June 14, 2024

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

from iotedge.

MattCosturos avatar MattCosturos commented on June 14, 2024

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.

from iotedge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.