[Ghost] Blogging platform

Hi
We are pleased to announce re-worked working Ghost blogging platform for YunoHost.

Install Ghost on YunoHost:

$ yunohost app install https://github.com/YunoHost-Apps/ghost_ynh

Upgrade Ghost on YunoHost:

$ yunohost app upgrade -u https://github.com/YunoHost-Apps/ghost_ynh ghost

:warning:
Due to an incompability with MariaDB in subsequent releases, the latest available version of the Ghost package includes version 5.20. (cf. #199)

3 Likes

The testing branch of Ghost app is updated to version 2.1.0. The PR has been merged to master and now the app can be used through the official Yunohost ghost package. Thanks to @frju365.

To install from command-line :

$ yunohost app install https://github.com/YunoHost-Apps/ghost_ynh/tree/testing

To update from command-line :

$ yunohost app upgrade -u https://github.com/YunoHost-Apps/ghost_ynh/tree/testing ghost

The testing branch will merge into master in 2-3 days.

2 Likes

Ghost have been update to version 2.1.1.

To install from command-line :

$ yunohost app install https://github.com/YunoHost-Apps/ghost_ynh

To update from command-line :

$ yunohost app upgrade -u https://github.com/YunoHost-Apps/ghost_ynh ghost

1 Like

Not working… Error 502 Bad gateway

I have just investigated this error and posted an issue on Github. Can you check if you have the same error?

Attention : warning ghost@2.1.1: The engine “cli” appears to be invalid.

/var/www/ghost$ yarn install
yarn install v1.9.4
[1/5] Validating package.json…
error ghost@2.1.1: The engine “node” is incompatible with this module. Expected version “^6.9.0 || ^8.9.0”.
warning ghost@2.1.1: The engine “cli” appears to be invalid.
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Apparemment, il faudrait la version NODE en 2.2

Installation works for me. Can you check the node and yarn version?

$ node -v
$ yarn -v

For node :

Aucune version du paquet node n’est disponible, mais il existe dans la base
de données. Cela signifie en général que le paquet est manquant, qu’il est devenu obsolète
ou qu’il n’est disponible que sur une autre source

For yarn :

1.9.4

Can you install ghost with this command and show the logs?

$ yunohost app install --debug https://github.com/YunoHost-Apps/ghost_ynh

And if you get 502 error and run these commands ans see if there is error.

$ cd /var/www/ghost
$ yarn install 
$ yarn global add knex-migrator
$ NODE_ENV=production knex-migrator init

I finally managed with the installation.
But now, I have some difficulties to connect to my account. Everytime, I am asked to enter the username and password, and on and on and on…

Do:

$ service ghost restart

sh: 0: getcwd() failed: No such file or directory

Upgrade the ghost. This should update to same version and should fix it.

$ yunohost app upgrade -u https://github.com/YunoHost-Apps/ghost_ynh ghost --debug

97121 WARNING The app was restored to the way it was before the failed upgrade.
97121 DEBUG + echo ‘The app was restored to the way it was before the failed upgrade.’
97121 DEBUG + exit 1
97222 ERROR Impossible de mettre à jour ghost
97223 DEBUG action [19796.1] executed in 96.993s
97223 DEBUG lock has been released
97223 ERROR Aucune application à mettre à jour

Can you show the complete log ? This don’t show the error message.

38450 DEBUG + cd /var/www/ghost
38450 DEBUG + yarn install
38851 DEBUG yarn install v1.9.4
39052 DEBUG [1/5] Validating package.json…
39053 WARNING error ghost@2.1.1: The engine “node” is incompatible with this module. Expected version “^6.9.0 || ^8.9.0”.
39053 DEBUG info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
39053 WARNING warning ghost@2.1.1: The engine “cli” appears to be invalid.
39054 DEBUG + ynh_exit_properly
39054 WARNING error Found incompatible module
39054 DEBUG + local exit_code=1
39054 WARNING !!
39054 DEBUG + ‘[’ 1 -eq 0 ‘]’
39055 WARNING ghost’s script has encountered an error. Its execution was cancelled.
39055 DEBUG + trap ‘’ EXIT
39055 WARNING !!
39055 DEBUG + set +eu
39056 WARNING Upgrade failed.
39056 DEBUG + echo -e ‘!!\n ghost’’‘s script has encountered an error. Its execution was cancelled.\n!!’
39056 DEBUG + type -t ynh_clean_setup
39056 DEBUG + ynh_clean_setup
39057 DEBUG + ynh_restore_upgradebackup
39057 DEBUG + echo ‘Upgrade failed.’
39057 DEBUG + local app_bck=ghost
39057 DEBUG + NO_BACKUP_UPGRADE=0
39058 DEBUG + ‘[’ 0 -eq 0 ‘]’
39058 DEBUG + sudo yunohost backup list
39058 DEBUG + grep -q ghost-pre-upgrade2
39360 DEBUG + sudo yunohost app remove ghost
40965 WARNING Removed /etc/systemd/system/multi-user.target.wants/ghost.service.
43672 WARNING Removing database ghost
54107 WARNING Remove the user ghost
54208 DEBUG ghost a été supprimé
54509 DEBUG La configuration de SSOwat a été générée
54610 DEBUG + sudo yunohost backup restore ghost-pre-upgrade2 --apps ghost --force
83791 WARNING Installation of N - Node.js version management
84795 WARNING 2018-09-09 01:29:14 URL:https://codeload.github.com/tj/n/tar.gz/v2.1.7 [9592] -> “n.tar.gz” [1]
85698 WARNING Warning: apt-key output should not be parsed (stdout is not a terminal)
92016 WARNING Created symlink /etc/systemd/system/multi-user.target.wants/ghost.service → /etc/systemd/system/ghost.service.
92917 DEBUG La configuration de SSOwat a été générée
92918 DEBUG Restauration terminée
92918 DEBUG apps:
92918 DEBUG ghost: Success
92918 DEBUG system:
93019 DEBUG + ynh_die ‘The app was restored to the way it was before the failed upgrade.’
93019 WARNING The app was restored to the way it was before the failed upgrade.
93019 DEBUG + echo ‘The app was restored to the way it was before the failed upgrade.’
93019 DEBUG + exit 1
93120 ERROR Impossible de mettre à jour ghost
93120 DEBUG action [23171.1] executed in 92.901s
93121 DEBUG lock has been released
93121 ERROR Aucune application à mettre à jour

I don’t why for you the warning becomes error. I can not reproduce it. For me this don’t result into error.

138186 DEBUG + cd /var/www/ghost
138187 DEBUG + yarn install
139680 DEBUG yarn install v1.9.4
140472 DEBUG [1/5] Validating package.json…
140473 WARNING warning ghost@2.1.1: The engine “cli” appears to be invalid.
140473 DEBUG [2/5] Resolving packages…
143513 DEBUG [3/5] Fetching packages…
147391 DEBUG [4/5] Linking dependencies…
205011 DEBUG [5/5] Building fresh packages…
220238 DEBUG Done in 80.65s.
220439 DEBUG + yarn global add knex-migrator
222064 DEBUG yarn global v1.9.4
222665 DEBUG [1/4] Resolving packages…
224200 DEBUG [2/4] Fetching packages…
225103 DEBUG [3/4] Linking dependencies…
229084 DEBUG [4/4] Building fresh packages…
229185 DEBUG success Installed “knex-migrator@3.2.3” with binaries:

It doesn’t help me… I don’t know either why I get this result.
But since Yunohost 3.0, I have a lot of errors with a lot of apps, even on a new installation. I think, this is due to a lack of dependances, that are not installed.