Open Closed

Cannot download all modules #8883


User avatar
0
jfistelmann created

Hey,

I'm trying to create a script to automatically download all modules - but for some modules we are just receiving errors :S

param (
    [Parameter(Mandatory=$true)][string]$abpVersion,
    [Parameter(Mandatory=$true)][string]$leptonXVersion
 )

 function downloadModule($name, $version) {
    New-Item -ItemType Directory -Force -Path $name
    abp get-source $name --version $version -o ./$name
}

$modules = abp list-modules

foreach ($module in $modules) {

    if (-Not($module -Match "> ")) {
        continue;
    }

    $moduleName = $module -replace "> ", "";
    Write-Host "Downloading $moduleName..."

    if ($moduleName -Match "LeptonX") {
        downloadModule $moduleName $leptonXVersion
    }
    else {
        downloadModule $moduleName $abpVersion
    }
}

log (reduced):

Directory: C:\repos\abp

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          27.02.2025    17:15                Volo.Abp.Account.Pro
[17:22:37] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli
[17:22:37] Downloading source code of Volo.Abp.Account.Pro (v9.0.5)
[17:22:37] Output folder: C:\repos\abp\Volo.Abp.Account.Pro
[17:22:44 ERR] Downloading source code failed for: Volo.Abp.Account.Pro
Volo.Abp.Studio.AbpStudioException: Exception of type 'Volo.Abp.Studio.AbpStudioException' was thrown.
  at async Task Volo.Abp.Studio.Modules.Installing.SourceCodeDownloader.DownloadSourceCodeAsync(string moduleName, string targetFolder, string version, bool includeNightly)
  at async Task Volo.Abp.Studio.Cli.Commands.StudioGetSourceCommand.ExecuteAsync(CommandLineArgs commandLineArgs)
  at async Task Volo.Abp.Studio.Cli.StudioCliService.RunInternalAsync(CommandLineArgs commandLineArgs)
  at async Task Volo.Abp.Studio.Cli.StudioCliService.RunAsync(string[] args)
d----          27.02.2025    17:15                Volo.Abp.AuditLogging.Pro
[17:22:44] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli
[17:22:44] Downloading source code of Volo.Abp.AuditLogging.Pro (v9.0.5)
[17:22:44] Output folder: C:\repos\abp\Volo.Abp.AuditLogging.Pro
[17:22:51 ERR] Downloading source code failed for: Volo.Abp.AuditLogging.Pro
Volo.Abp.Studio.AbpStudioException: Exception of type 'Volo.Abp.Studio.AbpStudioException' was thrown.
  at async Task Volo.Abp.Studio.Modules.Installing.SourceCodeDownloader.DownloadSourceCodeAsync(string moduleName, string targetFolder, string version, bool includeNightly)
  at async Task Volo.Abp.Studio.Cli.Commands.StudioGetSourceCommand.ExecuteAsync(CommandLineArgs commandLineArgs)
  at async Task Volo.Abp.Studio.Cli.StudioCliService.RunInternalAsync(CommandLineArgs commandLineArgs)
  at async Task Volo.Abp.Studio.Cli.StudioCliService.RunAsync(string[] args)
d----          27.02.2025    17:15                Volo.Abp.Gdpr
[17:22:52] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli
[17:22:52] Downloading source code of Volo.Abp.Gdpr (v9.0.5)
[17:22:52] Output folder: C:\repos\abp\Volo.Abp.Gdpr
[17:22:58 ERR] Downloading source code failed for: Volo.Abp.Gdpr
Volo.Abp.Studio.AbpStudioException: Exception of type 'Volo.Abp.Studio.AbpStudioException' was thrown.
  at async Task Volo.Abp.Studio.Modules.Installing.SourceCodeDownloader.DownloadSourceCodeAsync(string moduleName, string targetFolder, string version, bool includeNightly)
  at async Task Volo.Abp.Studio.Cli.Commands.StudioGetSourceCommand.ExecuteAsync(CommandLineArgs commandLineArgs)
  at async Task Volo.Abp.Studio.Cli.StudioCliService.RunInternalAsync(CommandLineArgs commandLineArgs)
  at async Task Volo.Abp.Studio.Cli.StudioCliService.RunAsync(string[] args)
d----          27.02.2025    17:15                Volo.Abp.Identity.Pro
[17:22:59] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli

-----

d----          27.02.2025    17:24                Volo.Abp.Account
[17:24:18] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli
[17:24:18] Downloading source code of Volo.Abp.Account (v9.0.5)
[17:24:18] Output folder: C:\repos\abp\Volo.Abp.Account
[17:24:19] Volo.Abp.Account.SourceCode (v: 9.0.5) package downloaded from https://api.nuget.org/v3/index.json and saved to (C:\Users\JackFistelmann\.nuget\packages\)
[17:24:19] 'Volo.Abp.Account' has been successfully downloaded to 'C:\repos\abp\Volo.Abp.Account'
d----          27.02.2025    17:24                Volo.Abp.BackgroundJobs
[17:24:20] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli
[17:24:20] Downloading source code of Volo.Abp.BackgroundJobs (v9.0.5)
[17:24:20] Output folder: C:\repos\abp\Volo.Abp.BackgroundJobs
[17:24:21] Volo.Abp.BackgroundJobs.SourceCode (v: 9.0.5) package downloaded from https://api.nuget.org/v3/index.json and saved to (C:\Users\JackFistelmann\.nuget\packages\)
[17:24:21] 'Volo.Abp.BackgroundJobs' has been successfully downloaded to 'C:\repos\abp\Volo.Abp.BackgroundJobs'
d----          27.02.2025    17:24                Volo.Abp.BasicTheme


5 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hi,

    I tried the script you sent and downloaded all except Volo.Abp.Account.Pro and Volo.ClientSimulations. Volo.Abp.Account.Pro is in the first place in the module list, the script you sent parse it incorrectly while parse it, except for that, there is no problem. Here is the screenshot:

    Screenshot 2025-02-28 at 11.49.58.png

    Can you execute the following command in terminal to understand the problem?

    abp login-info

  • User Avatar
    0
    jfistelmann created
    abp login-info
    [16:23:14 INF] You are running the second generation of the ABP CLI. If you're interested in the legacy CLI, see https://abp.io/new-cli
    [16:23:14 INF]
    Login info:
    Name: Jack
    Surname: XXXXXXXXXXXXXX
    Username: jfXXXXXXXXXXXXX
    Email Address: jack@XXXXX.de
    Organization: Chrobyte
    
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hi,

    Everything looks normal. Do you also get an error when you try to download only the source code of a module?

  • User Avatar
    0
    jfistelmann created

    You're right. there must be some issue on my side here.
    does the cli provide a parameter vor verbose logging or something so I can check what the content of the exception is?

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hi,

    You can find the log records on C:\Users\{USERNAME}\.abp\studio\cli\logs.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08