You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Michael Hipp <Mi...@Hipp.com> on 2005/06/01 17:06:00 UTC
hot-backup.py failing
I'm trying to back up my repo using hot-backup.py, but here's what I get.
$ ./hot-backup.py.in repo repobackups
Beginning hot backup of 'repo'.
Traceback (most recent call last):
File "./hot-backup.py.in", line 97, in ?
youngest = string.strip(stdout_lines[0])
IndexError: list index out of range
This is a Ubuntu 5.04 server running svnserve 1.1.1. I also tried the
hot-backup.py from 1.2.0 with the same results. Any help?
Thanks,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: hot-backup.py failing
Posted by Michael Hipp <Mi...@Hipp.com>.
John Szakmeister wrote:
> On Friday 03 June 2005 11:01, Michael Hipp wrote:
>
>>Michael Hipp wrote:
>>
>>>I'm trying to back up my repo using hot-backup.py, but here's what I
>>>get.
>>>
>>>$ ./hot-backup.py.in repo repobackups
>>>Beginning hot backup of 'repo'.
>>>Traceback (most recent call last):
>>> File "./hot-backup.py.in", line 97, in ?
>>> youngest = string.strip(stdout_lines[0])
>>>IndexError: list index out of range
>>>
>>>This is a Ubuntu 5.04 server running svnserve 1.1.1. I also tried the
>>>hot-backup.py from 1.2.0 with the same results. Any help?
>>
>>Unfortunately replying to my own post ... but can anyone offer any
>>thoughts on troubleshooting this?
>>
>>Google found one message that said it had to be run as root. But it
>>didn't help.
>>
>>Forgot to mention that I'm using FSFS.
>
>
> This error is generally indicative of something else being wrong. Can you
> try running 'svnlook youngest' directly, as the same user your backup
> process? I've seen this problem most often with wedged BDB repositories.
> I'm not sure why you would be seeing this error with an FSFS repository,
> unless the script is pulling in the wrong svnlook executable, or there is
> something wrong with the repository itself.
Thanks. This seems ok. Gives the same result whether run as me or as root.
$ svnlook youngest repo
67
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: hot-backup.py failing SOLVED
Posted by Michael Hipp <Mi...@Hipp.com>.
John Szakmeister wrote:
> On Saturday 04 June 2005 12:01, Michael Hipp wrote:
>>Wonder why Ubuntu's binary package doesn't include it?
>
>
> That's a good question. :-) Actually, I believe there is a package called
> subversion-tools that might contain the script.
Well I built the 1.2.0 version on another machine, checked the
hot-backup.py file, copied it to the svn server machine, and tried it
with exactly the same results. Flarg!
So I then installed subversion-tools via apt-get, ran it, and now have
my repo backed up.
Again, thanks for all your help. I can now go back to my Python code. :-)
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: hot-backup.py failing SOLVED
Posted by John Szakmeister <jo...@szakmeister.net>.
On Saturday 04 June 2005 12:01, Michael Hipp wrote:
> John Szakmeister wrote:
> > Actually, the should be just a plain 'hot-backup.py' (not
> > 'hot-backup.py.in') script in the tools/backup folder where you built
> > subversion. 'hot-backup.py' should have all the correct paths. It's
> > generated from 'hot-backup.py.in' as a result of the configure
> > process. If you use the correct one, it will already have the correct
> > paths in it. :-)
>
> Therein lies the problem. I didn't build it. I installed it from the
> Ubuntu repository via apt-get. And as there appeared to be no
> hot-backup.py that came along with it, I thought to just grab the file
> from the source distribution.
You can hunt through the file looking for those @SVN_XXX@ symbols, and
just replace them with the appropriate paths. No need to spend time
trying to find a machine with a build environment.
> So I guess I can either hack the script or hop over to a machine that
> has a build environment and build it there and grab the script from it.
>
> Wonder why Ubuntu's binary package doesn't include it?
That's a good question. :-) Actually, I believe there is a package called
subversion-tools that might contain the script.
> Thanks for all your help,
No problem.
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: hot-backup.py failing SOLVED
Posted by Michael Hipp <Mi...@Hipp.com>.
John Szakmeister wrote:
> Actually, the should be just a plain 'hot-backup.py' (not
> 'hot-backup.py.in') script in the tools/backup folder where you built
> subversion. 'hot-backup.py' should have all the correct paths. It's
> generated from 'hot-backup.py.in' as a result of the configure process.
> If you use the correct one, it will already have the correct paths in
> it. :-)
Therein lies the problem. I didn't build it. I installed it from the
Ubuntu repository via apt-get. And as there appeared to be no
hot-backup.py that came along with it, I thought to just grab the file
from the source distribution.
So I guess I can either hack the script or hop over to a machine that
has a build environment and build it there and grab the script from it.
Wonder why Ubuntu's binary package doesn't include it?
Thanks for all your help,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: hot-backup.py failing
Posted by John Szakmeister <jo...@szakmeister.net>.
On Saturday 04 June 2005 09:09, Michael Hipp wrote:
> John Szakmeister wrote:
> > On Saturday 04 June 2005 08:17, you wrote:
> >>Thanks. This seems ok. Gives the same result whether run as me or as
> >>root.
> >>
> >>$ svnlook youngest repo
> >>67
> >
> > Can you check the path to svnlook in your hot-copy.py.in script?
> > BTW, the .in is supposed to drop after you do the configure and
> > build. There may be some other path problems in the script if you're
> > using the .in file directly.
>
> I added the print statement below to the script.
> # Path to svnlook utility
> svnlook = "@SVN_BINDIR@/svnlook"
> print "svnlook:", svnlook
That's because hot-backup.py.in is a template for hot-backup.py. During
the configure process the @SVN_BINDIR@ is replaced with the appropriate
path.
> Here's what I get:
> $ ./hot-backup.py.in repo repobackups
> svnlook: @SVN_BINDIR@/svnlook
> Beginning hot backup of 'repo'.
> Traceback (most recent call last):
> File "./hot-backup.py.in", line 98, in ?
> youngest = string.strip(stdout_lines[0])
> IndexError: list index out of range
>
> Which hardly looks right. Here's what is needed:
> $ whereis svnlook
> svnlook: /usr/bin/svnlook /usr/share/man/man1/svnlook.1.gz
>
> So should I just hack the script and add the path or is it looking for
> an env variable?
Actually, the should be just a plain 'hot-backup.py' (not
'hot-backup.py.in') script in the tools/backup folder where you built
subversion. 'hot-backup.py' should have all the correct paths. It's
generated from 'hot-backup.py.in' as a result of the configure process.
If you use the correct one, it will already have the correct paths in
it. :-)
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: hot-backup.py failing
Posted by Michael Hipp <Mi...@Hipp.com>.
John Szakmeister wrote:
> On Saturday 04 June 2005 08:17, you wrote:
>
>>Thanks. This seems ok. Gives the same result whether run as me or as
>>root.
>>
>>$ svnlook youngest repo
>>67
>
>
> Can you check the path to svnlook in your hot-copy.py.in script? BTW,
> the .in is supposed to drop after you do the configure and build. There
> may be some other path problems in the script if you're using the .in
> file directly.
I added the print statement below to the script.
# Path to svnlook utility
svnlook = "@SVN_BINDIR@/svnlook"
print "svnlook:", svnlook
Here's what I get:
$ ./hot-backup.py.in repo repobackups
svnlook: @SVN_BINDIR@/svnlook
Beginning hot backup of 'repo'.
Traceback (most recent call last):
File "./hot-backup.py.in", line 98, in ?
youngest = string.strip(stdout_lines[0])
IndexError: list index out of range
Which hardly looks right. Here's what is needed:
$ whereis svnlook
svnlook: /usr/bin/svnlook /usr/share/man/man1/svnlook.1.gz
So should I just hack the script and add the path or is it looking for
an env variable?
Thanks,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: hot-backup.py failing
Posted by John Szakmeister <jo...@szakmeister.net>.
On Friday 03 June 2005 11:01, Michael Hipp wrote:
> Michael Hipp wrote:
> > I'm trying to back up my repo using hot-backup.py, but here's what I
> > get.
> >
> > $ ./hot-backup.py.in repo repobackups
> > Beginning hot backup of 'repo'.
> > Traceback (most recent call last):
> > File "./hot-backup.py.in", line 97, in ?
> > youngest = string.strip(stdout_lines[0])
> > IndexError: list index out of range
> >
> > This is a Ubuntu 5.04 server running svnserve 1.1.1. I also tried the
> > hot-backup.py from 1.2.0 with the same results. Any help?
>
> Unfortunately replying to my own post ... but can anyone offer any
> thoughts on troubleshooting this?
>
> Google found one message that said it had to be run as root. But it
> didn't help.
>
> Forgot to mention that I'm using FSFS.
This error is generally indicative of something else being wrong. Can you
try running 'svnlook youngest' directly, as the same user your backup
process? I've seen this problem most often with wedged BDB repositories.
I'm not sure why you would be seeing this error with an FSFS repository,
unless the script is pulling in the wrong svnlook executable, or there is
something wrong with the repository itself.
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: hot-backup.py failing
Posted by Michael Hipp <Mi...@Hipp.com>.
Michael Hipp wrote:
> I'm trying to back up my repo using hot-backup.py, but here's what I get.
>
> $ ./hot-backup.py.in repo repobackups
> Beginning hot backup of 'repo'.
> Traceback (most recent call last):
> File "./hot-backup.py.in", line 97, in ?
> youngest = string.strip(stdout_lines[0])
> IndexError: list index out of range
>
> This is a Ubuntu 5.04 server running svnserve 1.1.1. I also tried the
> hot-backup.py from 1.2.0 with the same results. Any help?
Unfortunately replying to my own post ... but can anyone offer any
thoughts on troubleshooting this?
Google found one message that said it had to be run as root. But it
didn't help.
Forgot to mention that I'm using FSFS.
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org