Migration fails with custom theme

YunoHost server

Hardware: kvm amd64 / OpenStack Foundation OpenStack Nova
YunoHost version: 4.1.6 (stable)

  • yunohost version : 4.1.6 (stable)
  • yunohost-admin version : 4.1.4 (stable)
  • moulinette version : 4.1.4 (stable)
  • ssowat version : 4.1.3 (s

I have access to my server : Through SSH and through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes, only one: custom theme following this how-to with Nord


I run multiple instances with different apps but same configuration and same problem with the migration, which I already mentioned here and here.

Here’s the full log of my last trial.

The issue seems to come from the theme customization:

  GNU nano 3.2            /etc/ssowat/conf.json.persistent                      

        "theme" : "nord"

Problem is that if I remove the sole line or everything inside the file or the file itself, I get: ERROR - La migration 0019_extend_permissions_features a échoué avec l’exception argument of type 'NoneType' is not iterable : annulation... and 500 Internal Server Error on all apps including the webadmin.

What can I do?

Additional minor issue (most probably unrelated and already mentioned by @pascalv) after the update to 4.1 the diagnosis has a new warning (in french stating that apt sources are now set on backports):

[WARNING] Il semble qu'apt (le gestionnaire de paquets) soit configuré pour utiliser le dépôt des rétroportages (backports). A moins que vous ne sachiez vraiment ce que vous faites, nous vous déconseillons fortement d'installer des paquets provenant des rétroportages, car cela risque de créer des instabilités ou des conflits sur votre système.

Thanks for you help!

while scanning for the next token
found character ‘\t’ that cannot start any token

You have a tabulation (instead of spaces) in your /etc/ssowat/conf.json.persistent file :confused:

Can you share the output of :

grep -nr backport /etc/apt/sources.list*


I can confirm migration works fine now… :sweat_smile: :sweat_smile:


grep -nr backport /etc/apt/sources.list*
/etc/apt/sources.list:22:## Uncomment the following two lines to add software from the 'backports'
/etc/apt/sources.list:28:#deb http://deb.debian.org/debian buster-backports main
/etc/apt/sources.list:29:#deb-src http://deb.debian.org/debian buster-backports main

Hmokay so if the lines are commented that’s in fact a bug / false-negative inside the yunohost code … it shouldnt complain about it … Will have a look to fix this

Mouarf juste pour être sur, c’est pas genre toi qui viens de rajouter le commentaire par hasard …?

Ahah non non ! C’est du copié collé !

J’ai revérifié pour être sur :

1 - Le diagnostic montre bien le warning

2 - La commande :

admin@a2:~$ grep -nr backport /etc/apt/sources.list*
/etc/apt/sources.list:22:## Uncomment the following two lines to add software from the 'backports'
/etc/apt/sources.list:28:deb http://deb.debian.org/debian buster-backports main
/etc/apt/sources.list:29:deb-src http://deb.debian.org/debian buster-backports main

3 - Mais quand je regarde les lignes ne sont pas commentées dans :

sudo nano /etc/apt/sources.list

## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.debian.$

# See http://www.debian.org/releases/stable/i386/release-notes/ch-upgrading.ht$
# for how to upgrade to newer versions of the distribution.
deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main

## Major bug fix updates produced after the final release of the
## distribution.
deb http://security.debian.org/ buster/updates main
deb-src http://security.debian.org/ buster/updates main
deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
deb http://deb.debian.org/debian buster-backports main
deb-src http://deb.debian.org/debian buster-backports main

Et je n’ai jamais édité ce fichier !

Hmokay bon pas sur de comprendre pourquoi les lignes étaient commentés dans ton message précédent …

Bref, moi j’ajouterais des # devant les lignes correspondants aux backports dans ce fichier, car on a eu de trop mauvaises histoires avec les backports, donc on recommence de juste pas les avoir dans les conf apt.

Ok désolé je viens de comprendre, j’ai copié collé mais j’avais fait le test sur 2 instances… je me suis emmêlé les pinceaux et j’ai pas collé le bon !..

J’ai commenté les lignes ! Pas trop sur de comprendre mais merci :slight_smile:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.