Skip to content

Code Integrity Check shows problems after web updater has run #23857

Closed

Description

@mmattel

Steps to reproduce

  1. prepare the instance for web updating (permissions)
  2. run th updater via the web (success)

Expected behaviour

No message about problems with code integrity check

Actual behaviour

Tell us what happens instead
image

Server configuration

Operating system: Ubuntu 14.04

Web server: nginx 1.9.2

Database: mysql

PHP version: 5.5.9

ownCloud version: (see ownCloud admin page)
9.0.1.3 (daily)

Updated from an older ownCloud or fresh install:
daily update

Where did you install ownCloud from:
tar

Signing status (ownCloud 9.0 and above):

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
=======
- core
    - INVALID_HASH
        - 3rdparty/sabre/dav/lib/DAV/Version.php
        - 3rdparty/sabre/dav/lib/DAV/CorePlugin.php
        - 3rdparty/sabre/dav/lib/CardDAV/Backend/PDO.php
        - 3rdparty/sabre/dav/CHANGELOG.md
        - 3rdparty/composer/installed.json
        - 3rdparty/composer/autoload_classmap.php
        - 3rdparty/composer.lock
        - 3rdparty/composer.json
        - updater/src/Command/DetectCommand.php
        - updater/src/Controller/DownloadController.php
    - EXTRA_FILE
        - updater/update.log
        - _oc_upgrade/100.0.0.0/owncloud/config/.htaccess
        - _oc_upgrade/100.0.0.0/owncloud/themes/README
        - _oc_upgrade/100.0.0.0/owncloud/themes/example/core/css/styles.css
        - _oc_upgrade/100.0.0.0/owncloud/themes/example/core/img/logo.png
...

List of activated apps:

Enabled:
  - activity: 2.2.1
  - comments: 0.2
  - dav: 0.1.6
  - federatedfilesharing: 0.1.0
  - federation: 0.0.4
  - files: 1.4.4
  - files_external: 0.5.2
  - files_pdfviewer: 0.8
  - files_sharing: 0.9.1
  - files_texteditor: 2.1
  - files_trashbin: 0.8.0
  - files_versions: 1.2.0
  - files_videoplayer: 0.9.8
  - firstrunwizard: 1.1
  - gallery: 14.5.0
  - notifications: 0.2.3
  - provisioning_api: 0.4.1
  - systemtags: 0.2
  - templateeditor: 0.1
  - updatenotification: 0.1.0

The content of config/config.php:

If you have access to your command line run e.g.:
{
    "system": {
        "instanceid": "oci1ewzyz3i0",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "xxx"
        ],
        "datadirectory": "\/var\/www\/owncloud\/data",
        "overwrite.cli.url": "https:\/\/xxx",
        "dbtype": "mysql",
        "version": "9.0.1.3",
        "dbname": "owncloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "Europe\/Vienna",
        "installed": true,
        "filelocking.enabled": "true",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "localhost",
            "port": 6379,
            "timeout": 0,
            "dbindex": 0
        },
        "assetdirectory": "\/var\/www\/owncloud",
        "asset-pipeline.enabled": true,
        "filesystem_check_changes": 1,
        "preview_max_scale_factor": 1,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\Illustrator",
            "OC\\Preview\\Postscript",
            "OC\\Preview\\Photoshop",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\Raw"
        ],
        "loglevel": 0,
        "maintenance": false,
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

Are you using external storage, if yes which one: local/smb/sftp/...
SMB

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: Opera

Operating system: W7x64

Logs

No correspondend log entries

