NextcloudPi version v1.52.4
NextcloudPi image NextcloudPi_04-19-23
OS Debian GNU/Linux 11. 5.10.0-24-amd64 (x86_64)
automount no
USB devices sdc
datadir (doesn't exist)
rootfs usage 809G/1,8T
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check error
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service down
Postfix service up
Internet check ok
Public IPv4 ***REMOVED SENSITIVE VALUE***
Public IPv6 ***REMOVED SENSITIVE VALUE***
Port 80 open
Port 443 open
IP ***REMOVED SENSITIVE VALUE***
Gateway ***REMOVED SENSITIVE VALUE***
Interface enp2s0
Certificates ***REMOVED SENSITIVE VALUE***
NAT loopback no
Uptime 1day
Nextcloud configuration
'memcache.local' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
'password' => 'S4G0LTvfUolWb3zzYWuu555uMYYe79/JyJR9BRin62E=',
),
);
An unhandled exception has been thrown:
Exception: Config file has leading content, please remove everything before "<?php" in config.php in /var/www/nextcloud/lib/private/Config.php:240
Stack trace:
#0 /var/www/nextcloud/lib/private/Config.php(71): OC\Config->readData()
#1 /var/www/nextcloud/lib/base.php(151): OC\Config->__construct()
#2 /var/www/nextcloud/lib/base.php(619): OC::initPaths()
#3 /var/www/nextcloud/lib/base.php(1180): OC::init()
#4 /var/www/nextcloud/console.php(48): require_once('...')
#5 /var/www/nextcloud/occ(11): require_once('...')
#6 {main}
HTTPd logs
[Mon Aug 14 18:20:58.372757 2023] [authz_host:error] [pid 363972] [client 192.168.178.74:53503] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Mon Aug 14 18:20:58.402925 2023] [authz_host:error] [pid 473061] [client 192.168.178.74:53537] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Aug 14 18:20:58.405668 2023] [authz_host:error] [pid 298428] [client 192.168.178.74:53539] AH01753: access check of 'localhost' to /img/toggle.svg failed, reason: unable to get the remote host name
[Mon Aug 14 18:20:58.408560 2023] [authz_host:error] [pid 298337] [client 192.168.178.74:53533] AH01753: access check of 'localhost' to /img/loading-small.gif failed, reason: unable to get the remote host name, referer: https://192.168.178.36:4443/?app=dashboard
[Mon Aug 14 18:20:58.411418 2023] [authz_host:error] [pid 298333] [client 192.168.178.74:53538] AH01753: access check of 'localhost' to /img/files.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.36:4443/css/ncp.css
[Mon Aug 14 18:20:58.420778 2023] [authz_host:error] [pid 298428] [client 192.168.178.74:53539] AH01753: access check of 'localhost' to /img/poweroff.svg failed, reason: unable to get the remote host name
[Mon Aug 14 18:20:58.421914 2023] [authz_host:error] [pid 298337] [client 192.168.178.74:53533] AH01753: access check of 'localhost' to /img/search.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.36:4443/css/ncp.css
[Mon Aug 14 18:20:58.424481 2023] [authz_host:error] [pid 298333] [client 192.168.178.74:53538] AH01753: access check of 'localhost' to /img/nc-button.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.36:4443/css/ncp.css
[Mon Aug 14 18:20:58.427624 2023] [authz_host:error] [pid 298337] [client 192.168.178.74:53533] AH01753: access check of 'localhost' to /img/dashboard.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.36:4443/css/ncp.css
[Mon Aug 14 18:20:58.429780 2023] [authz_host:error] [pid 298428] [client 192.168.178.74:53539] AH01753: access check of 'localhost' to /img/defaults-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.36:4443/css/ncp.css
[Mon Aug 14 18:20:58.432654 2023] [authz_host:error] [pid 298333] [client 192.168.178.74:53538] AH01753: access check of 'localhost' to /img/settings-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.36:4443/css/ncp.css
[Mon Aug 14 18:20:58.434497 2023] [authz_host:error] [pid 298428] [client 192.168.178.74:53539] AH01753: access check of 'localhost' to /img/logs.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.36:4443/css/ncp.css
[Mon Aug 14 18:20:58.436447 2023] [authz_host:error] [pid 298337] [client 192.168.178.74:53533] AH01753: access check of 'localhost' to /img/wizard.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.36:4443/css/ncp.css
[Mon Aug 14 18:20:58.439521 2023] [authz_host:error] [pid 298428] [client 192.168.178.74:53539] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.36:4443/css/ncp.css
[Mon Aug 14 18:20:58.442641 2023] [authz_host:error] [pid 298337] [client 192.168.178.74:53533] AH01753: access check of 'localhost' to /img/defaults.svg failed, reason: unable to get the remote host name
[Mon Aug 14 18:20:58.445209 2023] [authz_host:error] [pid 298428] [client 192.168.178.74:53539] AH01753: access check of 'localhost' to /img/reboot.svg failed, reason: unable to get the remote host name
[Mon Aug 14 18:20:58.457476 2023] [authz_host:error] [pid 298333] [client 192.168.178.74:53538] AH01753: access check of 'localhost' to /img/favicon.png failed, reason: unable to get the remote host name
[Mon Aug 14 18:21:06.210503 2023] [authz_host:error] [pid 473061] [client 192.168.178.74:53537] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Aug 14 18:21:06.289520 2023] [proxy_fcgi:error] [pid 473061] [client 192.168.178.74:53537] AH01071: Got error 'PHP message: PHP Warning: Undefined variable $CONFIG in /var/www/ncp-web/backups.php on line 135PHP message: PHP Warning: Trying to access array offset on value of type null in /var/www/ncp-web/backups.php on line 135'
[Mon Aug 14 18:21:06.300493 2023] [authz_host:error] [pid 473061] [client 192.168.178.74:53537] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
Database logs
tail: '/var/log/mysql/*.log' kann nicht zum Lesen geöffnet werden: Datei oder Verzeichnis nicht gefunden
Doesn’t matter if you use an external drive or not. the logs show the path to your drive/SD card. Unfortunately your logs say that the datadir(ection) isn’t available. This could mean your drive isn’t mounted correctly and/or lost it’s mount or your drive is failing.
In your case I would check with a second device if my HDD/ssd/sd-card is fine and in the ccli (fstab) if my mount point is correct
I use a Server with 4 HDDs with 8TB and a Raid 10 system. I have a running NC. But, last week I have made a Update with ncp-config. It happened that’s my Backup doesn’t restore and NC App delete my Data at my Client.