HELP PLEASE update 31.0.13 to 32.0.5 has killed site

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

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:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.013 -> 32.0.5
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04
  • Web server and version (e.g, Apache 2.4.25):
      • Apache2 whatever is current
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx proxy manager 2.13.6
  • PHP version (e.g, 8.3):
    • 8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • during upgrade - mainenance mode ran ok but clicking continue with web based installer produced a 500 error
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • not sure what this means - originally installed 3 years ago not in docker, updated regularly since
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

upgrade failed. Site is producing a HTTP 500 error page in brave

Steps to replicate it (hint: details matter!):

  1. run updater from 31 to 32

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

file is too big to open in anything (obviously can't get to admin settings as nextcloud is dead in the water

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

GET https://cloud.crosborne.uk/ net::ERR_HTTP_RESPONSE_CODE_FAILURE 500 (Internal Server Error)
chrome-error://chromewebdata/:1  

Web server / Reverse Proxy

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

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

tail of nextcloud log

{"reqId":"nxZGSiaQI7D2ezpl6Po7","level":3,"time":"2026-01-18T17:42:56+00:00","remoteAddr":"78.145.116.112","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/files/api/v1/stats","scriptName":"/index.php","message":"Class OCA\\GroupFolders\\Versions\\VersionsBackend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCA\\Files_Versions\\Versions\\IVersionBackend::getRevision) at /var/www/cloud.crosborne.uk/public_html/apps/groupfolders/lib/Versions/VersionsBackend.php#40","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36","version":"31.0.13.1","data":{"app":"PHP"}}
{"reqId":"uySw3iDhVMfi1FT3IkuS","level":3,"time":"2026-01-18T17:43:56+00:00","remoteAddr":"78.145.116.112","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/files/api/v1/stats","scriptName":"/index.php","message":"Class OCA\\GroupFolders\\Versions\\VersionsBackend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCA\\Files_Versions\\Versions\\IVersionBackend::getRevision) at /var/www/cloud.crosborne.uk/public_html/apps/groupfolders/lib/Versions/VersionsBackend.php#40","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36","version":"31.0.13.1","data":{"app":"PHP"}}
{"reqId":"Zo74YQLwyS2bb2V6OLAA","level":3,"time":"2026-01-18T17:44:56+00:00","remoteAddr":"78.145.116.112","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/files/api/v1/stats","scriptName":"/index.php","message":"Class OCA\\GroupFolders\\Versions\\VersionsBackend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCA\\Files_Versions\\Versions\\IVersionBackend::getRevision) at /var/www/cloud.crosborne.uk/public_html/apps/groupfolders/lib/Versions/VersionsBackend.php#40","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36","version":"31.0.13.1","data":{"app":"PHP"}}
{"reqId":"AbMyZ9dF0AA5TUoGm2Sh","level":3,"time":"2026-01-18T17:45:56+00:00","remoteAddr":"78.145.116.112","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/files/api/v1/stats","scriptName":"/index.php","message":"Class OCA\\GroupFolders\\Versions\\VersionsBackend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCA\\Files_Versions\\Versions\\IVersionBackend::getRevision) at /var/www/cloud.crosborne.uk/public_html/apps/groupfolders/lib/Versions/VersionsBackend.php#40","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36","version":"31.0.13.1","data":{"app":"PHP"}}
{"reqId":"bGD0hLFwAUEQXotChk7i","level":3,"time":"2026-01-18T17:46:56+00:00","remoteAddr":"78.145.116.112","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/files/api/v1/stats","scriptName":"/index.php","message":"Class OCA\\GroupFolders\\Versions\\VersionsBackend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCA\\Files_Versions\\Versions\\IVersionBackend::getRevision) at /var/www/cloud.crosborne.uk/public_html/apps/groupfolders/lib/Versions/VersionsBackend.php#40","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36","version":"31.0.13.1","data":{"app":"PHP"}}
{"reqId":"qe2htXrEI9rT3zdCmHP1","level":3,"time":"2026-01-18T17:47:56+00:00","remoteAddr":"78.145.116.112","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/files/api/v1/stats","scriptName":"/index.php","message":"Class OCA\\GroupFolders\\Versions\\VersionsBackend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCA\\Files_Versions\\Versions\\IVersionBackend::getRevision) at /var/www/cloud.crosborne.uk/public_html/apps/groupfolders/lib/Versions/VersionsBackend.php#40","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36","version":"31.0.13.1","data":{"app":"PHP"}}
{"reqId":"sif8Yew64k00nAqoLYBQ","level":3,"time":"2026-01-18T17:48:56+00:00","remoteAddr":"78.145.116.112","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/files/api/v1/stats","scriptName":"/index.php","message":"Class OCA\\GroupFolders\\Versions\\VersionsBackend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCA\\Files_Versions\\Versions\\IVersionBackend::getRevision) at /var/www/cloud.crosborne.uk/public_html/apps/groupfolders/lib/Versions/VersionsBackend.php#40","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36","version":"31.0.13.1","data":{"app":"PHP"}}
{"reqId":"b4OEWO1MUD8CDLWD7Q7K","level":3,"time":"2026-01-18T17:49:49+00:00","remoteAddr":"78.145.116.112","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Class OCA\\GroupFolders\\Versions\\VersionsBackend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCA\\Files_Versions\\Versions\\IVersionBackend::getRevision) at /var/www/cloud.crosborne.uk/public_html/apps/groupfolders/lib/Versions/VersionsBackend.php#40","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36","version":"31.0.13.1","data":{"app":"PHP"}}
{"reqId":"4WXz3DgQZ5YmdN3bhPAW","level":3,"time":"2026-01-18T17:49:56+00:00","remoteAddr":"78.145.116.112","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/files/api/v1/stats","scriptName":"/index.php","message":"Class OCA\\GroupFolders\\Versions\\VersionsBackend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCA\\Files_Versions\\Versions\\IVersionBackend::getRevision) at /var/www/cloud.crosborne.uk/public_html/apps/groupfolders/lib/Versions/VersionsBackend.php#40","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36","version":"31.0.13.1","data":{"app":"PHP"}}
{"reqId":"qT6L0zBbrHirbh5RqbAI","level":3,"time":"2026-01-18T17:50:56+00:00","remoteAddr":"78.145.116.112","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/files/api/v1/stats","scriptName":"/index.php","message":"Class OCA\\GroupFolders\\Versions\\VersionsBackend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCA\\Files_Versions\\Versions\\IVersionBackend::getRevision) at /var/www/cloud.crosborne.uk/public_html/apps/groupfolders/lib/Versions/VersionsBackend.php#40","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36","version":"31.0.13.1","data":{"app":"PHP"}}

user agent is actually Brave 1.85.120

previous update to 31.0.13 ran perfectly

nexcloud config

 'instanceid' => 'oc6spzmk6qcc',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'xxx',
  ),
  'datadirectory' => '/xxx/data',
  'default_phone_region' => 'GB',
  'dbtype' => 'mysql',
  'version' => '31.0.13.1',
  'overwrite.cli.url' => 'xxx',
  'dbname' => 'xxx',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxx',
 'dbpassword' => 'xxx',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_from_address' => 'xxx',
  'mail_domain' => 'xxx',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.xxx',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'maintenance' => false,
  'memcache.local' => '',
  'theme' => '',
  'loglevel' => 3,
  'app_install_overwrite' => 
  array (
    0 => 'hsts',
    1 => 'diary',
  ),
  'maintenance_window_start' => 1,
  'updater.secret' => 'XXX',
);


