Failure to restore Yunohost backup containing Ghost

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

Ghost 6.41.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

Restoring a Yunohost backup containing Ghost fails, evidently because the Ghost service isn’t created or started. Following issue 41968 (“Ghost backup restoration fails”), I ran the restore command with --no-remove-on-failure, then edited the node version in /etc/systemd/system/ghost/service from 22.22.3 to 22.23.4 and reloaded the daemon and restarted the service. Then Ghost appeared as a Yunohost application, but it was not running.

Share relevant logs or error messages

The log produced after the failure is in paste[dot]yunohost[dot]org/raw/boxabupeco (The link is altered because I am not allowed to post links.)

Can you share the ghost service log ?

Where is the service log?

If I log into the Ghost CLI, there are logs in content/logs, but the latest error log file (for today, when I did the restoration) is empty. The latest *production.log file is 6746 bytes–is that what you’re looking for?

yunohost webadmin > tools > services > ghost ?

Under Tools > Web-admin settings there are no items for Ghost.

Under Tools > Services > Ghost there is a journalctl log, which is copied here: paste[dot]yunohost.org/guwukivelu

The path is yunohost webadmin > tools > services > ghost

Oct 27 21:57:54 node[207607]: [2026-10-27 21:57:54] INFO Ghost server started in 1.371s

Is Ghost service really running ? :thinking:

‘sudo systemctl status ghost’ says it is.

Maybe this should be filed as a different question, but would it be possible to copy Ghost’s ‘content’ directory, install a new version of Ghost, and replace its ‘content’ directory with the old one? I don’t see a database file in there, but there is a json file that seems to contain the blog content.

There is a database afaik. Perhaps you can try upgrading yunohost app upgrade ghost --force -b (-b = no backup).

That update failed with the message ‘pnpm v11.5.0 is to old to install the pnpm version Ghost v6.72.0 requires.’ The message suggests running npm install -g pnpm@latest but that generates an npm: command not found error.

Maybe trying to upgrade from a previous version

yunohost app upgrade ghost -u https://github.com/YunoHost-Apps/ghost_ynh/tree/2b980977d42f101404a8a7d6956f57317862022d  --force -b

That worked! Thank you very much. I’m going to mark this as solved, but I’m curious why you think that worked–that is, if there’s anything I can learn from this in case a similar problem occurs in the future.

But it didn’t upgrade to the latest version of Ghost, and running another upgrade fails again.

That URL pins the YunoHost package recipe to an older commit, so it likely got the restore into a state that recipe knows how to handle; it doesn’t mean Ghost itself is now current. The next upgrade hits the newer recipe’s pnpm requirement. I’d keep the working instance and report the upgrade log to the Ghost package maintainers rather than install pnpm globally, since the app may use its own Node environment.

The pinned URL installs the app recipe at that specific Git commit, rather than the current recipe. It likely succeeds because that revision’s upgrade steps are compatible with the restored installation; it doesn’t mean Ghost itself reached the latest version. I wouldn’t run npm install -g on the host: the missing npm suggests that command isn’t available in this setup, and the app recipe should handle its runtime dependencies. Check the next upgrade log for the exact failing step before changing Node or pnpm manually.