When using svn to check out today, the following error was reported in the middle:
Can't read from connection: The remote host forcibly closed an existing connection
According to some information searched on the Internet, it is found that the anon-access and auth-access configurations in the svnserve.conf file are commented out. After removing the preceding #, visit the report again "Unable to connect to a repository at URL 'svn:/ /sgl' E:\SVN\svnstorage\conf\svnserve.conf:19:Option expected", and later found that there is a space before the anon-access attribute on line 19 of the svnserve.conf file, remove the space in front and visit again and report "Authentication failed. ", checked the configuration file and found that the [groups] of the authz file did not specify the access resource path, and added "[/]" under [groups] (to access all resources, you can also specify a folder, such as [/svn/data] ]), the problem is finally solved.
The following is the main configuration in my svn configuration file:
svnserve.conf文件:
[general]
anon-access = read
auth-access = write
password-db = passwd
authz-db = authz
passwd file:
[users]
sgl=sgl
authz file:
[groups]
[/]
sgl = rw
Be careful not to add spaces before attributes
java exchange group: 101085864