Internal server error since update to nc 30.x

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, 29.0.5): 30.0.1.1
Operating system and version (eg, Ubuntu 24.04): debian 12.7
Apache or nginx version (eg, Apache 2.4.25): apache/2.4.62
PHP version (eg, 8.3): 8.2.24

The issue you are facing:
since I updated nextcloud to 30.x, I get the error “internal server error”
updates to RC2, … did not help

Should I update php to 8.3?

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

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 => '*.spdns.org',
    1 => '*.spdns.de',
    2 => '*.spdns.eu',
    3 => '*.dyndns.org',
    4 => '*',
    5 => '*.fritz.box',
    6 => '<localIP>',
  ),
  'datadirectory' => '/hdd1/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '30.0.1.1',
  'overwrite.cli.url' => 'http://*/nextcloud',
  'overwritehost' => '*.spdns.org',
  'dbname' => 'nextclouddb',
  'dbhost' => '<db-server>',
  'dbport' => '3306',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '*',
  'dbpassword' => '*',
  'installed' => true,
  'mail_smtpmode' => 'sendmail',
  'mail_sendmailmode' => 'pipe',
  'default_phone_region' => 'DE',
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud.log',
  'loglevel' => 3,
  'logdateformat' => 'c',
  'maintenance' => false,
  'theme' => '',
  'mail_from_address' => '*',
  'mail_domain' => '*',
  'mail_smtphost' => '*',
  'mail_smtpport' => '25',
  'enable_previews' => 'false',
  'data-fingerprint' => '*',
);

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

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":"*","level":3,"time":"*+00:00","remoteAddr":"*","user":"--","app":"encryption","method":"GET","url":"/nextcloud/","message":"/appinfo/app.php is not loaded when \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class is used. Migrate everything from app.php to the Application class.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0","version":"30.0.1.1","data":{"app":"encryption"}}
{"reqId":"*","level":3,"time":"*","remoteAddr":"*","user":"--","app":"index","method":"GET","url":"/nextcloud/","message":"Class \"OCA\\Dashboard\\Controller\\LayoutApiController\" does not exist","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:131.0) Gecko/20100101 Firefox/131.0","version":"30.0.1.1","exception":{"Exception":"ReflectionException","Message":"Class \"OCA\\Dashboard\\Controller\\LayoutApiController\" does not exist","Code":-1,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":450,"function":"__construct","class":"ReflectionClass","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":410,"function":"getAttributeRoutes","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":120,"function":"loadAttributeRoutes","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":260,"function":"loadRoutes","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":294,"function":"findMatchingRoute","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1001,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Route/Router.php","Line":450,"message":"Class \"OCA\\Dashboard\\Controller\\LayoutApiController\" does not exist","exception":{},"CustomMessage":"Class \"OCA\\Dashboard\\Controller\\LayoutApiController\" does not exist"}}

What installation method and what method did you use to deploy the update?

I suspect you have files around that aren’t part of the installation and maybe did a manual installation overlooking something.

Check Administration settings->Overview for errors.

  • The encryption app does not have an app.php
  • The LayoutApiController does not even exist in v30.

Manual update documentation

Hi,

Hope you will be able to stop laughing.

Maintenance mode
Untar
Chown
Occ Update

That worked all the time

The Web Service does not work so I‘ll have to search where for that part of the logs?

So my biggest fault was to overwrite the Nextcloud directory every time…
And perhaps that I didn’t Call the update from within…

Thanks for your Support

Regards
CP

I would do a manual update following the process correctly and I think you’ll get things mostly cleaned up.

Thanks a lot
Seems to work fine again

Sorry for not reading the docs

Great support!

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.