Projet

Général

Profil

Scénario #18341

Mis à jour par Daniel Dehennin il y a plus de 7 ans

h3. Problème

La sauvegarde plante si *@creoled@* est arrêté :
<pre><code>
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
</code></pre>

h3. Proposition

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

h3. Demande initiale

Bonjour,

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

Extrait :
<pre><code>
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
</code></pre>

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

<pre><code>
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

</code></pre>

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

Merci de votre aide.

Cordialement,
Yoni

Retour