Activity

  1. changed the title [-]Code Signing after web updater has run shows problems[/-] [+]Code Integrity Check shows problems after web updater has run[/+] on Apr 8, 2016
  2. ronnicek commented on Apr 8, 2016

    @ronnicek

    I had also similar problem, so I delete everything except config and data folder and unzip everything again. Rescan and everything looks ok now.

  3. nickvergessen commented on Apr 11, 2016

    @nickvergessen
    Contributor

    @mmattel can you retry if this is re-producable?

  4. mmattel commented on Apr 11, 2016

    @mmattel
    ContributorAuthor

    Before I start, shall I delete the contents of the updater/ folder ?

  5. koehn commented on Apr 11, 2016

    @koehn

    I've bee having the same issue on Ubuntu 14.04 with the OC packages. I had no integrity problems prior to the upgrade from 9.0 to 9.0.1.

    Results
    =======
    - core
        - EXTRA_FILE
            - 3rdparty/mcnetic/phpzipstreamer/ZipStreamer.php
            - core/doc/admin/_sources/configuration_server/performance_tuning.txt
            - core/doc/admin/configuration_server/performance_tuning.html
            - core/doc/admin/_images/video_firstminute.png
            - core/doc/admin/_images/sharing-user.png
            - core/doc/admin/_images/sharing-user-local.png
            - core/doc/admin/_images/sharing-admin.png
            - core/doc/admin/_images/remote_shares.png
            - core/doc/admin/_images/install-wizard-advanced.png
            - core/doc/admin/_images/smb-create-share.png
            - core/doc/admin/_images/smb-files-view.png
            - core/doc/admin/_images/smb-user-share.png
            - core/skeleton/ownCloudUserManual.pdf
    - files_sharing
        - EXTRA_FILE
            - lib/exceptions.php
    
  6. teslasmoustache commented on Apr 11, 2016

    @teslasmoustache

    similar error with these files:

    Results
    =======
    - core
        - EXTRA_FILE
            - .rnd
    
    Raw output
    ==========
    Array
    (
        [core] => Array
            (
                [EXTRA_FILE] => Array
                    (
                        [.rnd] => Array
                            (
                                [expected] => 
                                [current] => 
                            )
    
                    )
    
            )
    
    )
    

    sorry about the crap formatting.

  7. nickvergessen commented on Apr 12, 2016

    @nickvergessen
    Contributor

    sorry about the crap formatting.

    Fixed formatting with triple `

    Try deleting the files:

    • 3rdparty/mcnetic/phpzipstreamer/ZipStreamer.php
    • core/doc/
    • apps/files_sharing/lib/exceptions.php
  8. Salzi commented on Apr 13, 2016

    @Salzi

    I just upgraded from owncloud 9 to owncloud 9.0.1 with the webinterface. Now I have similar errors as @mmattel in the first post.

    Here the list of the affected files:

    Results

    • core
      • INVALID_HASH
        • 3rdparty/composer.json
        • 3rdparty/composer.lock
        • 3rdparty/composer/autoload_classmap.php
        • 3rdparty/composer/installed.json
        • 3rdparty/sabre/dav/CHANGELOG.md
        • 3rdparty/sabre/dav/lib/CardDAV/Backend/PDO.php
        • 3rdparty/sabre/dav/lib/DAV/CorePlugin.php
        • 3rdparty/sabre/dav/lib/DAV/Version.php
      • FILE_MISSING
        • 3rdparty/icewind/streams/src/DirectoryFilter.php
        • 3rdparty/icewind/streams/src/DirectoryWrapper.php
        • 3rdparty/icewind/streams/src/RetryWrapper.php
        • 3rdparty/icewind/streams/src/SeekableWrapper.php
      • EXTRA_FILE
        • updater/update.log
  9. mmattel commented on Apr 13, 2016

    @mmattel
    ContributorAuthor

    @nickvergessen

    Before I start, shall I delete the contents of the updater/ folder ?

    Delete or not to delete before I run the update again, or is this already obsolete by the referenced issue?

  10. nickvergessen commented on Apr 13, 2016

    @nickvergessen
    Contributor
    • If a file is INVALID_HASH make sure to upload it again to the server
    • If a file is FILE_MISSING make sure to upload it to the server
    • If a file is EXTRA_FILE make sure to delete it from the server
  11. Salzi commented on Apr 13, 2016

    @Salzi

    I replaced the listed files by the original from a new downloaded archive. Now its working but to me it still looks like a bug in the updater.

  12. self-assigned this
    on Apr 13, 2016
  13. 7 remaining items

  14. PVince81 commented on Apr 21, 2016

    @PVince81
    Contributor

    @LukasReschke is #24134 the mighty awaited patch ?

    If yes, it was merged already and should run in the next git update on stable9 or daily.

  15. LukasReschke commented on Apr 21, 2016

    @LukasReschke
    Contributor

    It is. – But git update won't do as they are not signed :)

  16. PVince81 commented on Apr 25, 2016

    @PVince81
    Contributor

    Waiting for @owncloud/qa to verify with the dailies

  17. PVince81 commented on Apr 29, 2016

    @PVince81
    Contributor

    @jvillafanez have you seen this in your latest tests ?

    Else let's close it as solved.

  18. PVince81 commented on May 2, 2016

    @PVince81
    Contributor

    I tested updating from 9.0.1 tarball to 9.0.2RC2 tarball (had to hack updater URL), and it worked fine. No more integrity check warnings.

    Same when updating from 9.0.1 tarball to stable9 daily. No more warnings.

    Closing as solved.

  19. davitol commented on May 3, 2016

    @davitol
    Contributor

    Same when updating from 9.0.1 tarball to stable9 daily. No more warnings.

    👍

  20. bcutter commented on May 5, 2016

    @bcutter

    I´ve been directed here when asking for the reason the updater app still doesn´t offer an upgrade from 8.2.3 to v9.0.1 or v9.0.2. I read the thread, but couldn´t find an appropriate answer. Will the updater app ever work and provide the update to the v9 release? I´m waiting for weeks now...

  21. jospoortvliet commented on May 28, 2016

    @jospoortvliet

    There are still issues with 9.0.2 at the moment. There might be a 'silent' update to 9.0.2 that fixes it, if so we'll enable the updater soon. If we don't do that, it will be 9.0.3 that should allow the updater to be turned on.

  22. dg1sek commented on Feb 12, 2019

    @dg1sek

    Similar issue when upgrading dockerized nextcloud from 15.0.2 to 15.0.4.

    Root cause seems to be that the /var/www/html/... is in a docker mounted volume that is not upgraded when I update to a more recent nextcloud with docker-compose pull.

    Only fix I can find is to open a shell into the container and then manually download the files with the wrong checksum. But this seems not a good way of proceeding. Would be preferable to have the application detect that the docker volume needs updating.

  23. locked as resolved and limited conversation to collaborators on Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions