Project

General

Profile

Scénario #29090

Le postservice bareos fait planter l’instance 2.7.1 après un Upgrade-Auto depuis 2.6.2

Added by Daniel Dehennin over 4 years ago. Updated over 4 years ago.

Status:
Terminé (Sprint)
Priority:
Normal
Assigned To:
Category:
-
Start date:
10/09/2019
Due date:
12/13/2019
% Done:

100%

Story points:
2.0
Remaining (hours):
0.00 hour
Velocity based estimate:
Release:
Release relationship:
Auto

Description

  • Pas de problème sur une instance d’un ScribeAD 2.7.1 fraîchement installé
  • Vu dans le test jenkins : https://dev-eole.ac-dijon.fr/jenkins/job/2.7.1/job/test-upgradeauto-scribead-262-2.7.1-amd64/lastFailedBuild/console
    02:34:42.507             Service bareos-director is not running                                  [  KO  ]
    […]
    02:34:42.508             run-parts: executing /usr/share/eole/postservice/00-bareos instance
    02:34:42.508             run-parts: /usr/share/eole/postservice/00-bareos exited with return code 1
    02:34:42.508             Erreur : postservice
    
  • Lors d’un Upgrade-Auto manuel, j’obtiens l’erreur suivant sur le service bareos-director
    root@scribe:~# systemctl status bareos-director.service 
    ● bareos-director.service - Bareos Director Daemon service
       Loaded: loaded (/lib/systemd/system/bareos-director.service; enabled; vendor preset: enabled)
       Active: inactive (dead) since Wed 2019-10-09 10:55:00 CEST; 2min 20s ago
         Docs: man:bareos-dir(8)
      Process: 27469 ExecStart=/usr/sbin/bareos-dir (code=exited, status=0/SUCCESS)
      Process: 27375 ExecStartPre=/usr/sbin/bareos-dir -t -f (code=exited, status=1/FAILURE)
     Main PID: 27521 (code=exited, status=1/FAILURE)
    
    oct. 09 10:55:00 scribe bareos-dir[27375]: Please correct the configuration in /etc/bareos/bareos-dir.conf
    oct. 09 10:55:00 scribe bareos-dir[27375]: bareos-dir ERROR TERMINATION
    oct. 09 10:55:00 scribe bareos-dir[27375]: Please correct the configuration in /etc/bareos/bareos-dir.conf
    oct. 09 10:55:00 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
    oct. 09 10:55:00 scribe systemd[1]: Started Bareos Director Daemon service.
    oct. 09 10:55:00 scribe bareos-dir[27521]: bareos-dir JobId 0: Fatal error: Version error for database "bareos". Wanted 2004, got 2003
    oct. 09 10:55:00 scribe bareos-dir[27521]: bareos-dir JobId 0: Fatal error: Could not open Catalog "MyCatalog", database "bareos".
    oct. 09 10:55:00 scribe bareos-dir[27521]: bareos-dir JobId 0: Fatal error: Version error for database "bareos". Wanted 2004, got 2003
    oct. 09 10:55:00 scribe bareos-dir[27521]: bareos-dir ERROR TERMINATION
    oct. 09 10:55:00 scribe bareos-dir[27521]: Please correct the configuration in /etc/bareos/bareos-dir.conf
    

Je ne souhaitais pas tester bareos, j’ai donc désactivé tous les services bareos mais le script postservice/00-bareos s’exécute quand même !

Solutions à mettre en œuvre

  • corriger la mise à niveau de la base de données Bareos en 2.7.1

Critère d'acceptation


Subtasks

Tâche #29333: Changer les paramètres de connexion à la base de donnéesFerméBenjamin Bohard


Related issues

Related to Distribution EOLE - Tâche #29305: Validation du scénario : Le postservice bareos fait planter l’instance 2.7.1 après un Upgrade-Auto depuis 2.6.2 Fermé 11/25/2019

Associated revisions

Revision 88905c37 (diff)
Added by Benjamin Bohard over 4 years ago

Connect to database with valid user and password

Ref #29090

History

#1 Updated by Daniel Dehennin over 4 years ago

  • Project changed from Distribution EOLE to eole-bareos

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

  • Parent task set to #29069

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

Un rapport possible avec #28795 ?

#4 Updated by Joël Cuissinat over 4 years ago

  • Project changed from eole-bareos to Distribution EOLE
  • Status changed from Nouveau to En cours

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

  • Assigned To set to Joël Cuissinat

#6 Updated by Joël Cuissinat over 4 years ago

Le script de /usr/share/eole/posttemplate/00-bareos est censé upgrader la base mais :

bash -x /usr/share/eole/sbin/bareosregen.sh noquestion
   [ ... ]
+ CreoleService mysql start
Start Systemd service mysql                                                                                                                                                                                [  OK  ]
+ echo 'Mise à jour de la base de donnée Bareos... '
Mise à jour de la base de donnée Bareos... 
+ /usr/share/eole/sbin/update_bareos_tables
Updating mysql tables
mysql: [Warning] Using a password on the command line interface can be insecure.
Upgrading database schema from version 2003 to 2004
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Failed to upgrade database schema from version 2003 to 2004
+ '[' 1 = 1 ']'
+ echo 'Régénération du catalogue terminée'
Régénération du catalogue terminée
   [ ... ]

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

  • Status changed from En cours to Nouveau
  • Parent task deleted (#29069)

#8 Updated by Joël Cuissinat over 4 years ago

  • Tracker changed from Tâche to Scénario
  • Due date set to 11/22/2019
  • Assigned To deleted (Joël Cuissinat)
  • Target version changed from sprint 2019 42-44 Equipe MENSR to sprint 2019 45-47 Equipe MENSR
  • Release set to EOLE 2.7.1.2
  • Story points set to 2.0

#9 Updated by Joël Cuissinat over 4 years ago

  • Target version changed from sprint 2019 45-47 Equipe MENSR to Prestation Cadoles 48-50

#10 Updated by Joël Cuissinat over 4 years ago

  • Description updated (diff)

#11 Updated by Joël Cuissinat over 4 years ago

  • Description updated (diff)

#12 Updated by Benjamin Bohard over 4 years ago

  • Assigned To set to Benjamin Bohard

#13 Updated by Joël Cuissinat over 4 years ago

  • Related to Tâche #29305: Validation du scénario : Le postservice bareos fait planter l’instance 2.7.1 après un Upgrade-Auto depuis 2.6.2 added

#14 Updated by Daniel Dehennin over 4 years ago

  • Status changed from Nouveau to Terminé (Sprint)

Also available in: Atom PDF