[Résolu]Erreur d'installation vaultwarden

Mon serveur YunoHost

Matériel: VM
Version de YunoHost: 11.0.11
J’ai accès à mon serveur : En SSH
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
Si votre requête est liée à une applicatio, précisez son nom et sa version: vaultwarden 1.26.0~ynh2

Description du problème

Bonjour,

J’ai voulu installer vaultwarden, mais j’ai un message d’erreur qui m’indique qu’il est impossible de l’installer.

Impossible d'installer vaultwarden : Une erreur est survenue dans le script d'installation de l'application

Ci-joint les log
https://paste.yunohost.org/raw/rigajarema

Merci pour votre aide

Hello,
je ne suis pas assez calé pour totalement t’aider.
Cependant t’on log donne des erreurs à propos de fail2ban. Le service à propos de fail2ban est bien actif ? (Outils > Services > fail2ban).

bonjour @stilobique
Oui fail2ban est bien activé

Description: Protège contre les attaques brute-force et autres types d’attaques venant d’Internet
Statut : En cours d’exécution depuis il y a environ 21 heures
Lancement au démarrage : : Activé
Configuration: valid

admin@portail-ctig:~$ systemctl status fail2ban
● fail2ban.service - Fail2Ban Service
     Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; vendor preset: enabled)
     Active: active (running) since Mon 2022-12-26 13:28:57 CET; 4 weeks 0 days ago
       Docs: man:fail2ban(1)
    Process: 26398 ExecReload=/usr/bin/fail2ban-client reload (code=exited, status=255/EXCEPTION)
   Main PID: 32460
      Tasks: 19 (limit: 4915)
     Memory: 20.0M
     CGroup: /system.slice/fail2ban.service
             └─32460 /usr/bin/python3 /usr/bin/fail2ban-server -xf start

Warning: some journal files were not opened due to insufficient permissions.

Tu as redémarré la machine entre temps ? Je suis étonné que le service ne fonctionne que depuis 21h, si tu as relancé le service ou fait un reboot normal.

Par contre, tu n’as pas de droit suffisant pour voir les logs ? Re-tente la commande avec un petit sudo si jamais on y voit quelque chose de louche.

Je me demande si l’installation de fail2ban ne relance pas ce service, ce qui expliquerait le redémarrage.
Je rejette un œil sûr t’on log d’installation si je trouve d’autre chose étrange.

Edit : Clairement, l’erreur ce situe là

2023-01-23 15:05:19,395: WARNING - Job for fail2ban.service failed.
2023-01-23 15:05:19,396: WARNING - See "systemctl status fail2ban.service" and "journalctl -xe" for details.
2023-01-23 15:05:19,397: DEBUG - + ynh_exec_err journalctl --quiet --no-hostname --no-pager --lines=20 --unit=fail2ban
2023-01-23 15:05:19,397: DEBUG - + [[ 6 -eq 1 ]]
2023-01-23 15:05:19,397: DEBUG - ++ journalctl --quiet --no-hostname --no-pager --lines=20 --unit=fail2ban
2023-01-23 15:05:19,410: DEBUG - + ynh_print_err '--message=déc. 26 13:28:25 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,410: DEBUG - déc. 26 13:28:26 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,411: DEBUG - déc. 26 13:28:27 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,411: DEBUG - déc. 26 13:28:27 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,411: DEBUG - déc. 26 13:28:30 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,411: DEBUG - déc. 26 13:28:30 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,412: DEBUG - déc. 26 13:28:41 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,412: DEBUG - déc. 26 13:28:42 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,412: DEBUG - déc. 26 13:28:51 systemd[1]: /lib/systemd/system/fail2ban.service:12: PIDFile= references path below legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid → /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
2023-01-23 15:05:19,413: DEBUG - déc. 26 13:28:52 systemd[1]: Stopping Fail2Ban Service...
2023-01-23 15:05:19,413: DEBUG - déc. 26 13:28:53 fail2ban-client[32301]: Shutdown successful
2023-01-23 15:05:19,413: DEBUG - déc. 26 13:28:53 systemd[1]: fail2ban.service: Succeeded.
2023-01-23 15:05:19,414: DEBUG - déc. 26 13:28:53 systemd[1]: Stopped Fail2Ban Service.
2023-01-23 15:05:19,414: DEBUG - déc. 26 13:28:57 systemd[1]: Starting Fail2Ban Service...

Mais ba je ne crois pas pouvoir t’aider plus :frowning: .
Sur les issues ouverte côté Github quelque soucis avec Fail2ban mais pas forcément lié à t’on log.

L’erreur est en effet du côté de Fail2ban:

2023-01-23 15:05:19,454: WARNING - janv. 23 15:05:19 fail2ban-client[18581]: 2023-01-23 15:05:19,371 fail2ban [18581]: ERROR Could not find server

Est-ce que son service est indiqué comme actif dans le menu Outils > Services? Si non, tente de le relancer et partage ses logs avec YunoPaste.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.