# Restic issue after migration 0037

**URL:** https://forum.yunohost.org/t/restic-issue-after-migration-0037/42937
**Category:** Support apps
**Tags:** restic, english
**Created:** [September 5, 2026, 5:31am UTC](https://forum.yunohost.org/t/restic-issue-after-migration-0037/42937 "2026-09-05T05:31:27Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![steko](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/c77e96/32.png) [@steko](https://forum.yunohost.org/u/steko)
#### Post date: [September 5, 2026, 5:31am UTC](https://forum.yunohost.org/t/restic-issue-after-migration-0037/42937/1 "2026-09-05T05:31:27Z")

</div>

### I have searched the forum for similar issues

on

### This category is for issues regarding specific apps, _NOT_ general issues with YunoHost.

on

### This form is written in English but feel free to write in French if you’re more comfortable!

on

### What app is this about, and its version

restic 0.19.1~ynh1

### What YunoHost version are you running

12.1.41.2

### What type of hardware are you using

VPS bought online

### Describe your issue

Yesterday I ran migration 0037 as described [here](https://forum.yunohost.org/t/security-run-the-manual-migration-0037-fix-bad-permissions/42916/25). Today I received this email from restic@mydomain

```auto
Backup completed with warnings:
WARNING could not change directory to "/home/yunohost.backup/tmp/auto_gotosocial/apps/gotosocial/backup": Permission denied
WARNING could not change directory to "/home/yunohost.backup/tmp/auto_umap/apps/umap/backup": Permission denied

```

All other installed apps show normal behaviour and were backed up correctly. Actually the full logs (see below) show that even gotosocial and umap were backed up correctly, just with this warning related to the tmp directory.

### Share relevant logs or error messages

> **[hastebin](https://paste.yunohost.org/vehehenifo.sql)**

---

<div class="post-metadata">

### Author: ![ljf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ljf/32/58_2.png) [@ljf](https://forum.yunohost.org/u/ljf)
#### Post date: [September 5, 2026, 10:43am UTC](https://forum.yunohost.org/t/restic-issue-after-migration-0037/42937/2 "2026-09-05T10:43:52Z")

</div>

> [@steko](#):
>
> `/home/yunohost.backup/tmp/auto_gotosocial/apps/gotosocial/backup`

COuld you run this to check user and permissions ?

```auto
namei -l /home/yunohost.backup/tmp/auto_gotosocial/apps/gotosocial/backup

```

---

<div class="post-metadata">

### Author: ![steko](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/c77e96/32.png) [@steko](https://forum.yunohost.org/u/steko)
#### Post date: [September 6, 2026, 12:42pm UTC](https://forum.yunohost.org/t/restic-issue-after-migration-0037/42937/3 "2026-09-06T12:42:15Z")

</div>

```auto
f: /home/yunohost.backup/tmp/auto_gotosocial/apps/gotosocial/backup
drwxr-xr-x root root /
drwxr-xr-x root root home
drwxrwx--- root admins yunohost.backup
drwxr-x--- root root tmp
                       auto_gotosocial - No such file or directory

```

---

<div class="post-metadata">

### Author: ![OuraN2O](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ouran2o/32/12204_2.png) [@OuraN2O](https://forum.yunohost.org/u/OuraN2O)
#### Post date: [September 14, 2026, 12:26pm UTC](https://forum.yunohost.org/t/restic-issue-after-migration-0037/42937/4 "2026-09-14T12:26:55Z")

</div>

Hello, I have the same problem myself, with the app onlyoffice. Here is what I have in the mail logs :

```auto
INFO Collecte des fichiers devant être sauvegardés pour onlyoffice…
INFO Declaring files to be backed up...
INFO Backing up the PostgreSQL database...
WARNING could not change directory to "/home/yunohost.backup/tmp/auto_onlyoffice/apps/onlyoffice/backup": Permission non accordée
INFO Backup script completed for onlyoffice. (YunoHost will then actually copy those files to the archive).
INFO Création d'une archive de sauvegarde à partir des fichiers collectés…
INFO L'archive contiendra environ 3.0GB de données.
SUCCESS Sauvegarde créée : auto_onlyoffice
name: auto_onlyoffice
results: 
  apps: 
    onlyoffice: Success
  system: 
size: 3197341335

```

I have the same permissions as @steko and I tested a manual backup it worked fine (+ restic tells me it also worked) so it’s just the warning and I don’t know what it means

---

<div class="post-metadata">

### Author: ![tmb](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/t/7c8e57/32.png) [@tmb](https://forum.yunohost.org/u/tmb)
#### Post date: [September 14, 2026, 12:41pm UTC](https://forum.yunohost.org/t/restic-issue-after-migration-0037/42937/5 "2026-09-14T12:41:28Z")

</div>

> [@OuraN2O](#):
>
> `could not change directory to`

Similar warning is puzzling me during install/remove of apps.  
I’ve tried to trigger what the script does manually, and it seems to be yunohost scripts already being in the directory.

To reproduce:

```auto
~# source /usr/share/yunohost/helpers
~# ynh_psql_database_exists nonexistingbogus
/usr/bin/psql
could not change directory to "/root": Permission denied
~# cd /
/# ynh_psql_database_exists nonexistingbogus
/usr/bin/psql
/#

```

---

<div class="post-metadata">

### Author: ![oxide](https://forum.yunohost.org/user_avatar/forum.yunohost.org/oxide/32/13913_2.png) [@oxide](https://forum.yunohost.org/u/oxide)
#### Post date: [September 14, 2026, 4:10pm UTC](https://forum.yunohost.org/t/restic-issue-after-migration-0037/42937/6 "2026-09-14T16:10:29Z")

</div>

@ljf I allow myself to tag you to ask if you’ve any idea how to resolve this issue (I got the same as OuraN2O)

---

<div class="post-metadata">

### Author: ![JfmbLinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jfmblinux/32/11238_2.png) [@JfmbLinux](https://forum.yunohost.org/u/JfmbLinux)
#### Post date: [September 15, 2026, 7:21pm UTC](https://forum.yunohost.org/t/restic-issue-after-migration-0037/42937/7 "2026-09-15T19:21:27Z")

</div>

I have the same problem a few days ago with Joplin

```auto
WARNING could not change directory to "/home/yunohost.backup/tmp/joplin-pre-upgrade1/apps/joplin/backup": Permission non accordée

```

And now it’s with Mastodon

```auto
WARNING could not change directory to "/home/yunohost.backup/tmp/mastodon-pre-upgrade1/apps/mastodon/backup": Permission non accordée

```

When I do backups manually, I don’t have that warning.

---

<div class="post-metadata">

### Author: ![Supbol](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/82dd89/32.png) [@Supbol](https://forum.yunohost.org/u/Supbol)
#### Post date: [September 20, 2026, 11:50pm UTC](https://forum.yunohost.org/t/restic-issue-after-migration-0037/42937/8 "2026-09-20T23:50:06Z")

</div>

This answer suggesting various fixes for psql v15 and below (i.e. Bookworm, as it apparently does not occur anymore from psql v16 onwards) may help but I have not yet checked what this migration might have changed on that aspect: [https://askubuntu.com/questions/1477238/installing-postgresql-last-line-says-could-not-change-directory-to-home-user](https://askubuntu.com/questions/1477238/installing-postgresql-last-line-says-could-not-change-directory-to-home-user)

---

<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: [October 5, 2026, 11:50pm UTC](https://forum.yunohost.org/t/restic-issue-after-migration-0037/42937/9 "2026-10-05T23:50:23Z")

</div>

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