Project

General

Profile

Anomalie #7464

"bacularestore.py --ls_folder" ne fonctionne pas

Added by Joël Cuissinat about 7 years ago. Updated about 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
Due date:
03/07/2014
% Done:

100%

Estimated time:
2.00 h
Spent time:
Distribution:
EOLE 2.4

Description

Sur un Horus-2.4-RC2 sur lequel des sauvegardes ont été réalisées :

root@horus:~# /usr/share/eole/sbin/bacularestore.py --ls_folder /home/backup/
liste du contenu de /home/backup/
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/ls_folder.py", line 17, in execute
    job(option, jobid)
  File "/usr/share/eole/bacula/restore/ls_folder.py", line 31, in job
    bacula_ls_one_folder(foldername, jobid)
  File "/usr/lib/python2.7/dist-packages/pyeole/bacularestore.py", line 54, in bacula_ls_one_folder
    if cd_result.groupdict()['invalide'] == None:
AttributeError: 'NoneType' object has no attribute 'groupdict'


Related issues

Related to eole-bacula - Anomalie #6266: Traceback : bacularestore.py --ls_folder Fermé 10/21/2013 10/25/2013

Associated revisions

Revision 3030d9db (diff)
Added by Joachim Schmitz almost 11 years ago

s3: define timespec before we use it

this fixes #7464

Signed-off-by: Björn Jacke <>

Revision 9a9a2878 (diff)
Added by Joël Cuissinat about 7 years ago

Revert "L'expression régulière ne correspond plus au message de bacula."

This reverts commit 63ce58721a484326f1b273690eee747ce7056f8c.

Fixes #7464 @45m
Ref #6266

Revision d730d499 (diff)
Added by Joël Cuissinat about 7 years ago

Implémentation des deux regex pour --ls_folder

Fixes #7464 @30m

History

#1 Updated by Joël Cuissinat about 7 years ago

  • % Done changed from 0 to 10

Visiblement, ce bug est exactement l'inverse de #6266 !

Comme si Bacula parlait de nouveau anglais !!!

En tout cas ma console est on ne peut plus française :

root@scribe:~# export | grep fr
declare -x LANG="fr_FR.UTF-8" 
declare -x LC_ADDRESS="fr_FR.UTF-8" 
declare -x LC_ALL="fr_FR.UTF-8" 
declare -x LC_COLLATE="fr_FR.UTF-8" 
declare -x LC_CTYPE="fr_FR.UTF-8" 
declare -x LC_IDENTIFICATION="fr_FR.UTF-8" 
declare -x LC_MEASUREMENT="fr_FR.UTF-8" 
declare -x LC_MESSAGES="fr_FR.UTF-8" 
declare -x LC_MONETARY="fr_FR.UTF-8" 
declare -x LC_NAME="fr_FR.UTF-8" 
declare -x LC_NUMERIC="fr_FR.UTF-8" 
declare -x LC_PAPER="fr_FR.UTF-8" 
declare -x LC_TELEPHONE="fr_FR.UTF-8" 
declare -x LC_TIME="fr_FR.UTF-8" 

#2 Updated by Joël Cuissinat about 7 years ago

  • Status changed from A étudier to Résolu
  • % Done changed from 10 to 100

#4 Updated by Joël Cuissinat about 7 years ago

  • Due date set to 03/07/2014
  • Assigned To set to Joël Cuissinat

#5 Updated by Emmanuel GARETTE about 7 years ago

  • Status changed from Résolu to Fermé

OK :

root@scribe:~# /usr/share/eole/sbin/bacularestore.py --ls_folder /home/backup/
liste du contenu de /home/backup/
samba/
sauv_ldap.ldif
sql/

Also available in: Atom PDF