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

after updating from artifactory-oss:7.90.14 to artifactory-oss:7.98.8 we encounter following error each

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!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745564687a4633321.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信