# Migration fails with custom theme

**URL:** https://forum.yunohost.org/t/migration-fails-with-custom-theme/14228
**Category:** Support apps
**Tags:** migration, english
**Created:** [January 25, 2021, 9:20am UTC](https://forum.yunohost.org/t/migration-fails-with-custom-theme/14228 "2021-01-25T09:20:17Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![skymonio](https://forum.yunohost.org/user_avatar/forum.yunohost.org/skymonio/32/2992_2.png) [@skymonio](https://forum.yunohost.org/u/skymonio)
#### Post date: [January 25, 2021, 9:20am UTC](https://forum.yunohost.org/t/migration-fails-with-custom-theme/14228/1 "2021-01-25T09:20:18Z")

</div>

### 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](https://yunohost.org/#/theming) with [Nord](https://github.com/eeeple/yunohost-Nord-theme)

### Description

I run multiple instances with different apps but same configuration and same problem with the migration, which I already mentioned [here](https://forum.yunohost.org/t/yunohost-4-1-release-sortie-de-yunohost-4-1/13893/26) and [here](https://forum.yunohost.org/t/500-internal-server-error-apres-after-migration/13898/22).

Here’s the [full log of my last trial](https://paste.yunohost.org/raw/zuhezarame).

The issue seems to come from the theme customization:

```json
  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](https://forum.yunohost.org/t/yunohost-4-1-release-sortie-de-yunohost-4-1/13893/20) 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!

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 25, 2021, 2:52pm UTC](https://forum.yunohost.org/t/migration-fails-with-custom-theme/14228/2 "2021-01-25T14:52:01Z")

</div>

> 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 😕

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 25, 2021, 2:52pm UTC](https://forum.yunohost.org/t/migration-fails-with-custom-theme/14228/3 "2021-01-25T14:52:42Z")

</div>

> [@skymonio](#):
>
> Additional minor issue (most probably unrelated and [already mentioned](https://forum.yunohost.org/t/yunohost-4-1-release-sortie-de-yunohost-4-1/13893/20) 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):

Can you share the output of :

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

```

---

<div class="post-metadata">

### Author: ![skymonio](https://forum.yunohost.org/user_avatar/forum.yunohost.org/skymonio/32/2992_2.png) [@skymonio](https://forum.yunohost.org/u/skymonio)
#### Post date: [January 25, 2021, 4:35pm UTC](https://forum.yunohost.org/t/migration-fails-with-custom-theme/14228/4 "2021-01-25T16:35:22Z")

</div>

🤦‍♂️

I can confirm migration works fine now… 😅 😅

Thanks!

---

<div class="post-metadata">

### Author: ![skymonio](https://forum.yunohost.org/user_avatar/forum.yunohost.org/skymonio/32/2992_2.png) [@skymonio](https://forum.yunohost.org/u/skymonio)
#### Post date: [January 25, 2021, 4:40pm UTC](https://forum.yunohost.org/t/migration-fails-with-custom-theme/14228/5 "2021-01-25T16:40:33Z")

</div>

```auto
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

```

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 25, 2021, 4:45pm UTC](https://forum.yunohost.org/t/migration-fails-with-custom-theme/14228/6 "2021-01-25T16:45:35Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 25, 2021, 4:48pm UTC](https://forum.yunohost.org/t/migration-fails-with-custom-theme/14228/7 "2021-01-25T16:48:40Z")

</div>

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

---

<div class="post-metadata">

### Author: ![skymonio](https://forum.yunohost.org/user_avatar/forum.yunohost.org/skymonio/32/2992_2.png) [@skymonio](https://forum.yunohost.org/u/skymonio)
#### Post date: [January 25, 2021, 4:58pm UTC](https://forum.yunohost.org/t/migration-fails-with-custom-theme/14228/8 "2021-01-25T16:58:07Z")

</div>

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 :

```auto
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 :

```auto
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 !

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [January 25, 2021, 5:01pm UTC](https://forum.yunohost.org/t/migration-fails-with-custom-theme/14228/9 "2021-01-25T17:01:07Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![skymonio](https://forum.yunohost.org/user_avatar/forum.yunohost.org/skymonio/32/2992_2.png) [@skymonio](https://forum.yunohost.org/u/skymonio)
#### Post date: [January 25, 2021, 5:04pm UTC](https://forum.yunohost.org/t/migration-fails-with-custom-theme/14228/10 "2021-01-25T17:04:34Z")

</div>

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 🙂

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [February 9, 2021, 5:04pm UTC](https://forum.yunohost.org/t/migration-fails-with-custom-theme/14228/11 "2021-02-09T17:04:40Z")

</div>

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