Nextcloud version: 24.0.9
Operating system and version: Ubuntu 20.04
Apache version: Apache/2.4.41
PHP version: PHP 7.4.33
The issue you are facing:
This is the first time I’ve seen this error.
I followed this article to get my server accessible from the internet, because I have a DS-Lite connection.
My homeserver sits behind a ssh tunnel over a server on the internet, because I have no ipv4 address at home anymore.
The setup is now, as I understand it:
INTERNET → mydomain.de → internet-server → (ssh-tunnel) → home-server (with certbot certificate for mydomain.de)
I can load a test website with https fine, and also get to the nextcloud login screen, but when entering my credentials, I get the " Internal Server Error. The server was unable to complete your request. " message.
The output of your Nextcloud log in Admin > Logging reads
Debug extract /appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead. 2023-05-21T10:33:35+00:00
Warning no app in context Failed to parse mimetypemapping.json: Syntax error
I also sometimes get
Error PHP PHP Startup: Unable to load dynamic library 'php_ldap.so' (tried: /usr/lib/php/20190902/php_ldap.so (/usr/lib/php/20190902/php_ldap.so: cannot open shared object file: No such 2023-05-21T10:45:09+00:00
file or directory), /usr/lib/php/20190902/php_ldap.so.so (/usr/lib/php/20190902/php_ldap.so.so: cannot open shared object file: No such file or directory)) at Unknown#0
The output of your config.php file in /path/to/nextcloud
:
<?php
$CONFIG = array (
'instanceid' => 'XXXXXXXXXXX',
'passwordsalt' => 'XXXXXXXXXXXX',
'secret' => 'XXXXXXXXXX',
'trusted_domains' =>
array (
0 => 'LOCAL IP PLACEHOLDER',
1 => 'REMOTE IP PLACEHOLDER',
2 => 'server',
3 => 'mydomain.de',
4 => 'www.mydomain.de'
),
'datadirectory' => '/mnt/nextcloud_nas/data',
'dbtype' => 'mysql',
'version' => '24.0.9.2',
'overwrite.cli.url' => 'http://XXXXXXXXX/nextcloud',
'htaccess.RewriteBase' => '/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'XXXXXXXX',
'dbpassword' => 'XXXXXXXXXXXX',
'installed' => true,
'maintenance' => false,
'mysql.utf8mb4' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'theme' => '',
'loglevel' => 0,
'app_install_overwrite' =>
array (
0 => 'documentserver_community',
1 => 'pride',
2 => 'sharerenamer',
),
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'updater.release.channel' => 'stable',
'default_phone_region' => '1974',
);
The output of your Apache error log in /var/log/____
:
PHP Warning: PHP Startup: Unable to load dynamic library 'php_ldap.so' (tried: /usr/lib/php/20190902/php_ldap.so (/usr/lib/php/20190902/php_ldap.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_ldap.so.so (/usr/lib/php/20190902/php_ldap.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[Sun May 21 12:04:42.074592 2023] [mpm_prefork:notice] [pid 4172] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Sun May 21 12:04:42.074661 2023] [core:notice] [pid 4172] AH00094: Command line: '/usr/sbin/apache2'
[Sun May 21 12:11:09.516748 2023] [mpm_prefork:notice] [pid 4172] AH00169: caught SIGTERM, shutting down
PHP Warning: PHP Startup: Unable to load dynamic library 'php_ldap.so' (tried: /usr/lib/php/20190902/php_ldap.so (/usr/lib/php/20190902/php_ldap.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/php_ldap.so.so (/usr/lib/php/20190902/php_ldap.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
[Sun May 21 12:11:09.644687 2023] [mpm_prefork:notice] [pid 4440] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Sun May 21 12:11:09.644752 2023] [core:notice] [pid 4440] AH00094: Command line: '/usr/sbin/apache2'
[Sun May 21 12:51:12.526329 2023] [php7:error] [pid 4450] [client 127.0.0.1:38342] script '/var/www/html/status.php' not found or unable to stat
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.
{"reqId":"bn21biw6EyU9JN7w2hEN","level":3,"time":"2020-05-28T12:01:05+00:00","remoteAddr":"192.168.178.58","user":"--","app":"PHP","method":"POST","url":"/nextcloud/index.php","message":"mkdir(): No such file or directory at /var/www/nextcloud/lib/private/Setup.php#312","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36","version":""}
{"reqId":"Fzyd7AyTuBZHiq0DxQAp","level":3,"time":"2020-05-28T12:01:48+00:00","remoteAddr":"192.168.178.58","user":"--","app":"PHP","method":"POST","url":"/nextcloud/index.php","message":"mkdir(): No such file or directory at /var/www/nextcloud/lib/private/Setup.php#312","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36","version":""}
{"reqId":"YY8JMNu3bPzMvKigcs0N","level":3,"time":"2020-05-28T12:02:28+00:00","remoteAddr":"192.168.178.58","user":"--","app":"PHP","method":"POST","url":"/nextcloud/index.php","message":"mkdir(): No such file or directory at /var/www/nextcloud/lib/private/Setup.php#312","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36","version":""}
{"reqId":"8ogvUbhCUuT5eTCDgGmF","level":3,"time":"2020-05-28T12:04:12+00:00","remoteAddr":"192.168.178.58","user":"--","app":"PHP","method":"POST","url":"/nextcloud/index.php","message":"mkdir(): No such file or directory at /var/www/nextcloud/lib/private/Setup.php#312","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36","version":""}