Sage-Bionetworks / sage-monorepo

Where OpenChallenges, Schematic, and other Sage open source apps are built
https://sage-bionetworks.github.io/sage-monorepo/
Apache License 2.0
21 stars 12 forks source link

[Bug] The local cache artifact in "/workspaces/sage-monorepo/node_modules/.cache/nx/..." was not been generated on this machine. #2172

Closed tschaffter closed 9 months ago

tschaffter commented 9 months ago

Is there an existing issue for this?

What product(s) are you seeing the problem on?

OpenChallenges

Current behavior

The error occurred after rebuilding a fresh dev container, running workspace-install and then when running openchallenges-build-images.

>  NX   Ran target build-image for 26 projects and 23 tasks they depend on (410ms)

    ✔    0/0 succeeded [0 read from cache]

    ✖    0/0 targets failed, including the following:

   View structured, searchable error logs at https://cloud.nx.app/runs/GvPHg6ShZ2

 >  NX   Invalid Cache Directory for Task "openchallenges-app-config-data:build"

   The local cache artifact in "/workspaces/sage-monorepo/node_modules/.cache/nx/18344747563957698274" was not been generated on this machine.
   As a result, the cache's content integrity cannot be confirmed, which may make cache restoration potentially unsafe.
   If your machine ID has changed since the artifact was cached, run "nx reset" to fix this issue.
   Read about the error and how to address it here: https://nx.dev/recipes/troubleshooting/unknown-local-cache

   Pass --verbose to see the stacktrace.

Expected behavior

No response

Anything else?

No response

Commit ID

No response

Are you developing inside the dev container?

Code of Conduct

tschaffter commented 9 months ago

Solution

The error message describes well the issue and propose to run nx reset, which solves the issue.