Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decoding error: Restored data doesn't match checksum #129

Open
mellis481 opened this issue Apr 5, 2022 · 0 comments
Open

Decoding error: Restored data doesn't match checksum #129

mellis481 opened this issue Apr 5, 2022 · 0 comments

Comments

@mellis481
Copy link

I'm seeing the following error all of the sudden:

Run bahmutov/npm-install@v1
running npm-install GitHub Action
trying to restore cached NPM modules
Received 0 of 1116313[24](https://github.com/mycompany/myapp/runs/5839241098?check_suite_focus=true#step:7:24) (0.0%), 0.0 MBs/sec
Received 67108864 of 111631324 (60.1%), 32.0 MBs/sec
Received 107437020 of 111631324 (96.2%), 34.1 MBs/sec
Received 111631324 of 111631324 (100.0%), 33.4 MBs/sec
Cache Size: ~106 MB (111631324 B)
/usr/bin/tar --use-compress-program zstd -d -xf /home/runner/work/_temp/0357bdf5-a49b-4316-b5d6-7[25](https://github.com/mycompany/myapp/runs/5839241098?check_suite_focus=true#step:7:25)[26](https://github.com/mycompany/myapp/runs/5839241098?check_suite_focus=true#step:7:26)0f9b538/cache.tzst -P -C /home/runner/work/myapp/myapp
/*stdin*\ : Decoding error (36) : Restored data doesn't match checksum 
/usr/bin/tar: Child returned status 1
/usr/bin/tar: Error is not recoverable: exiting now
Error: Tar failed with error: The process '/usr/bin/tar' failed with exit code 2
    at /home/runner/work/_actions/bahmutov/npm-install/v1/dist/index.js:[34](https://github.com/mycompany/myapp/runs/5839241098?check_suite_focus=true#step:7:34)844:19
    at Generator.throw (<anonymous>)
    at rejected (/home/runner/work/_actions/bahmutov/npm-install/v1/dist/index.js:34786:65)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: Tar failed with error: The process '/usr/bin/tar' failed with exit code 2

The npm-install action ran successfully minutes before in a PR workflow. The log above is from an extremely similar manual deployment workflow that looks like this:

name: Manual deployment workflow
on:
  workflow_dispatch:
    inputs:
      GIT_COMMIT_TO_PROMOTE:
        description: 'Git commit SHA to promote'
        required: true
      ENV_TO_PROMOTE_TO:
        description: 'Environment to promote to'
        required: true
jobs:
  manual-deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Set up environment
        run: #sets a bunch of environment variables
      - uses: actions/checkout@v2
        with:
          ref: ${{ github.event.inputs.GIT_COMMIT_TO_PROMOTE }}
          fetch-depth: 0
      - uses: actions/setup-node@v2
        with:
          node-version: '16'
          registry-url: 'https://npm.pkg.github.com'
          scope: '@mycompany'
        env:
          NODE_AUTH_TOKEN: ${{ secrets.GIT_PACKAGE_TOKEN }}
      - id: install-dependencies
        name: Install dependencies
        uses: bahmutov/npm-install@v1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant