ERROR: failed to calculate checksum of ref

hra620
HOBBY

a year ago

Hey guys.

I'm facing this error when I try to deply my ASP.NET Core Web API project. My project is in Github.

#11 ERROR: failed to calculate checksum of ref d3b51ea2-3453-4a70-b6b4-bf08cfc4f7d9::etjgqr3a8ow7y78z52tyd46xk: "/src/SiengeAutomation.Infrastructure.Database/SiengeAutomation.Infrastructure.Database.csproj": not found

17 Replies

hra620
HOBBY

a year ago

Dockerfile

Attachments


hra620
HOBBY

a year ago

Settings tab:


hra620
HOBBY

a year ago

railway file

Attachments


hra620
HOBBY

a year ago

Deployment log:


hra620
HOBBY

a year ago

Project structure:


a year ago

Does the Dockerfile work locally?


hra620
HOBBY

a year ago

Yes!


a year ago

Perhaps you have something in the .gitignore that shouldn't be?


hra620
HOBBY

a year ago

My .gitignore and .dockerignore files


hra620
HOBBY

a year ago

I created a project to test the deployment and made some updates to the Dockerfile. I successfully completed the copy steps, but I am now encountering a problem with the build command RUN dotnet build. The error is:
CSC : error CS1555: Could not find 'Program' specified for Main method


hra620
HOBBY

a year ago

Dockfile

Attachments


hra620
HOBBY

a year ago

Project structure:


hra620
HOBBY

a year ago

Program.cs file:


hra620
HOBBY

a year ago

Deployment log:



a year ago

Looks like your structure is a bit unconventional.


hra620
HOBBY

a year ago

What's the correct scructure?

I tried "[solution name]/src/[list of projects]" (recommended for .net projects) and "[solution name]/[list of projects]". None of them worked.


a year ago

Try setting a root directory in the service settings.


ERROR: failed to calculate checksum of ref - Railway Help Station