Open Closed

Error upgrading to 4.2.1 cli and suite from 4.2.0 #988


User avatar
0
hamberg created

Hello,

I am trying to update to 4.2.1 but it keeps failing. I tried running the command prompt window as administrator and still no luck. It seems like it is not downloading as the temp directory does not have any files in it which explains the erros below. How can I either remove manually or how can I get the cli to download?

  • ABP Framework version: v4.2.0
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:

C:\Users\MyUser>dotnet tool update -g Volo.Abp.Cli && abp suite update C:\Program Files\dotnet\sdk\5.0.102\NuGet.targets(131,5): error : Failed to download package 'volo.abp.cli.4.2.1' from 'https://api.nuget.org/v3-flatcontainer/volo.abp.cli/4.2.1/volo.abp.cli.4.2.1.nupkg'. [C:\Users\MyUser\AppData\Local\Temp\42gr0iup.45f\restore.csproj] C:\Program Files\dotnet\sdk\5.0.102\NuGet.targets(131,5): error : The decryption operation failed, see inner exception. [C:\Users\MyUser\AppData\Local\Temp\42gr0iup.45f\restore.csproj] C:\Program Files\dotnet\sdk\5.0.102\NuGet.targets(131,5): error : The specified data could not be decrypted. [C:\Users\MyUser\AppData\Local\Temp\42gr0iup.45f\restore.csproj] C:\Program Files\dotnet\sdk\5.0.102\NuGet.targets(131,5): error : The feed 'nuget.org [https://api.nuget.org/v3/index.json]' lists package 'volo.abp.cli.4.2.1' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again. [C:\Users\MyUser\AppData\Local\Temp\42gr0iup.45f\restore.csproj] C:\Program Files\dotnet\sdk\5.0.102\NuGet.targets(131,5): error : Unable to find package 'volo.abp.cli.4.2.1'. [C:\Users\MyUser\AppData\Local\Temp\42gr0iup.45f\restore.csproj] Tool 'volo.abp.cli' failed to update due to the following: The tool package could not be restored. Tool 'volo.abp.cli' failed to install. This failure may have been caused by:

  • You are attempting to install a preview release and did not use the --version option to specify the version.
  • A package by this name was found, but it was not a .NET tool.
  • The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
  • You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool

  • Steps to reproduce the issue: dotnet tool update -g Volo.Abp.Cli && abp suite update

