"Datasource unauthorized" for private Nuget feed #8576
-
What Renovate type, platform and version are you using? I am using self-hosted Renovate together with GitLab and gitlab-runner configuration from here.
I am starting the runner with:
Describe the bug During running Renovate updates all Nugets from public Nuget feed correctly. But Nugets from private feed do not get updated. The debug logs show "Datasource unauthorized" for Nugets from private feed.
Relevant debug logs
The username and password are correct in the logs, the same as I tried with curl. Have you created a minimal reproduction repository? Please read the minimal reproductions documentation to learn how to make a good minimal reproduction repository.
Additional context Any idea or help would be great, thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If you're seeing text like
Unfortunately CLI parsing can be challenging - a |
Beta Was this translation helpful? Give feedback.
-
Thank you very much, that solved my failure.
…------ Originalnachricht ------
Von: "Rhys Arkins" <[email protected]>
An: "renovatebot/renovate" <[email protected]>
Cc: "Peter Bruch" <[email protected]>; "Author"
<[email protected]>
Gesendet: 07.02.2021 19:06:55
Betreff: Re: [renovatebot/renovate] "Datasource unauthorized" for
private Nuget feed (#8576)
If you're seeing text like ["{\"h with the escaped quote then it means
that the hostRules have not been parsed as JSON and instead as strings.
Try wrapping in [] because hostRules should be an array, not an object:
renovate --dry-run=true --host-rules '[{"hostType":"nuget","domainName":"mydomain","username":"$PRIVATE_NUGET_USERNAME","password":"$PRIVATE_NUGET_PASSWORD"}]'
Unfortunately CLI parsing can be challenging - a config.js could be
easier if that doesn't work
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8576 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEOHY3ZYF3OLOPZZP3FTQ3S53JD7ANCNFSM4XHWIHYQ>.
|
Beta Was this translation helpful? Give feedback.
If you're seeing text like
["{\"h
with the escaped quote then it means that the hostRules have not been parsed as JSON and instead as strings. Try wrapping in[]
becausehostRules
should be an array, not an object:Unfortunately CLI parsing can be challenging - a
config.js
could be easier if that doesn't work