`An error occurred while upgrading...` but no error message
See original GitHub issueWhen 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?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:14 (5 by maintainers)
Top Results From Across the Web
If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >Get help with Windows upgrade and installation errors
See some of the most common upgrade and installation errors for Windows 10 and Windows 11, and what you can do to try...
Read more >How To Fix “An Error Occurred While Checking For A Software ...
The error message generally occurs while updating the iOS with a poor network connection. However, the error can arise due to various other ......
Read more >An error occurred while upgrading the package - NI Community
This is an error that NI Package Manager returns when there was an issue installing or removing a package. To determine the underlying...
Read more >Error occurred while upgrading index - how to solve related ...
This guide will help you check for common problems that cause the log ” Error occurred while upgrading index ” to appear. To...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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 thedotnet
process was last received. So as long as thedotnet
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.