Skip to content

ERR_PNPM_TARBALL_EXTRACT error with mv inside content-addressable store #7676

@VladimirNT

Description

@VladimirNT

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

No response

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

The issue is flaky and happens randomly for different packages for us after switching from pnpm@7 to pnpm@8.14.1.
The interesting part is that according to the logs some file in CAS is to be renamed to some reduced length name, which looks a bit weird.

We are installing the dependencies using the following keys:

pnpm command example:

NODE_RES/node PNPM_RES/node_modules/pnpm/dist/pnpm.cjs install --frozen-lockfile --ignore-pnpmfile --ignore-scripts --no-verify-store-integrity --offline --package-import-method hardlink --store-dir benchmarks/targets/frontend/services/jobs/node_modules/.pnpm/store --strict-peer-dependencies --virtual-store-dir benchmarks/targets/frontend/services/jobs/node_modules/.pnpm/virtual-store --registry http://OUR_INTERNAL_REGISTRY --stream --reporter append-only --no-color

Describe the Bug

Error message example:

ERR_PNPM_TARBALL_EXTRACT  Failed to unpack the tarball from "contrib/typescript/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz": Error: ENOENT: no such file or directory, rename 'benchmarks/targets/frontend/services/jobs/node_modules/.pnpm/store/v3/files/54/b84472aba9dc81d7b5924fb74ed962803d24d463cb58e153f354e35630e04f2613279aff3fba6f0e612f796108ed3da638bd134047d90dda0d775cde2f7306263816' -> 'benchmarks/targets/frontend/services/jobs/node_modules/.pnpm/store/v3/files/54/b84472aba9dc81d7b5924fb74ed962803d24d463cb58e153f354e35630e04f2613279aff3fba6f0e612f796108ed3da638bd134047d90dda0d775cde2f7306'

Expected Behavior

Successful modules installation

Which Node.js version are you using?

18.18.2

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

Ubuntu 18.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions