Nextcloud stopped working after system update

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): 24.0.5.1
Operating system and version (eg, Ubuntu 20.04): 22.0.4.2
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52 (Ubuntu)
PHP version (eg, 7.4): PHP 8.2.3 (cli)

The issue you are facing:
After a ubuntu system update, nextcloud stopped working.

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

Steps to replicate it:

  1. n.a.

The output of your Nextcloud log in Admin > Logging:

???

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

<?php

$CONFIG = array (

  'auth.bruteforce.protection.enabled' => true,

  'instanceid' => 'xxxxxxxxxxxxxxx',

  'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',

  'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',

  'trusted_domains' => 

  array (

    0 => 'localhost',

    1 => 'xxxxxxxxxxxxxxxxt',

    2 => 'xxxxxxxxxxxxxxxxxxx',

  ),

  'datadirectory' => '/var/www/html/nextcloud/data',

  'dbtype' => 'mysql',

  'version' => '24.0.5.1',

  'overwrite.cli.url' => 'http://localhost/nextcloud',

  'dbname' => 'nextcloud',

  'dbhost' => 'localhost',

  'dbport' => '',

  'dbtableprefix' => 'oc_',

  'dbuser' => 'xxx',

  'dbpassword' => 'xxx',

  'installed' => true,

  'memcache.distributed' => '\\OC\\Memcache\\APCu',

  'memcache.local' => '\\OC\\Memcache\\APCu',

  'opcache.interned_strings_buffer' => '16',

  'enable_previews' => true,

  'enabledPreviewProviders' => 

  array (

    0 => 'OC\\Preview\\PNG',

    1 => 'OC\\Preview\\JPEG',

    2 => 'OC\\Preview\\GIF',

    3 => 'OC\\Preview\\BMP',

    4 => 'OC\\Preview\\HEIC',

    5 => 'OC\\Preview\\XBitmap',

    6 => 'OC\\Preview\\MP3',

    7 => 'OC\\Preview\\MP4',

    8 => 'OC\\Preview\\TXT',

    9 => 'OC\\Preview\\MarkDown',

    10 => 'OC\\Preview\\PDF',

  ),

  'preview_max_x' => NULL,

  'preview_max_y' => NULL,

  'preview_max_filesize_image' => 80,

  'preview_max_memory' => 256,

  'maintenance' => false,

  'theme' => '',

  'log_type' => 'file',

  'logfile' => '/var/log/nextcloud.log',

  'logfilemode' => 416,

  'loglevel' => 1,

  'logdateformat' => 'F d, Y H:i:s',

  'mysql.utf8mb4' => true,

  'updater.release.channel' => 'stable',

  'default_phone_region' => 'ISO 3166-2:CH',

  'mail_smtpmode' => 'smtp',

  'mail_sendmailmode' => 'smtp',

  'mail_from_address' => 'xxx',

  'mail_domain' => 'xxx',

  'mail_smtphost' => 'xxx',

  'mail_smtpport' => '587',

  'mail_smtpauth' => 1,

  'mail_smtpname' => 'xxx',

  'mail_smtppassword' => 'xxx',

  'mail_smtpsecure' => 'tls',

  'mail_smtpstreamoptions' => 

  array (

    'ssl' => 

    array (

      'security_level' => 2,

    ),

  ),

  'mail_smtpauthtype' => 'LOGIN',

);


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

[Thu Mar 02 20:28:28.313271 2023] [proxy_http:error] [pid 11934] (70007)The timeout specified has expired: [client 192.168.88.200:43656] AH01102: error reading status line from remote server 192.168.88.200:80, referer: http://blog.bbrch.homeip.net

[Thu Mar 02 20:28:28.313329 2023] [proxy:error] [pid 11934] [client 192.168.88.200:43656] AH00898: Error reading from remote server returned by /wp-login.php, referer: http://blog.xxx.homeip.net

[Thu Mar 02 20:28:28.411502 2023] [proxy_http:error] [pid 11940] (70007)The timeout specified has expired: [client 192.168.88.200:43678] AH01102: error reading status line from remote server 192.168.88.200:80

[Thu Mar 02 20:28:28.411623 2023] [proxy:error] [pid 11940] [client 192.168.88.200:43678] AH00898: Error reading from remote server returned by /pma/scripts/setup.php


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.

PASTE HERE

Do you use the apache php module? Or (Fast)CGI/FPM?
Or is this just a redirecting proxy connecting to the webserver really serving Nextcloud and there is a timeout so the “real” webserver serving the Nextcloud holds the interesting logfiles.

For system upgrades, versions of webserver and/or php are changing, also package names and dependencies, so often not all required packages are installed or activated. For the webserver running Nextcloud, it should be quite obvious that the logs say module xy is missing.

For the depencies, you get a list of required modules here:
https://docs.nextcloud.com/server/24/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

and there is already the first issue that NC 24 only supports php up to version 8.0 and you are using 8.2.
You would need to run an upgrade to NC25 first (current stable version), but that only supports max. php 8.1. Just NC 26 will start to support php 8.2 which is expected to be released later this month (around 21st).

As far as I can see, php 8.1 was the php version used in ubuntu 22.04. I’d keep this version for the moment, directly upgrade to NC 25 that supports this version. Later on you can upgrade to NC 26 with this version as well. Then I’d check a bit how well Nextcloud 26 supports php 8.2, wait for some hickups to be fixed before switching to php 8.2 (or wait longer), that depends on you.