verdaccio: Can't see Packages after migration 6.0.5 -> 6.1.2
Your Environment
- verdaccio version: 6.1.2
- node version [22.14]:
- package manager: [npm@11.3]
- os: [linux]
- platform: [npm, docker, helm, other]
- **reverse proxy with nginx
Describe the bug
Can’t see Packages after migration 6.0.5 -> 6.1.2 on web UI.
If i downgrade to 6.0.5 all rework.
Log
In the log, i see “user”:null on 6.1.2, and good user in 6.0.5.
Configuration File (cat ~/.config/verdaccio/config.yaml)
packages:
'@*/*':
# scoped packages
access: $authenticated
publish: $authenticated
unpublish: $authenticated
proxy: npmjs
'**':
# allow all users (including non-authenticated users) to read and
# publish all packages
#
# you can specify usernames/groupnames (depending on your auth plugin)
# and three keywords: "$all", "$anonymous", "$authenticated"
access: $authenticated
# allow all known users to publish/publish packages
# (anyone can register by default, remember?)
publish: $authenticated
unpublish: $authenticated
# if package is not available locally, proxy requests to 'npmjs' registry
proxy: npmjs
``
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 24 (7 by maintainers)
the default for
config.web.loginis true. The if-statement is wronghttps://github.com/verdaccio/verdaccio/blob/96d2f0f24d42c2ad1613902178243d48024bdc1b/packages/web/src/api/package.ts#L26C2-L26C54
It should use this instead:
https://github.com/verdaccio/verdaccio/blob/96d2f0f24d42c2ad1613902178243d48024bdc1b/packages/web/src/web-utils.ts#L5-L7
Fix for master (#5280) and 6.x (#5279)
I think I found the root cause. There’s a problem when web calls the auth check. I have messaged @juanpicado on Discord.
Thanks all for the constructive feedback, support and amount of details, make things easier.
@abdelfattahradwan since it doesn’t work with
config.web.login = truefor you, my fix won’t solve your issue. Please open a new issue where we can dig into details. Attach the Verdaccio log to the issue, so we can see the order of requests.And i try without reverse proxy, i have same problem
I think it might be related to the main page. If I do a search I can still find packages and access the packages just not on the list from the page. I just saw in your commit that your unit test has
I’ve just added that and its working as expected now
@juanpicado
I just tested version 6.1.3 as well, and I’m still having the same issue.
In the log, I see “user: null” again when I try to access the package.
https://github.com/verdaccio/verdaccio/releases/tag/v6.1.3
@juanpicado with debug :