-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Delete Repository Archives (zip, gz, etc) #16932
Milestone
Comments
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. |
Just tested this in 1.15.1 and it still occurs in that version as well. |
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Sep 2, 2021
Storage.Iterate provides the path and an open object. On windows using local storage means that the objects will be locked thus preventing clean from deleting them. This PR simply closes the objects early. Fix go-gitea#16932 Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath
added a commit
that referenced
this issue
Sep 3, 2021
Storage.Iterate provides the path and an open object. On windows using local storage means that the objects will be locked thus preventing clean from deleting them. This PR simply closes the objects early. Fix #16932 Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Sep 3, 2021
Backport go-gitea#16934 Storage.Iterate provides the path and an open object. On windows using local storage means that the objects will be locked thus preventing clean from deleting them. This PR simply closes the objects early. Fix go-gitea#16932 Signed-off-by: Andrew Thornton <art27@cantab.net>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
[x]
):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.
The text was updated successfully, but these errors were encountered: