You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by ask <as...@yahoo.com> on 2009/09/18 15:07:24 UTC

newbie: run snvserve and client on the same box

PC. Linux Fedora
I have tried run the server and client on my Fedora box. I have problem in xinetd mode

1) First I run the server in daemon mode
svnserve -d -r /something
The client talked to server well without problem.
svn info svn://localhost
2)Now I tried in xinetd mode
svbserve -i -r /something
Then run 
svn info svn://localhost
It failed, can not connect to localhost, connection refused

I looked in /etc/services
svn was listed there.

Thanks for help,

Ask

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2396491

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: newbie: run snvserve and client on the same box

Posted by Andrey Repin <an...@freemail.ru>.
Greetings, ask!

> I have tried run the server and client on my Fedora box. I have problem in xinetd mode

> 1) First I run the server in daemon mode
> svnserve -d -r /something
> The client talked to server well without problem.
> svn info svn://localhost
> 2)Now I tried in xinetd mode
> svbserve -i -r /something

You need to configure inetd (xinetd?) to run svnserver this way if you want it
to do this.
Not to start it manually. Google know more about this. It's not a Subversion
question anyway.

> Then run 
> svn info svn://localhost
> It failed, can not connect to localhost, connection refused

> I looked in /etc/services
> svn was listed there.


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 20.09.2009, <14:00>

Sorry for my terrible english...

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2397007

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: newbie: run snvserve and client on the same box

Posted by ask <as...@yahoo.com>.
Ullrich,
Thanks for advice.
The problem was my configuration file.
I had
...
 server = /usr/bin/svnserve -i -r /something
...

It should be:
...
server = /usr/bin/svnserve 
server_args = -i -r /something
...

Now it works fine.



--- On Mon, 9/21/09, Ullrich.Jans@elektrobit.com <Ul...@elektrobit.com> wrote:

> From: Ullrich.Jans@elektrobit.com <Ul...@elektrobit.com>
> Subject: RE: newbie: run snvserve and client on the same box
> To: ask8y@yahoo.com, users@subversion.tigris.org
> Date: Monday, September 21, 2009, 1:32 AM
> ask wrote:
> > PC. Linux Fedora
> > I have tried run the server and client on my Fedora
> box. I have
> > problem in xinetd mode 
> > 
> > 1) First I run the server in daemon mode
> > svnserve -d -r /something
> > The client talked to server well without problem.
> > svn info svn://localhost
> > 2)Now I tried in xinetd mode
> > svbserve -i -r /something
> > Then run
> > svn info svn://localhost
> > It failed, can not connect to localhost, connection
> refused
> 
> In inetd mode, you don't start svnserve. Inetd does it for
> you. 
> 
> However, you have to configure inetd to know about svn,
> otherwise you get the behaviour you're experiencing.
> 
> Depending on if you have inetd or xinetd, you have to
> configure them:
> 
> inetd:
> 
> Add to /etc/inetd.conf:
> 
> svn    stream   
> tcp    nowait   
> <userid_your_repo_belongs_to>   
> /usr/local/bin/svnserve -i -r /something
> 
> Then reload inetd to start the service.
> 
> For xinetd, you need something similar, but I can't write
> that config file off the top of my head. ;-)
> 
> > I looked in /etc/services
> > svn was listed there.
> 
> It should be, for my inetd.conf to work... ;-)
> 
> I hope this helps.
> 
> Best regards
> 
> Ullrich Jans
> 
> -- 
> Ullrich Jans, Application Support, IM
> Phone: +49 9131 7701-6627, mailto:ullrich.jans@elektrobit.com
> 
> Fax: +49 9131 7701-6333, www.elektrobit.com
> 
> Elektrobit Automotive GmbH, Am Wolfsmantel 46, 91058
> Erlangen, Germany
> Managing Directors: Otto Fößel, Jarkko Sairanen
> Register Court Fürth HRB 4886 
> 
> 
> ----------------------------------------------------------------
> Please note: This e-mail may contain confidential
> information
> intended solely for the addressee. If you have received
> this
> e-mail in error, please do not disclose it to anyone,
> notify
> the sender promptly, and delete the message from your
> system.
> Thank you.
> 
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2397649

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: newbie: run snvserve and client on the same box

Posted by Ul...@elektrobit.com.
ask wrote:
> PC. Linux Fedora
> I have tried run the server and client on my Fedora box. I have
> problem in xinetd mode 
> 
> 1) First I run the server in daemon mode
> svnserve -d -r /something
> The client talked to server well without problem.
> svn info svn://localhost
> 2)Now I tried in xinetd mode
> svbserve -i -r /something
> Then run
> svn info svn://localhost
> It failed, can not connect to localhost, connection refused

In inetd mode, you don't start svnserve. Inetd does it for you. 

However, you have to configure inetd to know about svn, otherwise you get the behaviour you're experiencing.

Depending on if you have inetd or xinetd, you have to configure them:

inetd:

Add to /etc/inetd.conf:

svn	stream	tcp	nowait	<userid_your_repo_belongs_to>	/usr/local/bin/svnserve -i -r /something

Then reload inetd to start the service.

For xinetd, you need something similar, but I can't write that config file off the top of my head. ;-)

> I looked in /etc/services
> svn was listed there.

It should be, for my inetd.conf to work... ;-)

I hope this helps.

Best regards

Ullrich Jans

-- 
Ullrich Jans, Application Support, IM
Phone: +49 9131 7701-6627, mailto:ullrich.jans@elektrobit.com 
Fax: +49 9131 7701-6333, www.elektrobit.com

Elektrobit Automotive GmbH, Am Wolfsmantel 46, 91058 Erlangen, Germany
Managing Directors: Otto Fößel, Jarkko Sairanen
Register Court Fürth HRB 4886 


----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2397250

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].