最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

artifactory - Can't disable package cleanup - Error in log - Stack Overflow

programmeradmin2浏览0评论

after updating from artifactory-oss:7.90.14 to artifactory-oss:7.98.8 we encounter following error each night at 00:06:

Failed to fetch package cleanup run statistics. .artifactory.rest.exception.MissingRestAddonException: This REST API is available only in Artifactory Pro (see: jfrog/artifactory/features). If you are already running Artifactory Pro please make sure your server is activated with a valid license key.

Related to there should be a Retention Policies menu visible in the administration section - but it isn't.

How can I disable this policy / job to avoid this error every night?

$ curl -H "Authorization: Bearer $TOKEN" -X PUT "localhost:8082/artifactory/artifactory/api/cleanup/policies/…" 
{ "errors" : [ { "status" : 405, "message" : "" } ]

Also tried GET http://{host:port}/artifactory/api/cleanup/packages/policies to get a list of all policies, but that results in 404 - no matter how I try to call it.

after updating from artifactory-oss:7.90.14 to artifactory-oss:7.98.8 we encounter following error each night at 00:06:

Failed to fetch package cleanup run statistics. .artifactory.rest.exception.MissingRestAddonException: This REST API is available only in Artifactory Pro (see: jfrog/artifactory/features). If you are already running Artifactory Pro please make sure your server is activated with a valid license key.

Related to https://jfrog/help/r/jfrog-platform-administration-documentation/cleanup-policies there should be a Retention Policies menu visible in the administration section - but it isn't.

How can I disable this policy / job to avoid this error every night?

$ curl -H "Authorization: Bearer $TOKEN" -X PUT "localhost:8082/artifactory/artifactory/api/cleanup/policies/…" 
{ "errors" : [ { "status" : 405, "message" : "" } ]

Also tried GET http://{host:port}/artifactory/api/cleanup/packages/policies to get a list of all policies, but that results in 404 - no matter how I try to call it.

Share Improve this question edited 12 hours ago TylerH 21.1k79 gold badges79 silver badges114 bronze badges asked Nov 19, 2024 at 13:06 Pat WePat We 12 bronze badges 8
  • Stop All Running Cleanup Policies API ? – Luuk Commented Nov 19, 2024 at 14:00
  • Retention of course :) Somehow it doesn't work: ``` $ curl -H "Authorization: Bearer $TOKEN" -X PUT "localhost:8082/artifactory/artifactory/api/cleanup/policies/…" { "errors" : [ { "status" : 405, "message" : "" } ] ``` Also tried GET http://{host:port}/artifactory/api/cleanup/packages/policies to get a list of all policies, but that results in 404 - no matter how I try to call it. – Pat We Commented Nov 20, 2024 at 7:07
  • Can you find a artifactCleanup.json somewhere in your installation? What's its content? – Markus Commented Nov 20, 2024 at 7:08
  • @Markus nope, no such file exists. – Pat We Commented Nov 20, 2024 at 7:18
  • 1 HTTP 405 is "Method not Allowed", This means your TOKEN is incorrect. – Luuk Commented Nov 20, 2024 at 9:40
 |  Show 3 more comments

1 Answer 1

Reset to default -1

The issue has been identified, and the fix will be included in the next patch. The release is scheduled to be available within the next two weeks. Please stay tuned for the update, and thank you for your patience!

发布评论

评论列表(0)

  1. 暂无评论