a year ago
I have almost identical two services. This one is failing with the given error at the below.
The other one is in the project named as gateway-test. It has also a eureka service. It can deployed successfully.
What should i do?
ERROR: failed to calculate checksum
ⓘ Deployment information is only viewable by project members and Railway employees.
4 Replies
a year ago
That message alone does not provide enough information, please provide your full build logs -
a year ago
This is an issue with your Dockerfile and or config -
Dockerfile:8
-------------------
6 | FROM openjdk:21
7 | EXPOSE 8761
8 | >>> COPY --from=build /target/eureka-0.0.1-SNAPSHOT.jar app.jar
9 | ENTRYPOINT ["java", "-jar", "/app.jar"]
-------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 468c7f65-74b5-48a5-a906-04ee91710cb2::rktfxlzr1njrbzkgukzxsrhr2: "/target/eureka-0.0.1-SNAPSHOT.jar": not found
The important takeaway from this message is that the file by the name of eureka-0.0.1-SNAPSHOT.jar app.jar
does not exist in the build
layer, or does not exist at that location.
Status changed to Solved railway[bot] • 11 months ago
a year ago
I figured out my mistake. Thank you.