Failed to create CoreCLR, HRESULT: 0x80004005

See original GitHub issue

Hello!

I am running pwsh v7.0.2 on RHEL 7.6 (maipo). I have a script that examines and manipulates a large number of XML files. Until recently the same script on a windows 10 machine without issues. But recently we moved to a beefier linux machine for compliance reasons.

And since then I am seeing the following error message interspersed with normal messages:

Failed to create CoreCLR, HRESULT: 0x8000405

I can’t seem to find anything useful anywhere else that tells me why this is happening?

Steps to reproduce

nohup find /data/input/lot001/ -name '*.xml' -exec pwsh -File ./MyScript.ps1 {} \; 2>&1 > /data/logs/lot001.log &

Expected behavior

  • regular output messages
  • script completes execution

Actual behavior

  • regular output messages interspersed with the error message - Failed to create CoreCLR, HRESULT: 0x8000405

Environment data

Name                                      Value
-----                                        -------
PSVersion                               7.0.2
PSEdition                                Core
GitCommitId                           7.0.2
OS                                           Linux 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 15 17:36:42 UTC 2018
Platform                                  Unix
PSCompatibleVersions            {1.0, 2,0, 3.0, 4.0...}
PSRemotingProtocolVersion   2.3
SerializationVersion                1.1.0.1
WSManStackVersion               3.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
daxian-dbwcommented, Jul 17, 2020

@mskadu At startup, CoreCLR tries to create named pipes for debugging and profiling of the process in /tmp/. It could be that the pipe creation fails intermittently when pwsh gets started so frequently. Can you please try disabling CoreCLR diagnostics by setting the environment variable export COMPlus_EnableDiagnostics=0 (as instructed here), and then try running your repro step again to see if that helps?

2reactions
mskaducommented, Jul 23, 2020

I know this is closed. But thought I’d let you know this suggestion worked. For people who find this after. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

.Net application aborts at startup with "Failed to create ...
Failed to create CoreCLR, HRESULT: 0x80004005. The same app launched fine built and ran (on both OSX and Linux) against .Net 7 preview...
Read more >
How to fix exception "Failed to initialize CoreCLR, HRESULT
and I received in terminal "Failed to initialize CoreCLR, HRESULT: 0x80004005" I surfed internet, found solution to check permissions for ...
Read more >
asp.net - Failed to create CoreCLR, HRESULT: 0x80004005
1. I have the same problem. · 2. Try to the environment variable COMPlus_EnableDiagnostics to 0 and run the app. · I also...
Read more >
Jellyfin service error: Failed to create CoreCLR, HRESULT
Hi all, I've recently set up a Fedora server and was looking to move my Jellyfin install ... Failed to create CoreCLR, HRESULT:...
Read more >
Published binaries: Failed to initialize CoreCLR, HRESULT
Published binaries: Failed to initialize CoreCLR, HRESULT: 0x80004005. With runtime set to win10-x64 or win7-x64 on startup we get:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found