Suddenly got this error today, yesterday all was fine

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: 21.0.0.18
PHP version : 7.3

The issue you are facing: I got an 500 Internal Server Error today, while yesterday everything was fine

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@doc.greentea.id to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

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

Steps to replicate it:

  1. 500 Internal Server Error is shown when opening the nextcloud

The output of your Nextcloud log in Admin > Logging:

{"reqId":"YA7NqANCrKSl5xNV1YIVKAAAANM","level":2,"time":"2021-01-25T13:54:48+00:00","remoteAddr":"*REMOVED*","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Linux; Android 9; SM-G950F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Mobile Safari/537.36","version":""}
{"reqId":"YA7NqANCrKSl5xNV1YIVKAAAANM","level":2,"time":"2021-01-25T13:54:48+00:00","remoteAddr":"*REMOVED*","user":"--","app":"no app in context","method":"GET","url":"/","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Linux; Android 9; SM-G950F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Mobile Safari/537.36","version":""}
{"reqId":"YA7NqANCrKSl5xNV1YIVKAAAANM","level":3,"time":"2021-01-25T13:54:48+00:00","remoteAddr":"*REMOVED*","user":"--","app":"PHP","method":"GET","url":"/","message":"Module 'sqlsrv' already loaded at Unknown#0","userAgent":"Mozilla/5.0 (Linux; Android 9; SM-G950F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Mobile Safari/537.36","version":""}
{"reqId":"YA7OJWuIJ4K5Cu3QXRXvmgAAAZA","level":2,"time":"2021-01-25T13:56:53+00:00","remoteAddr":"*REMOVED*","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in http:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Linux; Android 9; SM-G950F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Mobile Safari/537.36","version":""}
{"reqId":"YA7OJWuIJ4K5Cu3QXRXvmgAAAZA","level":2,"time":"2021-01-25T13:56:53+00:00","remoteAddr":"*REMOVED*","user":"--","app":"no app in context","method":"POST","url":"/index.php","message":"Could not detect any host in https:///data/htaccesstest.txt","userAgent":"Mozilla/5.0 (Linux; Android 9; SM-G950F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Mobile Safari/537.36","version":""}
{"reqId":"YA7OJWuIJ4K5Cu3QXRXvmgAAAZA","level":3,"time":"2021-01-25T13:58:09+00:00","remoteAddr":"*REMOVED*","user":"admin","app":"PHP","method":"POST","url":"/index.php","message":"Module 'sqlsrv' already loaded at Unknown#0","userAgent":"Mozilla/5.0 (Linux; Android 9; SM-G950F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Mobile Safari/537.36","version":"20.0.5.2"}

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

<?php
$CONFIG = array (
  'instanceid' => '*REMOVED*',
  'passwordsalt' => '*REMOVED*',
  'secret' => '*REMOVED*',
  'trusted_domains' => 
  array (
    0 => '*REMOVED*',
  ),
  'datadirectory' => '*REMOVED*',
  'dbtype' => 'mysql',
  'version' => '21.0.0.18',
  'overwrite.cli.url' => '*REMOVED*',
  'dbname' => '*REMOVED*',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '*REMOVED*',
  'dbpassword' => '*REMOVED*',
  'installed' => true,
  'maintenance' => false
  'theme' => '',
  'loglevel' => 2,
  'app_install_overwrite' => 
  array (
    0 => 'unsplash',
    1 => 'bruteforcesettings',
  ),
);

Are you sure? Minimum version for NC21 is 7.3

I’ve rechecked it and found out that my php version is 7.3