Projet

Général

Profil

Tâche #25025

Scénario #24651: Traitement express MEN (38-40)

Si on redémarre le serveur, les services Bareos sont en erreur

Ajouté par Joël Cuissinat il y a plus de 5 ans. Mis à jour il y a plus de 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
17/09/2018
Echéance:
% réalisé:

100%

Temps estimé:
2.00 h
Temps passé:
Restant à faire (heures):
0.0

Description

Problème visiblement lié au(x) chemin(s) du PID :

root@scribe:~# service bareos-director status
● bareos-director.service - Bareos Director Daemon service
   Loaded: loaded (/lib/systemd/system/bareos-director.service; enabled; vendor preset: enabled)
   Active: activating (start) since Mon 2018-09-17 12:00:18 CEST; 14s ago
     Docs: man:bareos-dir(8)
  Process: 1505 ExecStart=/usr/sbin/bareos-dir (code=exited, status=0/SUCCESS)
  Process: 1482 ExecStartPre=/usr/sbin/bareos-dir -t -f (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 3527)
   CGroup: /system.slice/bareos-director.service

sept. 17 12:00:18 scribe systemd[1]: Starting Bareos Director Daemon service...
sept. 17 12:00:18 scribe systemd[1]: bareos-director.service: Can't open PID file /run/bareos/bareos-dir.9101.pid (yet?) after start: No such file or directory
sept. 17 12:00:18 scribe bareos-dir[1508]: bareos-dir: ERROR TERMINATION at bsys.c:635
sept. 17 12:00:18 scribe bareos-dir[1508]: Could not open pid file. /var/run/bareos/bareos-dir.9101.pid ERR=Aucun fichier ou dossier de ce type

Pourtant :

root@scribe:~# grep PID /lib/systemd/system/bareos-director.service 
PIDFile=/run/bareos/bareos-dir.9101.pid

Révisions associées

Révision 72e71476 (diff)
Ajouté par Fabrice Barconnière il y a plus de 5 ans

/run/bareos must exists with right permissions for PID file

ref #25025

Révision cf62f5ac (diff)
Ajouté par Daniel Dehennin il y a plus de 5 ans

Revert "/run/bareos must exists with right permissions for PID file"

This reverts commit 72e71476af63431a8423511e9d67315ae4354c06.

Ref: #25025

Révision 79c6dc6d (diff)
Ajouté par Daniel Dehennin il y a plus de 5 ans

/run/bareos must be created before starting any service

  • debian/bareos-director.tmpfile: let systemd create /run/bareos.
  • debian/bareos-filedaemon.tmpfile: ditoo.
  • debian/bareos-storage.tmpfile: ditoo.

Ref: #25025

Révision 48f68625 (diff)
Ajouté par Daniel Dehennin il y a plus de 5 ans

Do not enable or start daemons on initial installation

During the first installation the bareos-director daemon want to use
MySQL as default catalog backend but nothing is configured yet.

Ref: #25025

Révision 69159f93 (diff)
Ajouté par Daniel Dehennin il y a plus de 5 ans

Prepare release 16.2.6-4~eole270.7

Ref: #25025

Révision fb0b26a3 (diff)
Ajouté par Daniel Dehennin il y a plus de 5 ans

Do not install SystemV scripts

Ref: #25025

Révision 7c37ce00 (diff)
Ajouté par Daniel Dehennin il y a plus de 5 ans

Prepare release 16.2.6-4~eole270.8

Ref: #25025

Révision d3b49b23 (diff)
Ajouté par Daniel Dehennin il y a plus de 5 ans

diagnose: do not fail when there is no job

When there is no job “check_bareos” returns the value “3” and not “0”.

  • diagnose/153-bareos (TestBareosMonitorLocal): accept the return code
    “3” as not an error.

Ref: #25025

Historique

#1 Mis à jour par Fabrice Barconnière il y a plus de 5 ans

Le pb est après reboot

#2 Mis à jour par Daniel Dehennin il y a plus de 5 ans

  • Statut changé de Nouveau à En cours

#3 Mis à jour par Daniel Dehennin il y a plus de 5 ans

  • % réalisé changé de 0 à 100
  • Restant à faire (heures) changé de 2.0 à 0.25

#4 Mis à jour par Scrum Master il y a plus de 5 ans

  • Statut changé de En cours à Résolu

#5 Mis à jour par Scrum Master il y a plus de 5 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) changé de 0.25 à 0.0

Formats disponibles : Atom PDF