# Difficulty migrating my instance to an SSD

**URL:** <https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583>\
**Category:** Configuration\
**Created:** [October 12, 2022, 1:34pm UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583 "2022-10-12T13:34:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isage](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/isage/32/13637_2.png) [@Isage](https://community.gladysassistant.com/u/Isage)\
**Post date:** [October 12, 2022, 1:34pm UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/1 "2022-10-12T13:34:19Z")

</div>

Hello

I’m in trouble.

I couldn’t migrate Gladys Plus to a USB SSD (same hardware as @PierreGilles in his tutorial)

I’m stuck on the web page «&nbsp;We are configuring your Gladys Assistant installation…&nbsp;»

I put back my Gladys Plus SD card that had been working fine, but my id and password were no longer recognized.

I formatted my SD card and followed the tutorial… I managed to restore a backup but:

- I found an empty Z2M interface (my devices had disappeared)
- I recovered my Gladys interface, the blocks in my dashboards were present, but none of them worked.

I re-paired my devices in Z2M. They work in that interface, but not in Gladys!

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/c/c96e52215561671aef2fb0ad1b4456034d9da692.png)

In «&nbsp;Zigbee Discovery&nbsp;» and «&nbsp;Devices&nbsp;» I tried to clean up to remove duplicates: it doesn’t work; I get the message «&nbsp;An error occurred while saving&nbsp;»  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/a/a7add0ec53d25cc9e7beeb354ff37cfac51b0618.png)

I also tried to save the devices I had just added: same message: «&nbsp;An error occurred while saving&nbsp;»

To be sure, to check if I was properly connected to the server, I attempted a backup, and nothing happens — it stays at 0%

Can you help me recover my Gladys Plus instance on microSD or, better, on a USB SSD?

Thanks

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [October 13, 2022, 4:26am UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/2 "2022-10-13T04:26:04Z")

</div>

Hi @Isage !

> [@Isage](#):
>
> I formatted my SD card and followed the tutorial… I managed to restore a backup but:
> 
> - I got a blank Z2M interface (my devices had disappeared)
> - I got my Gladys interface, the blocks in my dashboards were present, but none of them were working.

This part is «&nbsp;normal&nbsp;», the Zigbee2mqtt integration doesn’t yet handle restoring to another instance, but it’s a development in progress 🙂

If you want to follow the development, it’s here:

> [@Sauvegarde de la db de zigbee2mqtt](https://community.gladysassistant.com/t/sauvegarde-de-la-db-de-zigbee2mqtt/7237/19?u=pierre-gilles):
>
> En théorie : le container z2m n’existe pas si aucune information n’est stockée en DB : création du container avec des valeurs générées par l’image, puis lecture de ces valeurs pour sauvegarde en DB si les valeurs sont en DB : création du container avec les valeurs stockées si le container z2m existe sauvegarde en DB (override si les variables existent déjà) La PR est pour l’instant uniquement sur mon espace perso j’en ai profité pour modifier quelques lourdeurs dans les tests, et que…

In practice, currently after a restore you have to redo the entire Zigbee2mqtt configuration, because the Zigbee2mqtt security key does not exist on the new instance.

I would recommend deleting your Zigbee devices in Gladys and recreating them.

I know it’s not pleasant to do, but as long as the Zigbee2mqtt integration doesn’t handle it we have no choice; it doesn’t really have anything to do with Gladys Plus 🙂

---

<div class="post-metadata">

**Author:** ![Isage](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/isage/32/13637_2.png) [@Isage](https://community.gladysassistant.com/u/Isage)\
**Post date:** [October 13, 2022, 11:29am UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/3 "2022-10-13T11:29:45Z")

</div>

Hi @PierreGilles  
While logged into  
 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/optimized/2X/8/83664d1a52f0d92156453309ab494a130955d088_2_690x54.png)

The problem is that I can’t delete my devices. I click on «&nbsp;Delete&nbsp;», it spins, and my device reappears.

Just in case, I removed the devices that I had re-added in the Zigbee2MQTT interface.

![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/8/84d626b642cc3cb04ea3276431a1a6608158d2e9.png)

I then returned to Gladys Plus and this is the view that appeared!?

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/b/b3a6f8bdcfe181c03cc879674f3dfb05bf22602e.png)

I don’t understand anything anymore. I’ve been struggling for fifteen days!

Isn’t there a problem accessing the Gladys server, which could perhaps explain why I get stuck on the web page «&nbsp;We are configuring your Gladys Assistant installation…&nbsp;» when I try to migrate to an SSD?

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [October 13, 2022, 11:35am UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/4 "2022-10-13T11:35:40Z")

</div>

As Pierre-Gilles mentioned several times, that’s normal.  
When deleting devices, Gladys removes all states from the database and this can be time-consuming and blocking.  
You have to wait and be patient.

Pierre-Gillles made changes so that it no longer blocks.

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [October 13, 2022, 1:41pm UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/5 "2022-10-13T13:41:52Z")

</div>

Are you stuck when you see this page?

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/114a228db7850e1a9fc34affb921d12ab6a12c2d.png)

