Project

General

Profile

Anomalie #7465

Par le jeu des imports, bacula se retouve à ouvrir un logger sur /var/log/creole.log

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

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

100%

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

Description

En lançant une restauration totale (qui semble avoir échouée d'ailleurs), le log (/var/log/bacula/restore.txt) se termine par :

19-Feb 14:21 horus-dir JobId 26: shell command: run AfterJob "/usr/share/eole/sbin/bacularestore.py --all_files err" 
19-Feb 14:21 horus-dir JobId 26: AfterJob: Traceback (most recent call last):
19-Feb 14:21 horus-dir JobId 26: AfterJob:   File "/usr/share/eole/sbin/bacularestore.py", line 14, in <module>
19-Feb 14:21 horus-dir JobId 26: AfterJob:     import restore
19-Feb 14:21 horus-dir JobId 26: AfterJob:   File "/usr/share/eole/bacula/restore/__init__.py", line 18, in <module>
19-Feb 14:21 horus-dir JobId 26: AfterJob:     exec "import %s" %__m__.group()
19-Feb 14:21 horus-dir JobId 26: AfterJob:   File "<string>", line 1, in <module>
19-Feb 14:21 horus-dir JobId 26: AfterJob:   File "/usr/share/eole/bacula/restore/search.py", line 8, in <module>
19-Feb 14:21 horus-dir JobId 26: AfterJob:     from pyeole.bacularestore import exit_if_running_jobs, bacula_search
19-Feb 14:21 horus-dir JobId 26: AfterJob:   File "/usr/lib/python2.7/dist-packages/pyeole/bacularestore.py", line 6, in <module>
19-Feb 14:21 horus-dir JobId 26: AfterJob:     from pyeole.bacula import BACULA_CONF, BACULA_SUPPORT, \
19-Feb 14:21 horus-dir JobId 26: AfterJob:   File "/usr/lib/python2.7/dist-packages/pyeole/bacula.py", line 16, in <module>
19-Feb 14:21 horus-dir JobId 26: AfterJob:     from creole.loader import creole_loader, config_save_values
19-Feb 14:21 horus-dir JobId 26: AfterJob:   File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 33, in <module>
19-Feb 14:21 horus-dir JobId 26: AfterJob:     from creole.upgrade import upgrade
19-Feb 14:21 horus-dir JobId 26: AfterJob:   File "/usr/lib/python2.7/dist-packages/creole/upgrade.py", line 34, in <module>
19-Feb 14:21 horus-dir JobId 26: AfterJob:     filename=log_filename)
19-Feb 14:21 horus-dir JobId 26: AfterJob:   File "/usr/lib/python2.7/dist-packages/pyeole/log.py", line 314, in init_logging
19-Feb 14:21 horus-dir JobId 26: AfterJob:     logging.config.dictConfig(log_config)
19-Feb 14:21 horus-dir JobId 26: AfterJob:   File "/usr/lib/python2.7/logging/config.py", line 777, in dictConfig
19-Feb 14:21 horus-dir JobId 26: AfterJob:     dictConfigClass(config).configure()
19-Feb 14:21 horus-dir JobId 26: AfterJob:   File "/usr/lib/python2.7/logging/config.py", line 575, in configure
19-Feb 14:21 horus-dir JobId 26: AfterJob:     '%r: %s' % (name, e))
19-Feb 14:21 horus-dir JobId 26: AfterJob: ValueError: Unable to configure handler u'file': [Errno 13] Permission denied: u'/var/log/creole.log'
19-Feb 14:21 horus-dir JobId 26: Error: Runscript: AfterJob returned non-zero status=1. ERR=Child exited with code 1


Related issues

Related to eole-bacula - Anomalie #7480: La programmation d'une sauvegarde quotidienne ne fonctionne pas Fermé
Related to creole - Anomalie #7520: l'initialisation du logger dans upgrade.py peut provoquer une erreur de permission à l'import de loader.py Fermé 03/07/2014

History

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

NB : l'échec de la restauration était causé par #7467

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

Pour reproduite le bug :

root@scribe:~# su bacula -s /bin/bash -c "python -c 'from creole.loader import creole_loader, config_save_values'" 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/creole/loader.py", line 33, in <module>
    from creole.upgrade import upgrade
  File "/usr/lib/python2.7/dist-packages/creole/upgrade.py", line 34, in <module>
    filename=log_filename)
  File "/usr/lib/python2.7/dist-packages/pyeole/log.py", line 314, in init_logging
    logging.config.dictConfig(log_config)
  File "/usr/lib/python2.7/logging/config.py", line 777, in dictConfig
    dictConfigClass(config).configure()
  File "/usr/lib/python2.7/logging/config.py", line 575, in configure
    '%r: %s' % (name, e))
ValueError: Unable to configure handler u'file': [Errno 13] Permission denied: u'/var/log/creole.log'

#3 Updated by Joël Cuissinat over 7 years ago

  • Due date set to 03/07/2014
  • Status changed from Nouveau to Résolu
  • Assigned To set to Bruno Boiget
  • % Done changed from 0 to 100

Résolu par #7520

#4 Updated by Emmanuel GARETTE over 7 years ago

  • Status changed from Résolu to Fermé

OK avec le test proposé :

root@scribe:~# su bacula -s /bin/bash -c "python -c 'from creole.loader import creole_loader, config_save_values'" 
root@scribe:~# 

Also available in: Atom PDF