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.)
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?
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.
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.
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.
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.