# \[SOLVED\] Can't restore synapse after failed upgrade

**URL:** https://forum.yunohost.org/t/solved-cant-restore-synapse-after-failed-upgrade/41867
**Category:** Support apps
**Tags:** synapse, english
**Created:** [March 20, 2026, 8:54pm UTC](https://forum.yunohost.org/t/solved-cant-restore-synapse-after-failed-upgrade/41867 "2026-03-20T20:54:04Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![wraidd](https://forum.yunohost.org/user_avatar/forum.yunohost.org/wraidd/32/7084_2.png) [@wraidd](https://forum.yunohost.org/u/wraidd)
#### Post date: [March 20, 2026, 8:54pm UTC](https://forum.yunohost.org/t/solved-cant-restore-synapse-after-failed-upgrade/41867/1 "2026-03-20T20:54:04Z")

</div>

**What app is this about, and its version** : matrix-synapse, version unknown  
**What YunoHost version are you running** : 12.1.39  
**What type of hardware are you using** : VPS bought online

### Describe your issue

Attempted to upgrade matrix-synapse, which failed – seems my /tmp didn’t have enough space. Unfortunately, restore also fails – there appears to be an issue with missing python packages after the restore that prevents synapse from restarting.

### Share relevant logs or error messages

[https://paste.yunohost.org/raw/oconisuqag](https://paste.yunohost.org/raw/oconisuqag)

---

<div class="post-metadata">

### Author: ![Josue](https://forum.yunohost.org/user_avatar/forum.yunohost.org/josue/32/933_2.png) [@Josue](https://forum.yunohost.org/u/Josue)
#### Post date: [March 21, 2026, 2:21pm UTC](https://forum.yunohost.org/t/solved-cant-restore-synapse-after-failed-upgrade/41867/2 "2026-03-21T14:21:18Z")

</div>

Hello,

I would be curious to know why the upgrade failed. So could you also share the log of the failed upgrade.

Thanks

---

<div class="post-metadata">

### Author: ![wraidd](https://forum.yunohost.org/user_avatar/forum.yunohost.org/wraidd/32/7084_2.png) [@wraidd](https://forum.yunohost.org/u/wraidd)
#### Post date: [March 22, 2026, 4:23am UTC](https://forum.yunohost.org/t/solved-cant-restore-synapse-after-failed-upgrade/41867/3 "2026-03-22T04:23:14Z")

</div>

[https://paste.yunohost.org/raw/virelenero](https://paste.yunohost.org/raw/virelenero) – upgrade failure

[https://paste.yunohost.org/raw/efoyolefud](https://paste.yunohost.org/raw/efoyolefud) – auto-removal after upgrade failure

---

<div class="post-metadata">

### Author: ![Josue](https://forum.yunohost.org/user_avatar/forum.yunohost.org/josue/32/933_2.png) [@Josue](https://forum.yunohost.org/u/Josue)
#### Post date: [March 23, 2026, 5:27pm UTC](https://forum.yunohost.org/t/solved-cant-restore-synapse-after-failed-upgrade/41867/4 "2026-03-23T17:27:01Z")

</div>

```auto
compile: writing output: write $WORK/b328/_pkg_.a: no space left on device

```

Seems that you don’t have enough place on your storage.

---

<div class="post-metadata">

### Author: ![wraidd](https://forum.yunohost.org/user_avatar/forum.yunohost.org/wraidd/32/7084_2.png) [@wraidd](https://forum.yunohost.org/u/wraidd)
#### Post date: [March 23, 2026, 5:30pm UTC](https://forum.yunohost.org/t/solved-cant-restore-synapse-after-failed-upgrade/41867/5 "2026-03-23T17:30:26Z")

</div>

Yes, I noted that in the original message as being the cause of the original failure to install. The issue is, I can’t restore from the backup, which doesn’t seem to be a space-related issue. Based on the error message from the backup restore, it seems that synapse isn’t successfully starting once restored due to some Python issue, but I’m not well-enough acquainted with Python to troubleshoot further.

Here are what I think are the relevant lines from the restore failure:

```auto
2026-03-19 22:09:19,671: DEBUG - + systemctl restart synapse__2.service
2026-03-19 22:09:20,473: WARNING - Job for synapse__2.service failed because the control process exited with error code.
2026-03-19 22:09:20,473: WARNING - See "systemctl status synapse __2.service" and "journalctl -xeu synapse__ 2.service" for details.
2026-03-19 22:09:20,474: DEBUG - + journalctl --quiet --no-hostname --no-pager --lines=20 --unit=synapse__2.service
2026-03-19 22:09:30,643: WARNING - Mar 19 22:09:20 systemd[1]: Failed to start synapse__2.service - Synapse Matrix homeserver.
2026-03-19 22:09:30,644: WARNING - Mar 19 22:09:23 systemd[1]: synapse__2.service: Scheduled restart job, restart counter is at 1.
2026-03-19 22:09:30,644: WARNING - Mar 19 22:09:23 systemd[1]: Stopped synapse__2.service - Synapse Matrix homeserver.
2026-03-19 22:09:30,645: WARNING - Mar 19 22:09:23 systemd[1]: Starting synapse__2.service - Synapse Matrix homeserver...
2026-03-19 22:09:30,645: WARNING - Mar 19 22:09:24 python[2512981]: Traceback (most recent call last):
2026-03-19 22:09:30,646: WARNING - Mar 19 22:09:24 python[2512981]: File "<frozen runpy>", line 198, in _run_module_as_main
2026-03-19 22:09:30,647: WARNING - Mar 19 22:09:24 python[2512981]: File "<frozen runpy>", line 88, in _run_code
2026-03-19 22:09:30,647: WARNING - Mar 19 22:09:24 python[2512981]: File "/var/www/synapse__2/venv/lib/python3.11/site-packages/synapse/app/homeserver.py", line 32, in <module>
2026-03-19 22:09:30,648: WARNING - Mar 19 22:09:24 python[2512981]: import synapse.config.logger
2026-03-19 22:09:30,648: WARNING - Mar 19 22:09:24 python[2512981]: File "/var/www/synapse __2/venv/lib/python3.11/site-packages/synapse/config/__ init__.py", line 22, in <module>
2026-03-19 22:09:30,649: WARNING - Mar 19 22:09:24 python[2512981]: from ._base import ConfigError, find_config_files
2026-03-19 22:09:30,649: WARNING - Mar 19 22:09:24 python[2512981]: File "/var/www/synapse__2/venv/lib/python3.11/site-packages/synapse/config/_base.py", line 49, in <module>
2026-03-19 22:09:30,650: WARNING - Mar 19 22:09:24 python[2512981]: import pkg_resources
2026-03-19 22:09:30,650: WARNING - Mar 19 22:09:24 python[2512981]: ModuleNotFoundError: No module named 'pkg_resources'
2026-03-19 22:09:30,651: WARNING - Mar 19 22:09:24 systemd[1]: synapse__2.service: Control process exited, code=exited, status=1/FAILURE
2026-03-19 22:09:30,651: WARNING - Mar 19 22:09:24 systemd[1]: synapse__2.service: Failed with result 'exit-code'.
2026-03-19 22:09:30,652: WARNING - Mar 19 22:09:24 systemd[1]: Failed to start synapse__2.service - Synapse Matrix homeserver.

```

---

<div class="post-metadata">

### Author: ![Josue](https://forum.yunohost.org/user_avatar/forum.yunohost.org/josue/32/933_2.png) [@Josue](https://forum.yunohost.org/u/Josue)
#### Post date: [March 24, 2026, 8:40pm UTC](https://forum.yunohost.org/t/solved-cant-restore-synapse-after-failed-upgrade/41867/6 "2026-03-24T20:40:55Z")

</div>

Hello,

OK I understand more the issue now. So I would suggest to try a restore with the `--no-remove-on-failure` which will avoid to remove the app if the restore fail. And then I would suggest to do a force upgrade (with `-F`) which should fix the issue.

Best regards

---

<div class="post-metadata">

### Author: ![wraidd](https://forum.yunohost.org/user_avatar/forum.yunohost.org/wraidd/32/7084_2.png) [@wraidd](https://forum.yunohost.org/u/wraidd)
#### Post date: [March 24, 2026, 9:58pm UTC](https://forum.yunohost.org/t/solved-cant-restore-synapse-after-failed-upgrade/41867/7 "2026-03-24T21:58:07Z")

</div>

That sorted it, thanks!

---

<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: [April 8, 2026, 9:58pm UTC](https://forum.yunohost.org/t/solved-cant-restore-synapse-after-failed-upgrade/41867/8 "2026-04-08T21:58:52Z")

</div>

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