Unable to login to Nextcloud - "Internal Server Error" - random fail overnight (--> Metadata v.0.11.0 fails)

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 (16.0.7): snap package
Operating system and version (Ubuntu 19.04):
Apache or nginx version (Apache 2.4.41):
PHP version (7.1):

The issue you are facing:
Starting this morning I couldn’t login to my nextcloud due to a certificate issue on any device. Now I have a “Internal Server Error” when trying to login. I’m running it on Linode using the latest stable snap install. I performed a restore on Lindode from a backup made yesterday., the same thing happens.

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

Steps to replicate it:

  1. goto my url for example cloud.myurl.com
  2. type in correct username and password
  3. get presented with the internal server error screen.

The output of your Nextcloud log in Admin > Logging:

How do I get this when I can't login please?

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

<?php
$CONFIG = array (
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/snap/nextcloud/current/htdocs/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
      'url' => '/extra-apps',
      'writable' => true,
    ),
  ),
  'supportedDatabases' => 
  array (
    0 => 'mysql',
  ),
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/tmp/sockets/redis.sock',
    'port' => 0,
  ),
  'instanceid' => 'oc012pechs9l',
  'passwordsalt' => '********************',
  'secret' => '***************************',
  'trusted_domains' => 
  array (
    0 => '***.***.***.***',
    1 => '***.***.***',
  ),
  'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '16.0.7.1',
  'overwrite.cli.url' => 'http://***.***.***.***',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '*******',
  'installed' => true,
  'maintenance' => false,
  'loglevel' => 2,
  'mail_from_address' => '****',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '*****.**.**',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.*****.com',
  'mail_smtpport' => '465',
  'mail_smtpname' => '****@*****.***.**',
  'mail_smtppassword' => '*******',
  'theme' => '',
);

The output of your Apache/nginx/system log in /var/log/____:

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
[Tue Jan 14 04:04:28.517468 2020] [ssl:warn] [pid 23428:tid 140370144688000] AH01909: ::1:443:0 server certificate does NOT include an ID which matches the server name
[Tue Jan 14 04:04:28.518573 2020] [mpm_event:notice] [pid 23428:tid 140370144688000] AH00489: Apache/2.4.41 (Unix) OpenSSL/1.0.2g configured -- resuming normal operations
[Tue Jan 14 04:04:28.518592 2020] [core:notice] [pid 23428:tid 140370144688000] AH00094: Command line: 'httpd -d /snap/nextcloud/18204 -D EnableHTTPS -D EnableHSTS -D FOREGROUND'
[Tue Jan 14 04:04:28.521574 2020] [unixd:alert] [pid 23432:tid 140370144688000] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jan 14 04:04:28.522150 2020] [unixd:alert] [pid 23433:tid 140370144688000] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jan 14 04:04:28.522978 2020] [unixd:alert] [pid 23431:tid 140370144688000] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jan 14 04:10:06.860826 2020] [unixd:alert] [pid 24366:tid 140370144688000] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Wed Jan 15 23:51:53.809482 2020] [core:error] [pid 24366:tid 140369907926784] [client 206.189.110.254:57176] AH00135: Invalid method in request RPC_IN_DATA /rpc/rpcproxy.dll?localhost:3388 HTTP/1.1
[Thu Jan 16 06:53:39.455335 2020] [proxy_fcgi:error] [pid 23432:tid 140369790428928] [client 51.89.157.100:36620] AH01071: Got error 'Primary script unknown', referer: http://propyield.com/wp-login.php
[Thu Jan 16 18:24:02.047160 2020] [proxy_fcgi:error] [pid 23432:tid 140369790428928] [client 192.241.213.147:58695] AH01071: Got error 'Primary script unknown', referer: http://178.79.164.139/wp-login.php
[Fri Jan 17 18:07:07.551490 2020] [proxy_fcgi:error] [pid 23432:tid 140370040956672] [client 74.208.47.8:60444] AH01071: Got error 'Primary script unknown', referer: http://178.79.164.139/wp-login.php
[Sat Jan 18 00:30:54.787850 2020] [proxy_fcgi:error] [pid 24366:tid 140369790428928] [client 192.99.47.10:55606] AH01071: Got error 'Primary script unknown', referer: http://cloud.truman.me.uk/wp-login.php
[Sun Jan 19 19:31:38.250149 2020] [proxy_fcgi:error] [pid 23432:tid 140369790428928] [client 45.40.166.141:40476] AH01071: Got error 'Primary script unknown', referer: http://propyield.com/wp-login.php
[Mon Jan 20 04:42:46.998150 2020] [proxy_fcgi:error] [pid 23432:tid 140370032563968] [client 182.92.219.113:54998] AH01071: Got error 'Primary script unknown', referer: http://178.79.164.139/wp-login.php
[Tue Jan 21 10:50:30.531224 2020] [ssl:warn] [pid 3809:tid 140341899274112] AH01909: ::1:443:0 server certificate does NOT include an ID which matches the server name
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
[Tue Jan 21 10:50:30.546446 2020] [ssl:warn] [pid 3809:tid 140341899274112] AH01909: ::1:443:0 server certificate does NOT include an ID which matches the server name
[Tue Jan 21 10:50:30.547433 2020] [mpm_event:notice] [pid 3809:tid 140341899274112] AH00489: Apache/2.4.41 (Unix) OpenSSL/1.0.2g configured -- resuming normal operations
[Tue Jan 21 10:50:30.547456 2020] [core:notice] [pid 3809:tid 140341899274112] AH00094: Command line: 'httpd -d /snap/nextcloud/18204 -D EnableHTTPS -D EnableHSTS -D FOREGROUND'
[Tue Jan 21 10:50:30.557360 2020] [unixd:alert] [pid 3811:tid 140341899274112] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jan 21 10:50:30.557817 2020] [unixd:alert] [pid 3810:tid 140341899274112] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jan 21 10:50:30.558015 2020] [unixd:alert] [pid 3812:tid 140341899274112] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive
[Tue Jan 21 10:50:32.332981 2020] [unixd:alert] [pid 3946:tid 140341899274112] AH02155: getpwuid: couldn't determine user name from uid 4294967295, you probably need to modify the User directive

u having metadata installed? if yes try disabling it. you’ll find some hints on how to do that here on the forum

Thank you so very much. I’ve spent hours trying to find a solution, I was just on the cusp of deleting the lot and starting from scratch.

For anyone who also has this issue, and are running the snap install simply run

sudo nextcloud.occ app:disable metadata

or this if you are running a nextcloud install on a webserver

sudo -u www-data php occ app:disable metadata

1 Like