Nextcloud Update Fail

The Basics

  • Nextcloud Server version:
  • 32.0.0
  • Operating system and version:
  • Ubuntu 24.04.3 LTS
  • Web server and version:
  • Apache/2.4.58 (Ubuntu)
  • PHP version:
  • 8.1.34
  • Is this the first time you’ve seen this error?
  • Yes
  • When did this problem seem to first start?
  • Sunday, 25/04/26
  • Installation method:
  • Installation On Linux
  • Are you using CloudfIare, mod_security, or similar?
  • No

Summary of the issue you are facing:

So, I’ve had a Nextcloud installation running happily since the beginning of the year and in most key respects still is. I can still get to the web console.

On Saturday (two days ago), I added the “Password” app and yesterday I can’t access my apps option as shown in this image.

An internet search suggested that this was a known problem, affecting version 32.0.0 of Nextcloud which it turns out I have so the answer is to update, yes? However, running the command, "sudo -u www-data php updater/updater.phar" I either get a “Verify integrity failed” or a “Downloading failed”.

Any advice appreciated :slight_smile:

James

you should urgently update your PHP to a supported version, recommended is php 8.3 at the moment but updating to 8.4 would do it as well

but one step after another… first of all you can deactivate the password-app because I think it doesn’t work with your php-version. So try getting your server re-running again.
if you can’t access your app-page anymore you can use the commandline to disable the app. something like
cd /PATH/TO/NEXTCLOUD sudo -u www-data php occ app:disable NAME_OF_APP

should do the job.
(it’s all in the manual AND mentioned on the forum several times already)

right afterwards your system shoud be running smoothly again.

then it’s highest time to update your php. there’s a good php-update-script made by someone from the forum… take a look here Php-updater - a script to upgrade php in a safe way

after the successful php-update passwords should run again.

On Saturday (two days ago), I added the “Password” app and yesterday I can’t access my apps option as shown in this image.

A 500 error suggests you need to check your web server and Nexcloud logs. See Admin Manual.

affecting version 32.0.0 of Nextcloud which it turns out I have so the answer is to update, yes?

Maybe. I don’t recall and 32.0.0 is 8 maintenance releases behind (32.0.8 is latest). But, yes, you should almost certainly stay up-to-date with maintenance releases - particularly > X.0.0!

However, running the command, “sudo -u www-data php updater/updater.phar” I either get a “Verify integrity failed” or a “Downloading failed”.

Numerous possibilities, ranging from memory limits and beyond. Post the actual full output and check your updater.log for specifics. See Maintenance section of the Admin Manual.

I updated to PHP 8.3.30 and Nextcloud is no longer working. When I access the Nextcloud admin dashboard I get PHP script (text). I’ve tried multiple browsers. I’ve done some “research” and this page…

…suggests to look for the line “LoadModule php_module modules/libphp.so” in either httpd.conf or apache2.conf. It’s not in apache2.conf and I can’t find where httpd.conf is.

NOTE: The Apache2 Default Page is working AOK.

I haven’t given up but I’m no Linux expert so…

James

You can have a look at
/etc/apache2/sites-available

Nope, only the following there:

000-default.conf default-ssl.conf nextcloud.conf

James

did you use that script I suggested´?

I did and now, following some other advice I found on the net) I’m back to the first thing (Page not working) but Nextcloud isn’t working either (as in connecting from my client).

James

@ernolf maybe you have an idea of what went wrong with his update using your script?

That means your httpd.conf for Nextcloud is nextcloud.conf.
You can compare it to 000-default.conf to find out what’s going wrong.

How? I mean, they aren’t the same but that’s by design. This is the nextcloud.conf file:

Alias /nextcloud "/var/www/nextcloud/"

DocumentRoot "/var/www/nextcloud"
ServerName xxxxxxxxxxx.xxxxxxxxx.co.uk

ErrorLog ${APACHE_LOG_DIR}/nextcloud.error
CustomLog ${APACHE_LOG_DIR}/nextcloud.access combined

<Directory /var/www/nextcloud/>
        Require all granted
        AllowOverride All
        Options FollowSymLinks MultiViews

        <IfModule mod_dav.c>
                Dav off
        </IfModule>

</Directory>

However, it’s part of the build for nextcloud and it’s worked like that AOK since I built it.

James

Hi @JamesCRocks

Thats good!

And what was the outcome?

By the way: PHP 8.1 is fully supported by Nextcloud 32, but I strongly recommend upgrading to a newer PHP version, at least PHP 8.4.

PHP 8.1 is End of life since the end of last year.


ernolf

I’m back to the first thing (Page not working) but Nextcloud isn’t working either (as in connecting from my client).

I’m on 8.3.30 :slight_smile:

I’ll be honest, I’m now researching alternatives coz I’m getting fed up with the whole kit 'n caboodle.

James

You can try a YunoHost installation. With that you don’t have to be a linux expert because you can install Nextcloud and much more with just one click and forget about the technical stuff around it.

I’ve had a look and that has legs!

Even though I’m ex-IT, I’m also getting older, retired now so something simpler really appeals so thanks, I’ll install it and see what I can do.

James