MSYS2-packages icon indicating copy to clipboard operation
MSYS2-packages copied to clipboard

Subversion svnadmin failing permission denied on create

Open rorySomething opened this issue 3 years ago • 1 comments

I am trying to create an empty repository and load a repo dump. svnadmin fails with a permission error.

Windows 11 svnadmin, version 1.14.0 (r1876290) compiled Jul 2 2022, 18:16:22 on x86_64-pc-msys

$ svnadmin create .
svnadmin: E000013: Can't open file 'db/revprops/0/0': Permission denied
svnadmin: E200042: Additional errors:
svnadmin: E000002: Can't change perms of directory '.': No such file or directory

If run as $ svnadmin create test-directory the directory is deleted after the error message.

The file that can't be opened is left with permissions r r r and the repository can't be used because of further errors about missing the 'format' file/directory.

I've tried running msys terminal as administrator as well as disabling Windows Defender controlled folder access with no improvement.

I'd love to help out, but I still haven't tried makepkg myself yet and don't know how complicated svnadmin is, so a patch will be a long ways off.

Cheers!

rorySomething avatar Oct 27 '22 01:10 rorySomething

The bug seems to only occur with the fsfs backend. The permission error seems to always mention /path/to/svn/db/revprops/0/0.

;  svnadmin create /tmp/new-svn
svnadmin: E000013: Can't open file '/tmp/new-svn/db/revprops/0/0': Permission denied

A functional workaround is to use the FSX backend.

;  svnadmin create /tmp/new-svn --fs-type fsx
;  svnlook info /tmp/new-svn

2023-11-24 11:48:07 -0700 (Fri, 24 Nov 2023)
0

Tested with version 1.14.2-2 of Subversion. packager msys2/msys2-autobuild/91ab3435/4439739964

bigtrout3 avatar Nov 24 '23 18:11 bigtrout3