-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Integrity check fails on PostgreSqlSchemaManager.php with latest version 12.0.4 #7549
Comments
Could you check that the file has the exact same content as https://github.com/nextcloud/3rdparty/blob/v12.0.4/doctrine/dbal/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php Could you send over this file? What exactly is shown in http://example.com/index.php/settings/integrity/failed |
EDIT: To add: It looks like it was a change for PosgrSQL10 - in the diff |
But 12.0.4 is not compatible to Postgres 10. Did you patched this in? Please drop the lines and re-run the integrity check from the CLI or the admin settings. It should then be fine. |
I will close this, as this looks like a patched instance and this is actually the wanted behaviour. It should detect if the code is not the original released one. |
@MorrisJobke Further the bug has already been filed: I rolled back my version to match the repo and all is good => integrity check passes. Apologies for any confusion. For any others reading this, it's the FreeBSD port that is broken - it has a modified PostgreSqlSchemaManager.php with an incorrect checksum in signatures.json Many Thanks Edits: Typos, additional link from bugs.freebsd.org |
Steps to reproduce
No errors were reported - in fact near the end I see the below (which indicates to me no errors were found?)
5839a5ca8dacedb7eb8ab40e9025614a042741557346ddd228f3e0aa38a6bb352226c59b3b429057651ad6c58ba20f69a4049178c39aedf7a9a7c462faa042d4
Expected behaviour
Hashes are updated with the upgrade so they actually match the installed files, and thus the integrity check should succeed.
Actual behaviour
The integrity check fails as the hash for PostgreSqlSchemaManager.php is not correct.
The 'expected' hash is:
9c9a80a71990dc784914780024b780189f7f68d38ee98f49439d5db9adce290d1105a17fb8a670090fa92b65760775fb942bc3060b368bf16b82702fa2d5f9f2
...which is clearly wrong and does not match the file installed.
Server configuration
Operating system:
FreeBSD 11.1-RELEASE-p1 #0 r323888M
Web server:
nginx-1.12.2_3,2
Database:
sqlite3-3.21.0_1
PHP version:
php56-5.6.32_1
Nextcloud version: (see Nextcloud admin page)
nextcloud-12.0.4
Updated from an older Nextcloud/ownCloud or fresh install:
Upgrade from 12.0.3
Where did you install Nextcloud from:
FreeBSD packages
Signing status:
Signing status
Technical information
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.
Results
Raw output
Array
(
[core] => Array
(
[INVALID_HASH] => Array
(
[3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php] => Array
(
[expected] => 9c9a80a71990dc784914780024b780189f7f68d38ee98f49439d5db9adce290d1105a17fb8a670090fa92b65760775fb942bc3060b368bf16b82702fa2d5f9f2
[current] => 5839a5ca8dacedb7eb8ab40e9025614a042741557346ddd228f3e0aa38a6bb352226c59b3b429057651ad6c58ba20f69a4049178c39aedf7a9a7c462faa042d4
)
)
List of activated apps:
App list
Enabled:
Disabled:
Nextcloud configuration:
Config report
{
"system": {
"datadirectory": "/media",
"instanceid": "xxxxxxxxxxxxxxxxxx",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"A.A.A.A",
"A.DNS.NAME",
"B.B.B.B",
"C.C.C.C",
"Another.DNS.NAME"
],
"trusted_proxies": [
"A.A.A.A",
"B.B.B.B",
"C.C.C.C"
],
"dbtype": "sqlite",
"dbname": "nextcloud",
"version": "12.0.4.3",
"installed": true,
"updatechecker": true,
"forcessl": false,
"theme": "",
"loglevel": 0,
"maintenance": false,
"secret": "REMOVED SENSITIVE VALUE",
"trashbin_retention_obligation": "auto",
"appstoreenabled": true,
"overwrite.cli.url": "https://the.server.dns.name:port",
"proxy": "X.X.X.X:Y"
}
}
Are you using external storage, if yes which one: local/smb/sftp/...
NO
Are you using encryption: yes/no
NO
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
NO
Client configuration
Browser:
Firefox
Operating system:
Ubuntu
Logs
Web server error log
Web server error log
No errros in the past month
Nextcloud log (data/nextcloud.log)
Nextcloud log
Nothing relevant
The text was updated successfully, but these errors were encountered: