HedgeDoc restore failed: Missing Node.js executable (status 203/EXEC)

What app is this about, and its version: hedgedoc
What YunoHost version are you running: 12.1.39
What type of hardware are you using: Raspberry Pi 3, 4+

Describe your issue

Hi everyone,
I am having trouble restoring HedgeDoc on my YunoHost instance. I uninstalled the app and tried to restore it from a backup (hedgedoc-pre-upgrade2), but the restoration fails at the service-start step.
The issue:
The logs show that the hedgedoc.service is failing to start because it cannot find the Node.js executable at this path:
/opt/node_n/n/versions/node/22.22.0/bin/corepack
On my system, ls /opt/node_n/n/versions/node/ shows that I have versions 20, 20.20.2, 22, and 22.21.1 installed, but 22.22.0 is missing. It seems the restore script expects a specific version that isn’t being provisioned correctly.
Full Log: https://paste.yunohost.org/raw/edexekolok
Any advice on how to force the restoration to use an available Node version or how to manually provision the missing one would be greatly appreciated!

Share relevant logs or error messages

https://paste.yunohost.org/raw/edexekolok

Hello @leohemelaer
You can try this

yunohost backup restore hedgedoc-pre-upgrade2 --no-remove-on-failure

Once restored, edit

nano /etc/systemd/system/hedgedoc.service
# => change each 22.22.0 to 22.21.1
systemctl daemon-reload
systemctl restart hedgedoc

Dear otm33,

Great! All my notes are back!
Thank you for your prompt help!
Your proposed procedure worked. I just had to reboot the server.

Problems started after upgrading the HedgeDoc app. So, I’ll wait to upgrade for the moment and will do some more testing soon.

Have a nice day.

Kind regards.

Leo