skoruba/IdentityServer4.Admin

run IdentityServer.Admin on linux failed. Failed to create CoreCLR, HRESULT: 0x80004005

XavierMessi opened this issue · 0 comments

I'm using Skoruba.IdentityServer4.Admin.Templates::2.0.1 template to create the projects and deployed it to linux. The Admin.Api and STS worked well. But the IdentityServer.Admin did not work.

The publish profile looks like this:
<PropertyGroup> <DeleteExistingFiles>True</DeleteExistingFiles> <ExcludeApp_Data>False</ExcludeApp_Data> <LaunchSiteAfterPublish>True</LaunchSiteAfterPublish> <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> <LastUsedPlatform>Any CPU</LastUsedPlatform> <PublishProvider>FileSystem</PublishProvider> <PublishUrl>bin\Release\net5.0\publish\</PublishUrl> <WebPublishMethod>FileSystem</WebPublishMethod> <SiteUrlToLaunchAfterPublish /> <TargetFramework>net5.0</TargetFramework> <RuntimeIdentifier>linux-x64</RuntimeIdentifier> <ProjectGuid>xxxxxxx--xxxxxxxxxxxxx--xxxxxxx--xxxxxxx</ProjectGuid> <SelfContained>false</SelfContained> </PropertyGroup>

When I first use dotnet xxx.dll to test. It shows the error:
Failed to load /home/CorePublish/IdentityServer/Idp.admin/libcoreclr.so, error: libunwind.so.8: cannot open shared object file: No such file or directory

Then, I install it by yum install libunwind.

Again, I use dotnet xxx.dll to test. It shows the error:

Failed to create CoreCLR, HRESULT: 0x80004005

I did a lot of research on the internet, but unfortunately, I did not solve this problem.

The other relevant information:

`dotnet --info
.NET SDK (reflecting any global.json):
Version: 5.0.210
Commit: 3665e1a61c

Runtime Environment:
OS Name: centos
OS Version: 8
OS Platform: Linux
RID: centos.8-x64
Base Path: /usr/lib64/dotnet/sdk/5.0.210/

Host (useful for support):
Version: 5.0.13
Commit: b3afe99225

.NET SDKs installed:
5.0.210 [/usr/lib64/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.13 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.13 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]`

Relevant parts of the log file

   <log goes here>