argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.46k stars 5.3k forks source link

Error has occurred when I try to delete successful or failed job in argocd web UI #11015

Open vsfomin opened 1 year ago

vsfomin commented 1 year ago

Describe the bug

When I try to delete successful or failed jobs in ArgoCD web interface, the error occurred. Unable to delete resource: error deleting resource: jobs.batch "name-of-job-here" not found

To Reproduce Just try to delete jobs from UI

Expected behavior

Successful delete job from application.

Screenshots

image

Version { "Version": "v2.4.11+3d9e9f2", "BuildDate": "2022-08-22T09:13:16Z", "GitCommit": "3d9e9f2f95b7801b90377ecfc4073e5f0f07205b", "GitTreeState": "clean", "GoVersion": "go1.18.5", "Compiler": "gc", "Platform": "linux/amd64", "KustomizeVersion": "v4.4.1 2021-11-11T23:36:27Z", "HelmVersion": "v3.8.1+g5cb9af4", "KubectlVersion": "v0.23.1", "JsonnetVersion": "v0.18.0" }

Logs

There are no logs about this issue

schakrad commented 1 year ago

Hi @vsfomin,

Could you please provide the cronjob manifests? Could you please tell me why you are trying to delete job manually instead of changing the configuration of cron job manifests, which deletes the job automatically.

abelnieva commented 1 year ago

We are also facing this issue, we can also confirm that the job does not exist from kubernetes side. looks like it persist in argocd config

schakrad commented 1 year ago

It looks like a caching issue. Do you have any logs when you tried to delete the job? if so, could you please provide the logs

bentzys commented 6 months ago

Same issue. I deployed the zabbix helm chart from https://zabbix-community.github.io/helm-zabbix (ZABBIX_CHART_VERSION='4.0.2') Then added the applicatiion zabbix to argocd and get "Out of sync" due missing resource. When trying to manually delete the job: Are you sure you want to delete Job zabbix-init-db-schema? (NON-CASCADING (ORPHAN) DELETE)

Got: Unable to delete resource: Job batch zabbix-init-db-schema not found as part of application zabbix

shasanV commented 1 month ago

we are also facing the same issue even after hard-refresh the UI does not get fixed