[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Changing listen port for svnserve

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Fri, 30 May 2008 12:53:50 -0700

On Fri, May 30, 2008 at 12:43 PM, Michael Lapchuk <mlapchuk_at_gmail.com>
wrote:

> On Fri, May 30, 2008 at 1:12 PM, Hari Kodungallur <hkodungallur_at_gmail.com>
> wrote:
>
>>
>> On Fri, May 30, 2008 at 7:47 AM, Michael Lapchuk <mlapchuk_at_gmail.com>
>> wrote:
>>
>>> I accidently set svnserve to listen on port 8080 as well as port 3690 and
>>> I am wondering how I can "delete" a port so svnserve doesn't listen on it
>>> anymore.
>>> Thanks.
>>>
>>>
>> How did you set both ports? Where? If you started svnserve and provided
>> the port on the command line then just kill it and restart it with the right
>> port.
>> See this chapter for help.
>> http://svnbook.red-bean.com/en/1.0/ch06s03.html
>>
>> rgds
>> -Hari
>>
>>
> I can't give you the exact output since I am working on a different box
> right now but it went something like this:
> 1. Another guy setup subversion and everything and then entered this:
> >>> svnserve -d
> This should have set the listening port to 3690.
> 2. I did not know that he had done this so I entered:
> >>> svnserve -d
> This got me an error message:
> >>> Can't bind server socket: Address already in use
> 3. So being the noob I am I told it to listen on port 8080 to see if this
> port was also already in use
> >>> svnserve -d --listen-port=8080
> 4. That went all fine but when I tried to set it back to port 3690 by
> doing:
> >>> svnserve -d --listen-port=3690
> I got the error message again:
> >>> Can't bind server socket: Address already in use
> 5. This is making me think that it is trying to listen on both ports at
> once and as much as I know (which isn't very much) Subversion can only
> listen on one port at a time.
>

There is no restriction for subversion to listen to only one port. In this
case it is now listening to both 3690 and 8080. You can check that by using
svn commands where the url has 8080 port in it (svn ls
svn://host:8080/myrepo, for example) and without the port (which will go to
the default 3690).

You can just kill the svnserve process listening on 8080 so that you have
only one svnserve on the default port.

ps -ef | grep svnserve

And look for the one that has --listen-port=8080 and kill that process. And
you should be set.

regards,
-Hari
Received on 2008-05-30 21:54:15 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.