Updater in 9.1.0 not working after patch

help

#1

Steps to reproduce
1. Install patch from this thread https://central.owncloud.org/t/patches-for-known-update-issues-from-version-9-0-4-9-0-5-9-1-0-9-1-1/3549
2. Try to update OC with updater.

Expected behaviour
OC should update.

Actual behaviour
Error: cURL error 35: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

Server configuration
Operating system: CentOS 6.8
Web server: Apache 2.4.23
Database: MariaDB 10.0.27
PHP version: 5.6.24
ownCloud version (see ownCloud admin page): 9.1.0
Updated from an older ownCloud or fresh install: current version was a fresh install

Integrity status for oC9+

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
		- core/Application.php
		- core/Controller/OccController.php
		- core/routes.php
		- updater/src/Command/PostUpgradeCleanupCommand.php
		- updater/src/Console/Application.php
		- updater/src/Controller/IndexController.php
		- updater/src/Utils/Locator.php
		- updater/src/Utils/OccRunner.php
	- EXTRA_FILE
		- updater/src/Resources/views/partials/error.php
Raw output
==========
Array
(
    [core] => Array
        (
            [INVALID_HASH] => Array
                (
                    [core/Application.php] => Array
                        (
                            [expected] => efcc36e049ebe8d0b352c7e6bc18f7be1b208deab73fa311073b2f3cc90bf4cb062f6fd213209f7715a92f0e6f89dd9c1cf9f0336f0d96c18a7f83867aaf89da
                            [current] => e54495fc8e4d58b8186f3e0884bce434682377334dc11ff2556ffde2acf886d6ab43fc7040d014c3657991d310473f0e49599ce496a4a7c92cc581e1c950cae0
                        )
                    [core/Controller/OccController.php] => Array
                    (
                        [expected] => 2e373acef32cdca473ac3f01282ad2f52901f36a9daa8457f1e368805e5184d1b8f6f9c3f1bb1548823a8cbeb9c1ded92ec0f9b37ac83fad585276492ca8cb63
                        [current] => c89d9403a25b8a400a2287b390403bb8114bbd30e5658811ab2dddf27b43d4ff8cf567ef0d851019672cdd490b9c846808fa1a2b6a220bbd0bafcd12d7340c9d
                    )

                [core/routes.php] => Array
                    (
                        [expected] => c875316c5c183478d22f00950ee2eaa990c2ed9c8280702f0b1b4a20bb59e3f850241c0f24dee5f7a84b04602cec489ede436674b352c656d9f5a60ec6c8738c
                        [current] => 278a4a2d71b377d382e10223db788215d901febb0ddaa6f94bb9fae435f8711e3bf9f9df3b9d168b5497396929ab712047142c859febeab8431eeecb110f0804
                    )

                [updater/src/Command/PostUpgradeCleanupCommand.php] => Array
                    (
                        [expected] => 6b0a144cc215e29836f3c1b30317fbbcae25a564da2a93d1a3b26ae7f43091f832d25974ed60b7a91fc43ea3dc0b4e13ad1a927543901b437c522d0d17862a7f
                        [current] => 0834146bda7df4e86871fe0137215b78718a98bdad54febdfc508b260422e2fa1f29eae12dbc788ef35b5aa9190cd29e6a497c2ac79a05dba7a02aeeec61c7aa
                    )

                [updater/src/Console/Application.php] => Array
                    (
                        [expected] => 55311f48f937f00e6fc7b37ecf90ff7ea5b127b1e16cd3d932be5c9d9222e2acbb55f4cbacf34de02396ad5a3494b981a51ed62a2c44ede2ac7472bfbf680dd6
                        [current] => 72f880e6ab12526a88157fabab13415010e627367dafd753ecac030ebdf6e02d44b1c3ff31f0918867ed07d308a8d789568ea8c61d770e2223a1ad60cfd7db85
                    )

                [updater/src/Controller/IndexController.php] => Array
                    (
                        [expected] => 15072440f84163a03638edc8bc26211365398bd326c53986e1606494bbf38661be74fc7a9a2912787d34bf11d1977b4ef70b6724f918b16efacf4d9ac9eba14f
                        [current] => bd08f4e7ec2f922d74428559d9515fac4cb5ec6dd08e2f1c682e21b2c1ee9e6583bdc5b0a9fe90a54037b267837763c2e3b545f4ea1f2aa5d43342583b12766e
                    )

                [updater/src/Utils/Locator.php] => Array
                    (
                        [expected] => 3309881f2aeaec70d5c21dd454f16470bc3ea316cdbd58e1cc4c9c89d2723612695de001f88434ad229088ac3c15ac9273b719471f33010d23290b15bb4d2a8c
                        [current] => a65b19916ffcb0713507e149e73890e2f73f25c2a8fbfef73407baee2a0db960dab93f12e746ff9121b2064a6ef3da242f52031b874b8b26e3d3f8d2bc6c20fd
                    )

                [updater/src/Utils/OccRunner.php] => Array
                    (
                        [expected] => 76cc9917e963240028c54820a7b91940c255bfe146adbe840a30a7769c16ffd8ff38b57d66e9f64ed131076bc1b1be3d28855c27149596ca74dd1fbde2b21ab0
                        [current] => 874a14af323afc96f82d2d7f3c6bfac1f1bfbb8c3823e25a16276efeabe441da6d8ce369afcbea6beff5146cf0e8ae3f04c9733af14fb56e2405f07be192fac1
                    )

            )

        [EXTRA_FILE] => Array
            (
                [updater/src/Resources/views/partials/error.php] => Array
                    (
                        [expected] => 
                        [current] => fbb1e810c5e4a22e87e604bfdec9a39b5ae1fe4daa04e9a2a26af774a2e004a723608f88cd25cf856da28b588c1445b766f489a9ea0258cdee6447872caf46b6
                    )

            )

    )
)

#2

Hi,

the following URL shows the issue here: https://curl.haxx.se/libcurl/c/libcurl-errors.html

CURLE_SSL_CONNECT_ERROR (35)
A problem occurred somewhere in the SSL/TLS handshake. You really want the error buffer and read the message there as it pinpoints the problem slightly more. Could be certificates (file formats, paths, permissions), passwords, and others.

Most likely caused by some environmental issues / bugs in your used OpenSSL library or similar. If you can't fix your environment to do a correct SSL connection just do the manual update.


#3

Can you tell me what file in OC or updater that contains the code for executing a curl request so I can log what is going on?


#4

https://github.com/owncloud/updater/search?utf8=%E2%9C%93&q=curl

shows some sources where curl might be used.


#5

Thanks for the help!! Might have an easier way to figure out what is going on. Do you know what URL the updater is using? Is it simply https://download.owncloud.org/community/owncloud-9.1.1.tar.bz2? Thought about just doing a curl request myself to see if I get any errors?


#6

https://updates.owncloud.com/server/ and https://download.owncloud.org/community/owncloud-9.1.1.zip

updater relies guzzle client for requests: https://github.com/owncloud/updater/tree/c43e2f8640c1cf8b5228b182892d46e6f0b66bc4/vendor/guzzlehttp/guzzle