Elise, Don't forget to use Reply To All so your replies get to the list. On Oct 12, 2006, at 12:13, Elise van Looij wrote:
Op 12-okt-2006, om 18:39 heeft Ryan Schmidt het volgende geschreven:
The error message says Apache thinks it's supposed to look for the repository in /usr/local/Subversion. Why does it think that? Somewhere in your Apache configuration files it must have this path defined. Find that place and change it to the path you wanted it to look at, /usr/local/svn-repository, or if the lines you found are redundant with the lines you already had, remove them.
Oops, that was an old repository, which I've deleted since. At the moment though I only have /usr/local/svn-repository and in my httpd.conf: <Location /svn> DAV svn SVNPath /usr/local/svn-repository </Location>
I've checked both then did a restart, looked in the Apache error log and found this:
[Thu Oct 12 18:52:14 2006] [notice] caught SIGTERM, shutting down [Thu Oct 12 18:53:09 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Thu Oct 12 18:53:13 2006] [notice] Digest: generating secret for digest authentication ... [Thu Oct 12 18:53:13 2006] [notice] Digest: done [Thu Oct 12 18:53:13 2006] [crit] (70023)This function has not been implemented on this platform: DBD: driver for [DBDriver unset] not available [Thu Oct 12 18:53:13 2006] [crit] (70023)This function has not been implemented on this platform: DBD: failed to initialise <----------SNIP repeat the DBD message 4 times-------------->
I don't think the DBD error messages are related to Subversion. I used to see them too, until I commented out (i.e., put a # before) the following lines in the httpd.conf: LoadModule authn_dbd_module modules/mod_authn_dbd.so LoadModule dbd_module modules/mod_dbd.so
[Thu Oct 12 18:53:13 2006] [notice] Apache/2.2.3 (Unix) mod_ssl/ 2.2.3 OpenSSL/0.9.8d DAV/2 PHP/5.1.5 SVN/1.4.0 configured -- resuming normal operations [Thu Oct 12 18:54:45 2006] [error] [client ::1] (20014)Internal error: Can't open file '/usr/local/svn-repository/format': No such file or directory [Thu Oct 12 18:54:45 2006] [error] [client ::1] Could not fetch resource information. [500, #0] [Thu Oct 12 18:54:45 2006] [error] [client ::1] Could not open the requested SVN filesystem [500, #2] [Thu Oct 12 18:54:45 2006] [error] [client ::1] Could not open the requested SVN filesystem [500, #2] [Thu Oct 12 18:54:47 2006] [error] [client ::1] File does not exist: /opt/local/apache2/htdocs/favicon.ico [Thu Oct 12 18:54:47 2006] [crit] (70023)This function has not been implemented on this platform: DBD: driver for [DBDriver unset] not available [Thu Oct 12 18:54:47 2006] [crit] (70023)This function has not been implemented on this platform: DBD: failed to initialise
So, like you say, it can't find /usr/local/svn-repository/format but it *is* there, I can see the folder in the Finder in my Home directory, in terminal "ls svn-repository" shows me a list of the files inside the folder, including format. But for Apache all this is invisible.
What do you mean, you can see the folder in the Finder "in your Home directory"? /usr/local is a system directory and is not under your home directory. If you have put svn-repository under your home directory, then you need to give Apache the correct and complete path to it, which would be /Users/yourusername/svn-repository. If you have created the entire hierarchy /usr/local/svn-repository under your home directory for some reason, then you need to tell Apache the path /Users/yourusername/usr/local/svn-repository.
Oops, thanks for pointing that out. Op 12-okt-2006, om 19:51 heeft Ryan Schmidt het volgende geschreven:
Elise,
Don't forget to use Reply To All so your replies get to the list.
On Oct 12, 2006, at 12:13, Elise van Looij wrote:
Op 12-okt-2006, om 18:39 heeft Ryan Schmidt het volgende geschreven:
The error message says Apache thinks it's supposed to look for the repository in /usr/local/Subversion. Why does it think that? Somewhere in your Apache configuration files it must have this path defined. Find that place and change it to the path you wanted it to look at, /usr/local/svn-repository, or if the lines you found are redundant with the lines you already had, remove them.
Oops, that was an old repository, which I've deleted since. At the moment though I only have /usr/local/svn-repository and in my httpd.conf: <Location /svn> DAV svn SVNPath /usr/local/svn-repository </Location>
I've checked both then did a restart, looked in the Apache error log and found this:
[Thu Oct 12 18:52:14 2006] [notice] caught SIGTERM, shutting down [Thu Oct 12 18:53:09 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Thu Oct 12 18:53:13 2006] [notice] Digest: generating secret for digest authentication ... [Thu Oct 12 18:53:13 2006] [notice] Digest: done [Thu Oct 12 18:53:13 2006] [crit] (70023)This function has not been implemented on this platform: DBD: driver for [DBDriver unset] not available [Thu Oct 12 18:53:13 2006] [crit] (70023)This function has not been implemented on this platform: DBD: failed to initialise <----------SNIP repeat the DBD message 4 times-------------->
I don't think the DBD error messages are related to Subversion. I used to see them too, until I commented out (i.e., put a # before) the following lines in the httpd.conf:
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule dbd_module modules/mod_dbd.so
[Thu Oct 12 18:53:13 2006] [notice] Apache/2.2.3 (Unix) mod_ssl/ 2.2.3 OpenSSL/0.9.8d DAV/2 PHP/5.1.5 SVN/1.4.0 configured -- resuming normal operations [Thu Oct 12 18:54:45 2006] [error] [client ::1] (20014)Internal error: Can't open file '/usr/local/svn-repository/format': No such file or directory [Thu Oct 12 18:54:45 2006] [error] [client ::1] Could not fetch resource information. [500, #0] [Thu Oct 12 18:54:45 2006] [error] [client ::1] Could not open the requested SVN filesystem [500, #2] [Thu Oct 12 18:54:45 2006] [error] [client ::1] Could not open the requested SVN filesystem [500, #2] [Thu Oct 12 18:54:47 2006] [error] [client ::1] File does not exist: /opt/local/apache2/htdocs/favicon.ico [Thu Oct 12 18:54:47 2006] [crit] (70023)This function has not been implemented on this platform: DBD: driver for [DBDriver unset] not available [Thu Oct 12 18:54:47 2006] [crit] (70023)This function has not been implemented on this platform: DBD: failed to initialise
So, like you say, it can't find /usr/local/svn-repository/format but it *is* there, I can see the folder in the Finder in my Home directory, in terminal "ls svn-repository" shows me a list of the files inside the folder, including format. But for Apache all this is invisible.
What do you mean, you can see the folder in the Finder "in your Home directory"? /usr/local is a system directory and is not under your home directory. If you have put svn-repository under your home directory, then you need to give Apache the correct and complete path to it, which would be /Users/yourusername/svn-repository. If you have created the entire hierarchy /usr/local/svn-repository under your home directory for some reason, then you need to tell Apache the path /Users/yourusername/usr/local/svn-repository.
Elise van Looij
Here's a basic recipe for getting MacPorts Subversion running using MacPorts Apache... 1. Disable Apple's 1.3.x server (it runs when you select Apple's "Personal Web Sharing" from the System Preferences). 2. Install Apache under MacPorts and verify that it works correctly, including the autostart setup and all that stuff. In other words, make sure that you've done % sudo launchctl load -w /Library/LaunchDaemons/ org.macports.apache2.plist and reboot your machine and make sure Apache is serving web pages (you should see an "It works!" message for the http://localhost URL). 3. Install Subversion with the Apache variant: % sudo port install subversion +mod_dav_svn 4. Verify that the client part is working by checking out the trunk of the Subversion project: % mkdir svn-trunk % svn co http://svn.collab.net/repos/svn/trunk svn-trunk 5. Create a repository % cd / % sudo mkdir svn-repos % cd svn-repos % sudo mkdir public % sudo svnadmin create --fs-type fsfs public 6. Change the owner to be "www": % cd / % sudo chown -R www svn-repos 7. Add the following lines at the end of the "LoadModule" section in your Apache httpd.conf file: # ----- Subversion: LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so 8. Add the following lines at the end of your Apache httpd.conf file: # # Define Subversion access # <Location /svn/> DAV svn SVNParentPath /svn-repos SVNListParentPath on </Location> Note that this is the world's simplest Subversion access configuration using Apache. It is meant only to be used to help verify that your installation is working properly. Later, you should configure your repository hosting access controls according to the Subversion documentation (http://svnbook.red-bean.com/). 9. Restart Apache to activate your changes: % sudo /opt/local/apache2/bin/apachectl -k restart 10. Now, you should be ready to test your installation. First, point your browser to http://localhost/svn/ . You should see a "Collection of Repositories" page with your "public" repository listed in it. It will be empty, so if you click on it, it will have nothing and be at Revision 0 (go ahead and try it!). Next, go to your home directory and create a project template directory to import as your first revision: % cd ~ % mkdir svn-template % cd svn-template % mkdir trunk branches tags Import your project template directory into the "public" repository using % svn import . http://localhost/svn/public -m "Initial import." Go back to your browser and go to http://localhost/svn/public/ (if you're there already, just refresh the page). You should now see the "branches," "tags," and "trunk" directories listed and the repository should be at Revision 1. That's it. You've got a Subversion server running!
On 2006-10-12 22:14:57 -0400, Rob wrote:
2. Install Apache under MacPorts and verify that it works correctly, including the autostart setup and all that stuff. In other words, make sure that you've done
% sudo launchctl load -w /Library/LaunchDaemons/ org.macports.apache2.plist
and reboot your machine and make sure Apache is serving web pages
Rebooting the machine shouldn't be necessary, or there's something buggy in org.macports.apache2.plist. -- Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Thank you very much Rob, it finally worked! Op 13-okt-2006, om 4:14 heeft Rob het volgende geschreven:
Here's a basic recipe for getting MacPorts Subversion running using MacPorts Apache... <SNIP steps 1-3>
4. Verify that the client part is working by checking out the trunk of the Subversion project:
% mkdir svn-trunk % svn co http://svn.collab.net/repos/svn/trunk svn-trunk That worked so the client is working. BTW, do I need to keep this stuff?
5. Create a repository
% cd / % sudo mkdir svn-repos % cd svn-repos % sudo mkdir public % sudo svnadmin create --fs-type fsfs public I did use svnadmin create before, but not with the fs-type fsfs options
6. Change the owner to be "www":
% cd / % sudo chown -R www svn-repos
7. Add the following lines at the end of the "LoadModule" section in your Apache httpd.conf file:
# ----- Subversion: LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so
I had done that before but got confused by conflicting instruction so I had commented out the authz_svn_module. Turned that on again.
8. Add the following lines at the end of your Apache httpd.conf file:
# # Define Subversion access # <Location /svn/> DAV svn SVNParentPath /svn-repos SVNListParentPath on </Location> Now this is a lot different from what I had, especially the path.
Note that this is the world's simplest Subversion access configuration using Apache. It is meant only to be used to help verify that your installation is working properly. Later, you should configure your repository hosting access controls according to the Subversion documentation (http://svnbook.red-bean.com/).
9. Restart Apache to activate your changes:
% sudo /opt/local/apache2/bin/apachectl -k restart
10. Now, you should be ready to test your installation. First, point your browser to http://localhost/svn/ . You should see a "Collection of Repositories" page with your "public" repository listed in it. Never seen that before, what a beautiful sight!
It will be empty, so if you click on it, it will have nothing and be at Revision 0 (go ahead and try it!). Next, go to your home directory and create a project template directory to import as your first revision:
% cd ~ % mkdir svn-template % cd svn-template % mkdir trunk branches tags
Import your project template directory into the "public" repository using
% svn import . http://localhost/svn/public -m "Initial import."
Go back to your browser and go to http://localhost/svn/public/ (if you're there already, just refresh the page). You should now see the "branches," "tags," and "trunk" directories listed and the repository should be at Revision 1.
Hallelujah, it finally worked! Thank you again and thanks to everyone who responded to my cry for help--after days of struggling alone it is nice to know there are other people willing to think along with you. Elise van Looij
On Oct 16, 2006, at 07:24, Elise van Looij wrote:
Op 13-okt-2006, om 4:14 heeft Rob het volgende geschreven:
Here's a basic recipe for getting MacPorts Subversion running using MacPorts Apache... <SNIP steps 1-3>
4. Verify that the client part is working by checking out the trunk of the Subversion project:
% mkdir svn-trunk % svn co http://svn.collab.net/repos/svn/trunk svn-trunk
That worked so the client is working. BTW, do I need to keep this stuff?
No, you can delete it now.
5. Create a repository
% cd / % sudo mkdir svn-repos % cd svn-repos % sudo mkdir public % sudo svnadmin create --fs-type fsfs public
I did use svnadmin create before, but not with the fs-type fsfs options
Since Subversion 1.2.0, the FSFS FS-type is the default, so that option is not necessary.
Hallelujah, it finally worked! Thank you again and thanks to everyone who responded to my cry for help--after days of struggling alone it is nice to know there are other people willing to think along with you.
For further help with Subversion, do check out the Subversion book at http://svnbook.org and the Subversion users mailing list at http:// subversion.tigris.org/mailing-list-guidelines.html . It's a very active and rather high-traffic list filled with lots of helpful people who generally answer questions very quickly. Of course you should search the mailing list archives at http://svn.haxx.se/users/ first because many questions have already been asked before.
participants (4)
-
Elise van Looij
-
Rob
-
Ryan Schmidt
-
Vincent Lefevre