Unable to Delete Repository Archives (zip, gz, etc) #7793

Closed
opened 2025-11-02 07:36:37 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @SoulSeekkor on GitHub (Sep 2, 2021).

  • Gitea version (or commit ref): 1.15.0 built with GNU Make 4.1, go1.16.7 : bindata, sqlite, sqlite_unlock_notify
  • Git version: 2.33.0.2
  • Operating system: Windows Server 2012 R2
    Running using your pre-build Win x64 binary. This is being started/stopped using a Windows service created per your installation instructions running as a local user with 'full control' of relevant folders.
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No (Couldn't register or email was taking a super long time to come. May have to try this later.)
  • Log gist:
    Error in Task: Delete all repositories' archives (ZIP, TAR.GZ, etc..): remove C:\Gitea\data\repo-archive\10\a9\a9fa0ba947cb74b2654735a233ae41974582ffc5.tar.gz: The process cannot access the file because it is being used by another process.

Description

Whenever I run the "Delete all repositories' archives (ZIP, TAR.GZ, etc..)" maintenance operation under dashboard it fails to actually delete the repo archives with the error above shown under system notices.

Originally created by @SoulSeekkor on GitHub (Sep 2, 2021). - Gitea version (or commit ref): 1.15.0 built with GNU Make 4.1, go1.16.7 : bindata, sqlite, sqlite_unlock_notify - Git version: 2.33.0.2 - Operating system: Windows Server 2012 R2 Running using your pre-build Win x64 binary. This is being started/stopped using a Windows service created per your installation instructions running as a local user with 'full control' of relevant folders. - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [X] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No (Couldn't register or email was taking a super long time to come. May have to try this later.) - Log gist: Error in Task: Delete all repositories' archives (ZIP, TAR.GZ, etc..): remove C:\Gitea\data\repo-archive\10\a9\a9fa0ba947cb74b2654735a233ae41974582ffc5.tar.gz: The process cannot access the file because it is being used by another process. ## Description Whenever I run the "Delete all repositories' archives (ZIP, TAR.GZ, etc..)" maintenance operation under dashboard it fails to actually delete the repo archives with the error above shown under system notices.
Author
Owner

@SoulSeekkor commented on GitHub (Sep 2, 2021):

Note that stopping, starting the service, then attempting this again right after made no difference (to ensure the file was not locked). It appears to lock the file just before trying to delete it causing it to fail.

@SoulSeekkor commented on GitHub (Sep 2, 2021): Note that stopping, starting the service, then attempting this again right after made no difference (to ensure the file was not locked). It appears to lock the file just before trying to delete it causing it to fail.
Author
Owner

@SoulSeekkor commented on GitHub (Sep 2, 2021):

Just tested this in 1.15.1 and it still occurs in that version as well.

@SoulSeekkor commented on GitHub (Sep 2, 2021): Just tested this in 1.15.1 and it still occurs in that version as well.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7793