Upgrade from 22.2.3 to 22.2.5 manual only; upgrade to 23.0.2 better :)

tl;dr

  • gui upgrade 22.2.3 → 22.2.5 failed; manual upgrade successful (though with issues)
  • subsequent gui upgrade 22.2.5 → 23.0.2 better :slight_smile: (though with similar issues)

Q. What does one do about integrity check issues?


(Having had problems with the updater recently, I backed everything up first).

22.2.5

Upgrading using the web/gui updater (i.e. https://<my_domain>/updater/)

Didn’t work. As expected, I got:

Initializing
Current version is 22.2.3.
Update to Nextcloud 22.2.5 available. (channel: “stable”)
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-22.2.5.zip
Open changelog :arrow_upper_right:

…but when I clicked on “Continue update”, Nextcloud just sent me to the dashboard(?) (I tried three times, with identical results).

Upgrading manually (i.e. using the method here)

Much more successful.

…but Settings > Administration > Overview, showed a couple of issues:

  1. DB Indices

Fixed with occ db:add-missing-indices :+1: :slight_smile:

  1. Code Signing (i.e. “Some files have not passed the integrity check”)

~70 files failed. About half of them were localisation (Bulgarian, Lithuanian, Japanese, Faeroese…none of which I’m likely to need); the rest were other things (including mail stuff; see below).


23.0.2

I then upgraded from 22.2.5 to 23.0.2 (note: without reverting to backup first i.e. without going back to 22.2.3) …to see if that went more smoothly (spoilers: yep :slight_smile: )

Upgrading using the web/gui updater (i.e. https://<my_domain>/updater/)

Worked as expected - I didn’t need to use the manual method - though with two issues:

  1. OPcache

The PHP OPcache module is not properly configured

I doubled the value of opcache.interned_strings_buffer in php.ini from the default 8 to 16MB (which was a guess on my part), reloaded Apache, refreshed the page. It seems fine(?)

  1. Again: Code Signing (i.e. “Some files have not passed the integrity check”)

As for 22.2.5, but this time there were only three:

vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/CSS/4.14.0,4114918a13a428a8482a8a449792a5a8747582b5,1.ser
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML/4.14.0,100a0d442686872045400b774dcb082c945a1908,2019080701.ser
vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/URI/4.14.0,3478238e680361cd87bf880f5b3cc50a1e7abc6c,1.ser

Q. What does one do about this ^ ?


FWIW, 23.x looks really good. There’s a lot there - I’ve barely scratched the surface - and everything seems very well thought-out, as usual.

Nextcloud version (eg, 20.0.5): 23.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.41
PHP version (eg, 7.4): 7.4.3

Similar problem with my setup…

gui upgrade 22.2.3 → 22.2.5 kept failing during the backup process (All I was getting was: step 3 is currently in process. please reload this page later); manual upgrade via ‘updater.phar’ went smoothly though!

step 3 is currently in process. please reload this page later

That’s further than I got, definitely!

manual upgrade via ‘updater.phar’

…which I haven’t tried yet (I downloaded and extracted the .zip archive). But I’ll bear it in mind, if I have a problem next time!