Bonjour,
Je veux mettre à jour ma version 18.03. Lors du wazo-upgrade, j’obtiens:
Executing upgrade script /usr/share/xivo-upgrade/pre-stop.d/02_dump_xivo_service_to_file.py…
Variable XIVO_VERSION_INSTALLED must be set
Failed to execute /usr/share/xivo-upgrade/pre-stop.d/02_dump_xivo_service_to_file.py
Please, fix this issue before re-executing wazo-upgrade
Je suis étonné que cette variable ne soit pas trouvée.
Auriez vous une idée?
Merci
Benoit
Salut,
Essaye avec ça :
# wazo-dist phoenix-stretch
# export LANG=C
# wazo-upgrade
Bonjour,
Désolé pour la réponse tardive, mais là je suis confiné, j’ai donc le temps.
J’obtiens:
root@wazo:~# wazo-upgrade
Upgrading wazo-upgrade
Reading package lists…
Building dependency tree…
Reading state information…
xivo-upgrade is already the newest version (19.14~20190925.180051.ce3a5c8.deb9).
0 upgraded, 0 newly installed, 0 to remove and 207 not upgraded.
Switching to pelican-stretch distribution
Reading package lists…
Building dependency tree…
Reading state information…
xivo-dist is already the newest version (19.13~20190912.194304.99cafb1.deb9).
0 upgraded, 0 newly installed, 0 to remove and 207 not upgraded.
installed version : 18.03
proposed update : 19.12
Asterisk will be upgraded from version 15 to 16. You might be impacted if you have:
- custom Asterisk configuration (other than custom dialplan)
- custom application using AMI or ARI
- custom Asterisk modules (e.g. codec_g729a.so)
If you find yourself in one of these cases, you should make sure that
your customizations still work with Asterisk 16. Please refer to
http://documentation.wazo.community/en/stable/upgrade/18.12/asterisk_16.html
for more information.
Would you like to upgrade your system (all services will be restarted) [Y/n]? Y
Executing upgrade script /usr/share/xivo-upgrade/pre-stop.d/01_dump_xivo_user_to_file.py…
saving users to /var/lib/xivo-upgrade/xivo_user_dump.json … done
Executing upgrade script /usr/share/xivo-upgrade/pre-stop.d/02_dump_xivo_service_to_file.py…
execute the following script before upgrading your wazo:
/usr/share/xivo-upgrade/post-start.d/24_load_wazo_user_external_api_from_file.py -f
Failed to execute /usr/share/xivo-upgrade/pre-stop.d/02_dump_xivo_service_to_file.py
Please, fix this issue before re-executing wazo-upgrade
root@wazo:~#
Merci
Benoit
Bonjour,
En cette periode je suis justement sur la migration de mon ancienne versio 18.03 et je rencontre la meme erreur que toi pour résoudre ce problème tu dois juste supprimer le xivo_user_dump.json (Source: forum Wazo eng post de RedQuarck)
Par la commande :
rm /var/lib/xivo-upgrade/xivo_user_dump.json
++