Project

General

Profile

Tâche #14166

Distribution EOLE - Scénario #14084: Assistance aux utilisateurs (49-51)

Corriger le Traceback bareos job eJabber

Added by Gilles Grandgérard over 5 years ago. Updated over 5 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
11/30/2015
Due date:
% Done:

100%

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

Description

Un traceback apparait dans la restauration bareos full :

Voir : [[http://jenkins2.eole.lan/job/test-sauvegarde-bareos-restaure-full-2.5.1-amd64/41/consoleFull]]

                26-Nov 03:57 scribe-dir JobId 4: shell command: run AfterJob "sudo /usr/share/eole/sbin/bareosmount.py --umount" 
                26-Nov 03:57 scribe-dir JobId 4: AfterJob: Démontage OK
                tail: /var/log/bareos/restore.txt : fichier tronqué
                26-Nov 03:57 scribe-dir JobId 5: shell command: run BeforeJob "sudo /usr/share/eole/sbin/bareosmount.py --mount" 
                26-Nov 03:57 scribe-dir JobId 5: BeforeJob: Montage OK
                26-Nov 03:57 scribe-dir JobId 5: Start Restore Job Restore_jabber.2015-11-26_03.55.51_07
                26-Nov 03:57 scribe-dir JobId 5: Using Device "FileStorage" to read.
                26-Nov 03:57 scribe-fd JobId 5: shell command: run ClientBeforeJob "/usr/share/eole/sbin/bareosrestore.py --jabber pre" 
                26-Nov 03:57 scribe-fd JobId 5: ClientBeforeJob: pre jabber
                26-Nov 03:57 scribe-sd JobId 5: Ready to read from volume "scribe-dir-full-0002" on device "FileStorage" (/mnt/sauvegardes).
                26-Nov 03:57 scribe-fd JobId 5: -rw-------   1 root     root           25959 2015-11-25 05:48:36  /home/backup/ejabberd
                26-Nov 03:57 scribe-sd JobId 5: Forward spacing Volume "scribe-dir-full-0002" to file:block 0:211.
                26-Nov 03:57 scribe-fd JobId 5: shell command: run ClientAfterJob "/usr/share/eole/sbin/bareosrestore.py --jabber post" 
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob: post jabber
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob: Traceback (most recent call last):
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:   File "/usr/share/eole/sbin/bareosrestore.py", line 98, in <module>
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:     main()
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:   File "/usr/share/eole/sbin/bareosrestore.py", line 92, in main
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:     parser.parse_args()
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:   File "/usr/lib/python2.7/optparse.py", line 1400, in parse_args
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:     stop = self._process_args(largs, rargs, values)
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:   File "/usr/lib/python2.7/optparse.py", line 1440, in _process_args
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:     self._process_long_opt(rargs, values)
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:   File "/usr/lib/python2.7/optparse.py", line 1515, in _process_long_opt
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:     option.process(opt, value, values, self)
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:   File "/usr/lib/python2.7/optparse.py", line 789, in process
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:     self.action, self.dest, opt, value, values, parser)
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:   File "/usr/lib/python2.7/optparse.py", line 809, in take_action
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:     self.callback(self, opt, value, parser, *args, **kwargs)
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:   File "/usr/share/eole/bareos/restore/jabber.py", line 23, in execute
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:     post()
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:   File "/usr/share/eole/bareos/restore/jabber.py", line 45, in post
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:     service_out('ejabberd', 'restart', 'jabber')
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:   File "/usr/lib/python2.7/dist-packages/pyeole/service/__init__.py", line 389, in service_out
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob:     raise NotImplementedError(msg)
                26-Nov 03:57 scribe-fd JobId 5: ClientAfterJob: NotImplementedError: This code was broken, use “manage_services()” API
                26-Nov 03:57 scribe-fd JobId 5: Error: Runscript: ClientAfterJob returned non-zero status=1. ERR=Child exited with code 1

Related issues

Related to eole-ejabberd - Tâche #14215: Les tests squash "bareos" testent la sauvegarde d'ejabberd mais pas sa restauration Fermé 12/07/2015

Associated revisions

Revision 73149113 (diff)
Added by Emmanuel GARETTE over 5 years ago

utilisation de manage_service à la place de service_out (ref #14166 @1h)

History

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

  • Project changed from Distribution EOLE to eole-ejabberd

#2 Updated by Scrum Master over 5 years ago

  • Assigned To set to Emmanuel GARETTE

#3 Updated by Emmanuel GARETTE over 5 years ago

  • Parent task set to #14084

#4 Updated by Emmanuel GARETTE over 5 years ago

  • Status changed from Nouveau to En cours
  • Remaining (hours) set to 2.0

#5 Updated by Emmanuel GARETTE over 5 years ago

  • % Done changed from 0 to 100
  • Remaining (hours) changed from 2.0 to 0.25

#6 Updated by Scrum Master over 5 years ago

  • Status changed from En cours to Résolu

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

  • Status changed from Résolu to Fermé
  • Remaining (hours) changed from 0.25 to 0.0

Sauvegarde/Restauration testée : http://squash-tm.eole.lan/squash/executions/2454 + ouverture d'un signalement (#14215) pour faire évoluer le test.

Also available in: Atom PDF