You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
An error occurred while upgrading... but no error message #251
When running this against some of my solutions I'm getting an error message:
An error occurred while upgrading [Project Name here]
There is not information to help me diagnose why I'm getting this error. Is it possible to log out RunStatus.Output to provide some hope of solving this?
Possibly, this could be behind a --verbose flag to prevent it littering the logs for everyone?
Reacted by Nick Devereaux, Jeff Ward, Mark Clearwater, Pete Robinson, Terje Hoås, Andrew Huff, Dave, Pika Hampel-Waffenthal, Dave Senn, Keith Banner and 1 more
I will receive that error 'alert', but no message or details. Even when I output the results to a file, no error or issues are mentioned.
The strange part is if I upgrade or run a command like:
> dotnet add <project> package
the package will update without issue.
I am not able to update my project in some random cases with using nukeeper or dotnet-outdated, but if I run the standard dotnet command as I displayed above, it executes without issue.
I'm also experiencing this problem. I'm getting the An error occurred while upgrading ... notification for each package in my project. I'm keeping my PackageReferences in Directory.Build.targets file instead of .csproj, could that be the cause?
Edit: anyway, some way of seeing what kind of error occurred would be helpful.
I'm experiencing this as well. I have a very large solution and due to antivirus software that I'm unable to do anything about, a restore takes more than 20 seconds. That makes dotnet-outdated completely unusable for me. 😢
@slang25 Do you have a preference between a configurable timeout vs a --no-restore option? #248 adds a configurable timeout. I'm happy to implement a --no-restore option if that's preferred.
I just realized that there's already a --no-restore option 🤦♂️. It's used for skipping package restore when updating packages.
I've come up with a different solution in #468. Rather than having a fixed timeout of 20 seconds for running the dotnet process, the timeout only applies from the time when output from the dotnet process was last received. So as long as the dotnet process is still writing something to stdout or stderr, dotnet-outdated will continue to wait for it to complete. If it doesn't output anything for 20 seconds, then the process is aborted.
Reacted by spaasis, Michał M. Więcław and Stuart Lang
Using --no-restore didn't solve the issue for me. The 20 second timeout still gets hit when dotnet msbuild is invoked to retrieve the dependency graph here:
$ dotnet outdated --version
A .NET Core global tool to list outdated Nuget packages.
4.8.1+9730dd4f48fe1df7e30f35a0c6ed826107f4a547
$ dotnet outdated --version-lock Major --upgrade
Discovering projects...
Analyzing project(s)...
Analyzing dependencies...
» BackendAccountService.Api
[net8.0]
SonarAnalyzer.CSharp 9.30.0.95878 -> 9.32.0.97167
...
Upgrading package SonarAnalyzer.CSharp...
An error occurred while upgrading BackendAccountService.Api
An error occurred while upgrading BackendAccountService.Api.UnitTests
An error occurred while upgrading BackendAccountService.Core
...
The merged PR may have resolved one cause of errors, but this issue is asking for a --verbose that stops dotnet-updated from swallowing stdout/stderr from the underlying processes attempting (and failing) the package changes.
Activity
jeffward01 commentedon Mar 28, 2022
I also have this error, its strange, if I run:
> dotnet-outdated -uI will receive that error 'alert', but no message or details. Even when I output the results to a file, no error or issues are mentioned.
The strange part is if I upgrade or run a command like:
the package will update without issue.
I am not able to update my project in some random cases with using
nukeeperordotnet-outdated, but if I run the standarddotnetcommand as I displayed above, it executes without issue.spaasis commentedon Apr 26, 2022
Same here - running the tool in Azure pipelines occasionally fails without error messages
p1971 commentedon May 30, 2022
Got a similar error message.
I uninstalled global and local, then reinstalled as local and it worked.
specialforest commentedon Jun 8, 2022
For me the issue was coming from DotNetRunner having hardcoded 20 seconds timeout for adding a package (and restoring them):
https://github.com/dotnet-outdated/dotnet-outdated/blob/master/src/DotNetOutdated.Core/Services/DotNetRunner.cs#L36
As workaround could try "--no-restore" option.
mechelewskim commentedon Aug 24, 2022
We're having the same issue occasionally when using the tool in our workflow in Github Actions and upgrading packages stored in Github Packages.
mishioo commentedon Oct 19, 2022
I'm also experiencing this problem. I'm getting the
An error occurred while upgrading ...notification for each package in my project. I'm keeping myPackageReferences inDirectory.Build.targetsfile instead of.csproj, could that be the cause?Edit: anyway, some way of seeing what kind of error occurred would be helpful.
reduckted commentedon Nov 27, 2022
I'm experiencing this as well. I have a very large solution and due to antivirus software that I'm unable to do anything about, a restore takes more than 20 seconds. That makes
dotnet-outdatedcompletely unusable for me. 😢mpdunlop commentedon Aug 17, 2023
I setup dotnet outdated today on a build machine and ran into this issue. A configurable timeout would be solve this issue for us.
In the meantime I've started running
dotnet restoreprior todotnet outdatedto give it a chance to finish.reduckted commentedon Aug 17, 2023
I wonder if a
--no-restoreoption would be easier to implement, rather than a configurable timeout. 🤔mpdunlop commentedon Aug 17, 2023
Both options sound good, as long as the error messaging is updated to better communicate the error.
reduckted commentedon Aug 20, 2023
@slang25 Do you have a preference between a configurable timeout vs a
--no-restoreoption? #248 adds a configurable timeout. I'm happy to implement a--no-restoreoption if that's preferred.r30e commentedon Aug 20, 2023
reduckted commentedon Aug 20, 2023
I just realized that there's already a
--no-restoreoption 🤦♂️. It's used for skipping package restore when updating packages.I've come up with a different solution in #468. Rather than having a fixed timeout of 20 seconds for running the
dotnetprocess, the timeout only applies from the time when output from thedotnetprocess was last received. So as long as thedotnetprocess is still writing something to stdout or stderr,dotnet-outdatedwill continue to wait for it to complete. If it doesn't output anything for 20 seconds, then the process is aborted.martincostello commentedon Aug 21, 2023
Using
--no-restoredidn't solve the issue for me. The 20 second timeout still gets hit whendotnet msbuildis invoked to retrieve the dependency graph here:dotnet-outdated/src/DotNetOutdated.Core/Services/DependencyGraphService.cs
Line 29 in 50c4781
timabell commentedon Jun 11, 2026
This issue isn't resolved for me
The merged PR may have resolved one cause of errors, but this issue is asking for a
--verbosethat stopsdotnet-updatedfrom swallowing stdout/stderr from the underlying processes attempting (and failing) the package changes.I vote to re-open.