8 months ago
Hello, i use railway for my project and i had a prd env up and running. I just recreated this env for testing purposes and for some reason all the services fail to build.
10 Replies
The only difference i could find is that production services have java selected as a provider

8 months ago
Is your prod env (main one) using Nixpacks?
8 months ago
I think that it is trying to use Railpack in the newly created env
8 months ago
Hi sorry you’re running into this. A few quick things to check:
- Do the build logs show a specific error?
- Were all your environment variables copied over to the new env?
- Are service links/dependencies (DB connections) still set up?
- Sometimes recreating an env clears caches do you have versions pinned in your config?
- If you can share one of the log errors, I’ll help you dig in further
Its a java application which i build in railway,
Here is the error:
copy /app/target
ERROR: failed to build: failed to solve: failed to compute cache key: failed to calculate checksum of ref bsz3qynkq48iqwfzb36emvrhl::1gybsodl4btkmaervyel4kniw: "/app/target": not found