bugrdiff-backup - Bugs: bug #20902, Minor index out of range error on...

 
 

bug #20902: Minor index out of range error on --list-changed-since

Submitted by:  Jason Buberel <jbuberel>
Submitted on:  Sat 25 Aug 2007 09:47:39 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 06 Sep 2007 04:13:20 AM UTC, comment #5:

Confirmed.

An older version of rdiff-backup comes with the KDE desktop installation on Ubuntu 7.04 as a prerequisite of the keep back up program.

Removal of this older version of rdiff-backup and clean reinstall of v1.1.14 eliminated the error.

-jason

Jason Buberel <jbuberel>
Wed 05 Sep 2007 02:35:25 PM UTC, comment #4:

Jason,

This bug was fixed in rdiff-backup 1.1.6 and 1.0.5. Your traceback indicates that the file "Time.py" in your rdiff-backup installation is out of date.

You should remove rdiff-backup and reinstall it as it has clearly been corrupted at some point. Perhaps you have multiple versions installed? That can happen when upgrading Python.

I am closing this bug report as fixed.

Andrew

Andrew Ferguson <owsla>
Project Administrator
Wed 29 Aug 2007 04:07:42 AM UTC, comment #3:

jason@bunny ~> rdiff-backup --version
rdiff-backup 1.1.14
jason@bunny ~> python --version
Python 2.5.1
jason@bunny ~> uname -a
Linux bunny 2.6.20-16-386 #2 Thu Jun 7 20:16:13 UTC 2007 i686 GNU/Linux
jason@bunny ~>

Jason Buberel <jbuberel>
Wed 29 Aug 2007 03:37:02 AM UTC, comment #2:

Jason, I'm not seeing this on my setup, for either case.

What do `rdiff-backup --version`, `python --version`, and `uname -a` report for you?

I wouldn't be surprised if there's a bug here, I'm just wondering why it works without complaining for me, but not for you.

Andrew Ferguson <owsla>
Project Administrator
Sat 25 Aug 2007 09:53:20 PM UTC, comment #1:

The (essentially) same error is seen when using the restore command:

1. mkdir orig
2. echo "test" >> orig/test.txt
3. rdiff-backup orig backup
4. rdiff-backup -r 1B backup restore

Exception 'list index out of range' raised of class '<type 'exceptions.IndexError'>':
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 295, in error_check_Main
try: Main(arglist)
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 315, in Main
take_action(rps)
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 281, in take_action
elif action == "restore-as-of": Restore(rps[0], rps[1], 1)
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 484, in Restore
try: time = Time.genstrtotime(restore_timestr, rp = inc_rpath)
File "/var/lib/python-support/python2.5/rdiff_backup/Time.py", line 223, in genstrtotime
return time_from_session(int(timestr[:-1]), rp)
File "/var/lib/python-support/python2.5/rdiff_backup/Time.py", line 192, in time_from_session
return session_times[-session_num-1]

Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 23, in <module>
rdiff_backup.Main.error_check_Main(sys.argv[1:])
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 295, in error_check_Main
try: Main(arglist)
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 315, in Main
take_action(rps)
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 281, in take_action
elif action == "restore-as-of": Restore(rps[0], rps[1], 1)
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 484, in Restore
try: time = Time.genstrtotime(restore_timestr, rp = inc_rpath)
File "/var/lib/python-support/python2.5/rdiff_backup/Time.py", line 223, in genstrtotime
return time_from_session(int(timestr[:-1]), rp)
File "/var/lib/python-support/python2.5/rdiff_backup/Time.py", line 192, in time_from_session
return session_times[-session_num-1]
IndexError: list index out of range

Jason Buberel <jbuberel>
Sat 25 Aug 2007 09:47:39 PM UTC, original submission:

Steps to reproduce:

1. mkdir orig
2. echo "test" >> orig/test.txt
3. rdiff-backup orig backup
4. rdiff-backup --list-changed-since 1B backup/

See error:

Exception 'list index out of range' raised of class '<type 'exceptions.IndexError'>':
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 295, in error_check_Main
try: Main(arglist)
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 315, in Main
take_action(rps)
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 276, in take_action
elif action == "list-changed-since": ListChangedSince(rps[0])
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 708, in ListChangedSince
try: rest_time = Time.genstrtotime(restore_timestr)
File "/var/lib/python-support/python2.5/rdiff_backup/Time.py", line 223, in genstrtotime
return time_from_session(int(timestr[:-1]), rp)
File "/var/lib/python-support/python2.5/rdiff_backup/Time.py", line 192, in time_from_session
return session_times[-session_num-1]

Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 23, in <module>
rdiff_backup.Main.error_check_Main(sys.argv[1:])
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 295, in error_check_Main
try: Main(arglist)
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 315, in Main
take_action(rps)
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 276, in take_action
elif action == "list-changed-since": ListChangedSince(rps[0])
File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 708, in ListChangedSince
try: rest_time = Time.genstrtotime(restore_timestr)
File "/var/lib/python-support/python2.5/rdiff_backup/Time.py", line 223, in genstrtotime
return time_from_session(int(timestr[:-1]), rp)
File "/var/lib/python-support/python2.5/rdiff_backup/Time.py", line 192, in time_from_session
return session_times[-session_num-1]

Jason Buberel <jbuberel>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by owsla (Posted a comment)
  • -unavailable- added by jbuberel (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 05 Sep 2007 02:35:25 PM UTCowslaStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1