# Cannot restore synapse from backup because Go is missing

**URL:** <https://forum.yunohost.org/t/cannot-restore-synapse-from-backup-because-go-is-missing/43000>\
**Category:** Support apps\
**Tags:** synapse, english, restore-backup\
**Created:** [September 15, 2026, 6:38am UTC](https://forum.yunohost.org/t/cannot-restore-synapse-from-backup-because-go-is-missing/43000 "2026-09-15T06:38:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![SiM](https://forum.yunohost.org/user_avatar/forum.yunohost.org/sim/32/328_2.png) [@SiM](https://forum.yunohost.org/u/SiM)\
**Post date:** [September 29, 2026, 11:36pm UTC](https://forum.yunohost.org/t/cannot-restore-synapse-from-backup-because-go-is-missing/43000/5 "2026-09-29T23:36:17Z")

</div>

Here’s how the story ends:  
The synapse database was simply empty because it couldn’t be restored—the restore script failed before reaching that step.

So here are the steps to resolve this restoration issue if anyone else finds themselves in the same situation: (thanks a lot @otm33 for your help and @Lapineige for further details)

1. Check that you have enough available disk space 😅

2. Restore the backup using the `--no-remove-on-failure` flag:  
`yunohost backup restore synapse-pre-upgrade1 --no-remove-on-failure`

3. Make a copy of your synapse backup (or rename it) in order to prevent it from being removed in the next step ( **you’ll need it in step 8** )

4. Force the application upgrade:  
`yunohost app upgrade synapse -b --force`

5. Stop Synapse service  
`sudo systemctl stop synapse`

6. Drop Synapse database  
`sudo -u postgres psql -c "DROP DATABASE synapse;"`

7. Recreate it with correct encoding:  
`sudo -u postgres psql -c "CREATE DATABASE synapse OWNER synapse ENCODING 'UTF8' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;"`

8. Extract the database dump from synapse backup:  
`tar -xf /home/yunohost.backup/archives/SYNAPSE_ARCHIVE.tar -C /tmp/synapse-backup apps/synapse/backup/dump.sql`

9. Restore the db dump into postgresql:  
`sudo -u postgres psql -d synapse < /tmp/synapse-backup/apps/synapse/backup/dump.sql`

10. Start Synapse service  
`sudo systemctl start synapse`

Note that all your devices will need to be verified again. I didn’t find a way to avoid that (but there might be a trick to doing it?)

---

_[View the full topic](https://forum.yunohost.org/t/cannot-restore-synapse-from-backup-because-go-is-missing/43000)._
