-
Notifications
You must be signed in to change notification settings - Fork 16
DevOps example not working correctly #971
Comments
@JamieMagee do you think this could be related to the transitive dependency updates yesterday? I also recall previously problems of expired tokens but this error message doesn't warn about that. |
I have already tried swapping tokens (switching to a PAT for my own account instead of System.AccessToken). Creating a new pipeline with the same yaml, and trying the template on a different devops account. So expired tokens don't sound likely. |
I don't think so. The lockfile updates went out yesterday, but this issue started happening on Friday. I am also seeing this on my own Renovate jobs running against Azure DevOps (I should check in on those more often!). They started failing on Friday between 19:00 and 20:00 CET, but the Renovate version was This might be something on the Azure DevOps side. Let me investigate it. |
I also did some more digging, but have not found anything so far. I'll just share what I checked. The Azure DevOps release notes seem to indicate nothing has changed on Friday the 6th of November: I checked the run logs between a run that worked on friday, and one that failed on monday.
|
So same version of Renovate and (apparent) same version of Azure DevOps, but it suddenly stopped working? |
Can somebody log at debug level in case it gives additional info? I'm guessing it's failing at one of these lines: https://github.com/renovatebot/renovate/blob/ad50398fb3981a7c5d04b96bddce3dbad45a7d21/lib/platform/azure/index.ts#L124-L125 |
This question was coincidentally asked yesterday: https://stackoverflow.com/questions/64759524/tf400813-the-user-is-not-authorized-to-access-this-resource-when-using-syste Someone asked the same question 4 months ago, here was some suggestion from a MSFT employee: Note that the OP said that the problem resolved itself though. |
Correct. Although at first the renovate version was different, but reverting doesn't fix it.
I agree it seems to be a DevOps (authentication) issue... We use the Microsoft provided build agents and images, no proxy settings, and (I guess) 0 debugging on network issues there for us. I can't seem to find any other reports regarding these issues... I still hope it will resolve itself automagically... |
Ok, a debug run seems to confirm that it fails somewhere after 'initRepo'.
|
I figured out the issue. It's a little bit convoluted but bear with me. On Friday 6th November, version 1.8.0 of Looking at the changes on that commit, the authentication is not added to every request, so we're authenticating as an anonymous user for some requests (where have I seen that error 🤔)
Therefore, the fix for this should either be in |
I continued the discussion here |
@JamieMagee do we need to make any code modifications now? |
Yes, small code change required. I can send a PR out later this evening, or tomorrow. I'm on mobile right now. |
I can confirm version 23.83.3 of renovatebot does work as expected again. Thank you so much for the help 👍 |
Which Renovate are you using?
Renovate Open Source CLI
Which platform are you using?
Azure DevOps
Have you checked the logs? Don't forget to include them if relevant
Every single repo gives the following error (redacted repo names):
What would you like to do?
We are using Renovate in an Azure DevOps pipeline, based on the starter template available at https://docs.renovatebot.com/setup-azure-devops/. This runs multiple times a day, to update dependencies for all of our modules (repositories).
Last friday (6th of november) everything worked great, but yesterday I started getting 401's on the DevOps repository access. I have not changed the configuration in any way, and even tried the template in another devops account to be sure it wasn't account related. Downgrading to the version that last worked did also not provide a working solution (same errors).
I have checked, and do not have any limitations on the System.AccessToken about using it in scripts or across repositories.
I am unsure if this is somehow a bug in renovate, or if i'm doing anything wrong with the configuration, but given that the example doesn't work for me anymore, gives me reason to think something changed, but I seem to be unable to figure out what.
The text was updated successfully, but these errors were encountered: