harbor icon indicating copy to clipboard operation
harbor copied to clipboard

Error when running Garbage Collection (Logs: object is not found, using s3)

Open derekcha opened this issue 11 months ago • 4 comments

I ran Clean Up, Garbage Collection to clean up the repository (aws s3) while using harbor, but it failed to run with an error. I tried to click Logs to find out the cause, but the only message is like below. {"errors":[{"code":"NOT_FOUND","message":"{\"code\":10010,\"message\":\"object is not found\",\"details\":\"log entity: 3374b652710f236be44037b1\"}"}]}

As I said above, I am using aws s3 for storage, and the current size of s3 is about 73TB. When I check the Job Service Dashboard, the GARBAGE_COLLECTION Job seems to be stuck in Pending status, can you tell me the cause and solution? Please let me know if there are any logs in debugging

스크린샷 2024-02-26 오전 11 06 30 스크린샷 2024-02-26 오전 11 06 14

Versions: Please specify the versions of following systems.

  • harbor version: [2.9.1]
  • kubernetes version: 1.28.5

derekcha avatar Feb 26 '24 02:02 derekcha

@derekcha , could you please try to set the Workers to 5? And then retry GC.

zyyw avatar Feb 26 '24 08:02 zyyw

@zyyw Thanks for the answer! Unfortunately, it's the same when I set the workers to 5 and run GC. I've tried running it with 1, 3, and 5 workers and it's the same.

derekcha avatar Feb 27 '24 05:02 derekcha

@zyyw Do you have any additional advice?

derekcha avatar Mar 07 '24 02:03 derekcha

what state about your Garbage Collection task display on web page when you click stop button to stop a running gc task ? it is still running ,is ok or bug ?

linpanru avatar Apr 01 '24 06:04 linpanru

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

github-actions[bot] avatar May 31 '24 09:05 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.

github-actions[bot] avatar Jun 30 '24 09:06 github-actions[bot]