No longer able to update or install apps

My YunoHost server

Hardware: VPS bought online (Debian 9.9)
YunoHost version: 3.6.4.6 (stable). (Look here for the entire Diagnosis result)
I have access to my server : Through SSH and through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

Installing new apps, or updating existing apps fail.

Example:

ERROR - Unable to upgrade nextcloud

Here is the full log in a yunohost paste

I tried updating my kanban board and installing a mastodon package; these also failed.
All other functions seem to work fine so far. Rebooting didn’t solve the issue. All system packages are up-to-date.

Thnx for any tips and help!

Hey @dosch,

It appears to have failed on this step:

https://github.com/YunoHost-Apps/nextcloud_ynh/blob/ff7590c44e029b14104beea6cc343742955eaba2/scripts/upgrade#L418

Where you can see the corresponding failure:

2019-08-05 17:15:08,192: WARNING - Aug 05 17:13:32 mijn.dosch.nl systemd[1]: Starting Fail2Ban Service…
2019-08-05 17:15:08,192: DEBUG - + local exit_code=1
2019-08-05 17:15:08,192: WARNING - Aug 05 17:13:32 mijn.dosch.nl fail2ban-client[21729]: ERROR No file(s) found for glob /var/log/fail2ban.log
2019-08-05 17:15:08,192: DEBUG - + ‘[’ 1 -eq 0 ‘]’
2019-08-05 17:15:08,193: WARNING - Aug 05 17:13:32 mijn.dosch.nl fail2ban-client[21729]: ERROR Failed during configuration: Have not found any log file for recidive jail
2019-08-05 17:15:08,193: DEBUG - + trap ‘’ EXIT
2019-08-05 17:15:08,193: WARNING - Aug 05 17:13:32 mijn.dosch.nl systemd[1]: fail2ban.service: Control process exited, code=exited status=255
2019-08-05 17:15:08,194: DEBUG - + set +eu
2019-08-05 17:15:08,194: WARNING - Aug 05 17:13:32 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.

So you might want to investigate your fail2ban configuration. What does:

$ systemctl status fail2ban

Tell you? Does /var/log/fail2ban.log exist?

You could maybe go ahead and raise this issue on the issue tracker of the nextcloud repository to see if there is something that the upgrade script can do this in this case: https://github.com/YunoHost-Apps/nextcloud_ynh/issues.

But I’m not sure.

1 Like

Thnx for your answer!

I get:

  ● fail2ban.service - Fail2Ban Service
     Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2019-08-05 17:15:10 UTC; 16h ago
       Docs: man:fail2ban(1)
    Process: 23691 ExecStart=/usr/bin/fail2ban-client -x start (code=exited, status=255)

Manually starting Fail2Ban in the services panel in the YNH-webinterface also creates many errors:

Click here to see that entire log.
Unable to start service 'fail2ban'

