Accidently remove Nextcloud config folder

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, 18.0.2):
Operating system and version (eg, Ubuntu 20.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing:
accidently remove Nextcloud config folder.
Is there a way to restore / reinstall nextcloudpi?
I’m using nextcloudpi image in docker

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

Steps to replicate it:

NextCloudPi diagnostics

grep: /var/www/nextcloud/config/config.php: No such file or directory
NextCloudPi version  v1.29.8
NextCloudPi image    NextCloudPi_docker_07-20-19
distribution         Debian GNU/Linux 10 \n \l
automount            no
USB devices          none
datadir               (doesn't exist)
rootfs usage         23G/59G
swapfile             /var/swap
dbdir                /data/database
Nextcloud check      error
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
Postfix service      up
internet check       no
port check 80        closed
port check 443       closed
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               1:40

use nc-restore to restore your instance from latest backup.

https://docs.nextcloudpi.com/en/how-to-backup-and-restore-a-nextcloudpi-instance-using-ncp-config/

I thought nextcloud backup automatically, but it didn’t. I don’t know if there is system repair tools or could you please show me a way to reinstall nextcloudpi container without loosing data?

Nextcloud has no automatic backup afaik.
NCP has nc-backup and nc-backup-auto but you have to enable it, for it to create backups. If you didnt…you should do next time.

With docker I’d remove the container and create a new one, using the same volume. Your data should still be there.

I rm nextcloudpi container with its image and run this code to start a new container with newest image:
docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v ncdata:/data --name nextcloudpi ownyourbits/nextcloudpi-armhf 192.168.1.222

I followed this link:
https://ownyourbits.com/2017/11/15/nextcloudpi-dockers-for-x86-and-arm/

I can go to nextcloud wizard and nextcloud admin page, with no config folder. I still can not go to nextcloud client

pi@raspberrypi:/ $ docker logs -f nextcloudpi
Starting PHP-fpm
Starting Apache
Starting mariaDB
2020-09-05 10:41:42 0 [Note] mysqld (mysqld 10.3.22-MariaDB-0+deb10u1) starting as process 93 …
Starting Redis
Starting Cron
Starting Postfix
Uninitialized instance, running nc-init…
Running nc-init
Setting up a clean Nextcloud instance… wait until message ‘NC init done’
Setting up database…
Setting up Nextcloud…
Cannot write into “config” directory!
This can usually be fixed by giving the webserver write access to the config directory

Or, if you prefer to keep config.php file read only, set the option “config_is_read_only” to true in it.
See https://docs.nextcloud.com/server/19/go.php?to=admin-config
Cannot write into “config” directory!
This can usually be fixed by giving the webserver write access to the config directory

Or, if you prefer to keep config.php file read only, set the option “config_is_read_only” to true in it.
See https://docs.nextcloud.com/server/19/go.php?to=admin-config
sed: can’t read config/config.php: No such file or directory
Starting dnsmasq…
Starting DNS forwarder and DHCP server: dnsmasq.
Init done

Your volume ncdata
probably in subdir of /var/docker/…/ncdata (or similar depending docker setup)
seems damaged, how did you manage to remove /config?

I usually create a folder in an external drive for /ncdata, but it can be anywhere you want
e.a. /media/drive_or_folder_name/ncdata,
so instead of

-v ncdata:/data --name nextcloudpi

use

-v /media/drive_or_folder_name/ncdata:/data --name nextcloudpi

Remove existing container, before trying again.

Check https://docs.nextcloudpi.com/en/how-to-get-started-with-ncp-docker/
how to set up a volume for backups too :wink:

I did what you told me to do. But I still can’t see my old files. The directory which is mounted with previous nextcloud is /var/lib/docker/volumes/ncdata . Can I have a chance to get back my files?

Did you have a look in there?
The first user created is ncp, its files will be in:

/var/lib/docker/volumes/ncdata/nextcloud/data/ncp/files/

I’d use rsync to copy them to the new instance path, run nc-scan, and should be good to go.

Can do same for any other user in /var/lib/docker/volumes/ncdata/nextcloud/data/
There is a folder for every user.
If do use something else to copy them , run nc-fix-permissions before nc-scan.

I did reinstall fresh new nextcloud into /media folder. It worked fine after that, I can upload and download normally.
After a day of use, it returns “Internal Server Error” again:
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.

Output of apache2ctl -S:
VirtualHost configuration:
*:80 localhost (/etc/apache2/sites-enabled/000-default.conf:1)
*:4443 localhost (/etc/apache2/sites-enabled/ncp.conf:2)
*:443 p14host.hopto.org (/etc/apache2/sites-enabled/nextcloud.conf:2)
ServerRoot: “/etc/apache2”
Main DocumentRoot: “/var/www/html”
Main ErrorLog: “/var/log/apache2/error.log”
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
PidFile: “/var/run/apache2/apache2.pid”
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name=“www-data” id=33
Group: name=“www-data” id=33

Output /var/log/apache2/error.log

[Sat Sep 05 15:14:58.385256 2020] [authz_core:error] [pid 11000:tid 2630845472] [client 89.248.160.139:51560] AH01630: client denied by server configuration: /var/www/ncp-web/gswave
[Sun Sep 06 12:01:58.659179 2020] [authz_host:error] [pid 11000:tid 2681201696] [client 119.118.18.191:54100] AH01753: access check of ‘localhost’ to / failed, reason: unable to get the remote host name, referer: https://115.74.35.186:4443/
[Sun Sep 06 12:01:58.660896 2020] [authz_core:error] [pid 11000:tid 2681201696] [client 119.118.18.191:54100] AH01630: client denied by server configuration: /var/www/ncp-web/, referer: https://115.74.35.186:4443/
[Sun Sep 06 14:49:07.426875 2020] [authz_host:error] [pid 11000:tid 3033101344] [client 192.168.1.7:51810] AH01753: access check of ‘localhost’ to / failed, reason: unable to get the remote host name
[Sun Sep 06 14:49:12.816115 2020] [authz_host:error] [pid 11000:tid 3033101344] [client 192.168.1.7:51811] AH01753: access check of ‘localhost’ to / failed, reason: unable to get the remote host name
[Sun Sep 06 14:49:20.448520 2020] [authz_host:error] [pid 11000:tid 3033101344] [client 192.168.1.7:51811] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 06 14:49:20.448571 2020] [authz_host:error] [pid 11000:tid 2982745120] [client 192.168.1.7:51811] AH01753: access check of ‘localhost’ to /img/delete.svg failed, reason: unable to get the remote host name
[Sun Sep 06 14:49:20.448573 2020] [authz_host:error] [pid 11000:tid 3024708640] [client 192.168.1.7:51811] AH01753: access check of ‘localhost’ to /img/download.svg failed, reason: unable to get the remote host name
[Sun Sep 06 14:49:28.249426 2020] [authz_host:error] [pid 11000:tid 3033101344] [client 192.168.1.7:51811] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 06 14:50:13.164584 2020] [authz_host:error] [pid 11000:tid 3033101344] [client 192.168.1.7:51811] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 06 14:50:13.176031 2020] [authz_host:error] [pid 11000:tid 3024708640] [client 192.168.1.7:51811] AH01753: access check of ‘localhost’ to /img/green-circle.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Sun Sep 06 14:50:13.522680 2020] [authz_host:error] [pid 11000:tid 3033101344] [client 192.168.1.7:51811] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 06 14:51:18.775459 2020] [authz_host:error] [pid 11000:tid 3033101344] [client 192.168.1.7:51811] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 06 14:51:19.325173 2020] [authz_host:error] [pid 11000:tid 3033101344] [client 192.168.1.7:51811] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sun Sep 06 15:41:38.203620 2020] [mpm_event:notice] [pid 99:tid 3069230512] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Sep 06 15:42:32.014189 2020] [ssl:error] [pid 92:tid 3069726128] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:32.015612 2020] [ssl:error] [pid 92:tid 3069726128] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:32.047631 2020] [ssl:error] [pid 93:tid 3069726128] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:32.047704 2020] [ssl:error] [pid 93:tid 3069726128] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:32.053575 2020] [mpm_event:notice] [pid 93:tid 3069726128] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Sun Sep 06 15:42:32.053700 2020] [core:notice] [pid 93:tid 3069726128] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Sep 06 15:42:32.514578 2020] [ssl:error] [pid 94:tid 3069959600] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:32.516119 2020] [ssl:error] [pid 94:tid 3069959600] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:32.551264 2020] [ssl:error] [pid 95:tid 3069959600] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:32.551333 2020] [ssl:error] [pid 95:tid 3069959600] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:32.552406 2020] [core:warn] [pid 95:tid 3069959600] AH00098: pid file /var/run/apache2/apache2.pid overwritten – Unclean shutdown of previous Apache run?
[Sun Sep 06 15:42:32.556539 2020] [mpm_event:notice] [pid 95:tid 3069959600] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Sun Sep 06 15:42:32.556637 2020] [core:notice] [pid 95:tid 3069959600] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Sep 06 15:42:10.793885 2020] [ssl:error] [pid 93:tid 3070066096] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:10.795276 2020] [ssl:error] [pid 93:tid 3070066096] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:10.832418 2020] [ssl:error] [pid 94:tid 3070066096] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:10.832487 2020] [ssl:error] [pid 94:tid 3070066096] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:10.833939 2020] [core:warn] [pid 94:tid 3070066096] AH00098: pid file /var/run/apache2/apache2.pid overwritten – Unclean shutdown of previous Apache run?
[Sun Sep 06 15:42:10.839711 2020] [mpm_event:notice] [pid 94:tid 3070066096] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Sun Sep 06 15:42:10.839859 2020] [core:notice] [pid 94:tid 3070066096] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Sep 06 15:42:32.479452 2020] [ssl:error] [pid 94:tid 3070008752] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:32.480856 2020] [ssl:error] [pid 94:tid 3070008752] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:32.511717 2020] [ssl:error] [pid 95:tid 3070008752] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:32.511752 2020] [ssl:error] [pid 95:tid 3070008752] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:32.512849 2020] [core:warn] [pid 95:tid 3070008752] AH00098: pid file /var/run/apache2/apache2.pid overwritten – Unclean shutdown of previous Apache run?
[Sun Sep 06 15:42:32.517093 2020] [mpm_event:notice] [pid 95:tid 3070008752] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Sun Sep 06 15:42:32.517197 2020] [core:notice] [pid 95:tid 3070008752] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Sep 06 15:42:32.453016 2020] [ssl:error] [pid 93:tid 3069242800] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:32.454544 2020] [ssl:error] [pid 93:tid 3069242800] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:32.492425 2020] [ssl:error] [pid 94:tid 3069242800] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:32.492496 2020] [ssl:error] [pid 94:tid 3069242800] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:32.493582 2020] [core:warn] [pid 94:tid 3069242800] AH00098: pid file /var/run/apache2/apache2.pid overwritten – Unclean shutdown of previous Apache run?
[Sun Sep 06 15:42:32.497582 2020] [mpm_event:notice] [pid 94:tid 3069242800] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Sun Sep 06 15:42:32.497727 2020] [core:notice] [pid 94:tid 3069242800] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Sep 06 15:42:32.564753 2020] [ssl:error] [pid 94:tid 3069390256] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:32.565595 2020] [ssl:error] [pid 94:tid 3069390256] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:32.595814 2020] [ssl:error] [pid 95:tid 3069390256] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:32.595855 2020] [ssl:error] [pid 95:tid 3069390256] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:32.596864 2020] [core:warn] [pid 95:tid 3069390256] AH00098: pid file /var/run/apache2/apache2.pid overwritten – Unclean shutdown of previous Apache run?
[Sun Sep 06 15:42:32.600865 2020] [mpm_event:notice] [pid 95:tid 3069390256] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Sun Sep 06 15:42:32.600965 2020] [core:notice] [pid 95:tid 3069390256] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Sep 06 15:42:10.312886 2020] [ssl:error] [pid 93:tid 3069660592] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:10.314289 2020] [ssl:error] [pid 93:tid 3069660592] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:10.344056 2020] [ssl:error] [pid 94:tid 3069660592] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Sun Sep 06 15:42:10.344104 2020] [ssl:error] [pid 94:tid 3069660592] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Sep 06 15:42:10.345100 2020] [core:warn] [pid 94:tid 3069660592] AH00098: pid file /var/run/apache2/apache2.pid overwritten – Unclean shutdown of previous Apache run?
[Sun Sep 06 15:42:10.349270 2020] [mpm_event:notice] [pid 94:tid 3069660592] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Sun Sep 06 15:42:10.349389 2020] [core:notice] [pid 94:tid 3069660592] AH00094: Command line: ‘/usr/sbin/apache2’
[Mon Sep 07 01:18:02.154014 2020] [ssl:error] [pid 93:tid 3069447600] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Mon Sep 07 01:18:02.155391 2020] [ssl:error] [pid 93:tid 3069447600] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Mon Sep 07 01:18:02.185184 2020] [ssl:error] [pid 94:tid 3069447600] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Mon Sep 07 01:18:02.185254 2020] [ssl:error] [pid 94:tid 3069447600] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Mon Sep 07 01:18:02.186254 2020] [core:warn] [pid 94:tid 3069447600] AH00098: pid file /var/run/apache2/apache2.pid overwritten – Unclean shutdown of previous Apache run?
[Mon Sep 07 01:18:02.190438 2020] [mpm_event:notice] [pid 94:tid 3069447600] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Mon Sep 07 01:18:02.190547 2020] [core:notice] [pid 94:tid 3069447600] AH00094: Command line: ‘/usr/sbin/apache2’
[Mon Sep 07 05:35:55.321161 2020] [ssl:error] [pid 93:tid 3069509040] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Mon Sep 07 05:35:55.322533 2020] [ssl:error] [pid 93:tid 3069509040] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Mon Sep 07 05:35:55.352203 2020] [ssl:error] [pid 94:tid 3069509040] AH02217: ssl_stapling_init_cert: can’t retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 230E6FEDC48A5981C4496B06D88B6B8B1A4D7F88 / notbefore: Apr 6 05:22:36 2020 GMT / notafter: Apr 4 05:22:36 2030 GMT]
[Mon Sep 07 05:35:55.352251 2020] [ssl:error] [pid 94:tid 3069509040] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Mon Sep 07 05:35:55.353265 2020] [core:warn] [pid 94:tid 3069509040] AH00098: pid file /var/run/apache2/apache2.pid overwritten – Unclean shutdown of previous Apache run?
[Mon Sep 07 05:35:55.357285 2020] [mpm_event:notice] [pid 94:tid 3069509040] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Mon Sep 07 05:35:55.357391 2020] [core:notice] [pid 94:tid 3069509040] AH00094: Command line: ‘/usr/sbin/apache2’
[Mon Sep 07 06:10:23.423410 2020] [authz_host:error] [pid 97:tid 2983506976] [client 192.168.1.37:47082] AH01753: access check of ‘localhost’ to / failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:32.696021 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to / failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:32.846206 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to / failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:32.851729 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /index.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:32.915571 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /index.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:33.293844 2020] [authz_host:error] [pid 96:tid 2782082080] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/ncp-logo.svg failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:33.324577 2020] [authz_host:error] [pid 96:tid 2765296672] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /js/ncp.js failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:33.325200 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /css/ncp.css failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:33.325469 2020] [authz_host:error] [pid 96:tid 2790474784] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/loading-small.gif failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:33.325798 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /js/minified.js failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:33.421004 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/toggle.svg failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:33.422544 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/defaults.svg failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:33.497055 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/search.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:10:33.501720 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/nc-button.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:10:33.504562 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/dashboard.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:10:33.509286 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/defaults-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:10:33.510796 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/settings-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:10:33.513360 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/wizard.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:10:33.514024 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:10:33.514078 2020] [authz_host:error] [pid 96:tid 2765296672] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/files.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:10:33.514588 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/poweroff.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:10:33.514884 2020] [authz_host:error] [pid 96:tid 2765296672] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/menu.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:10:33.557515 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/reboot.svg failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:33.598659 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:33.683887 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/favicon.png failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:33.683887 2020] [authz_host:error] [pid 96:tid 2765296672] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /ncp-output.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:38.115110 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:38.144484 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:38.144548 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/download.svg failed, reason: unable to get the remote host name
[Mon Sep 07 06:10:38.144549 2020] [authz_host:error] [pid 96:tid 2790474784] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /img/delete.svg failed, reason: unable to get the remote host name
[Mon Sep 07 06:11:34.713627 2020] [proxy_fcgi:error] [pid 96:tid 2790474784] [client 192.168.1.37:47092] AH01067: Failed to read FastCGI header
[Mon Sep 07 06:11:34.713856 2020] [proxy_fcgi:error] [pid 96:tid 2790474784] (104)Connection reset by peer: [client 192.168.1.37:47092] AH01075: Error dispatching request to :4443:
[Mon Sep 07 06:11:34.714266 2020] [proxy_fcgi:error] [pid 96:tid 2765296672] [client 192.168.1.37:47092] AH01067: Failed to read FastCGI header
[Mon Sep 07 06:11:34.714327 2020] [proxy_fcgi:error] [pid 96:tid 2765296672] (104)Connection reset by peer: [client 192.168.1.37:47092] AH01075: Error dispatching request to :4443:
[Mon Sep 07 06:11:34.762431 2020] [proxy_fcgi:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01067: Failed to read FastCGI header
[Mon Sep 07 06:11:34.792664 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /favicon.ico failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/?app=nc-update
[Mon Sep 07 06:11:38.323937 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to / failed, reason: unable to get the remote host name
[Mon Sep 07 06:11:38.453681 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to / failed, reason: unable to get the remote host name
[Mon Sep 07 06:11:38.454066 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /index.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:11:38.517858 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.37:47092] AH01753: access check of ‘localhost’ to /index.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:17:22.057599 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.7:57727] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:17:22.982660 2020] [authz_host:error] [pid 96:tid 2765296672] [client 192.168.1.7:57727] AH01753: access check of ‘localhost’ to /img/info.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:18:55.770600 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.7:57727] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:18:55.807277 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.7:57727] AH01753: access check of ‘localhost’ to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:22:29.836359 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.7:57727] AH01753: access check of ‘localhost’ to /img/red-circle.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:26:49.570046 2020] [proxy_fcgi:error] [pid 96:tid 2790474784] [client 192.168.1.7:57727] AH01067: Failed to read FastCGI header
[Mon Sep 07 06:26:49.570260 2020] [proxy_fcgi:error] [pid 96:tid 2790474784] (104)Connection reset by peer: [client 192.168.1.7:57727] AH01075: Error dispatching request to :4443:
[Mon Sep 07 06:26:55.134422 2020] [authz_host:error] [pid 97:tid 2983506976] [client 192.168.1.7:57886] AH01753: access check of ‘localhost’ to /ncp-output.php failed, reason: unable to get the remote host name

