# Upgrade Mastodon 4.4.4 to 4.4.5 failed and will not restore

**URL:** https://forum.yunohost.org/t/upgrade-mastodon-4-4-4-to-4-4-5-failed-and-will-not-restore/40227
**Category:** Support apps
**Tags:** mastodon, english
**Created:** [September 28, 2025, 8:11pm UTC](https://forum.yunohost.org/t/upgrade-mastodon-4-4-4-to-4-4-5-failed-and-will-not-restore/40227 "2025-09-28T20:11:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Bumble](https://forum.yunohost.org/user_avatar/forum.yunohost.org/bumble/32/9626_2.png) [@Bumble](https://forum.yunohost.org/u/Bumble)
#### Post date: [September 28, 2025, 8:11pm UTC](https://forum.yunohost.org/t/upgrade-mastodon-4-4-4-to-4-4-5-failed-and-will-not-restore/40227/1 "2025-09-28T20:11:42Z")

</div>

**What app is this about, and its version** : mastodon 4.4.4  
**What YunoHost version are you running** : 12.1.26  
**What type of hardware are you using** : VPS bought online

### Describe your issue

Attempted the upgrade to 4.4.5 via the admin web interface, but it failed. The live version did not then recover. I tried to recover from backup using the web front end, and then the command line.

All goes well until it seems to get a timeout

Extract of log…

```auto
2025-09-28 19:54:11,784: DEBUG - + systemctl start mastodon-streaming
2025-09-28 19:54:11,839: DEBUG - + [[-n Streaming API now listening]]
2025-09-28 19:54:41,290: WARNING - (this may take some time)
2025-09-28 19:59:12,173: DEBUG - + '[' 300 -ge 3 ']'
2025-09-28 19:59:12,175: DEBUG - + '[' 300 -eq 300 ']'
2025-09-28 19:59:12,176: DEBUG - + ynh_print_warn 'The service mastodon-streaming didn'\''t fully execute the action start before the timeout.'
2025-09-28 19:59:12,176: DEBUG - 
2025-09-28 19:59:12,177: WARNING - The service mastodon-streaming didn't fully execute the action start before the timeout.

```

It then uninstalls the restore and there is therefore no mastodon server.

Server does not seem busy at the point it is failing. Ample spare capacity in memory, swap, disk, and CPUs

### Share relevant logs or error messages

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

---

<div class="post-metadata">

### Author: ![otm33](https://forum.yunohost.org/user_avatar/forum.yunohost.org/otm33/32/11941_2.png) [@otm33](https://forum.yunohost.org/u/otm33)
#### Post date: [September 28, 2025, 8:46pm UTC](https://forum.yunohost.org/t/upgrade-mastodon-4-4-4-to-4-4-5-failed-and-will-not-restore/40227/2 "2025-09-28T20:46:50Z")

</div>

Hi @Bumble

```auto
2025-09-28 19:45:34,850: DEBUG - installing : node-v22.20.0
2025-09-28 19:45:35,166: DEBUG - mkdir : /opt/node_n/n/versions/node/22.20.0
2025-09-28 19:45:35,182: DEBUG - fetch : https://nodejs.org/dist/v22.20.0/node-v22.20.0-linux-x64.tar.xz
2025-09-28 19:45:38,895: DEBUG - copying : node/22.20.0
2025-09-28 19:45:39,537: DEBUG - installed : v22.20.0
(...)
2025-09-28 19:59:12,520: WARNING - Sep 28 19:54:12 (node)[97636]: mastodon-streaming.service: Failed to locate executable /opt/node_n/n/versions/node/22.19.0/bin/node: No such file or directory
2025-09-28 19:59:12,521: WARNING - Sep 28 19:54:12 (node)[97636]: mastodon-streaming.service: Failed at step EXEC spawning /opt/node_n/n/versions/node/22.19.0/bin/node: No such file or directory

```

What does `ls /opt/node_n/n/versions/node/` return ?

The backup wants to restart Mastodon using a systemd service file that points to Node.js version 22.19, while the same backup has installed version 22.20. A similar issue is mentioned here:

> [@Impossible de restaurer une sauvegarde de Peertube](https://forum.yunohost.org/t/impossible-de-restaurer-une-sauvegarde-de-peertube/40021/20):
>
> Solution de contournement Récupération de la sauvegarde par sécurité Mon premier conseil serait de conserver une copie de la backup avant l’upgrade qui a échoué. En particulier s’il n’y a pas de sauvegardes régulières (genre avec borg ou restic) qui soit faite avec une bonne rétention. Il est possible de lister et de télécharger la sauvegarde par le biais de l’interface d’administration de Yunohost : La sauvegarde devrait s’appeler peertube-pre-upgrade1 ou peertube-pre-upgrade2 La solution d…

The proposed solution by @fflorent is, first to keep a backup, and then to manually install the version required by systemd and then restart the backup but there was no feedback from the user who faced this problem.  
In your case :  
`N_PREFIX=/opt/node_n/ /usr/share/yunohost/helpers.v2.1.d/vendor/n/n install 22.19`

---

<div class="post-metadata">

### Author: ![Bumble](https://forum.yunohost.org/user_avatar/forum.yunohost.org/bumble/32/9626_2.png) [@Bumble](https://forum.yunohost.org/u/Bumble)
#### Post date: [September 28, 2025, 9:14pm UTC](https://forum.yunohost.org/t/upgrade-mastodon-4-4-4-to-4-4-5-failed-and-will-not-restore/40227/3 "2025-09-28T21:14:10Z")

</div>

> [@otm33](#):
>
> ls /opt/node\_n/n/versions/node/

Returned `No such file of directory`

I then took your advice and manually installed node V 22.19 and attempted a command line restore again. This time it worked.

Thank you so much, you are a superstar

---

<div class="post-metadata">

### Author: ![otm33](https://forum.yunohost.org/user_avatar/forum.yunohost.org/otm33/32/11941_2.png) [@otm33](https://forum.yunohost.org/u/otm33)
#### Post date: [September 28, 2025, 9:15pm UTC](https://forum.yunohost.org/t/upgrade-mastodon-4-4-4-to-4-4-5-failed-and-will-not-restore/40227/4 "2025-09-28T21:15:52Z")

</div>

👍  
Thanks also go to @fflorent !

---

<div class="post-metadata">

### Author: ![fflorent](https://forum.yunohost.org/user_avatar/forum.yunohost.org/fflorent/32/2768_2.png) [@fflorent](https://forum.yunohost.org/u/fflorent)
#### Post date: [September 29, 2025, 7:30pm UTC](https://forum.yunohost.org/t/upgrade-mastodon-4-4-4-to-4-4-5-failed-and-will-not-restore/40227/5 "2025-09-29T19:30:53Z")

</div>

Does my post need a translation or is it fine in French?

---

<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 14, 2025, 7:31pm UTC](https://forum.yunohost.org/t/upgrade-mastodon-4-4-4-to-4-4-5-failed-and-will-not-restore/40227/6 "2025-10-14T19:31:27Z")

</div>

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