Agent offline: Failed to establish IPC: open \\\\.\\PIPE\\himds: The system cannot find the file specified.

luuk jansen 5 Reputation points
2023-03-03T14:55:52.1+00:00

Getting the [Title ] error in the azcmagent.log

The server status shows offline.

Restarted the HIMDS service.

Commands like azcmagent show, check don't work. Same error messages as in the title.

The agentconfig.json and localconfig.json files are there in the config folder in programdata > azureconnectedmachineagent.

Azure Arc
Azure Arc
A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
525 questions
{count} vote

2 answers

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,551 Reputation points Moderator
    2023-03-08T09:29:38.8133333+00:00

    luuk jansen, thank you for posting this question.

    I understand that you have installed Arc agent on a Windows VM and it is working as expected. Here are some of the troubleshooting steps that should help isolate/troubleshoot the issue further

    1. As the error states, the HIMDS pipe has not being found by the agent. This could be if the HIMDS agent is not running, it was unable to register for pipe OR if something is blocking the communication (like a local antivirus application). Check if the HIMDS service "Azure Hybrid Instance Metadata Service" is running. I see that you have attempted restarting this service, but does it stay running? You may also check the Application and System logs to understand if there are errors after starting/restarting the HIMDS service. Group polies may also impact the run of service
    2. The following troubleshooting steps are applicable for all types of extensions, including Arc - general troubleshooting. Check to see if there are errors in these logs related to incomplete or interrupted onboarding of the agent.
    3. If this issue is happening only on a single machine, it could mean that the machine is impacted. However, if there are multiple machines with similar issues, most probably it could be related to the domain policy or the security softwares used in the environment.
    4. Finally, uninstalling the arc agent and reinstalling can also be attempted - uninstall the arc agent.

    Please let us know if you have any questions.

    If the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

  2. Ruben van Osch 106 Reputation points
    2023-03-15T13:14:32.7833333+00:00

    Due to a few oversights we eventually narrowed the problem down to the same issue described in the following question

    The sollution then is to modify the Log on as a Service GPO by adding the NT SERVICE\himds account.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.