-
Hello :) Yesterday I migrated from Whitesource Renovate to Renovate-CE. After following the migration guide everything looked fine but then Renovate started raising errors about failures when looking up for private dependencies. Here is an error example : {
"files": [
"package.json"
],
"repository": "xxx/yyy/zzz",
"warnings": [
"Failed to look up npm package @bridge/database",
],
"level": 40,
"time": "2023-11-28T09:36:09.384Z",
"msg": "Package lookup failures",
"name": "renovate",
"v": 0,
"logContext": "b2b97b5e58",
} It has always worked with Whitesource Renovate but ever since the migration I started having these errors. Here is the
Here is my module.exports = {
timezone: 'Europe/Paris',
onboardingCommitMessage: 'configure renovate bot',
labels: [
'dependencies',
],
lockFileMaintenance: {
enabled: true,
},
platformAutomerge: true,
persistRepoData: true,
repositoryCache: "enabled",
hostRules: [
{
matchHost: 'europe-west1-docker.pkg.dev',
username: "_json_key_base64",
password: process.env.ARTIFACT_REGISTRY_KEY,
},
{
hostType: 'npm',
matchHost: 'https://nexus.company.com/repository/company-npm-public/',
token: process.env.NEXUS_NPM_TOKEN,
authType: "Basic"
}
],
onboardingConfig: {
"extends": ["local>company/ci/renovate-config"]
}
}; The environnement variables are well defined in the container. I also have the error for the Artifact Registry defined above. I set the Log Level to debug and I found these two logs at startup : {
"name":"renovate",
"config":{
"timezone":"Europe/Paris",
"onboardingCommitMessage":"configure renovate bot",
"labels":[
"dependencies"
],
"lockFileMaintenance":{
"enabled":true
},
"platformAutomerge":true,
"persistRepoData":true,
"repositoryCache":"enabled",
"hostRules":[
{
"matchHost":"europe-west1-docker.pkg.dev",
"username":"_json_key_base64",
"password":"***********"
},
{
"hostType":"npm",
"matchHost":"https://nexus.company.com/repository/company-npm-public/",
"token":"***********"
}
],
"logContext":"a7d46a65e8",
"onboardingConfig":{
"$schema":"https://docs.renovatebot.com/renovate-schema.json",
"extends":[
"config:recommended"
]
},
"endpoint":"https://gitlab.company.com/api/v4/",
"platform":"gitlab",
"token":"***********",
"username":"renovate-bot",
"binarySource":"install",
"autodiscover":false
}
} {
"name":"renovate",
"pid":25,
"level":20,
"logContext":"a7d46a65e8",
"msg":"Adding token authentication for https://nexus.company.com/repository/company-npm-public/ (hostType=npm) to hostRules",
"time":"2023-11-28T08:09:53.545Z",
} I can provide extra logs and any additional information if needed, but I feel like I just missed an extra configuration somewhere with the migration. Version : Thank you :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Something here isn't right: |
Beta Was this translation helpful? Give feedback.
-
can we get debug logs? if you want to trouble shoot this check the section right after |
Beta Was this translation helpful? Give feedback.
-
It might be related or it might not, but it seems that your onboarding configuration is being overwritten. This is likely due to it being hardcoded in the Dockerfile using an environment variable. Consider explicitly setting the onboarding config using its respective environment variable Therefore if this is a newly onboarded repository, the |
Beta Was this translation helpful? Give feedback.
I don't know why but fixing the onboardingConfiguration by setting it through
RENOVATE_ONBOARDING_CONFIG
rather than in theconfig.js
file fixed my issue ! It now handles my dependencies properly :)Thank you !