Project

General

Profile

Tâche #9925

Scénario #9173: Améliorer les messages de la sauvegarde

Traceback si on essaie de restaurer sans avoir fait de sauvegarde

Added by Joël Cuissinat over 6 years ago. Updated over 6 years ago.

Status:
Reporté
Priority:
Normal
Assigned To:
Target version:
Start date:
08/27/2012
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
Remaining (hours):
0.0

Description

root@amonecole:~# /usr/share/eole/sbin/bacularestore.py --folder /tmp/toto
Restauration de /tmp/toto
Traceback (most recent call last):
  File "/usr/share/eole/sbin/bacularestore.py", line 98, in <module>
    main()
  File "/usr/share/eole/sbin/bacularestore.py", line 92, in main
    parser.parse_args()
  File "/usr/lib/python2.7/optparse.py", line 1399, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib/python2.7/optparse.py", line 1439, in _process_args
    self._process_long_opt(rargs, values)
  File "/usr/lib/python2.7/optparse.py", line 1514, in _process_long_opt
    option.process(opt, value, values, self)
  File "/usr/lib/python2.7/optparse.py", line 788, in process
    self.action, self.dest, opt, value, values, parser)
  File "/usr/lib/python2.7/optparse.py", line 808, in take_action
    self.callback(self, opt, value, parser, *args, **kwargs)
  File "/usr/share/eole/bacula/restore/folder.py", line 18, in execute
    job(option, jobid)
  File "/usr/share/eole/bacula/restore/folder.py", line 32, in job
    bacula_restore_one_folder(foldername, jobid)
  File "/usr/lib/python2.7/dist-packages/pyeole/bacularestore.py", line 78, in bacula_restore_one_folder
    if not bacula_ls_one_folder(foldername, jobid, test_mode=True) == True:
  File "/usr/lib/python2.7/dist-packages/pyeole/bacularestore.py", line 54, in bacula_ls_one_folder
    ls_result = stdout[1].split('\n')[1:]
IndexError: list index out of range

Related issues

Copied to Distribution EOLE - Tâche #9978: Tester si résolu : Traceback si on essaie de restaurer sans avoir fait de sauvegarde Fermé 08/27/2012

Associated revisions

Revision f002cdfd (diff)
Added by Joël Cuissinat over 6 years ago

Erreur si impossible de récupérer le catalogue

Fixes: #9925 @30m

History

#1 Updated by Joël Cuissinat over 6 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#2 Updated by Joël Cuissinat over 6 years ago

  • Remaining (hours) changed from 1.0 to 0.15

NB : fonctionne aussi pour l'option --ls_folder

#3 Updated by Fabrice Barconnière over 6 years ago

  • Status changed from Résolu to Reporté
  • Remaining (hours) changed from 0.15 to 0.0

Also available in: Atom PDF