3.8 -- svnserve on inet6 only
Hi, I have just installed 3.8 from the CD :-) and FTPed all packages from ftp.kd85.com. It all went well but I am having a strange problem with subversion. svnserve does not seem to bind to inet but only to inet6. I do a simple sudo svnserve -d -r /my/repos netstat -a -n -f inet | grep :3960 nothing netstat -a -n -f inet6 | grep :3960 tcp6 0 0 *.3690 *.*LISTEN I can confirm that telnet 127.0.0.1 3690 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet ::1 3690 Trying ::1... Connected to ::1. Escape character is '^]'. ( success ( 1 2 ( ANONYMOUS ) ( edit-pipeline ) ) ) I am running 3.7 and 3.8 inside Vmware and this problem only appears in 3.8. Under 3.7, svnserve is quite happy to respond through IPv4. Have I missed something here? How do I force svnserve to use IPv4 as well as/instead of IPv6? help would be appreciated :-) Thanks. Dom.
Re: 3.8 -- svnserve on inet6 only
Dominique Jacquel wrote: Hi, I have just installed 3.8 from the CD :-) and FTPed all packages from ftp.kd85.com. It all went well but I am having a strange problem with subversion. svnserve does not seem to bind to inet but only to inet6. Yes, this is known. By default svnserve will only listen on IPv6 on OpenBSD. The workaround is to supply an IPv4 address to the --listen-host option to svnserve. To listen on all IPv4: $ svnserve -d --listen-host 0.0.0.0 -r /my/repos I do a simple sudo svnserve -d -r /my/repos You don't need root privileges to run svnserve. You may add to /etc/rc.local something like if [ -x /usr/local/bin/svnserve ]; then if [ X${svnserve_flags} != XNO ]; then echo -n 'svnserve '; /usr/bin/sudo -u _svnserve /usr/local/bin/svnserve ${svnserve_flags} fi fi And in /etc/rc.conf.local add: svnserve_flags=--listen-host 0.0.0.0 -d -r /my/repos The user _svnserve you may add as follows (change as appropiate): $ sudo useradd -u980 -g=uid -csvnserve daemon -d/my/repos -s/sbin/nologin _svnserve I am running 3.7 and 3.8 inside Vmware and this problem only appears in 3.8. Under 3.7, svnserve is quite happy to respond through IPv4. Have I missed something here? How do I force svnserve to use IPv4 as well as/instead of IPv6? The Subversion team added IPv6 support You may run both IPv6 and IPv4 svnserve at the same time. Just give an IPv6 adress to listen-host to one svnserve process, and an IPv4 adress to the another svnserve process. /Sigfred
Re: 3.8 -- svnserve on inet6 only
Dominique Jacquel [EMAIL PROTECTED] writes: Hi, I have just installed 3.8 from the CD :-) and FTPed all packages from ftp.kd85.com. It all went well but I am having a strange problem with subversion. svnserve does not seem to bind to inet but only to inet6. This is a known issue with svnserve, the svn mailing lists are/were talking about it. Until they fix it, supposedly adding --listen-host IPv4_address should fix it. If you want to listen on both v4, and v6, you probably need to run two instances of svnserve. -- Brent Graveland [EMAIL PROTECTED]