Server not available

I am facing the following issue:

"Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log."

Nextcloud version (eg, 20.0.5): 20.0.12.1
Operating system and version (eg, Ubuntu 20.04): Raspbian GNU/Linux 10 \n \l

The issue you are facing:

When trying to enter server via web I got the following issue:

"Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log."

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

<?php
$CONFIG = array (
  'passwordsalt' => 'SALT',
  'secret' => 'SECRET',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
  ),
  'datadirectory' => '/media/myCloudDrive/ncdata',
  'dbtype' => 'mysql',
  'version' => '20.0.12.1',
  'overwrite.cli.url' => 'MyDomain',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => 'XXXXX',
  'installed' => true,
  'instanceid' => 'iDiDiDiD',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'XXXXX',
  ),
  'tempdirectory' => '/media/myCloudDrive/ncdata/tmp',
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'admin',
  'mail_domain' => 'ownyourbits.com',
  'maintenance' => false,
  'logfile' => '/media/myCloudDrive/ncdata/nextcloud.log',
  'loglevel' => '2',
  'log_type' => 'file',
);

information from raspi config webinterface:

System Info


NextCloudPi version	v1.38.0
NextCloudPi image	NextCloudPi_08-14-21
distribution	Raspbian GNU/Linux 10 \n \l
automount	yes
USB devices	sda
datadir	/media/myCloudDrive/ncdata
data in SD	no
data filesystem	btrfs
data disk usage	11G/932G
rootfs usage	8.9G/117G
swapfile	/var/swap
dbdir	/var/lib/mysql
Nextcloud check	error
HTTPD service	up
PHP service	up
MariaDB service	down
Redis service	up
Postfix service	up
internet check	ok
port check 80	open
port check 443	open
IP	xxx.xxx.xxx.xxx
gateway	yyy.yyy.yyy.yyy.
interface	wlan0
certificates	none
bNAT loopback	no
uptime	1:04

Thanks ins advance for your help

Is your domain whitelisted in nextcloudpi? I don’t see it listed.

Or, whitelist the ip of the device nextcloud is on. Assign it a dhcp reservation or static ip on your router.

It is listed in trusted domains, but I deleted it in the publicated file instead of masking it. Same for the device IP.

Thanks for the answer.

MariaDB service down
is probably bad.