Can't restore backup (Nextcloud)

,
  • READ ME AND USE THIS TEMPLATE IF YOU WANT TO GET HELP ! You may ask your question in english or french, whichever is easiest for you… But please use one of the templates provided below :wink:
  • LISEZ-MOI ET UTILISEZ CE MODÈLE DE TOPIC SI VOUS SOUHAITEZ OBTENIR DE L’AIDE ! Vous pouvez poser votre question en anglais ou français, selon ce qui est le plus simple pour vous… Mais de préférence en utilisant l’un des deux modèles fournis ci-dessous :wink:

:uk:/:us: Message template (english)

The “support” category is meant to ask for help or troubleshooting related to installing or using YunoHost or its applications. It is not to ask assistance on general system administration, network administration or special use cases that goes beyond the scope of the project. If you wish to discuss more advanced use case, please post in the “Advanced Use Case” category.

Before posting, please :

My YunoHost server

Hardware: Raspberry Pi at home
YunoHost version: 4.1.8
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: recent restore of a 5 months old backup. Upgrade to Buster and RPI 3 → 4 in the midtime

Description of my issue

When I try to restore my Nextcloud archive, it tells me that there is no info.json file (or no valid one).

But that file is inside the archive, with the right name.
The json is valid (I did an import and export in python to check, it worked).

```{“size_details”: {“apps”: {“nextcloud”: 2033254143}, “system”: {}}, “description”: “”, “from_yunohost_version”: “3.8.5.9”, “created_at”: 1600561690, “apps”: {“nextcloud”: {“version”: “18.0.4~ynh1”, “name”: “Nextcloud”, “description”: “Consultez et partagez vos fichiers, agendas, carnets d’adresses, emails et bien plus depuis les appareils de votre choix, sous vos conditions”}}, “system”: {}, “size”: 2137121937}``

Sorry for the mistake, I can’t edit my post, I have a 500 internal error…

My YunoHost server

Hardware: Raspberry Pi at home
YunoHost version: 4.1.8
I have access to my server : Through SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain: recent restore of a 5 months old backup. Upgrade to Buster and RPI 3 → 4 in the midtime

Description of my issue

When I try to restore my Nextcloud archive, it tells me that there is no info.json file (or no valid one).

But that file is inside the archive, with the right name.
The json is valid (I did an import and export in python to check, it worked).

{"size_details": {"apps": {"nextcloud": 2033254143}, "system": {}}, "description": "", "from_yunohost_version": "3.8.5.9", "created_at": 1600561690, "apps": {"nextcloud": {"version": "18.0.4~ynh1", "name": "Nextcloud", "description": "Consultez et partagez vos fichiers, agendas, carnets d'adresses, emails et bien plus depuis les appareils de votre choix, sous vos conditions"}}, "system": {}, "size": 2137121937}

Logs:

INFO Préparation de l’archive pour restauration...
DEBUG Extraction des fichiers nécessaires depuis l’archive…
DEBUG unable to retrieve 'info.json' inside the archive
None
DEBUG action [23252.1] executed in 24.998s

I believe I made an archive after solving this issue: Restauration fails : hook_exec_failed · Issue #353 · YunoHost-Apps/nextcloud_ynh · GitHub
So maybe it’s a rights problem ? But the file is marked as readable by any user…

:up: :pray:

Sorry for the delay

That’s weird but let’s try to investigate:

  • do you have the same archivename.info.json file on the side, outside of the archive ?
  • if you delete (or move) that file elsewhere, and run yunohost backup info [archivename], does it displays the info, or does it crashes as well with the same error ?
1 Like

Yes.
And a modified one too, after json import&export (using python) to be sure the formating was correct.

It clearly takes time (to decompress the archive I guess), so it’s using the file inside the archive…
Same error.

(Note: I already try to restore the backup without that outside-from-archive archivename.info.json json file)

yunohost backup info works well with the json that is not in the archive.

I also tried to create a new archive, while removing the info.json, and replacing it with archivename.info.json (renamed info.json).
Failed with the same error. But I’m unsure about my way to create the archive, I had multiple failures that did not have the proper file structure. Not a tar command expert… :sweat_smile:

Maybe I should try to restore manually… is there any guidance about how to do that ?
I suppose I need to load the helpers and the the restore script manually ?