Now I can only access admin page.

outputs from ncp-report:
<–! Paste this in GitHub report -->

NextCloudPi diagnostics

NextCloudPi version  v1.29.8
NextCloudPi image    NextCloudPi_docker_04-06-20
distribution         Debian GNU/Linux 10 \n \l
automount            no
USB devices          none
datadir              /data/nextcloud/data
data in SD           yes
data filesystem      ext2/ext3
data disk usage      8.9G/59G
rootfs usage         8.9G/59G
swapfile             /var/swap
dbdir                /data/database
Nextcloud check      error
HTTPD service        up
PHP service          up
MariaDB service      down
Redis service        up
Postfix service      down
internet check       no
port check 80        closed
port check 443       closed
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               1:21

Nextcloud configuration

An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory in /data/nextcloud/lib/private/DB/Connection.php:68
Stack trace:
#0 /data/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(420): OC\DB\Connection->connect()
#1 /data/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(380): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /data/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(324): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /data/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(683): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /data/nextcloud/lib/private/DB/Connection.php(155): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /data/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(195): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /data/nextcloud/lib/private/DB/ConnectionFactory.php(157): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /data/nextcloud/lib/private/Server.php(748): OC\DB\ConnectionFactory->getConnection('mysql', Array)
#8 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#9 /data/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OCP\\IDBConnecti...')
#10 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query('OCP\\IDBConnecti...')
#11 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#12 /data/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('DatabaseConnect...')
#13 /data/nextcloud/lib/private/Server.php(1664): OC\ServerContainer->query('DatabaseConnect...')
#14 /data/nextcloud/lib/private/Server.php(421): OC\Server->getDatabaseConnection()
#15 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#16 /data/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\Authenticati...')
#17 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(70): OC\ServerContainer->query('OC\\Authenticati...', true)
#18 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(100): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#19 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(115): OC\AppFramework\Utility\SimpleContainer->resolve('OC\\Authenticati...')
#20 /data/nextcloud/lib/private/ServerContainer.php(150): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...', true)
#21 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(70): OC\ServerContainer->query('OC\\Authenticati...', true)
#22 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(100): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#23 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(115): OC\AppFramework\Utility\SimpleContainer->resolve('OC\\Authenticati...')
#24 /data/nextcloud/lib/private/ServerContainer.php(150): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...', true)
#25 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query('OC\\Authenticati...')
#26 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#27 /data/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\Authenticati...')
#28 /data/nextcloud/lib/private/Server.php(433): OC\ServerContainer->query('OC\\Authenticati...')
#29 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#30 /data/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\User\\Session')
#31 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query('OC\\User\\Session')
#32 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#33 /data/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('UserSession')
#34 /data/nextcloud/lib/private/Server.php(1547): OC\ServerContainer->query('UserSession')
#35 /data/nextcloud/lib/private/Server.php(1143): OC\Server->getSession()
#36 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#37 /data/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\Security\\CSR...')
#38 /data/nextcloud/lib/private/Server.php(1138): OC\ServerContainer->query('OC\\Security\\CSR...')
#39 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#40 /data/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\Security\\CSR...')
#41 /data/nextcloud/lib/private/Server.php(2011): OC\ServerContainer->query('OC\\Security\\CSR...')
#42 /data/nextcloud/lib/private/Server.php(937): OC\Server->getCsrfTokenManager()
#43 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#44 /data/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OCP\\IRequest')
#45 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query('OCP\\IRequest')
#46 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#47 /data/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('Request')
#48 /data/nextcloud/lib/private/Server.php(1414): OC\ServerContainer->query('Request')
#49 /data/nextcloud/lib/private/Server.php(579): OC\Server->getRequest()
#50 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#51 /data/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OCP\\L10N\\IFacto...')
#52 /data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query('OCP\\L10N\\IFacto...')
#53 /data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#54 /data/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('L10NFactory')
#55 /data/nextcloud/lib/private/Server.php(1600): OC\ServerContainer->query('L10NFactory')
#56 /data/nextcloud/lib/private/Server.php(1611): OC\Server->getL10NFactory()
#57 /data/nextcloud/lib/base.php(239): OC\Server->getL10N('lib')
#58 /data/nextcloud/lib/base.php(650): OC::checkConfig()
#59 /data/nextcloud/lib/base.php(1089): OC::init()
#60 /data/nextcloud/console.php(48): require_once('/data/nextcloud...')
#61 /data/nextcloud/occ(11): require_once('/data/nextcloud...')
#62 {main}
HTTPd logs

