1

I have been using VisualSVN Server (version 3.9.7). Recently one of the SVN repositories is somehow corrupted and I would like to delete the repository and its database from the filesystem. However, I get the following error when I try to delete the repository:

Can't remove directory '<PATH_TO_REPOSITORY>\db\revprops\0': The directory is not empty. 

I also see the following message on the VisualSVN Server control panel when I try to click on the repository name:

Unable to access repository Failed to load module for FS type 'bdb' 

I tried to manually delete the repository from the VisualSVN Server PowerShell after stopping the services; however, received the following error:

Confirm The item at E:\REPOSITORY\TURBO_CORRUPTED has children and the Recurse parameter was not specified. If you continue, all children will be removed with the item. Are you sure you want to continue? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A rmdir : The file or directory is corrupted and unreadable. At line:1 char:1 + rmdir .\TURBO_CORRUPTED + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : WriteError: (E:\REPOSITORY\TURBO_CORRUPTED:String) [Remove- Item], IOException + FullyQualifiedErrorId : RemoveItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand PS E:\REPOSITORY> 

1 Answer 1

1

Upgrade the server to a supported version and see if it helps. Version 3.9.x is not supported starting from December 31, 2019. Current version is 5.1.x.

Note that you can also remove the repository <PATH_TO_REPOSITORY> using Windows File Explorer.

Update 1

I see the following error:

rmdir : The file or directory is corrupted and unreadable.

This error can indicate hardware problems with your disk. Did you run chkdsk?

You need to check the health of your disk and replace it if its faulty.

4
  • I tried deleting the repository from the file explorer but it didn't work. Commented Oct 31, 2022 at 7:31
  • I also added a new content to the original post. Could you please check it? Commented Oct 31, 2022 at 7:32
  • @yildizabdullah The error isrmdir : The file or directory is corrupted and unreadable. I guess that your disk is broken and has to be replaced. I've updated the answer. Commented Oct 31, 2022 at 8:39
  • I am currently backing up the existing repositories. After that I will try to run chkdsk. Commented Oct 31, 2022 at 8:47

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.