Error when upgrading from 32.0.4 to 33.0.2 (Softaculous), what possibilities to recover

Support intro

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.4
  • Operating system and version (e.g., Ubuntu 24.04):
    • replace me
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2.4.66
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • 8.2
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • index.php, when starting the update process after Softaculous installed the files
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Softaculous
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Nextcloud shows an error and remains in Maintenance Mode

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

  1. Install the Update to Version 33.0.2 in Softaculous

  2. Execute the Update process by going to index.php

  3. Error shows up after a few seconds in the update process

I know, there are some details missing now. For example Nextcloud doesn’t write an updater.log in the data-directory. It looks like my installation is very old at this moment and keeps getting more and more problems with the update process.

My question: Did somebody using Softaculous experience a similar issue and has some advice on how to continue? Just showing me a red “x” in the details isn’t much of help, means to me something unusual is happening. :thinking:

The updater log is only for the builtin code updater. If Softaculous installed the 33.0.2 update, that’s not involved here.

However the database migrations/app upgrades (i.e. what you’re triggering in your screenshot/ also what you can trigger by running occ upgrade) is Nextcloud itself so anything logged will be in the standard nextcloud.log.

Can you check the normal log + ideally just run occ upgrade from the command line? It’ll eliminate some variables.

Thanks for the additional advice. Here are the additional steps I took since my last post:

Trying to execute the occ upgrade from the command line:

[x@y]$ php occ upgrade
The current PHP memory limit is below the recommended value of 512MB.
Setting log level to debug
Updating database schema
Updated database
[x@y]$

Didn’t help, the installation remained in Maintenance Mode. Next I tried executing updater.phar from the command line:

[x@y updater]$ php updater.phar
Nextcloud Updater - version: v33.0.0-2-g643f78d

Current version is 33.0.2.

Update to Nextcloud 32.0.8 available. (channel: “stable”)
Following file will be downloaded automatically: https://github.com/nextcloud-releases/server/releases/download/v32.0.8/nextcloud-32.0.8.zip
Open changelog ↗

Steps that will be executed:

 Check for expected files

 Check for write permissions

 Create backup

 Downloading

 Verify integrity

 Extracting

 Enable maintenance mode

 Replace entry points

 Delete old files

 Move new files in place

 Done

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading

 Verify integrity …[[x@y updater]$

Didn’t work either. It always aborted at step 5. My installation must somehow been completely broken, as the current version was apparently Version 33.0.2 and the updater tried to install Version 32.0.8. Haha, what a mess! :grinning_face_with_smiling_eyes:

To be fair, the installation worked pretty good for a long time. I started with Nextcloud 13.0.5 in 2018 through Softaculous, and all upgrades went pretty smooth so far. The last upgrade had some hiccups, and now the current Upgrade to Version 33 messed up completely. That was somewhat strange, no Idea what happened in the background.

In the end I deleted the installation in Softaculous and performed a fresh install through the Web Installer, by executing setup-nextcloud.php. The install process went fine, it just couldn’t load the list of recommended Apps from the App Store. After refreshing the main page everything went smooth. I’m curious to see how it goes from here, I am aware that running Nextcloud on a shared Webhost isn’t the best solution in the first place. :slightly_smiling_face: