Internal server error nc 19 - Fixed

Nextcloud version (eg, 18.0.2): 19.0.0
Operating system and version (eg, Ubuntu 20.04): Ubuntu Server 20.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.41
PHP version (eg, 7.1): 7.4.3

The issue you are facing:

Unable to access webGUI from new devices, throwing the internal server error. However I can still access the webGUI from two devices (LAN/WAN). I know a little way around bash, and am trying my best to learn (sorry in advance for dumb questions).

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

Steps to replicate it:

  1. Load url destination into browser (LAN/WAN)

The output of your Nextcloud log in Admin > Logging:

{"reqId":"z4wErCzWplKrQQtD5uFw","level":3,"time":"2020-06-08T20:00:29+00:00","remoteAddr":"81.146.20.59","user":"--","app":"index","method":"GET","url":"/login","message":{"Exception":"Exception","Message":"The requested uri(/login) cannot be processed by the script '/nextcloud/index.php')","Code":0,"Trace":[{"file":"/var/www/cloud.eskibles.us/nextcloud/lib/base.php","line":950,"function":"getRawPathInfo","class":"OC\\AppFramework\\Http\\Request","type":"->"},{"file":"/var/www/cloud.eskibles.us/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/cloud.eskibles.us/nextcloud/lib/private/AppFramework/Http/Request.php","Line":776,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0","version":"19.0.0.12","id":"5ede98ddc3eb8"}

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


<?php
$CONFIG = array (
  'instanceid' => '***,
  'passwordsalt' => '***,
  'secret' => '***',
  'trusted_domains' =>
  array (
    0 => '192.168.1.168',
    1 => '*****eskibles.us',
    2 => '******eskibles.us/nextcloud',
  ),
  'datadirectory' => '/*e*skibl***ese*rver/geoffrey/',
  'dbtype' => 'mysql',
  'version' => '19.0.0.12',
  'overwrite.cli.url' => 'https://****eskibles.us',
  'htaccess.ReWriteBase' => '/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouduser',
  'dbpassword' => '*****',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'admin',
  'mail_domain' => 'eskibles.us',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.zoho.eu',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'matt@bearsoundstudio.com',
  'mail_smtppassword' => '*****',
  'htaccess.RewriteBase' => '/nextcloud',
  'maintenance' => false,
);

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

I’m scratching my head in confusion. Any ideas?

Just updating for any other users in the future.

Problem fixed - occurred in the php.ini file of both apache2/php.ini and fpm/php.ini due to an unrecognised string in the memory_limit config. To reiterate the limit suffix must be ‘M’ not ‘MB’, as in 512M NOT 512MB

2 Likes