nextcloud update code integrity check fails

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

nextcloud update code integrity check fails

Postby loki279 » Sat Dec 11, 2021 8:51 am

Updating nextcloud to version 23.0.0-1 fails in step code integrity check. Most likely this is a problem with the 23.0.0-1 package from arch arm.
loki279
 
Posts: 54
Joined: Tue Mar 07, 2017 7:59 am

Re: nextcloud update code integrity check fails

Postby graysky » Sat Dec 11, 2021 11:58 am

Delete your local copy and re-download it.
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: nextcloud update code integrity check fails

Postby loki279 » Sun Dec 12, 2021 4:08 pm

I did a
$this->bbcode_second_pass_code('', 'pacman -Scc')
and
$this->bbcode_second_pass_code('', 'pacman -S nextcloud')
still the same problem. Am I the only one?
loki279
 
Posts: 54
Joined: Tue Mar 07, 2017 7:59 am

Re: nextcloud update code integrity check fails

Postby loki279 » Sun Dec 12, 2021 4:27 pm

Just to make sure, This error does not happen when the package is installed by pacman. The error happenes while runiing the nextcloud update in the browser after having installed the new package successfully with pacman.


Screenshot_20211212_172634.png
Screenshot_20211212_172634.png (71.41 KiB) Viewed 2873 times


Screenshot_20211212_172654.png
Screenshot_20211212_172654.png (74.65 KiB) Viewed 2873 times
loki279
 
Posts: 54
Joined: Tue Mar 07, 2017 7:59 am

Re: nextcloud update code integrity check fails

Postby loki279 » Mon Dec 13, 2021 8:26 am

I could run the upgrade manually form the shell:

$this->bbcode_second_pass_code('', '
[root@alarmpi nextcloud]# sudo -u nextcloud php ./occ upgrade
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Starting code integrity check...
Finished code integrity check
Update successful
Turned off maintenance mode
Resetting log level
')

No idea why this failed from the browsers interface.
loki279
 
Posts: 54
Joined: Tue Mar 07, 2017 7:59 am

Re: nextcloud update code integrity check fails

Postby graysky » Mon Dec 13, 2021 11:22 am

You are confused. If you install via pacman you should not update via the upstream code. Wait for the package to get build and pacman will pull it down/update. Further, you're running a command as root already and prefixing it with sudo... why?
graysky
Developer
 
Posts: 1727
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: nextcloud update code integrity check fails

Postby loki279 » Mon Dec 13, 2021 11:54 am

The upgrade can only be started as user "nextcloud" root is not allowed to use occ in my environment. This was changed some time ago introducing the user "nexcloud", before it was "http" if I remember corretly. Anyways, this also explains why the update via pacman is not able to upgrade the nextcloud installation because it runs as root.
More precisely the command has to be executed by the user who owns the config.php file (which is the user "nextcloud" in arch arm by default)
$this->bbcode_second_pass_code('', '
[alarm@alarmpi nextcloud]$ sudo php ./occ upgrade
[sudo] password for alarm:
Console has to be executed with the user that owns the file config/config.php
')

This is why the command has to be executed with sudo -u nextcloud. The fact that I was root before that is random, I could have run the command as user alarm the same way.
loki279
 
Posts: 54
Joined: Tue Mar 07, 2017 7:59 am

Re: nextcloud update code integrity check fails

Postby carloshmm » Wed Feb 02, 2022 7:51 pm

I was having the same issue after updating nextcloud using the official repository package from arch linux using pacman.

I tried after that do manually substitute each file that was having integrity check fails with the same files from the package downloaded from the nextcloud website, after I did that the integrity check disappeared but I lost access to my nextcloud service because it started responding with (Incompatible with version PHP > 8, system version 8.1.2)

So my guess is that the package installed with pacman from the archlinux repositories was modified so that it can still be usable on 32 bits armv7 systems. There is no way to solve this message about integrity check, but at least in my case this message doesn't stop me from using nextcloud, it is ugly but I can live with that =)
carloshmm
 
Posts: 1
Joined: Wed Feb 02, 2022 7:45 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 3 guests