How long did you wait? Because it depends on your internet connection.  
Are you sure you connected your Raspberry Pi to the internet?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [October 14, 2022, 3:13am UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/6 "2022-10-14T03:13:43Z")

</div>

> [@Isage](#):
>
> Is there not an access problem to the Gladys server, which might perhaps explain why I get stuck on the web page «&nbsp;We are configuring your Gladys Assistant installation…&nbsp;» when I try to migrate to an SSD?

I confirm what @Tlse-vins said, this is a current limitation of Gladys. When you delete a device, Gladys must delete all the states of that device.

However, if you have many states (probably your case), and your disk is not very fast (as is the case with a micro-SD), this deletion can be long, and is currently blocking, which makes Gladys unavailable during the deletion.

This is a real problem that I started to fix in Gladys Assistant v4.10.2 by improving the deletion of states, but only for the «&nbsp;Yes, keep states&nbsp;» button, not yet for the «&nbsp;Delete&nbsp;» button of a device. (See =\> [Gladys Assistant v4.10.2 est disponible avec des corrections de performances et un bouton nettoyage de la base!](https://community.gladysassistant.com/t/gladys-assistant-v4-10-2-est-disponible-avec-des-corrections-de-performances-et-un-bouton-nettoyage-de-la-base/7555?u=pierre-gilles) )

When you delete a device, in your case it’s better to wait, and it can be long on slow disks…

Sorry for the bad experience you’re having, you are unfortunately hitting several «&nbsp;known&nbsp;» limitations of Gladys in a row, I can imagine your frustration!

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [October 14, 2022, 4:33am UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/7 "2022-10-14T04:33:04Z")

</div>

For your information @Isage, I worked all morning on the non-blocking deletion of states to avoid this kind of situation in the future where the user doesn’t really understand what’s happening 🙂

In the interface, instead of blocking Gladys, the user will see this:

 ![Screenshot 2022-10-14 at 12.04.27](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/7/71f3b2bb41bc2cb5d02f3eb8c179e5ff29c62105.jpeg)

---

<div class="post-metadata">

**Author:** ![bjm](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/bjm/32/1753_2.png) [@bjm](https://community.gladysassistant.com/u/bjm)\
**Post date:** [October 15, 2022, 5:12pm UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/8 "2022-10-15T17:12:56Z")

</div>

@Isage If your Gladys SD card is still functional

> [@Nouvelle vidéo YouTube: Installer Gladys sur Raspberry Pi avec un disque externe SSD (débutant)](https://community.gladysassistant.com/t/nouvelle-video-youtube-installer-gladys-sur-raspberry-pi-avec-un-disque-externe-ssd-debutant/6829/27?u=pierre-gilles):
>
> Retour d’expérience de migration vers SSD Gladys sur Raspberry pi 3B Ordinateur Personnel sous Linux SSD [Disque Dur 2,5" SSD SATA III Verbatim Vi550](https://www.kubii.fr/support-de-stockage/3058-disque-dur-ssd-verbatim-vi550-3272496311510.html?search_query=SSD&results=21) Boîtier pour Raspberry pi 3 [Amazon.fr](https://www.amazon.fr/gp/product/B07LF3Q6X3/ref=ppx_yo_dt_b_asin_title_o01_s00?tag=gladproj-21) Carte d’extension de Stockage sur Disque Dur [Amazon.fr](https://www.amazon.fr/gp/product/B07L9TQYM5/ref=ppx_yo_dt_b_asin_title_o01_s00?tag=gladproj-21) Alimentation chargeur 5V 4A [Alimentation chargeur 5V, 4A embout 5.5x2.1mm (adaptateur secteur)](https://mafianumerique.com/alimentation-chargeur-5v-4a-embout-5-5-2-1mm-transformateur-adaptateur-secteur.html) 1) Créer une image disk de la carte SD de Gladys Débrancher votre Raspberry. Retirer la carte SD et la mettre dans votre ordinateur personnel. Lance…

---

<div class="post-metadata">

**Author:** ![Isage](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/isage/32/13637_2.png) [@Isage](https://community.gladysassistant.com/u/Isage)\
**Post date:** [October 18, 2022, 1:59pm UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/9 "2022-10-18T13:59:44Z")

</div>

I started from scratch on my reformatted MicroSD card. Everything works, I even took the opportunity to integrate one of my VR Schneider modules; it works!  
However, Alexa

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [October 18, 2022, 2:37pm UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/10 "2022-10-18T14:37:38Z")

</div>

If you have a Raspberry Pi 4 you can follow this tutorial to boot from USB

> **[Comment configurer le boot USB sur Raspberry Pi 4: Méthode simple et officielle](https://www.domo-blog.fr/comment-configurer-boot-usb-raspberry-pi-4-officiel/)**
>
> Démarer le système du Raspberry Pi 4 sur un disque SSD manquait cruellement depuis la sortie du Rpi4. En mai 2020, la fondation Raspberry annonçait la

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [October 19, 2022, 3:20am UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/11 "2022-10-19T03:20:30Z")

</div>

> [@Isage](#):
>
> Schneider VR modules; it works!  
> However, Alexa doesn’t see this new device, is that normal?

Currently the Alexa integration only supports the following devices:

 ![Screenshot 2022-10-19 at 10.19.35](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/4/4d3b49f7ebdac45a4e88aa17de8a6469f2daac92.png)

(The docs: [Commencer avec Gladys | Gladys Assistant](https://gladysassistant.com/fr/docs)

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [October 19, 2022, 4:55am UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/12 "2022-10-19T04:55:47Z")

</div>

It’s a roller shutter module, so cover in Gladys.

---

<div class="post-metadata">

**Author:** ![Isage](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/isage/32/13637_2.png) [@Isage](https://community.gladysassistant.com/u/Isage)\
**Post date:** [October 19, 2022, 9:30am UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/13 "2022-10-19T09:30:43Z")

</div>

I want to create a scene so that my shutter closes every day at 10:00 PM, for example.

For the trigger =\> ok

For the «

---

<div class="post-metadata">

**Author:** ![Isage](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/isage/32/13637_2.png) [@Isage](https://community.gladysassistant.com/u/Isage)\
**Post date:** [October 19, 2022, 9:34am UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/14 "2022-10-19T09:34:18Z")

</div>

My Schneider roller shutter module model

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/15abc00caa46c2d4e3c24abea27b63db9b721b22.png)

# Schneider Electric CCT5015-0001

| | |
| --- | --- |
| Model | CCT5015-0001 |
| Vendor | Schneider Electric |
| Description | Roller shutter module |
| Exposes | cover (state, position), lift\_duration, linkquality |
| Image | |

## [#](https://www.zigbee2mqtt.io/devices/CCT5015-0001.html#options)Options

_[How to use device-specific configuration](https://www.zigbee2mqtt.io/guide/configuration/devices-groups.html#specific-device-options)_

- `invert_cover` : Inverts the cover position, false : open=100,close=0, true : open=0,close=100 (false by default). The value must be `true` or `false`

## [#](https://www.zigbee2mqtt.io/devices/CCT5015-0001.html#exposes)Exposes

### [#](https://www.zigbee2mqtt.io/devices/CCT5015-0001.html#cover)Cover

The current state of this cover is in the state published under the `state` property (the value is `OPEN` or `CLOSE`). To control this cover, publish a message to the topic `zigbee2mqtt/FRIENDLY_NAME/set` with the payload `{\"state\": \"OPEN\"}`, `{\"state\": \"CLOSE\"}`, `{\"state\": \"STOP\"}`. It is not possible to read (`/get`) this value. To change the position, publish a message to the topic `zigbee2mqtt/FRIENDLY_NAME/set` with a payload `{\"position\": VALUE}` where `VALUE` is a number between `0` and `100`.

### [#](https://www.zigbee2mqtt.io/devices/CCT5015-0001.html#lift-duration-numeric)Lift\_duration (numeric)

Lift duration. The value can be found in the state published under the `lift_duration` property. It is not possible to read (`/get`) this value. To write (`/set`) a value, publish a message to the topic `zigbee2mqtt/FRIENDLY_NAME/set` with the payload `{\"lift_duration\": NEW_VALUE}`. The minimum value is `0` and the maximum value is `300`. The unit of this value is `seconds`.

### [#](https://www.zigbee2mqtt.io/devices/CCT5015-0001.html#linkquality-numeric)Link quality (numeric)

Link quality (signal strength). The value can be found in the state published under the `linkquality` property. It is not possible to read (`/get`) or write (`/set`) this value. The minimum value is `0` and the maximum value is `255`. The unit of this value is `lqi`.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [October 19, 2022, 12:57pm UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/15 "2022-10-19T12:57:03Z")

</div>

You just set the position value to 0%

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/5/515408331ffa5e9f9cf3a9e08292b1db8455097c.png)

---

<div class="post-metadata">

**Author:** ![Isage](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/isage/32/13637_2.png) [@Isage](https://community.gladysassistant.com/u/Isage)\
**Post date:** [October 20, 2022, 4:11pm UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/16 "2022-10-20T16:11:32Z")

</div>

Thanks @bjm  
I followed this tutorial but nothing worked!  
To be sure I connected my

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [October 20, 2022, 5:33pm UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/17 "2022-10-20T17:33:18Z")

</div>

Hi @Isage,

I just saw that you had the issue only on USB3. I had the same issue before I got a new case for the Pi 4 and another case for the SSD; I don’t know which of the two resolved the problem, but I recreated a second

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [October 21, 2022, 3:49am UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/18 "2022-10-21T03:49:29Z")

</div>

> [@VonOx](#):
>
> It’s a roller shutter module, so a cover in Gladys.

Ok! It would be a good idea to add that to Alexa 🙂

I created a feature request so I wouldn’t forget (and to gauge the demand), and since it’s a Gladys Plus request I treat it a bit more of a priority than the rest in general (depending on urgencies ^^):

> [@Gestion des volets roulants dans Alexa](https://community.gladysassistant.com/t/gestion-des-volets-roulants-dans-alexa/7606):
>
> Pouvoir gérer les appareils de type volet roulants dans l’intégration Alexa Demande:

If there are any other devices missing (on Google Home as well), don’t hesitate to tell me — I think that if I ever do a pass on Alexa/Google Home, I can add several types of devices at the same time as long as they’re not too complex.

---

<div class="post-metadata">

**Author:** ![bjm](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/bjm/32/1753_2.png) [@bjm](https://community.gladysassistant.com/u/bjm)\
**Post date:** [October 24, 2022, 2:06pm UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/19 "2022-10-24T14:06:09Z")

</div>

Hi @pierre-gilles, I performed some device deletions recently and I suggest another explanatory sentence.

> This device has xxxxxx states in the database and cannot be deleted immediately.  
> Gladys has started a slow background deletion of all states for this device to prevent it from being blocked while deleting them.  
> This deletion can take a few minutes/hours (depending on

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [October 27, 2022, 4:55am UTC](https://community.gladysassistant.com/t/difficulte-a-migrer-mon-instance-vers-un-ssd/7583/20 "2022-10-27T04:55:50Z")

</div>

> [@bjm](#):
>
> Hi @pierre-gilles I removed a few devices recently and I’m proposing another explanatory sentence.

I agree that it’s clearer. Thanks for the contribution 🙂

I corrected the small mistakes in your text and I included that in this PR:

> <https://github.com/GladysAssistant/Gladys/pull/1632>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Improve wording on delete of device with lots of states.
