Project

General

Profile

Anomalie #8390

pb d'indentation schedule

Added by Klaas TJEBBES almost 7 years ago. Updated almost 7 years ago.

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

100%

Estimated time:
1.00 h
Spent time:
Distribution:
EOLE 2.3

Description

/usr/share/eole/schedule/schedule ligne 83

mailfrom = dicoEOLE['system_mail_from']
if context == 'cron':
mailfrom = dicoEOLE.get('system_mail_from', "cron-{0}@{1}".format(dicoEOLE['nom_machine'], dicoEOLE['nom_domaine_local']))
mailto = dicoEOLE.get('system_mail_to', 'root@localhost')
mail_return = send_mail(mailfrom, mailto, "erreur lors de l'execution de schedule {0} {1}".format(bacula_type, mode), '{0}\n{1}'.format(out, err))
if mail_return[0] != 0:

Avec cette indentation mailto n'est pas déclaré d’où l'erreur

run-parts: /usr/share/eole/schedule/daily/pre/mount exited with return code 32
Jun 17 00:06:37 scribe bacula-dir: 127.0.0.1-fd JobId 261: ClientRunBeforeJob: Une erreur a été détectée
Jun 17 00:06:37 scribe bacula-dir: 127.0.0.1-fd JobId 261: ClientRunBeforeJob: Traceback (most recent call last):
Jun 17 00:06:37 scribe bacula-dir: 127.0.0.1-fd JobId 261: ClientRunBeforeJob: File "/usr/share/eole/schedule/schedule", line 193, in <module>
Jun 17 00:06:37 scribe bacula-dir: 127.0.0.1-fd JobId 261: ClientRunBeforeJob: schedule_pre()
Jun 17 00:06:37 scribe bacula-dir: 127.0.0.1-fd JobId 261: ClientRunBeforeJob: File "/usr/share/eole/schedule/schedule", line 94, in schedule_pre
Jun 17 00:06:37 scribe bacula-dir: 127.0.0.1-fd JobId 261: ClientRunBeforeJob: run_runparts('daily', 'pre', 'bacula')
Jun 17 00:06:37 scribe bacula-dir: 127.0.0.1-fd JobId 261: ClientRunBeforeJob: File "/usr/share/eole/schedule/schedule", line 84, in run_runparts
Jun 17 00:06:37 scribe bacula-dir: 127.0.0.1-fd JobId 261: ClientRunBeforeJob: mail_return = send_mail(mailfrom, mailto, "erreur lors de l'execution de schedule {0} {1}".format(bacula_type, mode), '{0}\n{1}'.format(out, err))

Associated revisions

Revision 5b1be4d2 (diff)
Added by Klaas TJEBBES almost 7 years ago

correction indentation schedule FIXES #8390 @45min

Revision d82edac1 (diff)
Added by Klaas TJEBBES almost 7 years ago

correction indentation schedule (hotfix)

Ref #8390

History

#1 Updated by Klaas TJEBBES almost 7 years ago

Il ne faudrait pas que le script "schedule" envoie de mail dans le context "bacula", Bacula s'occupant lui-même d'en envoyer un.

#2 Updated by Klaas TJEBBES almost 7 years ago

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

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

  • Subject changed from pb d'indentation schedul to pb d'indentation schedule
  • Due date set to 06/20/2014
  • Assigned To set to Klaas TJEBBES
  • Target version set to Mises à jour 2.3.13
  • Estimated time set to 1.00 h

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

Paquet "updates" : creole-2.3-eole184

#5 Updated by Luc Bourdot almost 7 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF