Project

General

Profile

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

Added by Emmanuel GARETTE about 2 months ago. Updated 28 days ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
07/22/2019
Due date:
% Done:

100%

Remaining (hours):
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 ?

Associated revisions

Revision 75828177 (diff)
Added by Emmanuel GARETTE about 2 months ago

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

Revision 52cd73a8 (diff)
Added by Benjamin Bohard about 2 months ago

Create lock to trigger ejabberd upgrade actions.

Ref #28781

Revision 9f243005 (diff)
Added by Benjamin Bohard about 2 months ago

Set post_upgrade/01-ejabberd-upgrade script executable.

Ref #28781

Revision 7a5de9f1 (diff)
Added by Benjamin Bohard about 2 months ago

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

Ref #28781

Revision 75bcf289 (diff)
Added by Benjamin Bohard about 2 months ago

Attempt to better control ejabberd service state.

Ref #28781

Revision b7d25563 (diff)
Added by Benjamin Bohard about 2 months ago

Clean-up ejabberd service management.

Ref #28781

Revision c48a8218 (diff)
Added by Benjamin Bohard about 2 months ago

Wromg temporary folder removed.

Ref #28781

History

#1 Updated by Emmanuel GARETTE about 2 months ago

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 Updated by Emmanuel GARETTE about 2 months ago

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 Updated by Benjamin Bohard about 2 months ago

  • Status changed from Nouveau to En cours

#4 Updated by Benjamin Bohard about 2 months ago

  • Assigned To set to Emmanuel GARETTE

#5 Updated by Emmanuel GARETTE about 2 months ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#6 Updated by Joël Cuissinat 28 days ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

OK

Also available in: Atom PDF