What Renovate type are you using?
Self hosted, with docker image :
{
"tag": "renovate/renovate:latest",
"checksum": "sha256:77b87b9e0a1a1e951f86a6ffdb96e65d99d65236d9708c3a816c1565f6e840a0",
"Labels": {
"maintainer": "Rhys Arkins <[email protected]>",
"name": "renovate",
"org.opencontainers.image.licenses": "AGPL-3.0-only",
"org.opencontainers.image.source": "https://github.com/renovatebot/renovate",
"org.opencontainers.image.url": "https://renovatebot.com",
"org.opencontainers.image.version": "19.221.0-slim"
}
}
Describe the bug
When starting the scan, I got a bug directly.
Did you see anything helpful in debug logs?
here is the full log :
INFO: Throwing preset error
FATAL: Fatal error: config-validation
"err": {
"validationError": "Cannot find preset's package (group:ngxs-storeMonorepo). Note: this is a *nested* preset so please contact the preset author if you are unable to fix it yourself.",
"message": "config-validation",
"stack": "Error: config-validation\n at resolveConfigPresets (/usr/src/app/node_modules/renovate/dist/config/presets/index.js:203:35)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)"
}
INFO: Renovate is exiting with a non-zero code due to the following logged errors
"loggerErrors": [
{
"name": "renovate",
"level": 60,
"logContext": "_vGZdcQGi",
"err": {
"validationError": "Cannot find preset's package (group:ngxs-storeMonorepo). Note: this is a *nested* preset so please contact the preset author if you are unable to fix it yourself.",
"message": "config-validation",
"stack": "Error: config-validation\n at resolveConfigPresets (/usr/src/app/node_modules/renovate/dist/config/presets/index.js:203:35)\n at runMicrotasks (<anonymous>)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)"
},
"msg": "Fatal error: config-validation"
}
]
To Reproduce
Doesn't really know, here is my configuration :
module.exports = {
platform: 'gitlab',
endpoint: 'https://gitlab.private.com/api/v4/',
assignees: ['thib3113'],
baseBranches: ['dev'],
labels: ['renovate'],
extends: ['config:base'],
npmrc: 'registry=http://npm.private.lan:4873',
logLevel: 'debug'
};
My tokens for gitlab and github are set ( maybe you have an idea how to test ? an endpoint ? )
Additional context
Should hopefully be fixed by renovatebot/renovate#6078
ok, I'll wait the docker release .
because last build ( 1hour ago ) seems to doesn't include it :
{
"tag": "renovate/renovate:latest",
"checksum": "sha256:465dce9ce43a28db1e8cf7d2e1b376ccd68141435c034eb8f6045902133f3de2",
"Labels": {
"maintainer": "Rhys Arkins <[email protected]>",
"name": "renovate",
"org.opencontainers.image.licenses": "AGPL-3.0-only",
"org.opencontainers.image.source": "https://github.com/renovatebot/renovate",
"org.opencontainers.image.url": "https://renovatebot.com",
"org.opencontainers.image.version": "19.221.0"
}
}
Looks like now there's a new, similar error:
Image:
Digest: sha256:2c1acf60abb2a60f9a3ed3885d5fcae234e27e97fd5f947a915cf72bd58a424c
Status: Downloaded newer image for renovate/renovate:latest
Error:
FATAL: Fatal error: config-validation
"err": {
"validationError": "Cannot find preset's package (config:base)",
"message": "config-validation",
"stack": "Error: config-validation\n at Object.resolveConfigPresets (/usr/src/app/node_modules/renovate/dist/config/presets/index.js:203:35)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)"
}
INFO: Renovate is exiting with a non-zero code due to the following logged errors
"loggerErrors": [
{
"name": "renovate",
"level": 60,
"logContext": "AXXRwvT9w",
"err": {
"validationError": "Cannot find preset's package (config:base)",
"message": "config-validation",
"stack": "Error: config-validation\n at Object.resolveConfigPresets (/usr/src/app/node_modules/renovate/dist/config/presets/index.js:203:35)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)"
},
"msg": "Fatal error: config-validation"
}
]
Please wait for > 19.221.1 release
@fastman not really . (config.base) seems to be like this : https://github.com/renovatebot/renovate/issues/6076
Did you configure GITHUB_COM_TOKEN ?
In my case (config:base) is loaded, and one of the sub config can't be loaded
token is not needed with > 19.221.1
oh ok .
finally, 19.221.2 is available, but doesn't work :
FATAL: Fatal error: platform-failure
"err": {
"message": "platform-failure",
"stack": "Error: platform-failure\n at fetchJSONFile (/usr/src/app/node_modules/renovate/dist/config/presets/github.js:31:19)\n at getPresetFromEndpoint (/usr/src/app/node_modules/renovate/dist/config/presets/github.js:80:29)\n at Object.getPreset (/usr/src/app/node_modules/renovate/dist/config/presets/github.js:94:12)\n at getPreset (/usr/src/app/node_modules/renovate/dist/config/presets/index.js:141:58)\n at Object.resolveConfigPresets (/usr/src/app/node_modules/renovate/dist/config/presets/index.js:194:43)\n at Object.parseConfigs (/usr/src/app/node_modules/renovate/dist/config/index.js:48:40)\n at async Object.start (/usr/src/app/node_modules/renovate/dist/workers/global/index.js:62:22)\n at async /usr/src/app/node_modules/renovate/dist/renovate.js:16:24"
}
INFO: Renovate is exiting with a non-zero code due to the following logged errors
"loggerErrors": [
{
"name": "renovate",
"level": 60,
"logContext": "JF-fiqaGd",
"err": {
"message": "platform-failure",
"stack": "Error: platform-failure\n at fetchJSONFile (/usr/src/app/node_modules/renovate/dist/config/presets/github.js:31:19)\n at getPresetFromEndpoint (/usr/src/app/node_modules/renovate/dist/config/presets/github.js:80:29)\n at Object.getPreset (/usr/src/app/node_modules/renovate/dist/config/presets/github.js:94:12)\n at getPreset (/usr/src/app/node_modules/renovate/dist/config/presets/index.js:141:58)\n at Object.resolveConfigPresets (/usr/src/app/node_modules/renovate/dist/config/presets/index.js:194:43)\n at Object.parseConfigs (/usr/src/app/node_modules/renovate/dist/config/index.js:48:40)\n at async Object.start (/usr/src/app/node_modules/renovate/dist/workers/global/index.js:62:22)\n at async /usr/src/app/node_modules/renovate/dist/renovate.js:16:24"
},
"msg": "Fatal error: platform-failure"
}
]
image :
{
"tag": "renovate/renovate:slim",
"checksum": "sha256:13f99cf492e850b053fe829db449274dfbd3bdcdbf4f415ee06ebf9683dab848",
"Labels": {
"maintainer": "Rhys Arkins <[email protected]>",
"name": "renovate",
"org.opencontainers.image.licenses": "AGPL-3.0-only",
"org.opencontainers.image.source": "https://github.com/renovatebot/renovate",
"org.opencontainers.image.url": "https://renovatebot.com",
"org.opencontainers.image.version": "19.221.2"
}
}
( I move to slim, because full image is really huge ... I'll retry with image full => 19.221.1 not available for full image )
if the slim image fails, the full fails too, because it is based on slim
@fastman not really . (config.base) seems to be like this : renovatebot/renovate#6076
Did you configure GITHUB_COM_TOKEN ?
In my case (config:base) is loaded, and one of the sub config can't be loaded
yup, I have a GITHUB_COM_TOKEN setup, but it doesn't seem to make any difference.
@rarkins Looks like there is something broken in renovate
Can somebody please provide a simple github repo to reproduce.
@fastman as @viceice say in https://github.com/renovatebot/renovate/issues/6088#issuecomment-621068291 , github token wasn't needed with version > 19.221.1
I'm also facing this issue, on self hosted GitLab, with no access to internet and github (for security reasons)
ok, so the issue is: renovate has no internet access while running?
how did you used the buildin presets before? do you have an internal npm mirror ?
@viceice I doesn't use github for this, but a private gitlab . So Here is my minimal configuration :
.gitlab-ci.yml
variables:
#RENOVATE_VERSION: slim
RENOVATE_VERSION: latest
RENOVATE_IMAGE: renovate/renovate:${RENOVATE_VERSION}
renovabot:
when: always
tags:
- docker-build
before_script:
- docker pull -q ${RENOVATE_IMAGE}
- "docker image inspect ${RENOVATE_IMAGE} | jq '.[0] | {tag: .RepoTags[0], checksum:.Id, Labels:.Config.Labels}'"
script:
- docker run -e RENOVATE_TOKEN="$RENOVABOT_GITLAB_TOKEN" -e "RENOVATE_PLATFORM=gitlab" -e GITHUB_COM_TOKEN="$RENOVABOT_GITHUB_TOKEN" -v $PWD/renovate.js:/usr/src/app/config.js ${RENOVATE_IMAGE} $(cat repositories.txt)
renovate.js
module.exports = {
platform: 'gitlab',
endpoint: 'https://gitlab.private.com/api/v4/',
assignees: ['thib3113'],
baseBranches: ['dev'],
labels: ['renovate'],
extends: ['config:base'],
npmrc: 'registry=http://npm.private.lan:4873',
logLevel: 'debug'
};
repositories.txt
renovate
( repo renovate is the repository that run renovate, useless because no update to do, but crash too )
and the renovate.json in repo ?
@thib3113 does the npm registry mirror public npm packages?
@viceice no renovate.json in this repo, it crash before reading the renovate.json .
yes for the private npm registry, but I can access github too (private repo is just here to add a cache, and doesn't ddos npm)
ok i see a difference, you are using extends: ["config:base" ] in config.js I'll check this
Thanks for info's, we've identified the issue and fixing it
:tada: This issue has been resolved in version 19.221.3 :tada:
The release is available on:
19.221.3Your semantic-release bot :package::rocket:
works fine with 19.221.3, thank you
Most helpful comment
Thanks for info's, we've identified the issue and fixing it