Recent service logs:-- Logs begin at Thu 2019-08-01 22:45:03 UTC, end at Tue 2019-08-06 09:51:04 UTC. --
Aug 05 17:13:30 mijn.dosch.nl systemd[1]: Starting Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has begun starting up.
Aug 05 17:13:31 mijn.dosch.nl fail2ban-client[21717]: ERROR No file(s) found for glob /var/log/fail2ban.log
Aug 05 17:13:31 mijn.dosch.nl fail2ban-client[21717]: ERROR Failed during configuration: Have not found any log file for recidive jail
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has failed.
-- 
-- The result is failed.
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: fail2ban.service: Unit entered failed state.
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: Stopped Fail2Ban Service.
-- Subject: Unit fail2ban.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has finished shutting down.
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: Starting Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has begun starting up.
Aug 05 17:13:31 mijn.dosch.nl fail2ban-client[21722]: ERROR No file(s) found for glob /var/log/fail2ban.log
Aug 05 17:13:31 mijn.dosch.nl fail2ban-client[21722]: ERROR Failed during configuration: Have not found any log file for recidive jail
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has failed.
-- 
-- The result is failed.
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: fail2ban.service: Unit entered failed state.
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: Stopped Fail2Ban Service.
-- Subject: Unit fail2ban.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has finished shutting down.
Aug 05 17:13:31 mijn.dosch.nl systemd[1]: Starting Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has begun starting up.
Aug 05 17:13:32 mijn.dosch.nl fail2ban-client[21724]: ERROR No file(s) found for glob /var/log/fail2ban.log
Aug 05 17:13:32 mijn.dosch.nl fail2ban-client[21724]: ERROR Failed during configuration: Have not found any log file for recidive jail
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has failed.
-- 
-- The result is failed.
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: fail2ban.service: Unit entered failed state.
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: Stopped Fail2Ban Service.
-- Subject: Unit fail2ban.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has finished shutting down.
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: Starting Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has begun starting up.
Aug 05 17:13:32 mijn.dosch.nl fail2ban-client[21727]: ERROR No file(s) found for glob /var/log/fail2ban.log
Aug 05 17:13:32 mijn.dosch.nl fail2ban-client[21727]: ERROR Failed during configuration: Have not found any log file for recidive jail
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has failed.
-- 
-- The result is failed.
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: fail2ban.service: Unit entered failed state.
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: Stopped Fail2Ban Service.
-- Subject: Unit fail2ban.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has finished shutting down.
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: Starting Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has begun starting up.
Aug 05 17:13:32 mijn.dosch.nl fail2ban-client[21729]: ERROR No file(s) found for glob /var/log/fail2ban.log
Aug 05 17:13:32 mijn.dosch.nl fail2ban-client[21729]: ERROR Failed during configuration: Have not found any log file for recidive jail
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has failed.
-- 
-- The result is failed.
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: fail2ban.service: Unit entered failed state.
Aug 05 17:13:32 mijn.dosch.nl systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Aug 05 17:13:33 mijn.dosch.nl systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Aug 05 17:13:33 mijn.dosch.nl systemd[1]: Stopped Fail2Ban Service.
-- Subject: Unit fail2ban.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has finished shutting down.
Aug 05 17:13:33 mijn.dosch.nl systemd[1]: fail2ban.service: Start request repeated too quickly.
Aug 05 17:13:33 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has failed.
-- 
-- The result is failed.
Aug 05 17:13:33 mijn.dosch.nl systemd[1]: fail2ban.service: Unit entered failed state.
Aug 05 17:13:33 mijn.dosch.nl systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Aug 05 17:15:07 mijn.dosch.nl systemd[1]: Starting Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has begun starting up.
Aug 05 17:15:08 mijn.dosch.nl fail2ban-client[23673]: ERROR No file(s) found for glob /var/log/fail2ban.log
Aug 05 17:15:08 mijn.dosch.nl fail2ban-client[23673]: ERROR Failed during configuration: Have not found any log file for recidive jail
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has failed.
-- 
-- The result is failed.
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: fail2ban.service: Unit entered failed state.
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: Stopped Fail2Ban Service.
-- Subject: Unit fail2ban.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has finished shutting down.
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: Starting Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has begun starting up.
Aug 05 17:15:08 mijn.dosch.nl fail2ban-client[23678]: ERROR No file(s) found for glob /var/log/fail2ban.log
Aug 05 17:15:08 mijn.dosch.nl fail2ban-client[23678]: ERROR Failed during configuration: Have not found any log file for recidive jail
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has failed.
-- 
-- The result is failed.
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: fail2ban.service: Unit entered failed state.
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: Stopped Fail2Ban Service.
-- Subject: Unit fail2ban.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has finished shutting down.
Aug 05 17:15:08 mijn.dosch.nl systemd[1]: Starting Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has begun starting up.
Aug 05 17:15:09 mijn.dosch.nl fail2ban-client[23680]: ERROR No file(s) found for glob /var/log/fail2ban.log
Aug 05 17:15:09 mijn.dosch.nl fail2ban-client[23680]: ERROR Failed during configuration: Have not found any log file for recidive jail
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has failed.
-- 
-- The result is failed.
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: fail2ban.service: Unit entered failed state.
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: Stopped Fail2Ban Service.
-- Subject: Unit fail2ban.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has finished shutting down.
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: Starting Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has begun starting up.
Aug 05 17:15:09 mijn.dosch.nl fail2ban-client[23689]: ERROR No file(s) found for glob /var/log/fail2ban.log
Aug 05 17:15:09 mijn.dosch.nl fail2ban-client[23689]: ERROR Failed during configuration: Have not found any log file for recidive jail
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has failed.
-- 
-- The result is failed.
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: fail2ban.service: Unit entered failed state.
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: Stopped Fail2Ban Service.
-- Subject: Unit fail2ban.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has finished shutting down.
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: Starting Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has begun starting up.
Aug 05 17:15:09 mijn.dosch.nl fail2ban-client[23691]: ERROR No file(s) found for glob /var/log/fail2ban.log
Aug 05 17:15:09 mijn.dosch.nl fail2ban-client[23691]: ERROR Failed during configuration: Have not found any log file for recidive jail
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has failed.
-- 
-- The result is failed.
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: fail2ban.service: Unit entered failed state.
Aug 05 17:15:09 mijn.dosch.nl systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Aug 05 17:15:10 mijn.dosch.nl systemd[1]: fail2ban.service: Service hold-off time over, scheduling restart.
Aug 05 17:15:10 mijn.dosch.nl systemd[1]: Stopped Fail2Ban Service.
-- Subject: Unit fail2ban.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has finished shutting down.
Aug 05 17:15:10 mijn.dosch.nl systemd[1]: fail2ban.service: Start request repeated too quickly.
Aug 05 17:15:10 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has failed.
-- 
-- The result is failed.
Aug 05 17:15:10 mijn.dosch.nl systemd[1]: fail2ban.service: Unit entered failed state.
Aug 05 17:15:10 mijn.dosch.nl systemd[1]: fail2ban.service: Failed with result 'exit-code'.
Aug 06 09:51:04 mijn.dosch.nl systemd[1]: Starting Fail2Ban Service...
-- Subject: Unit fail2ban.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has begun starting up.
Aug 06 09:51:04 mijn.dosch.nl fail2ban-client[12919]: ERROR No file(s) found for glob /var/log/fail2ban.log
Aug 06 09:51:04 mijn.dosch.nl fail2ban-client[12919]: ERROR Failed during configuration: Have not found any log file for recidive jail
Aug 06 09:51:04 mijn.dosch.nl systemd[1]: fail2ban.service: Control process exited, code=exited status=255
Aug 06 09:51:04 mijn.dosch.nl systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- Unit fail2ban.service has failed.
-- 
-- The result is failed.
Aug 06 09:51:04 mijn.dosch.nl systemd[1]: fail2ban.service: Unit entered failed state.
Aug 06 09:51:04 mijn.dosch.nl systemd[1]: fail2ban.service: Failed with result 'exit-code'.

Unable to execute command 'systemctl start fail2ban'

No.
But fail2ban.log.1 does exist.

solved by @Aleks in this post

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