-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[suggested fix] generated autoloader suffix causes integrity check to fail after interrupted update 10.0.9.5 -> 10.0.10.4 #33308
Comments
GitMate.io thinks the contributor most likely able to help you is @PVince81. Possibly related issues are #27139 (Integrity check fails after update to 9.1.4 due to stray .gitignore files), #30229 (Integrity check fail after updating 10.0.3 -> 10.0.4), #23769 (Integrity check always fails), #32388 (Failed update to 10.0.9), and #4404 (Upgrade from 5.0.9 -> 5.0.10 failed). |
strange. in our update tests we did not observe this. |
My conlclusion is only based on the diffs i made from the running system and the content i could download from owncloud.org as owncloud-10.0.10.tar.bz2 If it is possible to avoid the unnecessary change of that suffix, it can also help to avoid integrity issues on upgrades on long term, and if that suffix is only changed/updated if you also intend to change the related functionality, and the integrity hashes are updated too, this issue at least would never come back |
Quick check on the hashes shows that somehow the updater did not update these files itself (but still have to note, their missing-update would only be an issue if these files would functionally differ, and not only the autoloader-suffix): owncloud-10.0.9.tar.bz2/utar://owncloud/core owncloud-10.0.10.tar.bz2/utar://owncloud/core |
mhm. As usual I used webupdater to migrate from 10.0.9 to 10.0.10 for my private instance and everything is ok with integrity there. |
@VicDeo yes my assumption is the same, but surprizing that only these files were left, also i found no evidence to my assumed timeout. update.log from the datadir (which could really use a timestamp :D )
|
@gnanet 'executeCoreUpgradeScripts' does not replace files in updater, there is a separate command for this, the very last one: |
@VicDeo This confirms my assumption: the update was interrupted, but for my luck not at an inconsistent state. Thank you! I think the issue was investigated deep enough, and i know now the cause, so i think i close it. This does not affect my suggestion: if the autoloader does not change in function, why not prevent the regeneration of the suffix, which makes the integrity hash unnecessarily changing If my idea is worth discussing further, i can open a separate issue later. |
I'm getting integrity hash issues after using the updater to move from ownCloud 10.0.0.6 > 10.0.1.0 I even got the latest tar and performed an rsync --update and I'm still seeing these errors. Any fix? |
composer dynamically generated suffix causes integrity check fail after update
only exception to this was ClassLoader.php by 2 whitespace added
A possible way to fix
Specify an integrity-check-safe autoloader-suffix in composer.json
Steps to reproduce
Expected behaviour
Integrity check should not complain
Actual behaviour
Integrity check complains:
Server configuration
Operating system: Debian GNU/Linux 7.11 (wheezy) - Linux oc 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u1 x86_64
Web server: Apache/2.2.22 (Debian) fpm-fcgi
Database: MySQL 5.5.60
PHP version: 7.2.9 fpm (packaged for wheezy by Plesk)
ownCloud version: 10.0.10.4 Community
Updated from an older ownCloud or fresh install: Update / 10.0.9.5
Where did you install ownCloud from: https://owncloud.org/download/#owncloud-server-tar-ball
Signing status (ownCloud 9.0 and above):
https://gist.github.com/gnanet/5e47544c44599000e6618a28cf697138
The content of config/config.php: not relevant
List of activated apps: not relevant
Are you using external storage, if yes which one: not relevant
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
The text was updated successfully, but these errors were encountered: