NC not working, don't know whats wrong

Hello everybody, i am new to linux and know some basics.

Apperently my nextcloud isn’t workung anymore. I hope you can help me identyfy and solve the problem.

when i enter the :443 domain it says:

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.

i can enter the :4443 domain.

the log shows:

<details>
<summary>NextCloudPi diagnostics</summary>

```

NextCloudPi version  v1.28.0
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      17G/932G
rootfs usage         11G/15G
swapfile             /var/swap
dbdir                /media/myCloudDrive/ncdatanew/
Nextcloud check      error
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
Postfix service      up
internet check       ok
port check 80        open
port check 443       open
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               12min

```
</details>

and:

i hope you can help me.

with best regards. T

1 Like
<details>
<summary>Nextcloud configuration</summary>

```

An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1049] Unknown database 'nextcloud' in /var/www/nextcloud/lib/private/DB/Connection.php:68
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(1040): OC\DB\Connection->connect()
#1 /var/www/nextcloud/lib/private/DB/Connection.php(220): Doctrine\DBAL\Connection->executeUpdate('SET SESSION TRA...', Array, Array)
#2 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(683): OC\DB\Connection->executeUpdate('SET SESSION TRA...')
#3 /var/www/nextcloud/lib/private/DB/Connection.php(155): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#4 /var/www/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))
#5 /var/www/nextcloud/lib/private/DB/ConnectionFactory.php(157): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /var/www/nextcloud/lib/private/Server.php(749): OC\DB\ConnectionFactory->getConnection('mysql', Array)
#7 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#8 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OCP\\IDBConnecti...')
#9 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query('OCP\\IDBConnecti...')
#10 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#11 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('DatabaseConnect...')
#12 /var/www/nextcloud/lib/private/Server.php(1666): OC\ServerContainer->query('DatabaseConnect...')
#13 /var/www/nextcloud/lib/private/Server.php(422): OC\Server->getDatabaseConnection()
#14 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#15 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\Authenticati...')
#16 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(70): OC\ServerContainer->query('OC\\Authenticati...', true)
#17 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(100): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#18 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(115): OC\AppFramework\Utility\SimpleContainer->resolve('OC\\Authenticati...')
#19 /var/www/nextcloud/lib/private/ServerContainer.php(150): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...', true)
#20 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(70): OC\ServerContainer->query('OC\\Authenticati...', true)
#21 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(100): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#22 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(115): OC\AppFramework\Utility\SimpleContainer->resolve('OC\\Authenticati...')
#23 /var/www/nextcloud/lib/private/ServerContainer.php(150): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...', true)
#24 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query('OC\\Authenticati...')
#25 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#26 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\Authenticati...')
#27 /var/www/nextcloud/lib/private/Server.php(434): OC\ServerContainer->query('OC\\Authenticati...')
#28 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#29 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\User\\Session')
#30 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query('OC\\User\\Session')
#31 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#32 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('UserSession')
#33 /var/www/nextcloud/lib/private/Server.php(1542): OC\ServerContainer->query('UserSession')
#34 /var/www/nextcloud/lib/private/Server.php(802): OC\Server->getUserSession()
#35 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#36 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('OC\\App\\AppManag...')
#37 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query('OC\\App\\AppManag...')
#38 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#39 /var/www/nextcloud/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet('AppManager')
#40 /var/www/nextcloud/lib/private/Server.php(1837): OC\ServerContainer->query('AppManager')
#41 /var/www/nextcloud/lib/private/legacy/app.php(347): OC\Server->getAppManager()
#42 /var/www/nextcloud/lib/private/legacy/app.php(114): OC_App::getEnabledApps()
#43 /var/www/nextcloud/lib/base.php(645): OC_App::loadApps(Array)
#44 /var/www/nextcloud/lib/base.php(1089): OC::init()
#45 /var/www/nextcloud/console.php(48): require_once('/var/www/nextcl...')
#46 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#47 {main}
```
</details>


<details>
<summary>HTTPd logs</summary>

```

[Sat Jul 25 15:02:15.393627 2020] [authz_host:error] [pid 883:tid 2797163552] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /img/poweroff.svg failed, reason: unable to get the remote host name
[Sat Jul 25 15:02:15.393677 2020] [authz_host:error] [pid 883:tid 2847536160] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /img/reboot.svg failed, reason: unable to get the remote host name
[Sat Jul 25 15:02:15.416081 2020] [authz_host:error] [pid 883:tid 2797163552] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /img/menu.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.39:4443/css/ncp.css
[Sat Jul 25 15:02:15.416081 2020] [authz_host:error] [pid 883:tid 2847536160] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sat Jul 25 15:02:15.431431 2020] [authz_host:error] [pid 883:tid 2805564448] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /img/settings-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.39:4443/css/ncp.css
[Sat Jul 25 15:02:15.447157 2020] [authz_host:error] [pid 883:tid 2805564448] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Sat Jul 25 15:02:15.483650 2020] [authz_host:error] [pid 883:tid 2780361760] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /img/wizard.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.39:4443/css/ncp.css
[Sat Jul 25 15:02:15.484745 2020] [authz_host:error] [pid 883:tid 2763559968] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.39:4443/css/ncp.css
[Sat Jul 25 15:02:15.485105 2020] [authz_host:error] [pid 883:tid 2788762656] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /img/files.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.39:4443/css/ncp.css
[Sat Jul 25 15:02:20.013125 2020] [authz_host:error] [pid 883:tid 2847536160] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sat Jul 25 15:02:20.030756 2020] [authz_host:error] [pid 883:tid 2847536160] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sat Jul 25 15:02:23.790213 2020] [authz_host:error] [pid 883:tid 2771960864] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Sat Jul 25 15:02:23.897211 2020] [authz_host:error] [pid 883:tid 2771960864] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Sat Jul 25 15:02:23.897706 2020] [authz_host:error] [pid 883:tid 2771960864] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Sat Jul 25 15:02:24.030856 2020] [authz_host:error] [pid 883:tid 2771960864] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Sat Jul 25 15:02:25.867905 2020] [authz_host:error] [pid 883:tid 2771960864] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /css/ncp.css failed, reason: unable to get the remote host name, referer: https://192.168.178.39:4443/
[Sat Jul 25 15:02:25.955522 2020] [authz_host:error] [pid 883:tid 2805564448] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sat Jul 25 15:02:25.961839 2020] [authz_host:error] [pid 883:tid 2771960864] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Sat Jul 25 15:02:30.489825 2020] [authz_host:error] [pid 883:tid 2805564448] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sat Jul 25 15:02:30.511163 2020] [authz_host:error] [pid 883:tid 2805564448] [client 192.168.178.38:55318] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name

```
</details>


<details>
<summary>Database logs</summary>

```

2020-07-25 15:02:14 0 [Note] InnoDB: Initializing buffer pool, total size = 768M, instances = 1, chunk size = 128M
2020-07-25 15:02:14 0 [Note] InnoDB: Completed initialization of buffer pool
2020-07-25 15:02:14 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-07-25 15:02:14 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2020-07-25 15:02:14 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-07-25 15:02:14 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2020-07-25 15:02:14 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2020-07-25 15:02:14 0 [Note] InnoDB: Waiting for purge to start
2020-07-25 15:02:14 0 [Note] InnoDB: 10.3.22 started; log sequence number 1624762; transaction id 23
2020-07-25 15:02:14 0 [Note] InnoDB: Loading buffer pool(s) from /media/myCloudDrive/ncdatanew/ib_buffer_pool
2020-07-25 15:02:14 0 [Note] Plugin 'FEEDBACK' is disabled.
2020-07-25 15:02:14 0 [Note] InnoDB: Buffer pool(s) load completed at 200725 15:02:14
2020-07-25 15:02:14 0 [Note] Server socket created on IP: '127.0.0.1'.
2020-07-25 15:02:14 0 [Warning] 'user' entry 'root@raspberrypi' ignored in --skip-name-resolve mode.
2020-07-25 15:02:14 0 [Warning] 'user' entry '@raspberrypi' ignored in --skip-name-resolve mode.
2020-07-25 15:02:14 0 [Warning] 'proxies_priv' entry '@% root@raspberrypi' ignored in --skip-name-resolve mode.
2020-07-25 15:02:14 0 [Note] Reading of all Master_info entries succeeded
2020-07-25 15:02:14 0 [Note] Added new Master_info '' to hash table
2020-07-25 15:02:14 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.22-MariaDB-0+deb10u1'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Raspbian 10

```
</details>

if you need more information pls let me know!

Thanks in advance!

Hello @Timbo2206 ,

welcome to the community of Nextcloud.

You started a topic in support category.

Unfortunately you ignored the template and a lot of information to help you is missing.

Please add all necessary information like Nextcloud version, webserver type and version, os version.

Without additional information the community members cannot help you.

Here you have the problem. You db is not reachable.