A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/app/'.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
Begin with the supplied multi-stage Dockerfile and the reproduction repository, then reproduce the image startup in Google Cloud Run. Trace why the published application cannot find libhostpolicy.so and verify the resulting deployment configuration by confirming that the sample starts without the fatal error.
Written by the indexing model from the issue text.
Description
Hi,
I am getting the following error when deploying donet core 3.0 with docker:
A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/app/'.
This is my Dockerfile:
`
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0-buster-slim AS base
WORKDIR /app
EXPOSE 8080
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build
WORKDIR /src
COPY ["TestCloudRun.csproj", "TestCloudRun/"]
RUN dotnet restore "TestCloudRun/TestCloudRun.csproj"
COPY . .
WORKDIR "/src/TestCloudRun"
RUN dotnet build "TestCloudRun.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "TestCloudRun.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "TestCloudRun.dll"]
`
This is the repo: https://github.com/avifatal/core3deployment-issue
I should mention that I'm deploying to google cloud run.
Thanks
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 235
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dotnet/sdk
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Re-enable ItCanTestAMultiTFMProjectWithImplicitRestore after MSBuild revert (msbuild#14349) flows in Openuntriaged
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Area-dotnetup untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SubtitleEdit/subtitleedit#15108 · 1 comment ·
-
area/docs-content Bug pulumi/docs
Difficulty 1/5 1-3 hours Newbie friendliness 94/100
-
agentic-workflows untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 76/100