Project

General

Profile

Scénario #18341

Les sauvegardes Bacula/Bareos ne doivent pas dépendre de creoled

Added by Yoni Baude over 3 years ago. Updated almost 3 years ago.

Status:
Terminé (Sprint)
Priority:
Normal
Assigned To:
Category:
-
Start date:
02/28/2017
Due date:
04/14/2017
% Done:

100%

Estimated time:
(Total: 10.00 h)
Spent time:
0.25 h (Total: 16.75 h)
Story points:
4.0
Remaining (hours):
0.00 hour
Velocity based estimate:
Release:
Release relationship:
Auto

Description

Problème

La sauvegarde plante si creoled est arrêté :


12-Dec 00:39 127.0.0.1-dir JobId 2758: shell command: run BeforeJob "sudo /usr/share/eole/sbin/baculaconfig.py --lock --daemon=127.0.0.1-dir --jobID=2758 --backup_progress --jobType=cronpost" 
12-Dec 00:39 127.0.0.1-dir JobId 2758: BeforeJob: Erreur au test de montage : Erreur HTTP : socket.error: Can't connect to ('127.0.0.1', 8000)
12-Dec 00:39 127.0.0.1-dir JobId 2758: BeforeJob: Veuillez vous référer au journal d'événement de creoled (/var/log/creoled.log) pour avoir plus d'informations et redémarrer le service avec la commande 'service creoled start'
12-Dec 00:39 127.0.0.1-dir JobId 2758: Error: Runscript: BeforeJob returned non-zero status=1. ERR=Child exited with code 1

Proposition

Fournir un fichier de configuration aux outils de sauvegarde au lieu d’interroger directement creoled.

Demande initiale

Bonjour,

Depuis quelque temps, nous avons des plantages de nos sauvegardes bacula de nos horus 2.4.2.

Extrait :


12-Dec 00:39 127.0.0.1-dir JobId 2758: shell command: run BeforeJob "sudo /usr/share/eole/sbin/baculaconfig.py --lock --daemon=127.0.0.1-dir --jobID=2758 --backup_progress --jobType=cronpost" 
12-Dec 00:39 127.0.0.1-dir JobId 2758: BeforeJob: Erreur au test de montage : Erreur HTTP : socket.error: Can't connect to ('127.0.0.1', 8000)
12-Dec 00:39 127.0.0.1-dir JobId 2758: BeforeJob: Veuillez vous référer au journal d'événement de creoled (/var/log/creoled.log) pour avoir plus d'informations et redémarrer le service avec la commande 'service creoled start'
12-Dec 00:39 127.0.0.1-dir JobId 2758: Error: Runscript: BeforeJob returned non-zero status=1. ERR=Child exited with code 1

Extrait du log /var/log/creoled.log :


2016-12-11 23:30:59,813: cherrypy.access.139847991106192 - 127.0.0.1 - - [11/Dec/2016:23:30:59] "GET /get/creole?variable=container_path_mail HTTP/1.1" 200 29 "" "restkit/3.3.2" 
2016-12-11 23:31:59,080: cherrypy.access.139847991106192 - 127.0.0.1 - - [11/Dec/2016:23:31:59] "GET /get/creole?variable=adresse_ip_gw HTTP/1.1" 200 41 "" "restkit/3.3.2" 
2016-12-11 23:31:59,081: cherrypy.access.139847991106192 - 127.0.0.1 - - [11/Dec/2016:23:31:59] "GET /get/creole?variable=container_ip_fichier HTTP/1.1" 200 38 "" "restkit/3.3.2" 
2016-12-11 23:33:59,182: cherrypy.access.139847991106192 - 127.0.0.1 - - [11/Dec/2016:23:33:59] "GET /get/creole?variable=adresse_ip_gw HTTP/1.1" 200 41 "" "restkit/3.3.2" 
2016-12-11 23:33:59,184: cherrypy.access.139847991106192 - 127.0.0.1 - - [11/Dec/2016:23:33:59] "GET /get/creole?variable=container_ip_fichier HTTP/1.1" 200 38 "" "restkit/3.3.2" 
2016-12-11 23:33:59,280: cherrypy.access.139847991106192 - 127.0.0.1 - - [11/Dec/2016:23:33:59] "GET /get/creole?variable=container_ip_fichier HTTP/1.1" 200 38 "" "restkit/3.3.2" 
2016-12-11 23:33:59,814: cherrypy.access.139847991106192 - 127.0.0.1 - - [11/Dec/2016:23:33:59] "GET /get/creole?variable=container_path_mail HTTP/1.1" 200 29 "" "restkit/3.3.2" 
2016-12-11 23:40:47,555: cherrypy.error -  ENGINE Listening for SIGHUP.
2016-12-11 23:40:47,571: cherrypy.error -  ENGINE Listening for SIGTERM.
2016-12-11 23:40:47,571: cherrypy.error -  ENGINE Listening for SIGUSR1.
2016-12-11 23:40:47,572: cherrypy.error -  ENGINE Listening for SIGINT.
2016-12-11 23:40:47,597: cherrypy.error -  ENGINE Bus STARTING
2016-12-11 23:40:47,597: cherrypy.error -  ENGINE There are [<_MainThread(MainThread, started 139906859923200)>, <ConnectionReaper(Thread-1, started daemon 139906790999808)>] active threads. Daemonizing now may cause strange failures.
2016-12-11 23:40:47,598: cherrypy.error -  ENGINE Forking once.
2016-12-11 23:40:47,599: cherrypy.error -  ENGINE Forking twice.
2016-12-11 23:40:47,599: cherrypy.error -  ENGINE Daemonized to PID: 1524
2016-12-11 23:40:47,599: cherrypy.error -  ENGINE PID 1524 written to '/run/creoled.pid'.
2016-12-11 23:40:47,600: cherrypy.error -  ENGINE Started monitor thread '_TimeoutMonitor'.
2016-12-11 23:40:47,600: cherrypy.error -  ENGINE Start InotifyMonitor thread
2016-12-11 23:40:47,600: cherrypy.error -  ENGINE Started monitor thread 'Autoreloader'.
2016-12-11 23:42:27,969: cherrypy.error -  ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x2580c50>>
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cherrypy/process/wspbus.py", line 197, in publish
    output.append(listener(*args, **kwargs))
  File "/usr/lib/python2.7/dist-packages/cherrypy/_cpserver.py", line 151, in start
    ServerAdapter.start(self)
  File "/usr/lib/python2.7/dist-packages/cherrypy/process/servers.py", line 174, in start
    self.wait()
  File "/usr/lib/python2.7/dist-packages/cherrypy/process/servers.py", line 214, in wait
    wait_for_occupied_port(host, port)
  File "/usr/lib/python2.7/dist-packages/cherrypy/process/servers.py", line 427, in wait_for_occupied_port
    raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 8000 not bound on '127.0.0.1'

