Monday, March 21, 2011

svn on leopard

svn on leopard experience
refer to http://www.sonzea.com/articles/subversion-trac.html


Error 1
bServer/Documents/favicon.ico, referer: https://localhost/repo
[Sun Mar 20 23:51:47 2011] [error] [client ::1] (20014)Internal error: Expected FS format '2'; found format '4'
[Sun Mar 20 23:51:47 2011] [error] [client ::1] Could not fetch resource information. [500, #0]
[Sun Mar 20 23:51:47 2011] [error] [client ::1] Could not open the requested SVN filesystem [500, #160043]
[Sun Mar 20 23:51:47 2011] [error] [client ::1] Could not open the requested SVN filesystem [500, #160043]
[Sun Mar 20 23:51:47 2011] [error] [client ::1] File does not exist: /Library/WebServer/Documents/favicon.ico, referer: https://localhost/repo

Reason
After google, the problem is that there are two versions of svnadmin in my leopard, one is the built-in /usr/bin/svnadmin, and the other is /opt/local/bin/svnadmin. I used /opt/local/bin/svnadmin to create the repository, but Apache used /usr/bin/svnadmin to process the repository, so the problem "(20014)Internal error: Expected FS format '2'; found format '4'" happened.

No comments: