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

[GARBAGE_COLLECTION] SQL Error on execution table #19494

Closed
sebglon opened this issue Oct 27, 2023 · 3 comments
Closed

[GARBAGE_COLLECTION] SQL Error on execution table #19494

sebglon opened this issue Oct 27, 2023 · 3 comments
Assignees

Comments

@sebglon
Copy link

sebglon commented Oct 27, 2023

Hi,

I have this error on my logs:

2023-10-27T07:00:00Z [INFO] [/pkg/task/sweep_job.go:150]: [GARBAGE_COLLECTION] start to sweep, retain latest 50 executions
2023-10-27T07:00:00Z [INFO] [/pkg/task/sweep_job.go:160]: [GARBAGE_COLLECTION] listed 73 candidate executions for sweep
2023-10-27T07:00:00Z [ERROR] [/pkg/task/sweep_job.go:175]: [GARBAGE_COLLECTION] failed to batch clean candidates, error: failed to delete executions: ERROR: update or delete on table "execution" violates foreign key constraint "task_execution_id_fkey" on
2023-10-27T07:00:00Z [ERROR] [/pkg/task/sweep_job.go:110]: [GARBAGE_COLLECTION] failed to run sweep, error: failed to delete executions: ERROR: update or delete on table "execution" violates foreign key constraint "task_execution_id_fkey" on table "task"

Versions:
Please specify the versions of following systems.

  • harbor version: [2.8.3 & 2.9.0]
@sebglon sebglon changed the title SQL Error on execution table [GARBAGE_COLLECTION] SQL Error on execution table Oct 27, 2023
@chlins chlins self-assigned this Oct 28, 2023
@sebglon
Copy link
Author

sebglon commented Nov 9, 2023

After manually dropping all execution and task related to GC, i have no more error;
Request applied:

delete from task where execution_id in (select id from execution where vendor_type='GARBAGE_COLLECTION');
delete from execution where vendor_type='GARBAGE_COLLECTION'; 

Copy link

github-actions bot commented Jan 9, 2024

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 Jan 9, 2024
Copy link

github-actions bot commented Feb 9, 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.

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