Projet

Général

Profil

Tâche #28781

Scénario #28683: Fournir la procédure de migration Upgrade-Auto d'un ScribeAD 2.6.2 vers Scribe 2.7.1

ejabberd ne démarre pas après upgrade

Ajouté par Emmanuel GARETTE il y a presque 5 ans. Mis à jour il y a plus de 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
22/07/2019
Echéance:
% réalisé:

100%

Restant à faire (heures):
0.0

Description

Le message d'erreur est :

2019-07-22 12:08:49.425 [critical] <0.186.0>@ejabberd_mnesia:init:76 Node name mismatch: I'm [ejabberd@localhost], the database is owned by [ejabberd@scribe]
2019-07-22 12:08:49.425 [critical] <0.186.0>@ejabberd_mnesia:init:78 Either set ERLANG_NODE in ejabberdctl.cfg or change node name in Mnesia

Si on change dans la conf c'est ok. Mais d'où vient ce scribe ? le nom d'hôte à l'installation ou est-ce le nom de la machine ?

Révisions associées

Révision 75828177 (diff)
Ajouté par Emmanuel GARETTE il y a presque 5 ans

script pour gérer la migration depuis 2.6.2 (ref #28781)

Révision 52cd73a8 (diff)
Ajouté par Benjamin Bohard il y a presque 5 ans

Create lock to trigger ejabberd upgrade actions.

Ref #28781

Révision 9f243005 (diff)
Ajouté par Benjamin Bohard il y a presque 5 ans

Set post_upgrade/01-ejabberd-upgrade script executable.

Ref #28781

Révision 7a5de9f1 (diff)
Ajouté par Benjamin Bohard il y a presque 5 ans

Do not print trace execution of posttemplate/00-ejabberd_migration.

Ref #28781

Révision 75bcf289 (diff)
Ajouté par Benjamin Bohard il y a plus de 4 ans

Attempt to better control ejabberd service state.

Ref #28781

Révision b7d25563 (diff)
Ajouté par Benjamin Bohard il y a plus de 4 ans

Clean-up ejabberd service management.

Ref #28781

Révision c48a8218 (diff)
Ajouté par Benjamin Bohard il y a plus de 4 ans

Wromg temporary folder removed.

Ref #28781

Historique

#1 Mis à jour par Emmanuel GARETTE il y a presque 5 ans

Voir aussi :

juil. 24 10:14:59 scribe ejabberd[4805]: 10:14:59.696 [warning] Module mod_vcard_ldap is deprecated, use mod_vcard with 'db_type: ldap' instead
juil. 24 10:15:00 scribe ejabberd[4805]: 10:15:00.283 [warning] option 's2s_certfile' is deprecated, use 'certfiles' instead

#2 Mis à jour par Emmanuel GARETTE il y a presque 5 ans

Avec ce script lancé après templatisation de son fichier de configuration :

set -e
set -x
DIR=/tmp/ejabberd_tmp
OLDFILE=$DIR/old
NEWFILE=$DIR/new
OLDNODE=ejabberd@$(hostname)
NEWNODE=ejabberd@localhost
mkdir $DIR
chown ejabberd $DIR
systemctl stop ejabberd.service
ejabberdctl --node $OLDNODE start
sleep 10
su - ejabberd -c "ejabberdctl --node $OLDNODE backup $OLDFILE" 
ejabberdctl --node $OLDNODE stop
mkdir /var/lib/ejabberd/oldfiles
mv /var/lib/ejabberd/*.* /var/lib/ejabberd/oldfiles/
systemctl start ejabberd.service
sleep 10
ejabberdctl mnesia_change_nodename $OLDNODE $NEWNODE $OLDFILE $NEWFILE
ejabberdctl install_fallback $NEWFILE
ejabberdctl --node $NEWNODE stop

Diagnose est en vert :

*** Serveur XMPP (jabber)
.                    Ejabberd => Ok

#3 Mis à jour par Benjamin Bohard il y a presque 5 ans

  • Statut changé de Nouveau à En cours

#4 Mis à jour par Benjamin Bohard il y a presque 5 ans

  • Assigné à mis à Emmanuel GARETTE

#5 Mis à jour par Emmanuel GARETTE il y a presque 5 ans

  • Statut changé de En cours à Résolu
  • % réalisé changé de 0 à 100

#6 Mis à jour par Joël Cuissinat il y a plus de 4 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) mis à 0.0

OK

Formats disponibles : Atom PDF