microsoft / azure-pipelines-agent

Azure Pipelines Agent 🚀
MIT License
1.7k stars 855 forks source link

[BUG]: Pipeline fails with Failed to create CoreCLR, HRESULT: 0x80004005 #4741

Open lewisoptellum opened 3 months ago

lewisoptellum commented 3 months ago

What happened?

All my self hosted devops pipelines are failing with Failed to create CoreCLR, HRESULT: 0x80004005 . I am not aware of any updates which have caused this. I have seen the solution here and tried it with no luck.

Versions

Ubuntu 22.04.2 LTS Agent 3.236.1 dotnet 8.0.203

Environment type (Please select at least one enviroment where you face this issue)

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 22.04.2 LTS

Version controll system

git

Relevant log output

##[error]Failed to create CoreCLR, HRESULT: 0x80004005
,##[error]We stopped hearing from agent fern00. Verify the agent machine is running and has a healthy network connection. Anything that terminates an agent process, starves it for CPU, or blocks its network access can cause this error. For more information, see: https://go.microsoft.com/fwlink/?linkid=846610
vmapetr commented 2 months ago

Hi @lewisoptellum thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.

lewisoptellum commented 2 months ago

Thanks a lot. Do you have any suggestions for a work around at the minute? Currently our entire CI is blocked by this issue is all.

Sent from Outlook for Androidhttps://aka.ms/AAb9ysg


From: Maksim Petrov @.> Sent: Monday, April 8, 2024 2:28:15 AM To: microsoft/azure-pipelines-agent @.> Cc: Lewis Lappin @.>; Mention @.> Subject: Re: [microsoft/azure-pipelines-agent] [BUG]: Pipeline fails with Failed to create CoreCLR, HRESULT: 0x80004005 (Issue #4741)

CAUTION: External email

Hi @lewisoptellumhttps://github.com/lewisoptellum thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.

— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/azure-pipelines-agent/issues/4741#issuecomment-2042044901, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAGDMIZELX6GS4UFLPKY3OTY4JBI7AVCNFSM6AAAAABFRWBV26VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBSGA2DIOJQGE. You are receiving this because you were mentioned.Message ID: @.***>

CAUTION: This email is confidential and intended for the addressees only. If you receive this email in error, please let us know and delete the email. We believe, but do not warrant, that this email and any attachments are virus free. We do not accept any liability for losses that you may sustain as a result of software viruses.

lewisoptellum commented 2 months ago

Adding the following to runsvh.sh solved the issue:

# insert anything to setup env when running as a service
export COMPlus_EnableDiagnostics=0
cliedeman commented 2 weeks ago

I am having the same intermittent issue and don't know how to debug it.

@lewisoptellum How did you figure out that solution?