We currently have a repository for several projects. I am restructuring this, so we can have an SVN repository for each project.
I successfully followed http://www.yolinux.com/TUTORIALS/SubversionRepositoryDataTransfer.html but ran into a problem.
In the new repository, I am adding my folder for trunks, branches, and tags. I am trying to move files from the root directory to the trunk directory. I can successfully add these folders. The problem is that I am trying to move files to the trunk directory. In particular, adding a file to a level. / trunk does not seem to work the most:
Commit failed (details follow): Could not open the requested SVN filesystem Could not open the requested SVN filesystem
Looking at my apache logs, I see this in the error file:
[Fri Aug 10 18:30:00 2012] [error] [client 173.0.0.1] (20014)Internal error: Can't open file '/var/www/vhosts/site.com/subdomains/repo/error_docs/format': No such file or directory [Fri Aug 10 18:30:00 2012] [error] [client 173.0.0.1] Could not fetch resource information. [500, #0] [Fri Aug 10 18:30:00 2012] [error] [client 173.0.0.1] Could not open the requested SVN filesystem [500, #2] [Fri Aug 10 18:30:00 2012] [error] [client 173.0.0.1] Could not open the requested SVN filesystem [500, #2] [Fri Aug 10 18:30:00 2012] [error] [client 173.0.0.1] (20014)Internal error: Can't open file '/var/www/vhosts/site.com/subdomains/repo/error_docs/format': No such file or directory [Fri Aug 10 18:30:00 2012] [error] [client 173.0.0.1] Could not fetch resource information. [500,
I'm not sure why it is looking for a format in my error_docs directory. This directory exists, but it does not have a single named format.
My repo permissions match the current functional repo. Therefore, although it looks like a permission error, I donβt see where my failure does not work
drwxr-xr-x 7 apache apache 4096 Aug 10 17:41 repo drwxr-xr-x 2 apache apache 4096 Aug 10 17:41 conf drwxr-xr-x 3 apache apache 4096 Aug 10 17:41 dav drwxr-sr-x 6 apache apache 4096 Aug 10 19:05 db -r--r--r-- 1 apache apache 2 Aug 10 17:41 format drwxr-xr-x 2 apache apache 4096 Aug 10 17:41 hooks drwxr-xr-x 2 apache apache 4096 Aug 10 17:41 locks -rw-r--r-- 1 apache apache 229 Aug 10 17:41 README.txt
edit - 08/17, even more about this. Current setting:
/pickles.com/ /trunk /branches /tags pickles.com/ /app /config etc...
I am trying to put the code in the trunk using svn mv pickles.com/pickles.com/* pickles.com/trunk. I get the same error with the following in my apache logs:
==> access_log <== 120.0.0.1 - travisks [17/Aug/2012:12:40:40 -0400] "PROPFIND /pickles.com/pickles.com HTTP/1.1" 207 919 "-" "SVN/1.6.17 (r1128011) neon/0.28.6" 120.0.0.1 - travisks [17/Aug/2012:12:40:40 -0400] "PROPFIND /pickles.com/!svn/vcc/default HTTP/1.1" 207 606 "-" "SVN/1.6.17 (r1128011) neon/0.28.6" 120.0.0.1 - travisks [17/Aug/2012:12:40:40 -0400] "PROPFIND /pickles.com/!svn/bln/22 HTTP/1.1" 207 659 "-" "SVN/1.6.17 (r1128011) neon/0.28.6" 120.0.0.1 - travisks [17/Aug/2012:12:40:40 -0400] "PROPFIND /pickles.com/pickles.com HTTP/1.1" 207 919 "-" "SVN/1.6.17 (r1128011) neon/0.28.6" 120.0.0.1 - travisks [17/Aug/2012:12:40:41 -0400] "PROPFIND /pickles.com/!svn/vcc/default HTTP/1.1" 207 672 "-" "SVN/1.6.17 (r1128011) neon/0.28.6" 120.0.0.1 - travisks [17/Aug/2012:12:40:41 -0400] "PROPFIND /pickles.com/!svn/bc/22/pickles.com HTTP/1.1" 207 930 "-" "SVN/1.6.17 (r1128011) neon/0.28.6" 120.0.0.1 - travisks [17/Aug/2012:12:40:41 -0400] "PROPFIND /pickles.com/trunk/pickles.com HTTP/1.1" 500 430 "-" "SVN/1.6.17 (r1128011) neon/0.28.6" ==> error_log <== [Fri Aug 17 12:40:41 2012] [error] [client 120.0.0.1] (20014)Internal error: Can't open file '/var/www/vhosts/publicsite.com/subdomains/svn/error_docs/format': No such file or directory [Fri Aug 17 12:40:41 2012] [error] [client 120.0.0.1] Could not fetch resource information. [500, #0] [Fri Aug 17 12:40:41 2012] [error] [client 120.0.0.1] Could not open the requested SVN filesystem [500, #2] [Fri Aug 17 12:40:41 2012] [error] [client 120.0.0.1] Could not open the requested SVN filesystem [500, #2]
My svn configuration:
<location /> DAV svn SVNParentPath /var/www/vhosts/publicsite.com/subdomains/svn SVNListParentPath on AuthType Basic AuthName "svn.publicsite.com" AuthUserFile /var/www/vhosts/publicsite.com/subdomains/svn/conf/passwd Require valid-user </location>
The same configuration works on another virtual host on the same server. Therefore, I would not be a problem. The only change is that ParentPath is included, and this is a repository directory, not a single repository with many directories.
Edit - Apache redirects SVN to error_docs directory
I updated conf to act as one repository.
Original:
SVNParentPath /var/www/vhosts/publicsite.com/subdomains/svn2 SVNListParentPath on
In one format:
SVNPath /var/www/vhosts/publicsite.com/subdomains/svn2/pickles.com
And everything worked as expected. Back to SVNParentPath, and back to the same old issues. Now I know that this has something to do with the settings of MediaTemple, Plesk and subdomain.
To repeat the error, I get a message:
Internal error: Can't open file '/var/www/vhosts/publicsite.com/subdomains/svn2/error_docs/format
I created a symlink in error_docs for. / subdomains / svn 2 / pickes.com / format, and then an error occurred:
Internal error: error opening db lock file
This is not a permissions error (at the level I showed). This project has the same set of permissions and user as the one that worked in single-mode. Somewhere Apache by default executes error_docs errors, so SVN looks for directories there instead of the repository specified in url.
I checked every httpd file I found and cannot find a link to how the domain should handle its subdomains.