2016-12-11 23:42:27,970: cherrypy.error -  ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cherrypy/process/wspbus.py", line 235, in start
    self.publish('start')
  File "/usr/lib/python2.7/dist-packages/cherrypy/process/wspbus.py", line 215, in publish
    raise exc
ChannelFailures: IOError("Port 8000 not bound on '127.0.0.1'",)

2016-12-11 23:42:27,989: cherrypy.error -  ENGINE Bus STOPPING
2016-12-11 23:42:27,989: cherrypy.error -  ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 8000)) already shut down
2016-12-11 23:42:27,989: cherrypy.error -  ENGINE Stop InotifyMonitor thread
2016-12-11 23:42:27,989: cherrypy.error -  ENGINE Stopped thread 'Autoreloader'.
2016-12-11 23:42:27,989: cherrypy.error -  ENGINE Stopped thread '_TimeoutMonitor'.
2016-12-11 23:42:27,989: cherrypy.error -  ENGINE Bus STOPPED
2016-12-11 23:42:27,989: cherrypy.error -  ENGINE Bus EXITING
2016-12-11 23:42:27,989: cherrypy.error -  ENGINE PID file removed: '/run/creoled.pid'.
2016-12-11 23:42:27,990: cherrypy.error -  ENGINE Bus EXITED

Les services ead-server, ead-web et horus_frontend sont également down.

Merci de votre aide.

Cordialement,
Yoni


Subtasks

Tâche #19403: Horus 2.5.2 : Erreur Bareos suite à un plantage de creoledFerméBenjamin Bohard

Tâche #19915: Vérifier ce qu'il en est sur les différentes versions d'EOLEFerméBenjamin Bohard

History

#1 Updated by Gérald Schwartzmann over 3 years ago

  • Assigned To set to Gérald Schwartzmann

Bonjour,

Est-ce que le module a été migré d'une version antérieur ou est-ce une fresh install ?

Cordialement

#2 Updated by Yoni Baude over 3 years ago

Le module est une migration antérieure. Le problème peut dater, au paravent on vérifier le service creoled et on le relancer si besoins via monit.

Cordialement,

#3 Updated by Gérald Schwartzmann over 3 years ago

  • Assigned To deleted (Gérald Schwartzmann)

#4 Updated by Daniel Dehennin about 3 years ago

  • Tracker changed from Demande to Proposition Scénario
  • Project changed from eole-common to eole-bacula
  • Subject changed from Horus 2.4.2 : Erreur Bacula suite à un plantage de creoled to Les sauvegardes Bacula ne doivent pas dépendre de creoled
  • Description updated (diff)

#5 Updated by Scrum Master about 3 years ago

  • Tracker changed from Proposition Scénario to Scénario
  • Release set to EOLE 2.6.1

Faire un template de configuration pour les scripts Bareos.

#6 Updated by Scrum Master about 3 years ago

  • Due date set to 04/14/2017
  • Target version set to sprint 2017 13-15 Equipe MENSR
  • Start date set to 03/27/2017

à vérifier

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

  • Story points set to 2.0

#8 Updated by Joël Cuissinat about 3 years ago

  • Assigned To set to force orange

#9 Updated by Joël Cuissinat about 3 years ago

  • Subject changed from Les sauvegardes Bacula ne doivent pas dépendre de creoled to Les sauvegardes Bacula/Bareos ne doivent pas dépendre de creoled

#11 Updated by Scrum Master about 3 years ago

  • Story points changed from 2.0 to 4.0

#13 Updated by Daniel Dehennin almost 3 years ago

  • Status changed from Nouveau to Terminé (Sprint)

Also available in: Atom PDF