so it is still showing 31.0.13 as version but it has killed it

Try running occ upgrade from the command line.

Based on the log output, the groupfolders app that is currently installed is the older one; occ upgrade should attempt to upgrade it.

Ah here’s a clue in php_errors.log in the Nextcloud folder


[18-Jan-2026 18:59:56 UTC] PHP Fatal error:  Class OCA\GroupFolders\Versions\VersionsBackend contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (OCA\Files_Versions\Versions\IVersionBackend::getRevision) in /var/www/xxx/public_html/apps/groupfolders/lib/Versions/VersionsBackend.php on line 40 

this line is getting added every minute (approx) without me doing anything so some process is running in the background generating the error. It also gets added when I try to access the nextcloud index.php page

So it looks like the update has either corrupted something or hasn’t completed leaving a mess. How can I recover?

Err - command occ is not found on the command line
(Obvs I cant access occ:web if that is what you mean as NC aint working

Sorry - I forgot the syntax sudo -u www-data php occ not just occ on the commandline. Doh!

Oh sugar…

$ sudo -u www-data php occ
This version of Nextcloud is not compatible with PHP>=8.5.<br/>You are currently running 8.5.1

that’s weird - phpinfo() reports php version 8.3 29 - why does nextcloud think I have 8.5???

What is strange is that the updater or occ at least seems to be now testing the cli version of php, which is indeed 8.5.1 on a default ubuntu installation.

What is really strange is that the previous upgrade to v30.0.13 worked fine with no problems very recently when 8.5.1 was already on the system (but not being used by apache2 which is still using 8.3)

Add the path to php 8.3:

$ sudo -u www-data /path/to/8.3/php occ

It seems, tha environment variables may have been changed to PHP 8.5

Phew

With thanks to @jtr and @Mornsgrans the following fixed it:

sudo update-alternatives --config php

Selecting 8.4 did not bring it to life or let occ run, but selecting 8.3 enabled occ to run

then

sudo -u www-data php occ upgrade

has run successfully and the site is now back up.

So it seems that despite what it says on System requirements — Nextcloud latest Administration Manual latest documentation

you need to have php8.3 or 8.4 on apache but you must have php8.3 on the cli

or something. Since php 8.3 is out of active support and has less than 2 years of security fixes to run and php 8.5 is out and now the default for cli on ubuntu 24.04 at least it is getting imperative that 8.5 is allowed on cli at least pretty soon or others will have this pain and ideally accepted on apache/nginx as well.

Incidentally php8.3 is not available on a freshly created ubuntu 24.04 server and 8.5 is the default.

1 Like