{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/updater/issues/225","repository_url":"https://api.github.com/repos/owncloud/updater","labels_url":"https://api.github.com/repos/owncloud/updater/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/updater/issues/225/comments","events_url":"https://api.github.com/repos/owncloud/updater/issues/225/events","html_url":"https://github.com/owncloud/updater/issues/225","id":132145729,"number":225,"title":"[New updater] Update from 9.0 to a future version fails.","user":{"login":"jvillafanez","id":1477829,"avatar_url":"https://avatars.githubusercontent.com/u/1477829?v=3","gravatar_id":"","url":"https://api.github.com/users/jvillafanez","html_url":"https://github.com/jvillafanez","followers_url":"https://api.github.com/users/jvillafanez/followers","following_url":"https://api.github.com/users/jvillafanez/following{/other_user}","gists_url":"https://api.github.com/users/jvillafanez/gists{/gist_id}","starred_url":"https://api.github.com/users/jvillafanez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvillafanez/subscriptions","organizations_url":"https://api.github.com/users/jvillafanez/orgs","repos_url":"https://api.github.com/users/jvillafanez/repos","events_url":"https://api.github.com/users/jvillafanez/events{/privacy}","received_events_url":"https://api.github.com/users/jvillafanez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/updater/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/updater/labels/sev2-high","name":"sev2-high","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"VicDeo","id":991300,"avatar_url":"https://avatars.githubusercontent.com/u/991300?v=3","gravatar_id":"","url":"https://api.github.com/users/VicDeo","html_url":"https://github.com/VicDeo","followers_url":"https://api.github.com/users/VicDeo/followers","following_url":"https://api.github.com/users/VicDeo/following{/other_user}","gists_url":"https://api.github.com/users/VicDeo/gists{/gist_id}","starred_url":"https://api.github.com/users/VicDeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VicDeo/subscriptions","organizations_url":"https://api.github.com/users/VicDeo/orgs","repos_url":"https://api.github.com/users/VicDeo/repos","events_url":"https://api.github.com/users/VicDeo/events{/privacy}","received_events_url":"https://api.github.com/users/VicDeo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/owncloud/updater/milestones/19","html_url":"https://github.com/owncloud/updater/milestones/9.0-current","labels_url":"https://api.github.com/repos/owncloud/updater/milestones/19/labels","id":1197286,"number":19,"title":"9.0-current","description":"","creator":{"login":"cmonteroluque","id":879976,"avatar_url":"https://avatars.githubusercontent.com/u/879976?v=3","gravatar_id":"","url":"https://api.github.com/users/cmonteroluque","html_url":"https://github.com/cmonteroluque","followers_url":"https://api.github.com/users/cmonteroluque/followers","following_url":"https://api.github.com/users/cmonteroluque/following{/other_user}","gists_url":"https://api.github.com/users/cmonteroluque/gists{/gist_id}","starred_url":"https://api.github.com/users/cmonteroluque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmonteroluque/subscriptions","organizations_url":"https://api.github.com/users/cmonteroluque/orgs","repos_url":"https://api.github.com/users/cmonteroluque/repos","events_url":"https://api.github.com/users/cmonteroluque/events{/privacy}","received_events_url":"https://api.github.com/users/cmonteroluque/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":21,"state":"open","created_at":"2015-07-07T17:51:52Z","updated_at":"2016-02-12T10:33:31Z","due_on":"2016-03-08T04:00:00Z","closed_at":null},"comments":3,"created_at":"2016-02-08T13:47:08Z","updated_at":"2016-02-12T13:12:16Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Setup a test server to download the updates from. (*)\r\n2. Modify the version of the core and the \"files\" app to another one in the future, in the package to be downloaded (**)\r\n3. Run the updater\r\n\r\n### Expected behaviour\r\nownCloud is updated\r\n\r\n### Actual behaviour\r\nUpdate fails\r\n\r\nAfter debugging I've noticed that, during the upgrade, the apps/files/appinfo/info.xml is still the old one (min-version = 9.0 and max-version = 9.0) and the owncloud version is the 9.1. Trying to upgrade is these conditions will disable the \"files\" app because is not supported, causing the current issue.\r\n\r\nNotice that the _oc_upgrade/9.1.0/owncloud/apps/files/appinfo/info.xml contains the right information (min-version = 9.1 and max-version = 9.1).\r\n\r\n### Server configuration\r\n**Operating system**: ubuntu 14.04\r\n\r\n**Web server:** apache 2.4.7\r\n\r\n**Database:** mysql\r\n\r\n**PHP version:** 5.5.9\r\n\r\n**ownCloud version:** daily-master (OC 9, Feb 8th)\r\n\r\n**Updated from an older ownCloud or fresh install:** fresh install\r\n\r\n### Updater output\r\n\r\n```\r\nownCloud updater 1.0 - CLI based ownCloud server upgrades\r\nChecking system health.\r\n - file permissions are ok.\r\nCurrent version is 9.0.0.10\r\n9.1.0 pre alpha is found online\r\nWhat would you do next?\r\n  [0] download\r\n  [1] upgrade\r\n  [2] abort\r\n > 1\r\nDownloaded 100% (27257922 of 27257922)\r\nCreated checkpoint 9.0.0.10-56b88f03bd772\r\n simulated (optionally, can be done online in advance)\r\nreal [danger, might take long]\r\nExtracting source into ./_oc_upgrade/9.1.0\r\n\r\n\r\n                                                                               \r\n  [Symfony\\Component\\Process\\Exception\\ProcessFailedException]                 \r\n  The command \"php ./occ upgrade\" failed.                                      \r\n  Exit Code: 5(Unknown error)                                                  \r\n  Output:                                                                      \r\n  ================                                                             \r\n  ownCloud or one of the apps require upgrade - only a limited number of comm  \r\n  ands are available                                                           \r\n  You may use your browser or the occ upgrade command to do the upgrade        \r\n  Set log level to debug                                                       \r\n  Turned on maintenance mode                                                   \r\n  Checking whether the database schema can be updated (this can take a long t  \r\n  ime depending on the database size)                                          \r\n  Checked database schema update                                               \r\n  Checking updates of apps                                                     \r\n  Checked database schema update for apps                                      \r\n  Updating database schema                                                     \r\n  Updated database                                                             \r\n  Exception: files can't be disabled.                                          \r\n  Update failed                                                                \r\n  Maintenance mode is kept active                                              \r\n  Reset log level                                                              \r\n  Error Output:                                                                \r\n  ================                                                             \r\n                                                                               \r\n\r\n\r\nupgrade:executeCoreUpgradeScripts\r\n\r\n```\r\n\r\n### Notes\r\n\r\n(*) The setup is similar to the following:\r\n\r\n1. Create a folder in your own ownCloud server, in the base directory of the server (let's call it update-server)\r\n2. Create an index.php file inside with the following content (it's enough for testing):\r\n\r\n    ```\r\n<?xml version=\"1.0\" ?>\r\n<owncloud>\r\n<version>9.1.0</version>\r\n<versionstring>9.1.0 pre alpha</versionstring>\r\n<url>http://localhost/update-server/owncloud-fake.tar.bz2</url>\r\n<web>http://www.google.com</web>\r\n</owncloud>\r\n    ```\r\n\r\n3. Modify https://github.com/owncloud/updater/blob/master/src/Utils/Fetcher.php#L29 to point to your server (http://localhost/update-server should be enough)\r\n\r\n4. Download the daily-master package and modify the version number before leaving it in the localhost/update-server folder (open the tarball, modify the file and compress it again)\r\n\r\n    ```\r\n<?php \r\n$OC_Version = array(9,1,0,10);\r\n$OC_VersionString = '9.1 pre alpha';\r\n$OC_Channel = 'daily';\r\n$OC_VersionCanBeUpgradedFrom = array(9,0);\r\n$OC_Build = '2016-02-08T04:40:38+00:00 feb0522cd059c44b77b5afe1382e5f62bbeb59aa';\r\n    ```\r\n\r\n(**) The modification in the \"files\" app is just to update the supported ownCloud version. Go to the apps/files/appinfo/info.xml file (in the package that the updater will download) and modify the dependency:\r\n\r\n```\r\n        <dependencies>\r\n                <owncloud min-version=\"9.1\" max-version=\"9.1\" />\r\n        </dependencies>\r\n```\r\n\r\n@VicDeo Looks like this is a sev1"},"comment":{"url":"https://api.github.com/repos/owncloud/updater/issues/comments/183321728","html_url":"https://github.com/owncloud/updater/issues/225#issuecomment-183321728","issue_url":"https://api.github.com/repos/owncloud/updater/issues/225","id":183321728,"user":{"login":"cmonteroluque","id":879976,"avatar_url":"https://avatars.githubusercontent.com/u/879976?v=3","gravatar_id":"","url":"https://api.github.com/users/cmonteroluque","html_url":"https://github.com/cmonteroluque","followers_url":"https://api.github.com/users/cmonteroluque/followers","following_url":"https://api.github.com/users/cmonteroluque/following{/other_user}","gists_url":"https://api.github.com/users/cmonteroluque/gists{/gist_id}","starred_url":"https://api.github.com/users/cmonteroluque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmonteroluque/subscriptions","organizations_url":"https://api.github.com/users/cmonteroluque/orgs","repos_url":"https://api.github.com/users/cmonteroluque/repos","events_url":"https://api.github.com/users/cmonteroluque/events{/privacy}","received_events_url":"https://api.github.com/users/cmonteroluque/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T13:12:16Z","updated_at":"2016-02-12T13:12:16Z","body":"@VicDeo update please\r\n"}}