Invalid cache mount
Hi, i tried to follow this format for my Dockerfile:
id=s/<service-id>-/root/.gradle
As mentioned by Brody.
However now the error changed to: "Invalid cache mounts"
Attached the Dockerfile.
33 Replies
Project ID:
a564e554-2294-490d-b39d-231f70974e23
a564e554-2294-490d-b39d-231f70974e23
are you positive all the cache mount IDs are for the service you are deploying that dockerfile to?
yes, just double checked
okay I will have a closer look at that dockerfile when on my computer, there's a whole lot going on with it
this may be a silly question, but does it need to be that complex?
Thank you, Brody!
Unfortunately, yes 😦
without looking at it in depth yet, what does it deploy
Docker-based Open edX distribution
never heard of it, cool
so what is your service id anyway?
b39f11ea-b215-4734-9149-8b7f054b9b75
my first guess would be all this template stuff getting in the way
tried to simplify/remove templates, didn't help 😦
still getting "Invalid cache mounts"
i dont see any issues with it, im sorry i dont know whats going wrong
Maybe someone else from the team could look at it? Thank you for putting your time to fix it, Brody
jr is already in this thread actually, he does a lot of work with railways builder so he would have a much better idea of what's up
By the way i've tried to remove the gradle part, also didn't help
Any updates on the issue?
welp it's now the weekend, the team doesn't work on the weekend unfortunately
you could get this to work without the cache stuff, for now
I have the same problem ...
unlike their dockerfile, you aren't using the correct cache mount id
let me know if you find the issue <:meow_wine:802401834643882034>
^
you are using a gradle cache id for everything
you are even trying to cache apt installs, nixpacks doesnt even do that
nixpacks?
please try removing the cache stuff from your dockerfile
I've removed anything related to cache but still getting cache mount errors hmm
you removed some
RUN
keywords
please remove all mount stuffDockerfile:258
-------------------
256 |
257 | # Copy the default uWSGI configuration
258 | >>> COPY --chown=app:app settings/uwsgi.ini .
259 |
260 | # Run server
-------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 218eb397-8aba-45a5-9a9a-474741a028e0::cdb76dq51h170ohw3ooz02o1a: "/settings/uwsgi.ini": not found
"/settings/uwsgi.ini": not found
^
Yes, but i guess it's still because I can't use cache though
it means that file at that path wasn't found, has nothing to do with cache