image-automation-controller icon indicating copy to clipboard operation
image-automation-controller copied to clipboard

ImageUpdateAutomation not providing helpful error message

Open RogerSik opened this issue 1 year ago • 3 comments

Using version v2.0.0-rc.5 and trying to use the Flux auto update but it's not working there are no helpful error messages.

$ kubectl  describe ImageUpdateAutomation
Events:
  Type     Reason  Age                    From                         Message
  ----     ------  ----                   ----                         -------
  Warning  error   9m23s (x18 over 125m)  image-automation-controller  unknown error: remote:
$

Looking into image-automation-controller for more information

$ kubectl logs -f deployment/image-automation-controller
{"level":"error","ts":"2023-06-28T08:32:17.954Z","msg":"Reconciler error","controller":"imageupdateautomation","controllerGroup":"image.toolkit.fluxcd.io","controllerKind":"ImageUpdateAutomation","ImageUpdateAutomation":{"name":"app","namespace":"xxx"},"namespace":"xxx","name":"app","reconcileID":"b3cc389f-70fb-4720-8c08-da948193e4a4","error":"unknown error: remote: "}
$

flux itself is working fine (applying yaml files and succesfully writing commits when updating flux).

RogerSik avatar Jun 28 '23 08:06 RogerSik

There was an MR for better error messages https://github.com/fluxcd/image-automation-controller/pull/115 which was also merged.

RogerSik avatar Jun 28 '23 08:06 RogerSik

this error is usually observed when you're using a GitLab deploy key with no write access, see: https://github.com/fluxcd/image-automation-controller/issues/491. could you confirm that is the case here as well?

aryan9600 avatar Jun 29 '23 11:06 aryan9600

Has written access. The flux update where the files get written / updated and send a commit was also working. Even if this would be the case: a more helpful error message would be helpful. 🙂

RogerSik avatar Jun 29 '23 15:06 RogerSik