[Mon Sep 07 06:17:17.700824 2020] [authz_host:error] [pid 96:tid 2790474784] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /img/dashboard.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:17:17.701123 2020] [authz_host:error] [pid 96:tid 2790474784] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /img/defaults-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:17:17.701374 2020] [authz_host:error] [pid 96:tid 2790474784] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /img/settings-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:17:17.702565 2020] [authz_host:error] [pid 96:tid 2790474784] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /img/wizard.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:17:17.702851 2020] [authz_host:error] [pid 96:tid 2790474784] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:17:17.703081 2020] [authz_host:error] [pid 96:tid 2790474784] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /img/files.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:17:17.752367 2020] [authz_host:error] [pid 96:tid 2790474784] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:17:17.774724 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:17:18.006410 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /img/favicon.png failed, reason: unable to get the remote host name
[Mon Sep 07 06:17:22.032103 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:17:22.057599 2020] [authz_host:error] [pid 96:tid 2765296672] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /img/delete.svg failed, reason: unable to get the remote host name
[Mon Sep 07 06:17:22.057599 2020] [authz_host:error] [pid 96:tid 2773689376] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /img/download.svg failed, reason: unable to get the remote host name
[Mon Sep 07 06:17:22.057599 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:17:22.982660 2020] [authz_host:error] [pid 96:tid 2765296672] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /img/info.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:18:55.770600 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:18:55.807277 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Sep 07 06:22:29.836359 2020] [authz_host:error] [pid 96:tid 2756903968] [client 192.168.1.7:57727] AH01753: access check of 'localhost' to /img/red-circle.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.222:4443/css/ncp.css
[Mon Sep 07 06:26:49.570046 2020] [proxy_fcgi:error] [pid 96:tid 2790474784] [client 192.168.1.7:57727] AH01067: Failed to read FastCGI header
[Mon Sep 07 06:26:49.570260 2020] [proxy_fcgi:error] [pid 96:tid 2790474784] (104)Connection reset by peer: [client 192.168.1.7:57727] AH01075: Error dispatching request to :4443:
[Mon Sep 07 06:26:55.134422 2020] [authz_host:error] [pid 97:tid 2983506976] [client 192.168.1.7:57886] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name

