Projet

Général

Profil

Anomalie #33029

Le test Jenkins signale des erreurs dans le script postservice 62-etherhome

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

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
Début:
25/08/2021
Echéance:
% réalisé:

100%

Distribution:

Description

https://dev-eole.ac-dijon.fr/jenkins/job/2.7.2/job/test-importation-envole-2.7.2-amd64/457/parsed_console/

            run-parts: executing /usr/share/eole/postservice/62-etherhome reconfigure

            cat: /usr/share/eole/nodejs/etherpad/APIKEY.txt: Aucun fichier ou dossier de ce type
            run-parts: executing /usr/share/eole/postservice/90-nineboard reconfigure

            /var/www/html/nineboard/.env.local: ligne 22: de : commande introuvable
            COMPOSER = Install
            PHP Fatal error:  Uncaught Symfony\Component\Dotenv\Exception\FormatException: A value containing spaces must be surrounded by quotes in "/var/www/html/nineboard/.env.local" at line 22.
            ...mot de pas
            se inconnu\nAPP_USEETHERCALC=tr...
                                  ^ line 22 offset 493 in /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php:558
            Stack trace:
            #0 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(379): Symfony\Component\Dotenv\Dotenv->createFormatException('A value contain...')
            #1 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(255): Symfony\Component\Dotenv\Dotenv->lexValue()
            #2 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(568): Symfony\Component\Dotenv\Dotenv->parse('# SYMFONY\nAPP_E...', '/var/www/html/n...')
            #3 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(92): Symfony\Component\Dotenv\Dotenv->doLoad(false, Array)
            #4 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(124): Symfony\Component\Dotenv\Dotenv->load('/var/www/html/n...')
            #5 /var/www/html/nineboard/config/bootst in /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php on line 558
            PHP Fatal error:  Uncaught Symfony\Component\Dotenv\Exception\FormatException: A value containing spaces must be surrounded by quotes in "/var/www/html/nineboard/.env.local" at line 22.
            ...mot de passe inconnu\nAPP_USEETHERCALC=tr...
                                  ^ line 22 offset 493 in /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php:558
            Stack trace:
            #0 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(379): Symfony\Component\Dotenv\Dotenv->createFormatException('A value contain...')
            #1 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(255): Symfony\Component\Dotenv\Dotenv->lexValue()
            #2 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(568): Symfony\Component\Dotenv\Dotenv->parse('# SYMFONY\nAPP_E...', '/var/www/html/n...')
            #3 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(92): Symfony\Component\Dotenv\Dotenv->doLoad(false, Array)
            #4 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(124): Symfony\Component\Dotenv\Dotenv->load('/var/www/html/n...')
            #5 /var/www/html/nineboard/config/bootst in /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php on line 558
            PHP Fatal error:  Uncaught Symfony\Component\Dotenv\Exception\FormatException: A value containing spaces must be surrounded by quotes in "/var/www/html/nineboard/.env.local" at line 22.
            ...mot de passe inconnu\nAPP_USEETHERCALC=tr...
                                  ^ line 22 offset 493 in /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php:558
            Stack trace:
            #0 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(379): Symfony\Component\Dotenv\Dotenv->createFormatException('A value contain...')
            #1 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(255): Symfony\Component\Dotenv\Dotenv->lexValue()
            #2 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(568): Symfony\Component\Dotenv\Dotenv->parse('# SYMFONY\nAPP_E...', '/var/www/html/n...')
            #3 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(92): Symfony\Component\Dotenv\Dotenv->doLoad(false, Array)
            #4 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(124): Symfony\Component\Dotenv\Dotenv->load('/var/www/html/n...')
            #5 /var/www/html/nineboard/config/bootst in /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php on line 558

            /var/www/html/nineboard/.env.local: ligne 22: de : commande introuvable
            WEBSOCKET = STOP
            WEBSOCKET = START
            PERMISSIONS
            PHP Fatal error:  Uncaught Symfony\Component\Dotenv\Exception\FormatException: A value containing spaces must be surrounded by quotes in "/var/www/html/nineboard/.env.local" at line 22.
            ...mot de passe inconnu\nAPP_USEETHERCALC=tr...
                                  ^ line 22 offset 493 in /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php:558
            Stack trace:
            #0 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(379): Symfony\Component\Dotenv\Dotenv->createFormatException('A value contain...')
            #1 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(255): Symfony\Component\Dotenv\Dotenv->lexValue()
            #2 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(568): Symfony\Component\Dotenv\Dotenv->parse('# SYMFONY\nAPP_E...', '/var/www/html/n...')
            #3 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(92): Symfony\Component\Dotenv\Dotenv->doLoad(false, Array)
            #4 /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php(124): Symfony\Component\Dotenv\Dotenv->load('/var/www/html/n...')
            #5 /var/www/html/nineboard/config/bootst in /var/www/html/nineboard/vendor/symfony/dotenv/Dotenv.php on line 558

