Published December 3, 2025 | https://doi.org/10.59348/1r757-mm685

ERROR: failed to build: failed to solve: failed to compute cache key: failed to calculate checksum of ref XXYYZZ

Creators & Contributors

  • 1. Birkbeck, University of London, English and Humanities

Another annoying error that you can get, during a docker build, that basically does not explain what's going on is something like:

Dockerfile.php:73
--------------------
  71 |     RUN mkdir -p /app/site/web && chown www-data:www-data /app/site/web
  72 |     COPY --chown=www-data:www-data ./scripts /app/scripts
  73 | >>> COPY --chown=www-data:www-data ./site/web/*.* /app/site/web/
  74 |     COPY --chown=www-data:www-data ./plugins /app/plugins
  75 |     COPY --chown=www-data:www-data ./mu-plugins /app/mu-plugins
--------------------
ERROR: failed to build: failed to solve: failed to compute cache key: failed to calculate checksum of ref 3d713212-c67a-44e0-bee9-d62fb272cc6d::qhwfoyzlhjy0i7wvs60xthwk1: "/site/web/phpinfo.php": not found

This error does, actually, tell you which file it's having a problem with. See the end of the last line. Here it says that /site/web/phpinfo.php was not found. But when I look in /site/web/ there is an entry for phpinfo.php.

So what's happening?

It turns out that the problem here is a missing symbolic link. That is, the file phpinfo.php has been linked, but the target does not exist. So phpinfo.php's symbolic link does not resolve correctly.

The solution is simply to delete such a file or to make the symbolic link resolve correctly.

ERROR: failed to build: failed to solve: failed to compute cache key: failed to calculate checksum of ref XXYYZZ was originally published by Martin Paul Eve at eve.gd: Martin Paul Eve on December 03, 2025.

Files

10.59348_1r757-mm685.pdf

Files (111.8 kB)

Name Size Download all
md5:16a483c9b837447ae1de1dfce1e2b4eb
111.8 kB Preview Download

Additional details

Description

Another annoying error that you can get, during a docker build, that basically does not explain what's going on is something like: Dockerfile.php:73 -------------------- 71 | RUN mkdir -p /app/site/web &&

Dates

Issued
2025-12-03T00:00:00Z
Updated
2025-12-03T00:00:00Z