Project

General

Profile

Anomalie #8481

Erreur Bacula après migration 2.2 -> 2.4 (migration24.sh)

Added by Philippe Michel almost 6 years ago. Updated over 5 years ago.

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

100%

Spent time:
Distribution:
EOLE 2.4

Description

Bonjour,

Apparemment, l'erreur vient du fait qu'il faudrait autoriser les caractère "." et "-" dans la création des locks (pour autoriser le nom 127.0.0.1-dir)

Voici le début du log :
26-Jun 16:21 127.0.0.1-dir JobId 16: Warning: FileSet MD5 digest not found.
26-Jun 16:21 127.0.0.1-dir JobId 16: shell command: run BeforeJob "sudo /usr/share/eole/sbin/
baculaconfig.py --lock --daemon=127.0.0.1-dir --jobID=16 --backup_progress --jobType=cronpre"
26-Jun 16:21 127.0.0.1-dir JobId 16: BeforeJob: Traceback (most recent call last):
26-Jun 16:21 127.0.0.1-dir JobId 16: BeforeJob: File "/usr/share/eole/sbin/baculaconfig.py", line 236, in <module>
26-Jun 16:21 127.0.0.1-dir JobId 16: BeforeJob: main()
26-Jun 16:21 127.0.0.1-dir JobId 16: BeforeJob: File "/usr/share/eole/sbin/baculaconfig.py", line 225, in main
26-Jun 16:21 127.0.0.1-dir JobId 16: BeforeJob: acquire(lock_name, level='system')
26-Jun 16:21 127.0.0.1-dir JobId 16: BeforeJob: File "/usr/lib/python2.7/dist-packages/pyeole/lock.py", line 265, in acquire
26-Jun 16:21 127.0.0.1-dir JobId 16: BeforeJob: _valid_name(name)
26-Jun 16:21 127.0.0.1-dir JobId 16: BeforeJob: File "/usr/lib/python2.7/dist-packages/pyeole/lock.py", line 104, in _valid_name
26-Jun 16:21 127.0.0.1-dir JobId 16: BeforeJob: '{}'.format(name))
26-Jun 16:21 127.0.0.1-dir JobId 16: BeforeJob: ValueError: name must be alphanum and in lower case, not 127.0.0.1-dir
26-Jun 16:21 127.0.0.1-dir JobId 16: Error: Runscript: BeforeJob returned non-zero status=1. ERR=Child exited with code 1
26-Jun 16:21 127.0.0.1-dir JobId 16: Error: Bacula 127.0.0.1-dir 5.2.5 (26Jan12):


Related issues

Related to creole - Evolution #8192: Migration des variables bacula_dir_name et bacula_sd_name Pas un bug 05/30/2014
Related to eole-bacula - Tâche #8522: Erreur Bacula Eole 2.4 : Mot de passe demandé Reporté 12/04/2014 12/05/2014

Associated revisions

Revision d5e9a5d2 (diff)
Added by Emmanuel GARETTE almost 6 years ago

remplace les . par des _ lors de la création/suppression des locks (fixes #8481 @1h)

History

#1 Updated by Emmanuel GARETTE almost 6 years ago

  • Due date set to 07/04/2014
  • Assigned To set to Emmanuel GARETTE
  • Target version set to Eole 2.4.0.1
  • Start date set to 06/23/2014

#2 Updated by Emmanuel GARETTE almost 6 years ago

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

#3 Updated by Philippe Michel almost 6 years ago

Bonjour,

Après exécution du script "baculaconfig.py", une erreur de mot de passe apparaît :

01-Jul 11:03 127.0.0.1-dir JobId 1: Warning: FileSet MD5 digest not found.
01-Jul 11:03 127.0.0.1-dir JobId 1: shell command: run BeforeJob "sudo /usr/share/eole/sbin/baculaconfig.py --lock --daemon=127.0.0.1-dir --jobID=1 --backup_progress --jobType=cronpre"
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: no tty present and no askpass program specified
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: no tty present and no askpass program specified
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: Sorry, try again.
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: no tty present and no askpass program specified
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: no tty present and no askpass program specified
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: Sorry, try again.
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: no tty present and no askpass program specified
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: no tty present and no askpass program specified
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: Sorry, try again.
01-Jul 11:03 127.0.0.1-dir JobId 1: BeforeJob: sudo: 3 incorrect password attempts
01-Jul 11:03 127.0.0.1-dir JobId 1: Error: Runscript: BeforeJob returned non-zero status=1. ERR=Child exited with code 1
01-Jul 11:03 127.0.0.1-dir JobId 1: Error: Bacula 127.0.0.1-dir 5.2.5 (26Jan12):

Merci pour vos éclairages,

Philippe Michel

#4 Updated by Emmanuel GARETTE almost 6 years ago

Merci pour les tests. Pourriez-vous ouvrir une nouvelle demande sur ce nouveau sujet ?

Cordialement,

#5 Updated by Benjamin Bohard over 5 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF