首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >上传到Artifactory有时会随机失败

上传到Artifactory有时会随机失败
EN

Stack Overflow用户
提问于 2022-02-08 09:32:37
回答 1查看 198关注 0票数 0

作为我的CI/CD的一部分,我们管道的一部分是将工件上传到本地Artifactory服务器进行部署,有时是随机的,这条消息会弹出(可估计的一周不使用),并使管道失败。

代码语言:javascript
复制
09:23:16  [Error] Server response: 401 Unauthorized
09:23:16  {
09:23:16    "errors": [
09:23:16      {
09:23:16        "status": 401,
09:23:16        "message": "Token failed verification: expired"
09:23:16      }
09:23:16    ]
09:23:16  }
09:23:16  [Error] Server response: 401 Unauthorized
09:23:16  {
09:23:16    "errors": [
09:23:16      {
09:23:16        "status": 401,
09:23:16        "message": "Token failed verification: expired"
09:23:16      }
09:23:16    ]
09:23:16  }

在我登录到服务器并注销之后,它回到了正常的消息:

代码语言:javascript
复制
11:07:49  [Info] Searching items to download...
11:07:49  [Info] [Thread 2] Downloading Repo/xxx.tar.gz
11:07:49  [Info] [Thread 0] Downloading Repo/yyy.tar.gz
11:07:49  [Info] [Thread 2] [2]: 206 Partial Content...
11:07:49  [Info] [Thread 0] [0]: 206 Partial Content...
11:07:49  [Info] [Thread 2] [0]: 206 Partial Content...
11:07:49  [Info] [Thread 2] [1]: 206 Partial Content...
11:07:49  [Info] [Thread 0] [1]: 206 Partial Content...
11:07:49  [Info] [Thread 0] [2]: 206 Partial Content...
11:07:49  [Info] [Thread 2] Done downloading.
11:07:49  [Info] [Thread 0] Done downloading.
11:07:49  {
11:07:49    "status": "success",
11:07:49    "totals": {
11:07:49      "success": 2,
11:07:49      "failure": 0
11:07:49    }
11:07:49  }

我使用服务器中的API键连接到Artifactory服务器,并使用jfrog-cli。

有什么可以让它发生的建议吗?

EN

回答 1

Stack Overflow用户

发布于 2022-02-08 10:48:55

您能否确认这个问题是否特定于作为NuGet打包的一部分的存储库,以及是否为Artifactory实例启用了匿名访问?

如果是,请考虑为相关存储库配置“强制身份验证”,该存储库是此构建的一部分。这将有助于克服所报告的问题。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71031477

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档