Azure iot defender micro agent - [procfs_reader.c/read_data_from_procfs:101] Error getting username in pid

Dinesh, Midhun 0 Reputation points
2024-04-30T08:27:45.61+00:00

Hi,

When configuring the azure iot defender micro agent on the iot edge device (azure vm) we uncounted the following error message - [procfs_reader.c/read_data_from_procfs:101] Error getting username in pid

When checking the status its running, its gives an error2024-04-30 10_00_13-Window 1

I restarted the service and then saw additional messages at startup (don't know if its related to the issue).

sudo journalctl -u defender-iot-micro-agent | tail -n 100

2024-04-30 10_02_34-Window 1

we checked the permissions and its looks okay

2024-04-30 10_06_08-Window 1

The one thing stands out the folder looks different than in the Microsoft documentation. But its same folder as when we run the status command.

I also tested the system- https://learn.microsoft.com/en-us/azure/defender-for-iot/device-builders/tutorial-standalone-agent-binary-installation#test-the-system

but it doesn't produce recommendation in azure. The log analytics table : SecurityRecommendation does not return any result.

Please help,

Regards,

Midhun

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
385 questions
Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
548 questions
0 comments No comments
{count} votes