Révisions associées

Révision e601d625 (diff)
Ajouté par Arnaud FORNEROT il y a plus de 2 ans

generation de l'apikey en pretemplate (ref #33029)

Révision 1091afd7 (diff)
Ajouté par Arnaud FORNEROT il y a plus de 2 ans

generation de l'apikey en pretemplate (ref #33029)

Révision 15609c60 (diff)
Ajouté par Arnaud FORNEROT il y a plus de 2 ans

generation de l'apikey en pretemplate (ref #33029)

Révision ea7c9e5c (diff)
Ajouté par Arnaud FORNEROT il y a plus de 2 ans

generation de l'apikey en pretemplate (ref #33029)

Révision d536162f (diff)
Ajouté par Arnaud FORNEROT il y a plus de 2 ans

generation de l'apikey en pretemplate (ref #33029)

Révision 1ceac63c (diff)
Ajouté par Arnaud FORNEROT il y a plus de 2 ans

generation de l'apikey en pretemplate (ref #33029)

Révision 0fff43bc (diff)
Ajouté par Arnaud FORNEROT il y a plus de 2 ans

generation de l'apikey en pretemplate (ref #33029)

Historique

#2 Mis à jour par Arnaud FORNEROT il y a plus de 2 ans

  • Tracker changé de Demande à Anomalie
  • Assigné à mis à Arnaud FORNEROT

#3 Mis à jour par Arnaud FORNEROT il y a plus de 2 ans

  • Statut changé de Nouveau à Pas un bug

Le problème vient du fait qu'etherpad n'a pas son fichier /usr/share/eole/nodejs/etherpad/APIKEY.txt
Ce fichier se génère lors du posttemplate d'etherpad donc trop tard.
Et que nineboard a besoin de son contenue en pretemplate
Ce qui fait aussi que l'erreur ne se voit pas sur un second reconfigure
Donc je vais ajouter un pretemplate sur etherpad qui va générer ce fichier s'il n'existe pas

Après
J'ai l'impression qu'il y a un problème à la construction de l'image Nebula.

En effet
- le service etherpad est en erreur à la fin de son instanciation
- si je relance le script d'installation des dépendances npm qui se font en posttemplate et que je relance le service = etherpad est ok
- comme si au moment de la construction de l'image nebula les npm install n’aboutissaient pas (ou que le fichier /usr/share/eole/nodejs/etherpad/.depsChecked était présent alors qu'il ne devrait pas)

Alors que si
- je purge tt les composant nodejs (via ma commande e-purgenodejs)
- je réinstall eole-etherpad
- reconfigure
- le service etherpad est bien up
- le fichier /usr/share/eole/nodejs/etherpad/APIKEY.txt est bien présent

D'ailleurs j'ai une autre erreur sur le postservice de moodle
Erreur qui me ferait dire qu'à la construction de l'image il y un truc qui récupère les sources avant le apt-get install des différents paquets envole

#4 Mis à jour par Arnaud FORNEROT il y a plus de 2 ans

Le problème sur moodle n'a rien à voir finalement
Pb moodle corrigé via le paquet de dev eole-moodle-update-3.6.10+3-9
Je tente d'installation des plugins s'il n'y pas présence d'un répertoire de plugin
Sauf que le nom du répertoire à changer, et du coût le reconfigure posait des questions si l'on souhaitait ou non écraser les fichiers du plugins en question

#5 Mis à jour par Arnaud FORNEROT il y a plus de 2 ans

  • Statut changé de Pas un bug à En cours

#6 Mis à jour par Arnaud FORNEROT il y a plus de 2 ans

  • Projet changé de etherhome à etherpad
  • Version cible mis à Envole 6.19

fichier apikey généré en pretemplate car nineboard et etherhome en ont besoin lors du templeting

#7 Mis à jour par Arnaud FORNEROT il y a plus de 2 ans

  • Statut changé de En cours à Résolu

#9 Mis à jour par Joël Cuissinat il y a plus de 2 ans

  • % réalisé changé de 0 à 100

#10 Mis à jour par Joël Cuissinat il y a plus de 2 ans

  • Statut changé de Résolu à Fermé

Formats disponibles : Atom PDF