renovatebot / renovate

Home of the Renovate CLI: Cross-platform Dependency Automation by Mend.io
https://mend.io/renovate
GNU Affero General Public License v3.0
17.6k stars 2.32k forks source link

renovate reports an error but unclear which file it is #16656

Closed robvdnieuw closed 2 years ago

robvdnieuw commented 2 years ago

How are you running Renovate?

Self-hosted

If you're self-hosting Renovate, tell us what version of Renovate you run.

32.119.1

Please select which platform you are using if self-hosting.

Azure DevOps Server

If you're self-hosting Renovate, tell us what version of the platform you run.

Azure DevOps Server 2020 Update 1.1

Was this something which used to work for you, and then stopped?

It used to work, and then stopped

Describe the bug

for some reason the allNonMajor updates in one of our repo's is not working anymore, we see a warning but no clue whether that is the reason: (log file attached)

2022-07-19T12:10:12.1746228Z WARN: Error updating branch (repository=OCC/COES, branch=renovate/all-minor-patch) 2022-07-19T12:10:12.1747118Z "err": { 2022-07-19T12:10:12.1747623Z "message": "Non-whitespace before first tag.\nLine: 0\nColumn: 1\nChar: d", 2022-07-19T12:10:12.1767883Z "stack": "Error: Non-whitespace before first tag.\nLine: 0\nColumn: 1\nChar: d\n at error (C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\sax\lib\sax.js:651:10)\n at strictFail (C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\sax\lib\sax.js:677:7)\n at beginWhiteSpace (C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\sax\lib\sax.js:951:7)\n at SAXParser.write (C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\sax\lib\sax.js:1006:11)\n at new XmlDocument (C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\xmldoc\lib\xmldoc.js:281:17)\n at getDependentPackageFiles (C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\renovate\dist\modules\manager\nuget\package-tree.js:37:21)\n at async updateArtifacts (C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\renovate\dist\modules\manager\nuget\artifacts.js:84:13)\n at async getUpdatedPackageFiles (C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\renovate\dist\workers\repository\update\branch\get-updated.js:197:29)\n at async processBranch (C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\renovate\dist\workers\repository\update\branch\index.js:292:21)\n at async writeUpdates (C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\renovate\dist\workers\repository\process\write.js:25:21)\n at async update (C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\renovate\dist\workers\repository\process\extract-update.js:109:15)\n at async Object.renovateRepository (C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\renovate\dist\workers\repository\index.js:43:25)\n at async Object.start (C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\renovate\dist\workers\global\index.js:119:13)\n at async C:\agent01\_work\348\s\RenovateBot\RenovateBot\node_modules\renovate\dist\renovate.js:15:24" 2022-07-19T12:10:12.1773165Z
renovate.log }

Relevant debug logs

Logs ``` Copy/paste the relevant log(s) here, between the starting and ending backticks ```

Have you created a minimal reproduction repository?

No reproduction repository

github-actions[bot] commented 2 years ago

Hi there,

We have found that there's a problem with the logs. Depending on which situation applies follow one, some or all of these instructions.

No logs at all

If there's no log posted yet, we need you to find and copy/paste the log into the issue template.

Finding logs on hosted app

Click me to read instructions If you use the Renovate app (GitHub): 1. Go to the affected PR, and search for "View repository job log here" 1. Click on the link to go to the "Mend Renovate Dashboard" and log in 1. You are now in the correct repository log overview screen 1. Copy/paste the correct log 1. Follow the steps in the **formatting your logs** section

Finding logs when self-hosting

Click me to read instructions If you're running self-hosted, run with `LOG_LEVEL=debug` in your environment variables and search for whatever dependency/branch/PR that is causing the problem.

Insufficient logs

Click me to read instructions If you already provided logs, and the Renovate team said they are not enough, follow the instructions from the **No logs at all** section.

Formatting your logs

Click me to read instructions Please put your logs in a `
` and `` element like this:
Click me to see logs ``` Copy/paste any log here, between the starting and ending backticks ```
robvdnieuw commented 2 years ago

Logs are uploaded as file in the description called renovate.log

rarkins commented 2 years ago

Logs are insufficient and also difficult to read due to the formatting

robvdnieuw commented 2 years ago

renovate-debug.log

original logfile

rarkins commented 2 years ago

Warning: you appear to have a token in this log. You should revoke and rotate it if so

rarkins commented 2 years ago

The log is now rather long so I can't review it from mobile. I note you are running under the indies though so possible you have a line endings problem. @HonkingGoose could you assist with a link to the relevant documentation for that?

HonkingGoose commented 2 years ago

Renovate docs, line endings.

MaxClaessen commented 2 years ago

Warning: you appear to have a token in this log. You should revoke and rotate it if so

FYI; we rotated the token ;).

renovate-release commented 2 years ago

:tada: This issue has been resolved in version 32.122.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: