Harbor: Unable to delete replication job

Created on 12 May 2020  路  2Comments  路  Source: goharbor/harbor

If you are reporting a problem, please make sure the following information are provided:

Expected behavior and actual behavior:
We have an replication job setup, that i want to delete.
its setup with a cron schedule
image

If i try that in the UI i get an Error 500
image
If i look at the jobservce log i find this:

May 12 12:13:59 172.18.0.1 jobservice[1830]: 2020-05-12T10:13:59Z [ERROR] [/jobservice/api/handler.go:288]: Serve http request 'POST /api/v1/jobs/b21678c7545519d1bf27d493' error: 500 {"code":10006,"message":"stop job failed with error","details":"mismatch job status for stopping job: b21678c7545519d1bf27d493, job status Error is behind Running"}

I can neitehr disable, alter or delete that job.

Steps to reproduce the problem:
Delete a jobservice that was running on a cron schedule
Versions:
Please specify the versions of following systems.

  • harbor version: 1.10.2

Additional context:

  • Harbor config files: You can get them by packaging harbor.yml and files in the same directory, including subdirectory. Will provide as needed
  • Log files: You can get them by package the /var/log/harbor/ .
    Will provide as needed
arejob-services arereplication kinbug targe2.0.1

Most helpful comment

I can confirm this is still there for harbor 2.0

All 2 comments

@MaxRink

We'll take a look at it. It seems a bug of replication deletion. We'll check more details later and if it is, we'll try to introduce the fix into an upcoming fix patch.

For a workaround approach, if it's urgent to resolve, you can try to delete it via the database directly.

I can confirm this is still there for harbor 2.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abououdine picture abououdine  路  3Comments

272909106 picture 272909106  路  4Comments

a-kinder picture a-kinder  路  3Comments

Poil picture Poil  路  3Comments

cedvan picture cedvan  路  3Comments