Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no task found for execution: SYSTEM_ARTIFACT_CLEANUP:10237 #19253

Closed
rekha-prakash-maersk opened this issue Aug 30, 2023 · 7 comments
Closed

Comments

@rekha-prakash-maersk
Copy link

Noticing this error when the system artifact cleanup job starts and it seems to be auto recovering, but I could not find the actual cause of this error - no task found for execution: SYSTEM_ARTIFACT_CLEANUP:10237

Error thrown from job service -https://github.com/goharbor/harbor/blob/main/src/jobservice/sync/schedule.go#L392

PR of system artifact cleanup feature - #16879

 
2023-08-22T09:00:01Z [INFO] [/pkg/task/sweep_job.go:180]: [SYSTEM_ARTIFACT_CLEANUP] end to sweep, 0 executions were deleted in total, elapsed time: 1.052451ms  
2023-08-22T09:00:01Z [INFO] [/pkg/task/sweep_job.go:160]: [SYSTEM_ARTIFACT_CLEANUP] listed 0 candidate executions for sweep
2023-08-22T09:00:01Z [INFO] [/pkg/task/sweep_job.go:150]: [SYSTEM_ARTIFACT_CLEANUP] start to sweep, retain latest 50 executions
2023-08-22T08:32:24Z [ERROR] [/jobservice/sync/schedule.go:238]: no task found for execution: SYSTEM_ARTIFACT_CLEANUP:10237
2023-08-22T08:31:23Z [ERROR] [/jobservice/sync/schedule.go:238]: no task found for execution: SYSTEM_ARTIFACT_CLEANUP:10237
2023-08-22T08:31:23Z [INFO] [/jobservice/worker/cworker/c_worker.go:445]: Register job *systemartifact.Cleanup with name SYSTEM_ARTIFACT_CLEANUP
@chlins
Copy link
Member

chlins commented Sep 5, 2023

Which harbor version do you use?

@rekha-prakash-maersk
Copy link
Author

@chlins I am using v2.8.3

@chlins
Copy link
Member

chlins commented Sep 8, 2023

Is your harbor a fresh install instance or upgrade from lower version?

@rekha-prakash-maersk
Copy link
Author

@chlins its an upgarde from 27.0 to 2.8.3, but noticed this behaviour in both versions

@chlins
Copy link
Member

chlins commented Oct 10, 2023

Please try to execute the following SQLs in the harbor database and paste the outputs.

select * from schedule where vendor_type='SYSTEM_ARTIFACT_CLEANUP';
select * from execution where vendor_type='SYSTEM_ARTIFACT_CLEANUP';
select * from task where vendor_type='SYSTEM_ARTIFACT_CLEANUP';

Copy link

github-actions bot commented Dec 9, 2023

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 github-actions bot added the Stale label Dec 9, 2023
Copy link

github-actions bot commented Jan 8, 2024

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 github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants