You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Stephen Bloch <sb...@adelphi.edu> on 2011/04/08 19:11:07 UTC

beginner admin question: no repository found

The machine on which my svn repository lives was recently upgraded.  I didn't have svnserve in a run-on-reboot script, so I started it by hand (log in as "svn", then type "svnserve -d").  But whenever I make any requests of the server (e.g. "svn ls svn://localhost", much less "svn update"), I get the error message "svn: No repository found in 'svn://localhost'".  I then do a "ps x", and I see something like
11550 ?        Ss     0:00 svnserve -d
11556 ?        Z      0:00 [svnserve] <defunct>

Is 11556 just a subprocess created to handle this request, which for whatever reason hasn't gone away yet?  Or is it the actually svn server, which for some reason died as soon as it was asked to do any work?

I've done an "svnadmin verify", and the repository seems to be fine.  None of the config files has been changed in over a year, so I doubt they're corrupted.  Any ideas?



Stephen Bloch
sbloch@adelphi.edu


RE: beginner admin question: no repository found

Posted by Bob Archer <Bo...@amsi.com>.
> > The machine on which my svn repository lives was recently
> > upgraded.  I didn't have svnserve in a run-on-reboot script,
> > so I started it by hand (log in as "svn", then type "svnserve
> > -d").  But whenever I make any requests of the server (e.g.
> > "svn ls svn://localhost", much less "svn update"), I get the
> > error message "svn: No repository found in
> > 'svn://localhost'".  I then do a "ps x", and I see something like
> > 11550 ?        Ss     0:00 svnserve -d
> > 11556 ?        Z      0:00 [svnserve] <defunct>
> >
> > Is 11556 just a subprocess created to handle this request,
> > which for whatever reason hasn't gone away yet?  Or is it the
> > actually svn server, which for some reason died as soon as it
> > was asked to do any work?
> 
> The former.  The svnserve daemon spawns a child process for each
> connection.  On UNIX derivatives, zombie processes (the Z above)
> are
> created when a child process exits and the parent doesn't call
> wait() to
> retrieve its exit status.  They get cleaned up by the init process
> eventually.
> 
> >
> > I've done an "svnadmin verify", and the repository seems to
> > be fine.  None of the config files has been changed in over a
> > year, so I doubt they're corrupted.  Any ideas?

> You need to tell svnserve where your repository is on the machine.
> e.g.
> 
> svnserve -d -r /path/to/repo
> 
> It's probably trying to serve a repository rooted at /, which is
> probably not where yours is.
>

I was going to say this, but I looked at the --help for svnserver and it doesn't seem to require the -r param. I figure it roots to the pwd. But, if he isn't running it from the repo root then yea... that!

BOb


RE: beginner admin question: no repository found

Posted by Tony Sweeney <ts...@omnifone.com>.
You need to tell svnserve where your repository is on the machine.  e.g.

svnserve -d -r /path/to/repo 

It's probably trying to serve a repository rooted at /, which is
probably not where yours is.

> -----Original Message-----
> From: Stephen Bloch [mailto:sbloch@adelphi.edu] 
> Sent: 08 April 2011 18:11
> To: users@subversion.apache.org
> Subject: beginner admin question: no repository found
> 
> The machine on which my svn repository lives was recently 
> upgraded.  I didn't have svnserve in a run-on-reboot script, 
> so I started it by hand (log in as "svn", then type "svnserve 
> -d").  But whenever I make any requests of the server (e.g. 
> "svn ls svn://localhost", much less "svn update"), I get the 
> error message "svn: No repository found in 
> 'svn://localhost'".  I then do a "ps x", and I see something like
> 11550 ?        Ss     0:00 svnserve -d
> 11556 ?        Z      0:00 [svnserve] <defunct>
> 
> Is 11556 just a subprocess created to handle this request, 
> which for whatever reason hasn't gone away yet?  Or is it the 
> actually svn server, which for some reason died as soon as it 
> was asked to do any work?

The former.  The svnserve daemon spawns a child process for each
connection.  On UNIX derivatives, zombie processes (the Z above) are
created when a child process exits and the parent doesn't call wait() to
retrieve its exit status.  They get cleaned up by the init process
eventually.

> 
> I've done an "svnadmin verify", and the repository seems to 
> be fine.  None of the config files has been changed in over a 
> year, so I doubt they're corrupted.  Any ideas?
> 
> 
> 
> Stephen Bloch
> sbloch@adelphi.edu
> 
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit 
> http://www.messagelabs.com/email 
> ______________________________________________________________________
> 

RE: beginner admin question: no repository found

Posted by Bob Archer <Bo...@amsi.com>.
> The machine on which my svn repository lives was recently upgraded.
> I didn't have svnserve in a run-on-reboot script, so I started it
> by hand (log in as "svn", then type "svnserve -d").  But whenever I
> make any requests of the server (e.g. "svn ls svn://localhost",
> much less "svn update"), I get the error message "svn: No
> repository found in 'svn://localhost'".  I then do a "ps x", and I
> see something like
> 11550 ?        Ss     0:00 svnserve -d
> 11556 ?        Z      0:00 [svnserve] <defunct>
> 
> Is 11556 just a subprocess created to handle this request, which
> for whatever reason hasn't gone away yet?  Or is it the actually
> svn server, which for some reason died as soon as it was asked to
> do any work?
> 
> I've done an "svnadmin verify", and the repository seems to be
> fine.  None of the config files has been changed in over a year, so
> I doubt they're corrupted.  Any ideas?

It is possible it is binding to IPv6 rather than IPv4... I think you can pass in the IP you want it to bind to.

http://www.bramschoenmakers.nl/en/node/287

BOb