Matériel : Olimex A20, lime2. image Debian buster Version de YunoHost : 4.0.8.3 (stable) derrière freebox mini 4K J’ai accès à mon serveur : En SSH | Par la webadmin Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
I’m having an issue with fail2ban that fails to start on my instance. I know it’s related to Nextcloud but not sure about how to solve this. Here is the log:
– Logs begin at Wed 2021-02-17 15:17:01 GMT, end at Thu 2021-02-18 11:45:08 GMT. –
Feb 17 15:17:19 systemd[1]: Starting Fail2Ban Service…
Feb 17 15:17:19 systemd[1]: Started Fail2Ban Service.
Feb 17 15:17:21 fail2ban-server[774]: No file(s) found for glob /home/yunohost.app/nextcloud/data/nextcloud.log
Feb 17 15:17:21 fail2ban-server[774]: Failed during configuration: Have not found any log file for nextcloud jail
Feb 17 15:17:21 fail2ban-server[774]: Async configuration of server failed
Feb 17 15:17:21 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
Feb 17 15:17:21 systemd[1]: fail2ban.service: Failed with result ‘exit-code’.
Feb 17 15:17:25 systemd[1]: fail2ban.service: Unit cannot be reloaded because it is inactive.
Feb 17 15:33: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.
Feb 17 15:33: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.
Feb 17 15:33:44 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.
Feb 17 15:33:45 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.
Feb 17 15:37:47 systemd[1]: Starting Fail2Ban Service…
Feb 17 15:37:47 systemd[1]: Started Fail2Ban Service.
Feb 17 15:37:47 fail2ban-server[4084]: No file(s) found for glob /home/yunohost.app/nextcloud/data/nextcloud.log
Feb 17 15:37:47 fail2ban-server[4084]: Failed during configuration: Have not found any log file for nextcloud jail
Feb 17 15:37:47 fail2ban-server[4084]: Async configuration of server failed
Feb 17 15:37:47 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
Feb 17 15:37:47 systemd[1]: fail2ban.service: Failed with result ‘exit-code’.
Feb 18 11:44:58 systemd[1]: Starting Fail2Ban Service…
Feb 18 11:44:58 systemd[1]: Started Fail2Ban Service.
Feb 18 11:44:58 fail2ban-server[27204]: No file(s) found for glob /home/yunohost.app/nextcloud/data/nextcloud.log
Feb 18 11:44:58 fail2ban-server[27204]: Failed during configuration: Have not found any log file for nextcloud jail
Feb 18 11:44:58 fail2ban-server[27204]: Async configuration of server failed
Feb 18 11:44:58 systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/EXCEPTION
Feb 18 11:44:58 systemd[1]: fail2ban.service: Failed with result ‘exit-code’.
But it would help if you could elaborate on when this started to happen with respect to the nextcloud install (was it just after installing nextcloud ? or nextcloud was working fine since a while and this spontanouesly happened ? did you do anything particular related to /home/yunohost.app ?)
Then I had an unexpected Errror 504 “bad gateway” when trying to reach the Nextcloud URL. I figured out that it was related to a failed OnlyOffice install (OnlyOffice fails to install). I manually deleted the OnlyOffice folder in in /var/www/nextcloud/apps (this might be the biggest mistake I did…), but then my Freebox died and everything was offline for a few days !
I received the new Freebox yesterday, and restarted my Pi Yunohost server. Now I can reach Nextcloud, sync works fine, everything’s OK, fail2ban failing to start is the last error I see.
Beh du coup je ne sais pas comment tu as configuré les choses mais il ne semble pas y’avoir de pont entre ton dossier /home/yunohost.app/nextcloud/data (qui n’existe pas) et /media/stockage/nextcloud_data