You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Robert Dailey <rc...@gmail.com> on 2008/10/15 04:37:31 UTC

Subversion, xinetd, and "Malformed network data"

Hi,

I currently have a Subversion 1.5.2 server running through svnserve +
xinetd. When I attempt to connect to my subversion server, however, I get:

svn: Malformed network data

Below is the contents of my xinetd config for subversion:

*service svn
{
    flags           = REUSE
    socket_type     = stream
    wait            = no
    user            = svn
    group           = svn_group
    server          = /usr/bin/svnserve
    server_args     = -i -r /srv/svn/repo
    log_on_failure  += USERID
    disable         = no
}*

This is located in the file: /etc/xinetd.d/svn

I run the following command only to find that it fails:

*$ svn ls svn://localhost/myrepository
svn: Malformed network data*

I've checked my xinetd log, however I see no failure. I can even put a
completely bogus repository URL into SVN and it'll still give the same
error:

* $ svn ls svn://localhost/iosudohslkj2223oijosdijfaksjdlfkj
svn: Malformed network data*

Anyone have any idea what could be causing this?

Re: Subversion, xinetd, and "Malformed network data"

Posted by Robert Dailey <rc...@gmail.com>.
On Wed, Oct 15, 2008 at 8:34 AM, Andy Levy <an...@gmail.com> wrote:

> On Wed, Oct 15, 2008 at 09:29, Robert Dailey <rc...@gmail.com> wrote:
> > Here are the results of telnet:
> >
> > $ telnet svn://localhost/myrepository
> > svn://localhost/myrepository: Unknown server error
>
> Try:
>
> telnet localhost 3690
>
> Telnet just wants a hostname and port to connect to (other options are
> available, but those are required. See man telnet for more).
>
> > I tried removing flags=REUSE but this did not help.
> >
> > I'm able to do:
> >
> > svn ls file:///srv/svn/repo/myrepository
> >
> > This works just fine.
> >
> > Am I using telnet properly to find the problem? Thanks for the help guys.
>

Wow, thanks! telnet helped perfectly. It said:

$ telnet localhost 3690
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
svnserve: Can't check path '/srv/svn/repo': Permission denied
Connection closed by foreign host.

So I went through my directory hierarchy, and found that /srv/svn needed:

chmod o+x /srv/svn

Thanks for the help everyone!

Re: Subversion, xinetd, and "Malformed network data"

Posted by Andy Levy <an...@gmail.com>.
On Wed, Oct 15, 2008 at 09:29, Robert Dailey <rc...@gmail.com> wrote:
> Here are the results of telnet:
>
> $ telnet svn://localhost/myrepository
> svn://localhost/myrepository: Unknown server error

Try:

telnet localhost 3690

Telnet just wants a hostname and port to connect to (other options are
available, but those are required. See man telnet for more).

> I tried removing flags=REUSE but this did not help.
>
> I'm able to do:
>
> svn ls file:///srv/svn/repo/myrepository
>
> This works just fine.
>
> Am I using telnet properly to find the problem? Thanks for the help guys.
>
>
> 2008/10/15 Ulrich Eckhardt <ec...@satorlaser.com>
>>
>> On Wednesday 15 October 2008, Robert Dailey wrote:
>> > I currently have a Subversion 1.5.2 server running through svnserve +
>> > xinetd. When I attempt to connect to my subversion server, however, I
>> > get:
>> >
>> > svn: Malformed network data
>>
>> Just wondering, what does telnet give you as output? Here, it gives
>> "( success ( 1 2 ( ANONYMOUS ) ...".
>>
>> > Below is the contents of my xinetd config for subversion:
>> >
>> > *service svn
>> > {
>> >     flags           = REUSE
>> >     socket_type     = stream
>> >     wait            = no
>> >     user            = svn
>> >     group           = svn_group
>> >     server          = /usr/bin/svnserve
>> >     server_args     = -i -r /srv/svn/repo
>> >     log_on_failure  += USERID
>> >     disable         = no
>> > }*
>>
>> There are two things different in my setup:
>> 1. I have a line "port = 3690".
>> 2. I don't have the line "flags = REUSE". I believe that could be the
>> culprit,
>> because in inetd mode (flag '-i' to svnserve) it expects to not reuse the
>> connection but rather that every connection starts a new svnserve process.
>> I
>> don't actually know what the flag does.
>>
>> Lastly, you could try to start svnserve by hand and see if that changes
>> anything.
>>
>> Uli
>>
>>
>> --
>> ML: http://subversion.tigris.org/mailing-list-guidelines.html
>> FAQ: http://subversion.tigris.org/faq.html
>> Docs: http://svnbook.red-bean.com/
>>
>> Sator Laser GmbH
>> Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
>>
>>
>> **************************************************************************************
>>           Visit our website at <http://www.satorlaser.de/>
>>
>> **************************************************************************************
>> Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten
>> bestimmt und kann vertrauliche Informationen enthalten. Bitte
>> benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte
>> Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf
>> weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt
>> werden.
>> E-Mails können durch Dritte gelesen werden und Viren sowie
>> nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese
>> Folgen nicht verantwortlich.
>>
>>
>> **************************************************************************************
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>> For additional commands, e-mail: users-help@subversion.tigris.org
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Subversion, xinetd, and "Malformed network data"

