Unactionable error while publishing to private gitlab registry
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- docker, typescript
调研方向
使用 --log-level trace 重现 issue 中的 devcontainer features publish 命令,重点关注 bearer-token 请求以及后续的标签列表请求。继续跟踪失败过程,直到暴露出可采取措施的 registry 错误,而不只是显示 Failed to publish;当该命令针对这个私有 registry 场景报告有用的诊断信息时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Hi there. I couple of weeks ago I set up a repository of private devcontainer features on our gitlab instance and it did work pretty well.
Something has changed since then and I suspect it's probably on the side of the gitlab registry, but the error I'm getting does not allow me to investigate further, although I'm using the trace log level.
at 12:26:21 ❯ devcontainer features publish features/src --registry registry.taktsoft.com --namespace taktsoft/devcontainers/features --log-level trace
[2 ms] @devcontainers/cli 0.80.3. Node.js v22.18.0. linux 6.8.0-87-generic x64.
[2 ms] Packaging feature collection...
[3 ms] Processing feature: collection-base...
[17 ms] Processing feature: hello...
[21 ms] Processing feature: local-bin...
[25 ms] Processing feature: secure-cli...
[30 ms] Packaged 4 features!
[30 ms] Processing feature: collection-base...
[30 ms] > input: registry.taktsoft.com/taktsoft/devcontainers/features/collection-base
[30 ms] >
[30 ms] > resource: registry.taktsoft.com/taktsoft/devcontainers/features/collection-base
[30 ms] > id: collection-base
[30 ms] > owner: taktsoft
[30 ms] > namespace: taktsoft/devcontainers/features
[30 ms] > registry: registry.taktsoft.com
[30 ms] > path: taktsoft/devcontainers/features/collection-base
[30 ms] >
[30 ms] > version: latest
[31 ms] > tag?: latest
[31 ms] > digest?: undefined
[31 ms] Feature Annotations: {"dev.containers.metadata":"{\"name\":\"Taktsoft base collection\",\"id\":\"collection-base\",\"version\":\"0.0.1\",\"description\":\"A wrapper feature forcing the install of multiple other recommended features\",\"installsAfter\":[\"ghcr.io/devcontainers/features/common-utils\"],\"dependsOn\":{\"ghcr.io/devcontainers/features/common-utils:2\":{\"installZsh\":\"true\",\"username\":\"vscode\",\"userUid\":\"1000\",\"userGid\":\"1000\",\"upgradePackages\":\"true\"},\"ghcr.io/devcontainers/features/git:1\":{\"version\":\"latest\",\"ppa\":\"false\"},\"ghcr.io/stuartleeks/dev-container-features/shell-history:0\":{},\"ghcr.io/skriptfabrik/devcontainer-features/gitlab-cli:1\":{},\"registry.taktsoft.com/taktsoft/devcontainers/features/secure-cli:0.0.1\":{}}}"}
[31 ms] Fetching published versions...
[128 ms] [httpOci] Attempting to authenticate via 'Bearer' auth.
[129 ms] [httpOci] Found auths entry in '/home/max/.docker/config.json' for registry 'registry.taktsoft.com'
[129 ms] [httpOci] Attempting to fetch bearer token from: https://git.taktsoft.com/jwt/auth?service=container_registry&scope=repository:taktsoft/devcontainers/features/collection-base:pull
[428 ms] [httpOci] 200 on reattempt after auth: https://registry.taktsoft.com/v2/taktsoft/devcontainers/features/collection-base/tags/list
[428 ms] (!) ERR: Failed to publish 'registry.taktsoft.com/taktsoft/devcontainers/features/collection-base'
It tries to get the tag list, but then only fails with
[428 ms] (!) ERR: Failed to publish 'registry.taktsoft.com/taktsoft/devcontainers/features/collection-base'
Any idea on how I can get even more details about the error than just the trace log level?
Any help is much appreciated! ❤️
p.s.
We had to change the s3 backend for gitlab and decided to start with a completely empty registry instead of migrating the old bucket. No I idea if this could cause problems, but for other artifacts the registry works just fine.
- 主要语言
- TypeScript
- 星标
- 3k
- 派生
- 461
- 平均合并
- 18 分钟
- 30 天内合并 PR
- 5
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
devcontainers/cli 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 92/100
devcontainers/cli#1203 ·
-
难度 1/5 1-3 小时 新手友好度 68/100
devcontainers/cli#1178 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
devcontainers/cli#1308 ·
-
难度 3/5 1-2 天 新手友好度 78/100
devcontainers/cli#1307 ·
-
难度 4/5 3-5 天 新手友好度 55/100
devcontainers/cli#1305 ·
查看 devcontainers/cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
bug v2
难度 2/5 1-3 小时 新手友好度 75/100
modelcontextprotocol/inspector#2458 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
难度 2/5 1-3 小时 新手友好度 70/100
carbon-design-system/ibm-products#9907 ·