Starts in:
2 DAYS
3 HRS
55 MIN
58 SEC
Starts in:
2 D
3 H
55 M
58 S
Open Closed

After ABP Upgrade Error 4.4.2 "The process cannot access the file xxx because it is being used by another process." in Api Controller #1871


User avatar
0
hakan.uskaner created
  • ABP Framework version: v4.4.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: "The process cannot access the file xxx because it is being used by another process."
  • Steps to reproduce the issue:"

I am using a Syncfusion Component similar to the ABP FileManager for handling large Files Upload. We use it because it supports asynchron chunk uploads,what is necessary for us. large Files means files bigger than 30mb up to 50GB like Windows OS Isos or a virtual disk.

Our Project was created with ABP 4.3.2 and that upload parts runs without problems. I tested an an windows 10 machine with visual studio (without any antivirus /windows defender deactivated for repo folder)

I did prepare a working sample for you. Just contact me per Mail and i provide you the link.

  • We did ugrade to 4.4.2 that solution with " abp switch-to-stable"
  • Corrected in Blazor.csproj the PackagaReferences to the right version (abp seems to miss that !): <PackageReference Include="Blazorise.Bootstrap" Version="0.9.4.1" /> <PackageReference Include="Blazorise.Icons.FontAwesome" Version="0.9.4.1" />
  • Run the project and uploaded a file bigger than 30mb.. an executeable or big zipfile

With ABP 4.3.2 we get this:

With ABP 4.4.2 we get an error at the FileManagerController.cs (Line 173). Check this after you get the code.

So please check the reason for that issue.

Besides that technical problem, i would like to know:

  • How can i search in a good way in your support forum. Your search doesn't seem to combine search results when i try " 400 BadRequest" or something ? Is it somewhere documents how to use it ? So the most time i dont find accurate posts like at github or like in other forums
  • How is it possible with ABP-Cli to downgrade to an earlier version. I tried to uninstall and install 4.3.2, but it still installed the 4.4.2 packages

I hope you answer all my questions. and we fix that problem soon.


12 Answer(s)
  • User Avatar
    0
    hakan.uskaner created

    It is disapointing to see that in more than one week the abp support doesn't reply or get in contact with me. Are you really willing to help here ?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi hakan

    I did prepare a working sample for you. Just contact me per Mail and i provide you the link.

    You can share it with me. liming.ma@volosoft.com

  • User Avatar
    0
    hakan.uskaner created

    Hi Maliming,

    i did sent you email with the needed information. I thank you for your reply !

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I can't reproduce the problem. Can you check which process is locking your files?

    You can use https://lockhunter.com/

  • User Avatar
    0
    hakan.uskaner created

    I will see what i can found out. This error occured during my test on an Windows 10 machine with Visual Studio 2019 and 2022.. I did also Test on a different windows 10 machine. It also did occur there..

    Did you test on windows 10 with visual studio ?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can run the app by dotnet cli.

    backendtwo\src\BackendTwo.HttpApi.Host>dotnet run
    
  • User Avatar
    0
    hakan.uskaner created

    I think i found the issue.. I use two Syncfusion Components in that example the Filemanager and a SfUploader , which can handle chunk uploads. After choosing files with the filemanager i cancel the upload through filemanager and start an upload with the sfupload. But although i cancel the upload from filemanager it seems it tries to start the upload before i cancel it and so it blocks the process.

    If i only us the sfuploader it works..

    So this error isn't abp specific altough this did work without Problem with 4.3.2. and this error occured after update to 4.4.2

  • User Avatar
    0
    hakan.uskaner created

    @maliming : Do you got a Chunkupload for large files in ABP ? I didn't use ABP Filemanager because i need to be able to upload big files like 50GB as chunkupload.. Maybe i could overwrite the upload method from abp for that.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We have not yet implemented chunk upload, you can implement it yourself first.

  • User Avatar
    0
    hakan.uskaner created

    I dont got access to your source code.. So i will need to implement it my own. There are more things missing like progress etc.. It will take a look at devexpress componets we already got.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I can share some source code with you if you need it.

  • User Avatar
    0
    hakan.uskaner created

    Yes this would be great. If you share the Filemanager source i will contribute if i got it working it with chunk files and large files.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06