Installation impossible de Mastodon sur Yunohost

Bonjour à tous et toutes

Après l’arrivée de la fibre à la maison, j’ai décidé de faire de l’auto-hébergement à 100%. J’ai donc installé mon serveur Debian Jessie à la maison et transfert de mon blog. Là tout est OK.

Mon souci vient de Mastodon que je n’arrive plus du tout à installer alors qu’il était installé sur mon dédié. Voici le déroulement de l’install si une âme compétente et charitable passe par là :

 Attention : « yunohost app checkurl » est déprécié et sera bientôt supprimé
Attention : Clonage dans '/opt/mastodon/.rbenv'...
Attention : Clonage dans '/opt/mastodon/.rbenv/plugins/ruby-build'...
Attention : Clonage dans '/opt/mastodon/live'...
Attention : Note: checking out 'v2.0.0'.
Attention :
Attention : You are in 'detached HEAD' state. You can look around, make experimental
Attention : changes and commit them, and you can discard any commits you make in this
Attention : state without impacting any branches by performing another checkout.
Attention :
Attention : If you want to create a new branch to retain commits you create, you may
Attention : do so (now or later) by using -b with the checkout command again. Example:
Attention :
Attention :   git checkout -b new_branch_name
Attention :
Attention : HEAD est maintenant sur 09d81de... Suppress type error(not a function) on calling fastSeek (#5452)
Attention : Downloading ruby-2.4.1.tar.bz2...
Attention : -> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.bz2
Attention : Installing ruby-2.4.1...
Attention : Installed ruby-2.4.1 to /opt/mastodon/.rbenv/versions/2.4.1
Attention :
Attention : ln: impossible de créer le lien symbolique « /usr/bin/ruby »: Le fichier existe
Attention : rbenv: version `2.4.2' is not installed (set by /opt/mastodon/live/.ruby-version)
Attention : warning "extract-text-webpack-plugin@2.1.2" has incorrect peer dependency "webpack@^2.2.0".
Attention : warning "react-motion@0.5.1" has incorrect peer dependency "react@^0.14.9 || ^15.3.0".
Attention : warning "react-notification@6.8.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
Attention : warning "react-transition-group@2.2.0" has incorrect peer dependency "react@^15.0.0".
Attention : warning "react-transition-group@2.2.0" has incorrect peer dependency "react-dom@^15.0.0".
Attention : warning "react-redux-loading-bar@2.9.2" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
Attention : warning "react-redux-loading-bar@2.9.2" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0".
Attention : warning "react-router-scroll@0.4.3" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
Attention : warning "react-router-scroll@0.4.3" has incorrect peer dependency "react-dom@^0.14.0 || ^15.0.0".
Attention : tr: erreur d'écriture: Relais brisé (pipe)
Attention : tr: erreur d'écriture: Relais brisé (pipe)
Attention : rbenv: version `2.4.2' is not installed (set by /opt/mastodon/live/.ruby-version)
Attention : rbenv: version `2.4.2' is not installed (set by /opt/mastodon/live/.ruby-version)
Attention : !!
Attention :   mastodon install's script has encountered an error. Installation was cancelled.
Attention : !!
Attention : /usr/share/yunohost/helpers.d/print: ligne 4: $1 : variable sans liaison
Attention : dropdb: la suppression de la base de données a échoué : ERREUR:  la base de données « mastodon_production » n'existe pas
Attention : /etc/cron.d/mastodon wasn't deleted because it doesn't exist.
Attention : /usr/bin/ruby wasn't deleted because it doesn't exist.
Succès ! La configuration de SSOwat a été générée
Erreur : Échec de l'installation

Est-ce que quelqu’un saurait ce qu’il se passe et ce que je peux faire ?

Merci d’avance pour votre aide !

Problème résolu:
https://github.com/YunoHost-Apps/mastodon_ynh/pull/58

J’ai malheureusement le même problème.

Mastodon s’était installé correctement une première fois.

J’ai voulu essayé une installation de Gitlab. Résultat : mastodon ne pouvait plus accéder à sa base sur PostGreSQL. J’ai désinstallé Gitlab, désinstallé Mastodon, réessayé d’installer Mastodon… et là le même problème que ci-dessus s’est produit.

Bonjour,
J’ai aussi cette erreur sur une installation fraiche :confused:

Il semble que c’est des erreurs de versions de ruby, il faut avoir le bon lien symbolique qui pointe vers la version de ruby et rails mise à jour… Mais là il semble que le code fonctionne pour yunohost 2.4… Peut-être plusieurs dépendances qui changent, Postgresql ??, Bref, il me semble qu’il y a du pain sur la planche…

En effet, j’ai un problème à l’installation à cause de Ruby
La partie intéressante en mode --verbose

make: Entering directory '/opt/mastodon/.rbenv/src'
gcc -fPIC     -c -o realpath.o realpath.c
gcc -shared -Wl,-soname,../libexec/rbenv-realpath.dylib  -o ../libexec/rbenv-realpath.dylib realpath.o
make: Leaving directory '/opt/mastodon/.rbenv/src'
+ sudo su - mastodon
Warning: Downloading ruby-2.5.0.tar.bz2...
Warning: -> https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.0.tar.bz2
Warning: Installing ruby-2.5.0...
Warning: 
Warning: BUILD FAILED (Debian 8.10 using ruby-build 20180224-5-g1a5a4e6)
Warning: 
Warning: Inspect or clean up the working tree at /tmp/ruby-build.20180328223036.24877
Warning: Results logged to /tmp/ruby-build.20180328223036.24877.log
Warning: 
Warning: Last 10 log lines:
Warning: 	from ./tool/rbinstall.rb:167:in `install'
Warning: 	from ./tool/rbinstall.rb:263:in `block in install_recursive'
Warning: 	from ./tool/rbinstall.rb:255:in `each'
Warning: 	from ./tool/rbinstall.rb:255:in `install_recursive'
Warning: 	from ./tool/rbinstall.rb:422:in `block in <main>'
Warning: 	from ./tool/rbinstall.rb:853:in `block in <main>'
Warning: 	from ./tool/rbinstall.rb:850:in `each'
Warning: 	from ./tool/rbinstall.rb:850:in `<main>'
Warning: uncommon.mk:310: recipe for target 'do-install-all' failed
Warning: make: *** [do-install-all] Error 1
Warning: -su: line 2: /opt/mastodon/.rbenv/versions/2.5.0/bin/ruby: No such file or directory
++ EXIT_PROPERLY
++ trap '' ERR
++ echo -e '\e[91m \e[1m'
 
++ echo -e '!!\n  mastodon install'\''s script has encountered an error. Installation was cancelled.\n!!'
++ type -t CLEAN_SETUP
++ CLEAN_SETUP
++ echo ''

++ sudo sed -i '\@"mastodon.de-ruffray.fr/":@d' /etc/ssowat/conf.json
Warning: !!
Warning:   mastodon install's script has encountered an error. Installation was cancelled.
Warning: !!
++ '[' 2.4 = 2.2 ']'
++ ynh_die
Warning: /usr/share/yunohost/helpers.d/print: line 4: $1: unbound variable
Executing script '/var/cache/yunohost/from_file/mastodon_ynh-master/scripts/remove'...