Matériel: PC Accès Internet: ethernet à la maison YunoHost version: 3.0.0.1
yunohost: 3.0.0
yunohost-admin: 3.0.0
moulinette: 3.0.0
ssowat: 3.0.0
Modification:
Migration de yunohost 2.7.14.5 -> 3.0.0.1 en ligne de commande -> yunohost tools migrations migrate
Description de mon problème:
Quand, sur l’interface utilisateur, je clique sur l’application lutim je tombe sur une erreur http ‘502 Bad Gateway’.
J’ai tenté une mise à jour de Lutim:
# yunohost app upgrade -u https://github.com/YunoHost-Apps/lutim_ynh lutim
Upgrading apps lutim
Mise à jour de l'application lutim...
Attention : Up-to-date, nothing to do
Succès ! lutim a été mis à jour
Succès ! La configuration de SSOwat a été générée
Succès ! Mise à jour terminée
Pas d’amélioration!
Je ne sais pas si cela peut aider, mais quand je tape la commande service php7.0-fpm status je ne vois nulle part Lutim. (en même temps je ne vois pas Gogs non plus et il semble bien fonctionner)
# service php7.0-fpm status
● php7.0-fpm.service - The PHP 7.0 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.0-fpm.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-06-30 17:29:47 CEST; 5s ago
Docs: man:php-fpm7.0(8)
Main PID: 4247 (php-fpm7.0)
Status: "Ready to handle connections"
Tasks: 14 (limit: 4915)
CGroup: /system.slice/php7.0-fpm.service
├─4247 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
├─4253 php-fpm: pool dokuwiki
├─4254 php-fpm: pool dokuwiki
├─4255 php-fpm: pool nextcloud
├─4256 php-fpm: pool nextcloud
├─4257 php-fpm: pool pihole
├─4258 php-fpm: pool pihole
├─4259 php-fpm: pool rainloop
├─4260 php-fpm: pool rainloop
├─4261 php-fpm: pool rainloop
├─4262 php-fpm: pool www
├─4263 php-fpm: pool www
├─4264 php-fpm: pool zerobin
└─4265 php-fpm: pool zerobin
juin 30 17:29:47 atlas systemd[1]: Starting The PHP 7.0 FastCGI Process Manager...
juin 30 17:29:47 atlas systemd[1]: Started The PHP 7.0 FastCGI Process Manager.
Pour finir la commande yunohost service status lutim :
# yunohost service status lutim
active: active
active_at:
human: 2018-06-30 16:32:51
timestamp: 1530369171927750
description: Image hosting and sharing service
loaded: enabled
service_file_path: /etc/systemd/system/lutim.service
status: exited
Cela doit venir du fait qu’ils utilisent chacun un serveur HTTP individuel
Hypnotoad du framwork Perl Mojolicious pour Lutim
Et pour Gogs il me semble que c’est pareil, mais en langage GO.
Bref… du coup pourquoi Gogs fonctionne et pas Lutim s’ils utilisent tous deux le même principe de redirection ?
Désolé … je réfléchit à voix haute, et je ne suis pas très calé en reverse proxy et configuration de serveur HTTP en général.
# tail /var/log/lutim/production.log
[Fri Jun 29 04:50:39 2018] [info] [VIEW] someone viewed six feet under saison1.jpg (path: files/3XlgCNW5.jpg)
[Fri Jun 29 04:50:39 2018] [info] [VIEW] someone viewed 2017-11-17.png (path: files/gC5YxbDS.png)
[Fri Jun 29 23:45:04 2018] [info] [VIEW] someone viewed six feet under saison1.jpg (path: files/3XlgCNW5.jpg)
[Fri Jun 29 23:45:04 2018] [info] [VIEW] someone viewed 2017-11-17.png (path: files/gC5YxbDS.png)
[Sat Jun 30 09:22:38 2018] [info] [VIEW] someone viewed six feet under saison1.jpg (path: files/3XlgCNW5.jpg)
[Sat Jun 30 09:22:39 2018] [info] [VIEW] someone viewed 2017-11-17.png (path: files/gC5YxbDS.png)
[Sat Jun 30 10:28:13 2018] [info] [VIEW] someone viewed 2017-11-17.png (path: files/gC5YxbDS.png)
[Sat Jun 30 10:30:15 2018] [info] Listening at "http://127.0.0.1:8095"
[Sat Jun 30 10:30:15 2018] [info] Manager 1540 started
[Sat Jun 30 10:30:15 2018] [info] Creating process id file "/var/www/lutim/script/hypnotoad.pid"
et si je ls le fichier hypnotoad.pid:
# ls -l /var/www/lutim/script/hypnotoad.pid
ls: impossible d'accéder à '/var/www/lutim/script/hypnotoad.pid': Aucun fichier ou dossier de ce type
Si je le start cela ne change rien :
# yunohost service start lutim
Succès ! Le service « lutim » a été démarré
# yunohost service status lutim
active: active
active_at:
human: 2018-06-30 16:32:51
timestamp: 1530369171927750
description: Image hosting and sharing service
loaded: enabled
service_file_path: /etc/systemd/system/lutim.service
status: exited
Je pense qu’il doit y avoir une histoire de compilation, mais la doc de “carton” est tellement claire que je n’ai pas la moindre idée de si il est possible de faire un upgrade…
Je crains également que, globalement, lutim ne supporte pas la migration actuellement…
Une première solution qu’on peut tester est de recompiler avec “carton”.
Note: En yunohost 3.0.0.1 --ignore-system n’existe plus et est par défaut
# yunohost backup create --apps lutim
Succès ! Sauvegarde terminée
name: 20180702-120019
results:
apps:
lutim: Success
system:
size: 138094470
# cd /var/www/lutim
atlas:/var/www/lutim# carton install
Installing modules using /var/www/lutim/cpanfile
! Configure failed for DBD-Pg-3.7.4. See /root/.cpanm/work/1530525788.5894/build.log for details.
! Installing the dependencies failed: Module 'DBD::Pg' is not installed
! Bailing out the installation for Mojo-Pg-4.08.
! Configure failed for DBD-SQLite-1.56. See /root/.cpanm/work/1530525788.5894/build.log for details.
! Installing the dependencies failed: Installed version (1.40) of DBD::SQLite is not in range '1.50'
! Bailing out the installation for Mojo-SQLite-3.000.
! Installing the dependencies failed: Module 'Mojo::SQLite' is not installed
! Bailing out the installation for Minion-Backend-SQLite-0.009.
! Installing Net::SSLeay failed. See /root/.cpanm/work/1530525788.5894/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'Mojo::SQLite' is not installed, Module 'Mojo::Pg' is not installed, Module 'Minion::Backend::SQLite' is not installed, Installed version (1.58) of Net::SSLeay is not in range '1.81'
! Bailing out the installation for /var/www/lutim/.
Installing modules failed
Comme la commande me retourne des erreurs, je teste en supprimant le dossier:
Ben, le problème c’est /usr/bin/ld : ne peut trouver -lz
Je n’ai pas la moindre idée de pourquoi, comment, ce que c’est…
Essaye tout de même de continuer pour voir si ça fonctionne ou pas.
# ls -1 /var/www/lutim/local/lib/perl5/ |grep linux-gnu
x86_64-linux-gnu-thread-multi
Je dois ajouter à la variable @IND, mais je ne vois pas à quoi je dois substituer ?
le script perl non modifié:
#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
BEGIN { unshift @INC, "$FindBin::Bin/../lib" }
# Start command line interface for application
require Mojolicious::Commands;
Mojolicious::Commands->start_app('Mounter');
# yunohost service start lutim
Succès ! Le service « lutim » a été démarré
# yunohost service status lutim
active: active
active_at:
human: 2018-07-02 11:07:49
timestamp: 1530522469147845
description: Image hosting and sharing service
loaded: enabled
service_file_path: /etc/systemd/system/lutim.service
status: exited