Closed viceice closed 11 months ago
@rarkins WDYT?
That particular case seemed to be because lock file maintenance hadn't changed anything. But I guess we can warn.
@rarkins I'm getting the same now, but the lockfile has definitively changed! Any idea?
@viceice did you manage to solve your original problem?
DEBUG: Returning updated poetry.lock(branch="feature/renovate/all") DEBUG: Updated 1 package files(branch="feature/renovate/all") DEBUG: Updated 1 lock files(branch="feature/renovate/all") { "updatedArtifacts": [ "poetry.lock" ] } DEBUG: 2 file(s) to commit(branch="feature/renovate/all") DEBUG: Preparing files for committing to branch feature/renovate/all(branch="feature/renovate/all") DEBUG: Setting git author name: Renovate Bot(branch="feature/renovate/all") DEBUG: Setting git author email: bot@renovateapp.com(branch="feature/renovate/all") DEBUG: git commit(branch="feature/renovate/all") { "deletedFiles": [], "ignoredFiles": [], "result": { "author": null, "branch": "feature/renovate/all", "commit": "613336483be8b2e22b763c5d3481380fad090e7b", "root": false, "summary": { "changes": 1, "insertions": 23, "deletions": 3 } } } DEBUG: POST https://api.github.com/repos/moneymeets/sepacetamol/git/refs = (code=ERR_NON_2XX_3XX_RESPONSE, statusCode=422 retryCount=0, duration=279)(branch="feature/renovate/all") DEBUG: 422 Error thrown from GitHub(branch="feature/renovate/all") { "err": { "name": "HTTPError", "code": "ERR_NON_2XX_3XX_RESPONSE", "timings": { "start": 1677432369077, "socket": 1677432369077, "lookup": 1677432369086, "connect": 1677432369086, "secureConnect": 1677432369098, "upload": 1677432369098, "response": 1677432369355, "end": 1677432369356, "phases": { "wait": 0, "dns": 9, "tcp": 0, "tls": 12, "request": 0, "firstByte": 257, "download": 1, "total": 279 } }, "message": "Response code 422 (Unprocessable Entity)", "stack": "HTTPError: Response code 422 (Unprocessable Entity)\n at Request.(/home/ubuntu/renovateapp/node_modules/got/dist/source/as-promise/index.js:118:42)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)", "options": { "headers": { "user-agent": "Renovate Bot (GitHub App 2740)", "accept": "application/json, application/vnd.github.machine-man-preview+json", "authorization": "***********", "content-type": "application/json", "content-length": "90", "accept-encoding": "gzip, deflate, br" }, "url": "https://api.github.com/repos/moneymeets/sepacetamol/git/refs", "hostType": "github", "username": "", "password": "", "method": "POST", "http2": false }, "response": { "statusCode": 422, "statusMessage": "Unprocessable Entity", "body": { "message": "Reference update failed", "documentation_url": "https://docs.github.com/rest/reference/git#create-a-reference" }, "headers": { "server": "GitHub.com", "date": "Sun, 26 Feb 2023 17:26:09 GMT", "content-type": "application/json; charset=utf-8", "content-length": "121", "x-github-media-type": "github.v3; param=machine-man-preview", "x-github-api-version-selected": "2022-11-28", "x-ratelimit-limit": "5000", "x-ratelimit-remaining": "4971", "x-ratelimit-reset": "1677434940", "x-ratelimit-used": "29", "x-ratelimit-resource": "core", "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "access-control-allow-origin": "*", "strict-transport-security": "max-age=31536000; includeSubdomains; preload", "x-frame-options": "deny", "x-content-type-options": "nosniff", "x-xss-protection": "0", "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "content-security-policy": "default-src 'none'", "vary": "Accept-Encoding, Accept, X-Requested-With", "x-github-request-id": "E9A2:4DB4:550BC59:5813AFE:63FB9631", "connection": "close" }, "httpVersion": "1.1", "retryCount": 0 } } } DEBUG: Platform-native commit: unknown error(branch="feature/renovate/all") { "branchName": "feature/renovate/all", "err": { "hostType": "github", "err": { "name": "HTTPError", "code": "ERR_NON_2XX_3XX_RESPONSE", "timings": { "start": 1677432369077, "socket": 1677432369077, "lookup": 1677432369086, "connect": 1677432369086, "secureConnect": 1677432369098, "upload": 1677432369098, "response": 1677432369355, "end": 1677432369356, "phases": { "wait": 0, "dns": 9, "tcp": 0, "tls": 12, "request": 0, "firstByte": 257, "download": 1, "total": 279 } }, "message": "Response code 422 (Unprocessable Entity)", "stack": "HTTPError: Response code 422 (Unprocessable Entity)\n at Request. (/home/ubuntu/renovateapp/node_modules/got/dist/source/as-promise/index.js:118:42)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)", "options": { "headers": { "user-agent": "Renovate Bot (GitHub App 2740)", "accept": "application/json, application/vnd.github.machine-man-preview+json", "authorization": "***********", "content-type": "application/json", "content-length": "90", "accept-encoding": "gzip, deflate, br" }, "url": "https://api.github.com/repos/moneymeets/sepacetamol/git/refs", "hostType": "github", "username": "", "password": "", "method": "POST", "http2": false }, "response": { "statusCode": 422, "statusMessage": "Unprocessable Entity", "body": { "message": "Reference update failed", "documentation_url": "https://docs.github.com/rest/reference/git#create-a-reference" }, "headers": { "server": "GitHub.com", "date": "Sun, 26 Feb 2023 17:26:09 GMT", "content-type": "application/json; charset=utf-8", "content-length": "121", "x-github-media-type": "github.v3; param=machine-man-preview", "x-github-api-version-selected": "2022-11-28", "x-ratelimit-limit": "5000", "x-ratelimit-remaining": "4971", "x-ratelimit-reset": "1677434940", "x-ratelimit-used": "29", "x-ratelimit-resource": "core", "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "access-control-allow-origin": "*", "strict-transport-security": "max-age=31536000; includeSubdomains; preload", "x-frame-options": "deny", "x-content-type-options": "nosniff", "x-xss-protection": "0", "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "content-security-policy": "default-src 'none'", "vary": "Accept-Encoding, Accept, X-Requested-With", "x-github-request-id": "E9A2:4DB4:550BC59:5813AFE:63FB9631", "connection": "close" }, "httpVersion": "1.1", "retryCount": 0 } }, "message": "external-host-error", "stack": "Error: external-host-error\n at handleGotError (/home/ubuntu/renovateapp/node_modules/renovate/dist/util/http/github.js:93:16)\n at GithubHttp.request (/home/ubuntu/renovateapp/node_modules/renovate/dist/util/http/github.js:245:19)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async GithubHttp.requestJson (/home/ubuntu/renovateapp/node_modules/renovate/dist/util/http/index.js:194:21)\n at async pushFiles (/home/ubuntu/renovateapp/node_modules/renovate/dist/modules/platform/github/index.js:1375:13)\n at async commitFiles (/home/ubuntu/renovateapp/node_modules/renovate/dist/modules/platform/github/index.js:1394:24)\n at async processBranch (/home/ubuntu/renovateapp/node_modules/renovate/dist/workers/repository/update/branch/index.js:385:25)\n at async writeUpdates (/home/ubuntu/renovateapp/node_modules/renovate/dist/workers/repository/process/write.js:120:21)\n at async update (/home/ubuntu/renovateapp/node_modules/renovate/dist/workers/repository/process/extract-update.js:158:15)\n at async Object.renovateRepository (/home/ubuntu/renovateapp/node_modules/renovate/dist/workers/repository/index.js:60:25)\n at async renovateRepository (/home/ubuntu/renovateapp/app/worker/index.js:260:26)\n at async /home/ubuntu/renovateapp/app/worker/index.js:454:5" } } DEBUG: getPrCache() DEBUG: Ensuring Dependency Dashboard DEBUG: ensureIssue(Dependency Dashboard) DEBUG: Patching issue DEBUG: Issue updated DEBUG: Removing any stale branches DEBUG: config.repoIsOnboarded=true DEBUG: No renovate branches found DEBUG: Cleaning up Renovate refs: refs/renovate/* DEBUG: PackageFiles.clear() - Package files deleted DEBUG: Branch summary { "cacheModified": true, "baseBranches": [ { "branchName": "master", "sha": "ca242aaf3beaadd84ef41f1df4ecf3257cb002fb" } ], "branches": [], "inactiveBranches": [ "feature/renovate/all" ] } DEBUG: Renovate repository PR statistics { "stats": { "total": 0, "open": 0, "closed": 0, "merged": 0 } } DEBUG: Repository result: done, status: onboarded, enabled: true, onboarded: true DEBUG: Repository timing splits (milliseconds) { "splits": { "init": 2987, "extract": 1103, "lookup": 4015, "onboarding": 5, "update": 98534 }, "total": 108981 } DEBUG: Package cache statistics { "get": { "count": 24, "avgMs": 135, "medianMs": 70, "maxMs": 610 }, "set": { "count": 11, "avgMs": 154, "medianMs": 124, "maxMs": 286 } } DEBUG: http statistics { "urls": { "https://api.github.com/graphql (POST,200)": 9, "https://api.github.com/repos/moneymeets/sepacetamol/contents/renovate.json (GET,200)": 1, "https://api.github.com/repos/moneymeets/sepacetamol/git/commits (POST,201)": 1, "https://api.github.com/repos/moneymeets/sepacetamol/git/refs (POST,422)": 1, "https://api.github.com/repos/moneymeets/sepacetamol/git/trees (POST,201)": 1, "https://api.github.com/repos/moneymeets/sepacetamol/issues/47 (GET,200)": 2, "https://api.github.com/repos/moneymeets/sepacetamol/issues/47 (PATCH,200)": 1, "https://api.github.com/repos/moneymeets/sepacetamol/pulls (GET,200)": 1, "https://api.github.com/repos/whitesource/merge-confidence/contents/beta.json (GET,200)": 1, "https://pypi.org/pypi/django-debug-toolbar/json (GET,200)": 1, "https://pypi.org/pypi/schwifty/json (GET,200)": 1, "https://pypi.org/pypi/sepaxml/json (GET,200)": 1, "https://pypi.org/pypi/whitenoise/json (GET,200)": 1 }, "hostStats": { "api.github.com": { "requestCount": 18, "requestAvgMs": 453, "queueAvgMs": 1 }, "pypi.org": { "requestCount": 4, "requestAvgMs": 408, "queueAvgMs": 0 } }, "totalRequests": 22 } DEBUG: dns cache { "hosts": [ "api.github.com", "pypi.org" ] } INFO: Repository finished { "cloned": true, "durationMs": 108981 }
Found out what the problem was! :) I had an active branch feature/renovate
, so it refused to create further branches in this namespace like feature/renovate/all
. Still very confusing and probably yet another reason to take on this issue...
@rarkins I'm encountering the same issue. Could you please advice
:tada: This issue has been resolved in version 36.20.1 :tada:
The release is available on:
36.20.1
Your semantic-release bot :package::rocket:
How are you running Renovate?
WhiteSource Renovate hosted app on github.com
Please select which platform you are using if self-hosting.
No response
If you're self-hosting Renovate, tell us what version of Renovate you run.
No response
Describe the bug
Renovate sonmetimes isn't able to create a pr on github and get' a 422, which is only debug logged. I think this should be logged as warning to be visible on dependency dashboard.
https://github.com/renovatebot/renovate/discussions/11479#discussioncomment-1253954
Relevant debug logs
Logs
``` DEBUG: Setting current branch to master(branch="renovate/lock-file-maintenance") DEBUG: latest commit(branch="renovate/lock-file-maintenance") { "branchName": "master", "latestCommitDate": "2021-08-27T11:31:07+02:00" } DEBUG: getBranchPr(renovate/lock-file-maintenance)(branch="renovate/lock-file-maintenance") DEBUG: findPr(renovate/lock-file-maintenance, undefined, open)(branch="renovate/lock-file-maintenance") DEBUG: findPr(renovate/lock-file-maintenance, undefined, closed)(branch="renovate/lock-file-maintenance") DEBUG: branchExists=true(branch="renovate/lock-file-maintenance") DEBUG: dependencyDashboardCheck=undefined(branch="renovate/lock-file-maintenance") DEBUG: recreateClosed is true(branch="renovate/lock-file-maintenance") DEBUG: Checking if PR has been edited(branch="renovate/lock-file-maintenance") DEBUG: Last commit author does not match git author email - branch has been modified(branch="renovate/lock-file-maintenance") { "branchName": "renovate/lock-file-maintenance", "lastAuthor": "dawid.janczak@gmail.com", "gitAuthorEmail": "bot@renovateapp.com" } DEBUG: findPr(renovate/lock-file-maintenance, undefined, !open)(branch="renovate/lock-file-maintenance") DEBUG: Found PR #552(branch="renovate/lock-file-maintenance") DEBUG: Found old PR matching this branch - will override it(branch="renovate/lock-file-maintenance") { "oldPrNumber": 552, "oldPrSha": "e751d48839faa74d2b571fbec204527119886aef", "branchSha": "e751d48839faa74d2b571fbec204527119886aef" } DEBUG: Checking schedule(before 5am on monday, null)(branch="renovate/lock-file-maintenance") DEBUG: Checking 1 schedule(s)(branch="renovate/lock-file-maintenance") DEBUG: Checking schedule "before 5am on monday"(branch="renovate/lock-file-maintenance") { "parsedSchedule": { "schedules": [ { "t_b": [ 18000 ], "d": [ 2 ] } ], "exceptions": [], "error": -1 } } DEBUG: Matches schedule before 5am on monday(branch="renovate/lock-file-maintenance") DEBUG: Branch already exists(branch="renovate/lock-file-maintenance") DEBUG: getBranchPr(renovate/lock-file-maintenance)(branch="renovate/lock-file-maintenance") DEBUG: findPr(renovate/lock-file-maintenance, undefined, open)(branch="renovate/lock-file-maintenance") DEBUG: findPr(renovate/lock-file-maintenance, undefined, closed)(branch="renovate/lock-file-maintenance") DEBUG: Found branch protection(branch="renovate/lock-file-maintenance") DEBUG: Branch protection: PRs must be up-to-date before merging(branch="renovate/lock-file-maintenance") DEBUG: IsBranchStale=true(branch="renovate/lock-file-maintenance") { "isStale": true, "branches": { "all": [ "origin/master", "origin/renovate/all" ], "branches": { "origin/master": { "current": false, "name": "origin/master", "commit": "1f72e3f", "label": "Merge pull request #569 from ygt/refactor-order-presenter" }, "origin/renovate/all": { "current": false, "name": "origin/renovate/all", "commit": "8eb3df2", "label": "Update all dependencies" } }, "current": "", "detached": false }, "currentBranch": "master", "currentBranchSha": "1f72e3f55377ae9211994d0623c9c4dc56597e87" } DEBUG: Branch is stale and needs rebasing(branch="renovate/lock-file-maintenance") DEBUG: Cannot rebase branch as it has been modified(branch="renovate/lock-file-maintenance") DEBUG: Using reuseExistingBranch: true(branch="renovate/lock-file-maintenance") DEBUG: manager.getUpdatedPackageFiles() reuseExistinbranch=true(branch="renovate/lock-file-maintenance") DEBUG: No package files need updating(branch="renovate/lock-file-maintenance") DEBUG: Getting updated lock files(branch="renovate/lock-file-maintenance") DEBUG: Skipping lockFileMaintenance update(branch="renovate/lock-file-maintenance") DEBUG: No updated lock files in branch(branch="renovate/lock-file-maintenance") DEBUG: No files to commit(branch="renovate/lock-file-maintenance") DEBUG: Checking if we can automerge branch(branch="renovate/lock-file-maintenance") DEBUG: mergeStatus=no automerge(branch="renovate/lock-file-maintenance") DEBUG: Ensuring PR(branch="renovate/lock-file-maintenance") DEBUG: There are 0 errors and 0 warnings(branch="renovate/lock-file-maintenance") DEBUG: getBranchPr(renovate/lock-file-maintenance)(branch="renovate/lock-file-maintenance") DEBUG: findPr(renovate/lock-file-maintenance, undefined, open)(branch="renovate/lock-file-maintenance") DEBUG: findPr(renovate/lock-file-maintenance, undefined, closed)(branch="renovate/lock-file-maintenance") DEBUG: Creating PR(branch="renovate/lock-file-maintenance") { "prTitle": "Lock file maintenance" } DEBUG: Creating PR(branch="renovate/lock-file-maintenance") { "title": "Lock file maintenance", "head": "ygt:renovate/lock-file-maintenance", "base": "master", "draft": false } DEBUG: 422 Error thrown from GitHub(branch="renovate/lock-file-maintenance") { "err": { "name": "HTTPError", "timings": { "start": 1630282618966, "socket": 1630282618966, "lookup": 1630282618967, "connect": 1630282618976, "secureConnect": 1630282618988, "upload": 1630282618988, "response": 1630282619305, "end": 1630282619305, "phases": { "wait": 0, "dns": 1, "tcp": 9, "tls": 12, "request": 0, "firstByte": 317, "download": 0, "total": 339 } }, "message": "Response code 422 (Unprocessable Entity)", "stack": "HTTPError: Response code 422 (Unprocessable Entity)\n at Request.Have you created a minimal reproduction repository?
No reproduction repository