"Patches for known update issues from version 9.0.4, 9.0.5, 9.1.0, 9.1.1

Notes on using built-in updater

Affects ownCloud versions 9.0.4, 9.0.5, 9.1.0 and 9.1.1 only

Fixes the following issues:

  • Updater web interface shows:

     Could not parse a response for config:list. Please check if the current shell user can run occ command.
     Raw output: 
     Not allowed
  • Exception in CLI mode:

      The command "php /usr/local/www/owncloud/occ --no-warnings app:list --output=json '--shipped false'" failed.  
      Exit Code: 1(General error)                                                                                   
      Error Output:                                                                                                 
        The "--shipped false" option does not exist.                                                                
      app:list [--output [OUTPUT]] [--shipped SHIPPED]
  • PHP 5.4 incompatibility:

    Fatal error: Can't use method return value in write context in 
    updater/src/Console/Application.php on line 193
  • Complain on Integrity check in admin area after update is done


Patch for 9.0.4 and 9.0.5
Patch for 9.1.0 and 9.1.1

Complete list of steps to apply the patch for 9.0.4 and 9.0.5

1. cd /path/to/owncloud/dir
2. wget https://gist.githubusercontent.com/VicDeo/b423a50776440c7b4a10f55ce0068845/raw/4ca6092ee5bff3157efacb5b96dfa46255a65bb7/updater-904-905.patch
3. patch -p0 <updater-904-905.patch
4. rm updater-904-905.patch

Complete list of steps to apply the patch for 9.1.0 and 9.1.1

1. cd /path/to/owncloud/dir
2. wget https://gist.githubusercontent.com/VicDeo/937a0172a06d693258b97b7132c4ba5b/raw/193a6c3f993adfe78ea26d92f2f916ac09dddc42/updater-910-911.patch
3. patch -p0 <updater-910-911.patch
4. rm updater-910-911.patch

Already patched files

If you have no shell access you can download already patched files:

  1. Check your version
  2. Download respective version package from the list below
  3. Extract it
  4. browse into patched-90x or patched-91x directory
  5. FTP all files from this directory into your owncloud root dir overwriting existing files

9.0.4 and 9.0.5 https://github.com/owncloud/updater/files/563026/patched-90x.zip
9.1.0 and 9.1.1 https://github.com/owncloud/updater/files/563022/patched-91x.zip


For reference, the patches are based on many of these fixes:
- https://github.com/owncloud/updater/pull/394
- https://github.com/owncloud/updater/pull/395
- https://github.com/owncloud/updater/pull/397
- https://github.com/owncloud/updater/pull/398
- https://github.com/owncloud/updater/pull/400
- https://github.com/owncloud/updater/pull/405

1 Like

After applying patch for 9.1.0 and trying to update to 9.1.1 I get the error: cURL error 35: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

Not related to the patches. I'm also closing this issue to avoid further hijacking of this post.

If some one has any questions to these please create a new thread.