Exit Code 1 when trying to look up Helm OCI Charts #36734
Replies: 4 comments 9 replies
-
|
Hi there, This issue or discussion is missing some logs, making it difficult or impossible to help you. Depending on which situation applies follow one, some or all of these instructions. No logs at allIf you haven't posted any log yet, we need you to find and copy/paste the log into the issue template. Finding logs on hosted appSelect me to read instructionsIf you use the Mend Renovate app (GitHub):
Finding logs when self-hostingSelect me to read instructionsRead the Renovate docs, troubleshooting, self-hosted to learn how to find the logs. Formatting your logsSelect me to read instructionsPlease put your logs in a If you feel the logs are too large to paste here, please use a service like GitHub Gist and paste the link here. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
|
Hi there, The logs you provided are insufficient to help you. Please provide more logs, or more detailed logs, so we can help you. Be sure to include DEBUG logs, and don't excessively redact or truncate them. If you feel the logs are too large to paste here, please use a service like GitHub Gist and paste the link here. Read the Renovate docs, Troubleshooting to learn more about getting the correct logs. Thanks, the Renovate team |
Beta Was this translation helpful? Give feedback.
-
|
Added more detailed logs. |
Beta Was this translation helpful? Give feedback.
-
|
I found the original error message within the log, it's this: {"name":"renovate","hostname":"runner-t2rybyks-project-390-concurrent-0","pid":17,"level":50,"logContext":"ToVLWfdbh11RdNxhbpmAj","repository":"REDACTED/renovatetest","url":"index.yaml","baseUrl":"oci://docker.io/envoyproxy/","resolvedUrl":"oci://docker.io/envoyproxy/index.yaml","msg":"Request Error: cannot parse url","time":"2025-06-30T06:24:19.935Z","v":0}It comes from renovate/lib/util/http/http.ts Lines 284 to 291 in 9e81f89 Potentially either:
As a workaround, you can use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitLab
Please tell us more about your question or problem
Consider the
renovate.jsonand respectivechart.yaml, which describes a Helm chart in the logs section below.Renovate is configured to scrape all
chart.yamls from the repository and interpret them as Helm charts, so that we get updates for those.For normal helm charts with a
https://repository, this works excellent.However, with a
oci://repository, I get an exit code 1.As soon as this repository is being worked on by renovate, we receive the errors mentioned in the logs section here.
It seems that this URL-parsing error is a hard fault inside Renovate.
This causes Renovate to exit with code 1, sending an alert to IT.
I personally think that this kind of error should be handled as a soft error like a Package Lookup Failure visible in the Dependency Dashboard, and not like a hard fault causing Renovate to exit with code 1. We are using one Renovate instance internally for a bunch of projects, and one repository can thus alarm the IT team without any reason.
Is there something I am overlooking or misunderstanding concerning renovate's exit codes on such errors? Can I configure Renovate to "ignore" those dependencies and simply alert the project via the dependency dashboard?
Additionally, Renovate should IMO be able to handle Helm OCI charts out of the box, and not only "normal" Helm Charts. Is there something I have to enable first as an opt-in?
Thank you very much!
Logs (if relevant)
`renovate.json`
{ "customManagers": [ { "customType": "jsonata", "fileFormat": "yaml", "managerFilePatterns": [ "/\\/chart\\.yaml$/" ], "matchStrings": [ "{\"depName\": name, \"registryUrl\": repo, \"currentValue\": version}" ], "datasourceTemplate": "helm" } ] }example `chart.yaml` to put inside a repository for renovate
Logs
Beta Was this translation helpful? Give feedback.
All reactions