Database logs

2020-09-07  5:35:55 0 [Note] InnoDB: Number of pools: 1
2020-09-07  5:35:55 0 [Note] InnoDB: Using generic crc32 instructions
2020-09-07  5:35:56 0 [Note] InnoDB: Initializing buffer pool, total size = 1G, instances = 1, chunk size = 128M
2020-09-07  5:35:56 0 [Note] InnoDB: Completed initialization of buffer pool
2020-09-07  5:35:56 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-09-07  5:35:56 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=52346542
2020-09-07  5:35:56 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-09-07  5:35:56 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2020-09-07  5:35:56 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-09-07  5:35:56 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-09-07  5:35:56 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2020-09-07  5:35:56 0 [Note] InnoDB: 10.3.23 started; log sequence number 52346551; transaction id 93561
2020-09-07  5:35:56 0 [Note] InnoDB: Loading buffer pool(s) from /data/database/ib_buffer_pool
2020-09-07  5:35:56 0 [Note] InnoDB: Buffer pool(s) load completed at 200907  5:35:56 (/data/database/ib_buffer_pool was empty)
2020-09-07  5:35:56 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-09-07  5:35:56 0 [Note] Recovering after a crash using tc.log
2020-09-07  5:35:56 0 [Note] Starting crash recovery...
2020-09-07  5:35:56 0 [Note] Crash recovery finished.
2020-09-07  5:35:56 0 [Note] Server socket created on IP: '127.0.0.1'.
2020-09-07  5:35:56 0 [ERROR] Fatal error: Can't open and lock privilege tables: Incorrect file format 'user'