5 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I can install and upgrade it. Can you try again?

    C:\Users\maliming>dotnet tool uninstall --global Volo.Abp.Cli
    Tool 'volo.abp.cli' (version '4.2.1') was successfully uninstalled.
    
    C:\Users\maliming>dotnet tool install --global Volo.Abp.Cli --version 4.2.1
    You can invoke the tool using the following command: abp
    Tool 'volo.abp.cli' (version '4.2.1') was successfully installed.
    
    C:\Users\maliming>abp suite update
    [09:20:22 INF] ABP CLI (https://abp.io)
    [09:20:22 INF] Version 4.2.1 (Stable)
    [09:20:25 INF] Updating ABP Suite ...
    Tool 'volo.abp.suite' was reinstalled with the latest stable version (version '4.2.1').
    

    https://www.nuget.org/packages/Volo.Abp.Cli/

  • User Avatar
    0
    hamberg created

    Ok, I did remove and then instaelled the cli but I have the same issue, the suite does not update, please see below. How can I just remove and readd the suite? I already made a backup of the entity data for the suite for my project. I am running windows on my mac with parallels. I thinnk it could be some kind of path issue and if I just have to unistall and reinstall every time will not be an issue if that is the case.

    I aslo tired abp suite remove and it removed the suite,I then ran abp suite install and it failed with the error above, now the suite no longer works because it is not installed.

    C:>abp suite update
    [08:57:18 INF] ABP CLI (https://abp.io)
    [08:57:18 INF] Version 4.2.1 (Stable)
    [08:57:19 WRN] ABP CLI has a newer stable version 4.2.2, please update to get the latest features and fixes.
    [08:57:19 WRN]
    [08:57:19 WRN] Update Command:
    [08:57:19 WRN] dotnet tool update -g Volo.Abp.Cli
    [08:57:19 WRN]
    [08:57:19 INF] Updating ABP Suite ...
    C:\Program Files\dotnet\sdk\5.0.102\NuGet.targets(131,5): error : Failed to download package 'volo.abp.suite.4.2.2' from 'https://nuget.abp.io/MyKey/v3/package/volo.abp.suite/4.2.2/volo.abp.suite.4.2.2.nupkg'. [C:\Users\MyUser\AppData\Local\Temp\h3aaputo.wqt\restore.csproj]
    C:\Program Files\dotnet\sdk\5.0.102\NuGet.targets(131,5): error : The decryption operation failed, see inner exception. [C:\Users\MyUser\AppData\Local\Temp\h3aaputo.wqt\restore.csproj]
    C:\Program Files\dotnet\sdk\5.0.102\NuGet.targets(131,5): error : The specified data could not be decrypted. [C:\Users\MyUser\AppData\Local\Temp\h3aaputo.wqt\restore.csproj]
    C:\Program Files\dotnet\sdk\5.0.102\NuGet.targets(131,5): error : The feed 'https://nuget.abp.io/MyKey/v3/index.json [https://nuget.abp.io/MyKey/v3/index.json]' lists package 'volo.abp.suite.4.2.2' but multiple attempts to download the nupkg have failed. The feed is either invalid or required packages were removed while the current operation was in progress. Verify the package exists on the feed and try again. [C:\Users\MyUser\AppData\Local\Temp\h3aaputo.wqt\restore.csproj]
    C:\Program Files\dotnet\sdk\5.0.102\NuGet.targets(131,5): error : Unable to find package 'volo.abp.suite.4.2.2'. [C:\Users\MyUser\AppData\Local\Temp\h3aaputo.wqt\restore.csproj]
    Tool 'volo.abp.suite' failed to update due to the following:
    The tool package could not be restored.
    Tool 'volo.abp.suite' failed to install. This failure may have been caused by:
    
    You are attempting to install a preview release and did not use the --version option to specify the version.
    A package by this name was found, but it was not a .NET tool.
    The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
    You mistyped the name of the tool.
    For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool
    [08:57:35 ERR] You can also run the following command to update ABP Suite.
    [08:57:35 ERR] dotnet tool update -g Volo.Abp.Suite --add-source https://nuget.abp.io/<your-private-key>/v3/index.json
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You can also run the following command to update ABP Suite.

    dotnet tool update -g Volo.Abp.Suite --add-source https://nuget.abp.io/<your-private-key>/v3/index.json
    

  • User Avatar
    0
    hamberg created

    You can also run the following command to update ABP Suite.

    dotnet tool update -g Volo.Abp.Suite --add-source https://nuget.abp.io/<your-private-key>/v3/index.json 
    

    I ran your command and it updated. Thank you.

  • User Avatar
    0
    staff@outdoored.com created

    I am also having problems updating have updated the CLI to 4.2.2. I try and log in with my Commercial Account and I repeatedly get an HTML Error page written out in the window within either the CMD environment or Windows Terminal with an Identity Server error at the bottom.

    I can run basic ABP Commands from the CLI (Help etc) but I can't login to my commercial account. I went in to Visual Studio and added your Nuget URL and that shows up in the Nuget Sources from dotnet nuget list source

    I GET A FULL HTML PAGE WITH LEPTON THEME THAT HAS A 500 ERROR </body> </html>

    WIth Identity Server Errors at the bottom. Is there some issue with my Commercial Account?

    at Volo.Abp.IdentityModel.IdentityModelAuthenticationService.GetAccessTokenAsync(IdentityClientConfiguration configuration) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.A bp.IdentityModel\Volo\Abp\IdentityModel\IdentityModelAuthenticationService.cs:line 97 at Volo.Abp.Cli.Auth.AuthService.LoginAsync(String userName, String password, String organizationName) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp
    Cli\Auth\AuthService.cs:line 38 at Volo.Abp.Cli.Commands.LoginCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\LoginC ommand.cs:line 69 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 59

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11