Fail2ban status failed

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 25.0.3.2
Operating system and version (eg, Ubuntu 20.04): debian 11
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): 8.1.14

The issue you are facing:

After flashing and activating the current NextcloudPi Image on a usb flash drive i had already two emergency boots (systemd is changing profile to emergency) in the last days. recommendation is to check journalctl and reboot.
i am new to linux so all i have found until now was that fail2ban is not working.
Not sure if this is really the problem.

Is this the first time you’ve seen this error? (Y/N):Y

Steps to replicate it:

  1. terminal: sudo service fail2ban status
  2. active: failed

The output of your Nextcloud log in Admin > Logging:

https://pastebin.com/Cu5C8NF0

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => 'xxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxx',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    7 => 'nextcloudpi',
    5 => 'nextcloudpi.local',
    8 => 'nextcloudpi.lan',
    3 => 'nextcloudpi',
    11 => 'xxxxxxxx',
    1 => '192.168.xxx.xxx',
    14 => 'nextcloudpi',
    20 => 'xxxxxxxxxx.myfritz.net',
  ),
  'datadirectory' => '/media/ssd/ncdata/data',
  'dbtype' => 'mysql',
  'version' => '25.0.3.2',
  'overwrite.cli.url' => 'https://nextcloudpi/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxxxxxxx',
  'dbpassword' => 'xxxxxxxxxxxxx',
  'installed' => true,
  'instanceid' => 'occqjdyc2czx',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'xxxxxxxxxxxxxxxxxx=',
  ),
  'tempdirectory' => '/media/ssd/ncdata/data/tmp',
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'admin',
  'mail_domain' => 'ownyourbits.com',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'maintenance' => false,
  'logfile' => '/media/ssd/ncdata/data/nextcloud.log',
  'trusted_proxies' =>
  array (
    11 => '127.0.0.1',
    12 => '::1',
    13 => 'nextcloudpi',
    14 => '192.168.xxx.xxx',
  ),
  'loglevel' => '2',
  'log_type' => 'file',
  'htaccess.RewriteBase' => '/',
);

The output of your Apache/nginx/system log in /var/log/____:


[Wed Mar 15 19:09:05.582195 2023] [ssl:warn] [pid 740:tid 548383097920] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 15 19:09:05.585068 2023] [mpm_event:notice] [pid 740:tid 548383097920] AH00489: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Wed Mar 15 19:09:05.585132 2023] [core:notice] [pid 740:tid 548383097920] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 15 19:13:48.419817 2023] [mpm_event:notice] [pid 740:tid 548383097920] AH00492: caught SIGWINCH, shutting down gracefully
[Wed Mar 15 19:14:27.228634 2023] [ssl:warn] [pid 613:tid 548253275200] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 15 19:14:27.281387 2023] [ssl:warn] [pid 745:tid 548253275200] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Wed Mar 15 19:14:27.287261 2023] [mpm_event:notice] [pid 745:tid 548253275200] AH00489: Apache/2.4.54 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Wed Mar 15 19:14:27.287378 2023] [core:notice] [pid 745:tid 548253275200] AH00094: Command line: '/usr/sbin/apache2'

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE
https://pastebin.com/Cu5C8NF0

Output NCP Sytem Information

 NextcloudPi version	v1.51.0
NextcloudPi image	NextCloudPi_RaspberryPi_v1.51.0.img
OS	Debian GNU/Linux 11. 5.15.61-v8+ (aarch64)
automount	yes
USB devices	sda sdb
datadir	/media/ssd/ncdata/data
data in SD	no
data filesystem	btrfs
data disk usage	11G/3.7T
rootfs usage	2.8G/28G
swapfile	/var/swap
dbdir	/var/lib/mysql
Nextcloud check	ok
Nextcloud version	25.0.3.2
HTTPD service	up
PHP service	up
MariaDB service	up
Redis service	up
HPB service	down
Postfix service	up
Internet check	ok
Public IPv4	85.195.252.71
Public IPv6	2a02:168:85be:0:3d9d:79ea:f8c0:5959
Port 80	open
Port 443	open
IP	192.168.xx.xx
Gateway	192.168.xx.xx
Interface	eth0
Certificates	xxxxxxxxx.myfritz.net
NAT loopback	no
Uptime	2min