question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Since v5.16.0 cannot get tarball file: 404 "file not found"

See original GitHub issue

verdaccio version: 5.16.0 and upper node version: v16.14.0 package manager: [npm@8.3.1, yarn@1.22.19] os: linux platform: docker

We had Verdaccio 5.15.4 with Minio storage (RELEASE.2022-10-24T18-35-07Z). config.yml contains the lines:

store:
  minio:
    port: 9000
    region: us-east-1
    endPoint: 10.10.10.10
    accessKey: minioadmin
    secretKey: minioadmin
    useSSL: false

It worked fine.

After upgrading to 5.18.0 we get errors on “yarn add @our/package”:

yarn add v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred: "https://our-verdaccio-site.com/commander/-/commander-9.4.1.tgz: Request failed \"404 Not Found\""

If you try to get tarball file with the direct link - https://our-verdaccio-site.com/commander/-/commander-9.4.1.tgz - the same error appears: 404 “file not found”. The file commander-9.4.1.tgz exists in Minio though.

The error appears only since v5.16.0 (I tried 5.16.0, 5.16.1, 5.16.2, 5.16.3, 5.17.0, 5.18.0)

Debug logs:

01.12.2022, 21:09:59 debug--- [Minio] ReadStream<commander/commander-9.4.1.tgz> is opened
01.12.2022, 21:09:59 debug--- [Minio] ReadStream<commander/commander-9.4.1.tgz> received 28174 bytes
01.12.2022, 21:09:59 debug--- [Minio] ReadStream<commander/commander-9.4.1.tgz> is finishing

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
vsilecommented, Dec 4, 2022

Here is verdaccio docker-compose.yml. We have separated minio and verdaccio docker-compose files for some reasons.

version: "3.8"
services:

  verdaccio:
    image: verdaccio/verdaccio:5.15.4
    container_name: verdaccio
    volumes:
      - ./verdaccio/config.yaml:/verdaccio/conf/config.yaml
      - ./verdaccio-minio:/verdaccio/plugins/verdaccio-minio
    environment:
      - VERDACCIO_PUBLIC_URL=https://our-verdaccio-site.com
    ports:
      - 4873:4873
    restart: always

networks:
  default:
    name: verdaccio-network

It works fine. After upgrading to 5.18.0 we get error 404 (see above).

0reactions
juanpicadocommented, Dec 4, 2022

Additionally if you want a playground, you can PR on this repo: https://github.com/verdaccio/e2e-5.x

Create your own docker compose with mini and create a smoke test just like: https://github.com/verdaccio/e2e-5.x/blob/main/.github/workflows/docker-proxy-nginx-e2e.yml

It’s very simple and would be great to have for future releases avoid regressions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot npm install jest Error: 404 Not Found: @babel/code ...
I can run npm view @babel/code-frame versions and see the versions but no matter how I try to install @babel/code-frame it fails with...
Read more >
Cannot download node-sass HTTP error 404 Not found
I have tried to get back to my previous commit on git where everything was working but it did not solve my problem....
Read more >
tar: cannot open: no such file or directory - linux - Super User
A common error with wget is a login or redirect (or 404) HTML page being saved instead of the target file. Then it...
Read more >
Software Distribution file download error 404 - Ivanti Community
When the software tries to download, first it was erroring out on the main Primary File as not found. Turns out it didn't...
Read more >
Npm install command failing with message "could not find ...
Npm install command failing with message "could not find Visual Studio" ... npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found