Nextcloud Inexplicably Broken: Internal Server Error

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, 20.0.5): 20, not sure of precise version
Operating system and version (eg, Ubuntu 20.04): Shared server, so not sure, definitely linux
Apache or nginx version (eg, Apache 2.4.25): 2.4.52
PHP version (eg, 7.4): 7.4.27

The issue you are facing:

Manually deleted contents of trash bin and then login page broke. The rest of my domains work perfectly, but the navigating to …/nextcloud/ returns:

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.

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

Login page is dead, no access.

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

<?php
$CONFIG = array (
  'instanceid' => 'xxxxx',
  'passwordsalt' => 'xxxxxx',
  'secret' => 'xxxxxx',
  'trusted_domains' => 
  array (
    0 => 'xxxxx.net',
  ),
  'datadirectory' => '/home/xxxxx/mindMeld',
  'dbtype' => 'mysql',
  'version' => '20.0.10.1',
  'overwrite.cli.url' => 'https://xxxxxx.net/nextcloud',
  'dbname' => 'xxxxx',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxxxx',
  'dbpassword' => 'xxxxx',
  'installed' => true,
  'updater.secret' => 'xxxxxxx',
  'maintenance' => false,
  'filelocking.enabled' => false,
);

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

File/folder doesn’t exist

There is a Nextcloud logfile in the data directory, you can increase the loglevel:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html

The webserver logfiles can be helpful as well. For shared hosting, they can be in some folder of your webspace, in a customer interface, … therefore check the documentation of your hoster.

Like this the error in generic and can mean a lot of things.