Hello,
currently I am encountering some errors/problems when using the ABP Studio or Suite.
System.IO.IOException: The process cannot access the file 'D:\Workspace\Playground\MeinTestDemoWerk\etc\docker\containers\postgresql.yml' because it is being used by another process.
at SafeFileHandle Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(string fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at SafeFileHandle Microsoft.Win32.SafeHandles.SafeFileHandle.Open(string fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize, UnixFileMode? unix
CreateMode)
at SafeFileHandle System.IO.File.OpenHandle(string path, FileMode mode, FileAccess access, FileShare share, FileOptions options, long preallocationSize)
at async Task System.IO.File.WriteAllBytesAsync(string path, byte[] bytes, CancellationToken cancellationToken)+Core(?)
at async ValueTask Volo.Abp.Studio.SolutionTemplates.Pipelines.FileEntryListWriteToOutputFolderStep+<>c__DisplayClass2_0.<CreateFilesProdAsync>b__1(?)+(?) => { }
at async Task System.Threading.Tasks.Parallel.ForEachAsync<TSource>(IEnumerable<TSource> source, Func<TSource, CancellationToken, ValueTask> body)+(?) => { }
at async Task Volo.Abp.Studio.SolutionTemplates.Pipelines.FileEntryListWriteToOutputFolderStep.MRGtBtrKGq(SolutionBuildPipelineContext , ITemplateConfigWithOutputFolderAndSolutionName )
at async Task Volo.Abp.Studio.SolutionTemplates.Pipelines.FileEntryListWriteToOutputFolderStep.ExecuteAsync(SolutionBuildPipelineContext context)
at async Task Volo.Abp.Studio.SolutionTemplates.Pipelines.PipelinedTemplateSolutionBuilderBase.o5RtdSaMeF(List<SolutionBuildPipelineStep> , object )
at async Task<string> Volo.Abp.Studio.SolutionTemplates.Pipelines.PipelinedTemplateSolutionBuilderBase.BuildAsync(SolutionBuilderContext context)
at async Task<string> Volo.Abp.Studio.Extensions.StandardTemplates.Microservice.MicroserviceTemplateSolutionBuilder.BuildAsync(SolutionBuilderContext context) x 2
at async Task<string> Volo.Abp.Studio.SolutionTemplates.SolutionBuilder.BuildAsync(SolutionBuilderContext context)
at async Task<string> Volo.Abp.Studio.UI.ViewModels.NewSolution.NewSolutionWizardWindowViewModel.bk1BnEdHpk()
at async Task Volo.Abp.Studio.UI.ViewModels.NewSolution.NewSolutionWizardWindowViewModel.WotBH8Vljk()
at T System.Reactive.Subjects.AsyncSubject<T>.GetResult()
at async Task Volo.Abp.Studio.UI.ViewModels.NewSolution.NewSolutionWizardWindowViewModel.INX2VjGWNY()
It's not always blocked by another process but when it creates the new project I am not entirely sure wether all files were created correctly or still blocked by another process. I've created the project with the following options:
| Category | Option | Value | | -------- | ------ | ----- | | Solution Template | Template | Microservice | | Solution Properties | Create solution folder | true | | Database Provider | Provider | Entity Framework Core | | Database Configurations | Database management system | PostgreSQL | | Multi-Tenancy | Enable Multi-Tenancy | true | | UI Framework | Framework | MVC / Razor Pages | | Mobile Framework | Framework | None | | Public Website | Add a Public website application to the solution | false | | Dynamic Localization | Dynamic localization | true | | Optional Modules | Audit Logging | true | | Optional Modules | GDPR | true | | Optional Modules | OpenIddict UI | true | | Optional Modules | Chat | true | | Optional Modules | File Management | true | | Optional Modules | Text Template Management | true | | UI Theme | Theme | LeptonX | | UI Theme | Layout | Top menu | | UI Theme | Theme style | System | | Language Selection | Default Language | English | | Language Selection | Localizable User Interface | true | | Language Selection | Available Languages | English and German (Germany) | | .NET Aspire | Enable .NET Aspire | true | | Additional Options | Unit / Integration Test Projects | true | | Additional Options | Social Logins | false | | Additional Options | Kubernetes Configuration | false | | Additional Options | Grafana Dashboard | true | | Additional Options | Run the initial tasks | true | | Additional Services | Do you want to add additional microservices? | true | | Additional Services | Service Name | ProcessService |
Error occurred on DB migration step! Make sure the project is compiled and working. Command output: Build started...
Build failed. Use dotnet build to see the errors.
In the microservice project in the ProcessServiceDbContext.cs this first line was added, which symbol cannot be resolved:
using MeinTestDemoWerk.ProcessService.Processes;
Once I delete this line, the project looks fine but when I "save and generate" in the ABP Suite again, the line is being added again. I tried finding the specific template which might add this line but I wasn't able to find it.
Are there maybe any know issues for both problems or are there some configurations I have to adjust?
Versions:
| Software/Tool | Version | | ------------- | ------- | | ABP Studio | 2.1.3 | | ABP Suite | 10.0.1 | | ABP CLI | 2.1.3 | | PostgreSQL | 16 | | System | Windows Server 2022 | | .NET SDK | 10 |