Project

General

Profile

Tâche #32474

Scénario #32104: Traitement express MEN (17-19)

Amonecole 2.8.1 : l’agent zéphir plante dès le démarrage

Added by Daniel Dehennin almost 3 years ago. Updated almost 3 years ago.

Status:
Ne sera pas résolu
Priority:
Normal
Assigned To:
-
Start date:
05/10/2021
Due date:
% Done:

0%

Remaining (hours):

Description

Problème

L’agent Zéphir est en erreur sur Amonecole 2.8.1 :

root@amonecole:~# systemctl status z_stats.service 
● z_stats.service - Agent zephir
     Loaded: loaded (/lib/systemd/system/z_stats.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2021-05-10 09:18:16 CEST; 43s ago
    Process: 306191 ExecStart=/usr/bin/twistd3 --nodaemon --no_save --pidfile /run/z_stats.pid zephiragents --tmp=data --data=stats --archive=/tmp --static=static --actions=actions (co>
   Main PID: 306191 (code=exited, status=1/FAILURE)

mai 10 09:18:16 amonecole systemd[1]: z_stats.service: Scheduled restart job, restart counter is at 5.
mai 10 09:18:16 amonecole systemd[1]: Stopped Agent zephir.
mai 10 09:18:16 amonecole systemd[1]: z_stats.service: Start request repeated too quickly.
mai 10 09:18:16 amonecole systemd[1]: z_stats.service: Failed with result 'exit-code'.
mai 10 09:18:16 amonecole systemd[1]: Failed to start Agent zephir.

Il y a un traceback lors du démarrage de l’agent Zéphir :

2021-05-10T09:18:12.397683+02:00 amonecole.etb3.lan zephiragents[306155]: Traceback (most recent call last):
2021-05-10T09:18:12.397780+02:00 amonecole.etb3.lan zephiragents[306155]:   File "/usr/bin/twistd3", line 11, in <module>
2021-05-10T09:18:12.397812+02:00 amonecole.etb3.lan zephiragents[306155]:     load_entry_point('Twisted==18.9.0', 'console_scripts', 'twistd')()
2021-05-10T09:18:12.397851+02:00 amonecole.etb3.lan zephiragents[306155]:   File "/usr/lib/python3/dist-packages/twisted/scripts/twistd.py", line 31, in run
2021-05-10T09:18:12.397882+02:00 amonecole.etb3.lan zephiragents[306155]:     app.run(runApp, ServerOptions)
2021-05-10T09:18:12.397912+02:00 amonecole.etb3.lan zephiragents[306155]:   File "/usr/lib/python3/dist-packages/twisted/application/app.py", line 674, in run
2021-05-10T09:18:12.397947+02:00 amonecole.etb3.lan zephiragents[306155]:     runApp(config)
2021-05-10T09:18:12.397985+02:00 amonecole.etb3.lan zephiragents[306155]:   File "/usr/lib/python3/dist-packages/twisted/scripts/twistd.py", line 25, in runApp
2021-05-10T09:18:12.398014+02:00 amonecole.etb3.lan zephiragents[306155]:     runner.run()
2021-05-10T09:18:12.398050+02:00 amonecole.etb3.lan zephiragents[306155]:   File "/usr/lib/python3/dist-packages/twisted/application/app.py", line 381, in run
2021-05-10T09:18:12.398079+02:00 amonecole.etb3.lan zephiragents[306155]:     self.application = self.createOrGetApplication()
2021-05-10T09:18:12.398108+02:00 amonecole.etb3.lan zephiragents[306155]:   File "/usr/lib/python3/dist-packages/twisted/application/app.py", line 448, in createOrGetApplication
2021-05-10T09:18:12.398138+02:00 amonecole.etb3.lan zephiragents[306155]:     ser = plg.makeService(self.config.subOptions)
2021-05-10T09:18:12.398171+02:00 amonecole.etb3.lan zephiragents[306155]:   File "/usr/lib/python3/dist-packages/zephir/monitor/agentmanager/zephir_tap.py", line 49, in makeService
2021-05-10T09:18:12.398206+02:00 amonecole.etb3.lan zephiragents[306155]:     return ZephirService(config,serve_static=True).with_updater_and_publisher()
2021-05-10T09:18:12.398243+02:00 amonecole.etb3.lan zephiragents[306155]:   File "/usr/lib/python3/dist-packages/zephir/monitor/agentmanager/zephirservice.py", line 86, in with_updater_and_publisher
2021-05-10T09:18:12.398272+02:00 amonecole.etb3.lan zephiragents[306155]:     self.updater = UpdaterService(self.config, self, self.root_resource)
2021-05-10T09:18:12.398306+02:00 amonecole.etb3.lan zephiragents[306155]:   File "/usr/lib/python3/dist-packages/zephir/monitor/agentmanager/zephirservice.py", line 111, in __init__
2021-05-10T09:18:12.398335+02:00 amonecole.etb3.lan zephiragents[306155]:     self.agents = self.load_agents()
2021-05-10T09:18:12.398364+02:00 amonecole.etb3.lan zephiragents[306155]:   File "/usr/lib/python3/dist-packages/zephir/monitor/agentmanager/zephirservice.py", line 164, in load_agents
2021-05-10T09:18:12.398393+02:00 amonecole.etb3.lan zephiragents[306155]:     assert a.name not in loaded_agents
2021-05-10T09:18:12.398421+02:00 amonecole.etb3.lan zephiragents[306155]: AssertionError

Solutions

Critères d’acceptation

  1. Démarrer un aca.zephir-2.8.1rc1-AvecConf
  2. Démarrer un etb3.amonecole-2.8.1rc1-instance-default
  3. Exécuter la commande diagnose ⮕ l’agent Zéphir (z_stats.service) ne doit pas être en erreur
  4. Enregistrer le serveur Amonecole sur Zéphir
  5. Exécuter la commande diagnose ⮕ l’agent Zéphir (z_stats.service) ne doit pas être en erreur

History

#1 Updated by Daniel Dehennin almost 3 years ago

  • Status changed from Nouveau to Ne sera pas résolu

Je ne reproduis pas avec un Amonecole 2.8.1 à jour.

Also available in: Atom PDF