Posted by Robert Dailey <rc...@gmail.com>.
Here are the results of telnet:

$ telnet svn://localhost/myrepository
svn://localhost/myrepository: Unknown server error

I tried removing flags=REUSE but this did not help.

I'm able to do:

svn ls file:///srv/svn/repo/myrepository

This works just fine.

Am I using telnet properly to find the problem? Thanks for the help guys.


2008/10/15 Ulrich Eckhardt <ec...@satorlaser.com>

> On Wednesday 15 October 2008, Robert Dailey wrote:
> > I currently have a Subversion 1.5.2 server running through svnserve +
> > xinetd. When I attempt to connect to my subversion server, however, I
> get:
> >
> > svn: Malformed network data
>
> Just wondering, what does telnet give you as output? Here, it gives
> "( success ( 1 2 ( ANONYMOUS ) ...".
>
> > Below is the contents of my xinetd config for subversion:
> >
> > *service svn
> > {
> >     flags           = REUSE
> >     socket_type     = stream
> >     wait            = no
> >     user            = svn
> >     group           = svn_group
> >     server          = /usr/bin/svnserve
> >     server_args     = -i -r /srv/svn/repo
> >     log_on_failure  += USERID
> >     disable         = no
> > }*
>
> There are two things different in my setup:
> 1. I have a line "port = 3690".
> 2. I don't have the line "flags = REUSE". I believe that could be the
> culprit,
> because in inetd mode (flag '-i' to svnserve) it expects to not reuse the
> connection but rather that every connection starts a new svnserve process.
> I
> don't actually know what the flag does.
>
> Lastly, you could try to start svnserve by hand and see if that changes
> anything.
>
> Uli
>
>
> --
> ML: http://subversion.tigris.org/mailing-list-guidelines.html
> FAQ: http://subversion.tigris.org/faq.html
> Docs: http://svnbook.red-bean.com/
>
> Sator Laser GmbH
> Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
>
>
> **************************************************************************************
>           Visit our website at <http://www.satorlaser.de/>
>
> **************************************************************************************
> Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten
> bestimmt und kann vertrauliche Informationen enthalten. Bitte
> benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte
> Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf
> weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt
> werden.
> E-Mails können durch Dritte gelesen werden und Viren sowie
> nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese
> Folgen nicht verantwortlich.
>
>
> **************************************************************************************
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>

Re: Subversion, xinetd, and "Malformed network data"

Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
On Wednesday 15 October 2008, Robert Dailey wrote:
> I currently have a Subversion 1.5.2 server running through svnserve +
> xinetd. When I attempt to connect to my subversion server, however, I get:
>
> svn: Malformed network data

Just wondering, what does telnet give you as output? Here, it gives
"( success ( 1 2 ( ANONYMOUS ) ...".

> Below is the contents of my xinetd config for subversion:
>
> *service svn
> {
>     flags           = REUSE
>     socket_type     = stream
>     wait            = no
>     user            = svn
>     group           = svn_group
>     server          = /usr/bin/svnserve
>     server_args     = -i -r /srv/svn/repo
>     log_on_failure  += USERID
>     disable         = no
> }*

There are two things different in my setup:
1. I have a line "port = 3690".
2. I don't have the line "flags = REUSE". I believe that could be the culprit, 
because in inetd mode (flag '-i' to svnserve) it expects to not reuse the 
connection but rather that every connection starts a new svnserve process. I 
don't actually know what the flag does.

Lastly, you could try to start svnserve by hand and see if that changes 
anything.

Uli


-- 
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/

Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

**************************************************************************************
           Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.

**************************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Subversion, xinetd, and "Malformed network data"

Posted by Erik Huelsmann <eh...@gmail.com>.
On Wed, Oct 15, 2008 at 6:37 AM, Robert Dailey <rc...@gmail.com> wrote:
> Hi,
>
> I currently have a Subversion 1.5.2 server running through svnserve +
> xinetd. When I attempt to connect to my subversion server, however, I get:
>
> svn: Malformed network data
>
> Below is the contents of my xinetd config for subversion:
>
> service svn
> {
>     flags           = REUSE
>     socket_type     = stream
>     wait            = no
>     user            = svn
>     group           = svn_group
>     server          = /usr/bin/svnserve
>     server_args     = -i -r /srv/svn/repo
>     log_on_failure  += USERID
>     disable         = no
> }
>
> This is located in the file: /etc/xinetd.d/svn
>
> I run the following command only to find that it fails:
>
> $ svn ls svn://localhost/myrepository
> svn: Malformed network data
>
> I've checked my xinetd log, however I see no failure. I can even put a
> completely bogus repository URL into SVN and it'll still give the same
> error:
>
> $ svn ls svn://localhost/iosudohslkj2223oijosdijfaksjdlfkj
> svn: Malformed network data
>
> Anyone have any idea what could be causing this?

Try running telnet to the repository. It might tell you more.


But I think your xinetd config might be wrong; you need:

>     server_args     = svnserve -i -r /srv/svn/repo

HTH,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org