Comments (7)
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.
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.
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.
@MattCosturos Can you give it a try with the deployment manifest change per Bilal above?
from iotedge.
@MattCosturos any updates?
from iotedge.
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.
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)
- Configuration on unattained embedded devices HOT 4
- Protecting Edge (Docker) Module Images at rest with the IoT-Edge? HOT 3
- Microsoft.Azure.Devices.Edge.Agent.Edgelet.EdgeletCommunicationException HOT 3
- Unable to communicate with Edge modules (in EFLOW) from the host OS HOT 10
- Offline detection status / event HOT 4
- edgeAgent automatically stopping all modules HOT 3
- IoT device works perfectly for days, then it does not - reboot fixes issue HOT 3
- Error getting device scope result from IoTHub (IotHubUnauthorizedAccess) HOT 2
- Unexpected shutdown, is it a kind of planned upgrade? HOT 4
- Direct Method of IoTEdge module takes 3 minutes to start responding HOT 11
- IoT Edge produces too much traffic with default configuration, it is not conducive for billable networks such as cellular. HOT 13
- Iotedge fails to make docker-proxy.sock after reboot (file exists) in Ubuntu Core HOT 15
- How to run aziot-edge in a docker container? HOT 10
- EdgeAgent does not restart crashed module if busy downloading new manifest 1.4.10 HOT 5
- Create a reusable Volume in Azure IOT Edge Module via Container Create Options HOT 2
- Can not ssh into a (running) VM with Ubuntu Core 20 on my k3s cluster HOT 1
- Reported twin does not reflect running container HOT 2
- Scarthgap support? HOT 1
- Best Practices/Guidance on upgrading a remote database module HOT 3
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 iotedge.