question

LlegadoCindy-5372 avatar image
0 Votes"
LlegadoCindy-5372 asked LALANNEJeremieCELLENZA-1571 commented

EdgeAgent is failing in rpi 3 edge runtime due to System.IO.IOException: Permission denied

I am installing Edge runtime to raspberry pi 3 ARM32, but Edge agent keeps on failing.

Iotedge version 1.1

here is the Edge Agent logs
2021-09-04 11:10:29 +00:00 Starting Edge Agent
2021-09-04 11:10:29 +00:00 Changing ownership of management socket: /var/run/iotedge/mgmt.sock
2021-09-04 11:10:29.849 +00:00 Edge Agent Main()
<6> 2021-09-04 11:10:30.765 +00:00 [INF] - Initializing Edge Agent.
<6> 2021-09-04 11:10:31.496 +00:00 [INF] - Version - 1.1.4.44136317 (cbeb53cf8b5889718c4724936f6d13ef5ceaac2e)
<6> 2021-09-04 11:10:31.498 +00:00 [INF] -
█████╗ ███████╗██╗ ██╗██████╗ ███████╗
██╔══██╗╚══███╔╝██║ ██║██╔══██╗██╔════╝
███████║ ███╔╝ ██║ ██║██████╔╝█████╗
██╔══██║ ███╔╝ ██║ ██║██╔══██╗██╔══╝
██║ ██║███████╗╚██████╔╝██║ ██║███████╗
╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝

██╗ ██████╗ ████████╗ ███████╗██████╗ ██████╗ ███████╗
██║██╔═══██╗╚══██╔══╝ ██╔════╝██╔══██╗██╔════╝ ██╔════╝
██║██║ ██║ ██║ █████╗ ██║ ██║██║ ███╗█████╗
██║██║ ██║ ██║ ██╔══╝ ██║ ██║██║ ██║██╔══╝
██║╚██████╔╝ ██║ ███████╗██████╔╝╚██████╔╝███████╗
╚═╝ ╚═════╝ ╚═╝ ╚══════╝╚═════╝ ╚═════╝ ╚══════╝

<0> 2021-09-04 11:10:31.526 +00:00 [FTL] - Fatal error reading the Agent's configuration.
System.UnauthorizedAccessException: Access to the path '/iotedge/storage/edgeAgent' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at Microsoft.Azure.Devices.Edge.Agent.Service.Program.GetOrCreateDirectoryPath(String baseDirectoryPath, String directoryName) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Service/Program.cs:line 430
at Microsoft.Azure.Devices.Edge.Agent.Service.Program.MainAsync(IConfiguration configuration) in /home/vsts/work/1/s/edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Service/Program.cs:line 111

azure-iot-edge
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

asergaz avatar image
0 Votes"
asergaz answered LALANNEJeremieCELLENZA-1571 commented

Hi @LlegadoCindy-5372 can you please share the OS version on your raspberry pi 3?

Note: For Arm32 the Tier 1 Supported version is Raspberry Pi OS Stretch as described here: https://docs.microsoft.com/en-us/azure/iot-edge/support?view=iotedge-2018-06#linux-containers

Thanks!

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @LlegadoCindy-5372 let us know if you are still facing the issue and can inform us on the OS version on your Raspberry Pi 3?

Thanks

0 Votes 0 ·

Hi @asergaz i am running

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian

0 Votes 0 ·

May we have an update on this please? @azergaz
I am facing the same issue, with Ubuntu Server 20.04 on raspi4B+
I did configure the following:
sudo mkdir -p /etc/iotedge/storage
sudo chown -R 1000:1000 /etc/iotedge/storage/
sudo chmod -R 700 /etc/iotedge/storage/
and put these values as storageFolder env variable in deployment manifest, but still this error, for both edgeAgent and edgeHub.

0 Votes 0 ·