{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/14012","labels_url":"https://api.github.com/repos/owncloud/core/issues/14012/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/14012/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/14012/events","html_url":"https://github.com/owncloud/core/issues/14012","id":57098570,"number":14012,"title":"Problem with upgrading files_encryption from OC 7 => OC 8","user":{"login":"Beskhue","id":9393486,"avatar_url":"https://avatars.githubusercontent.com/u/9393486?v=3","gravatar_id":"","url":"https://api.github.com/users/Beskhue","html_url":"https://github.com/Beskhue","followers_url":"https://api.github.com/users/Beskhue/followers","following_url":"https://api.github.com/users/Beskhue/following{/other_user}","gists_url":"https://api.github.com/users/Beskhue/gists{/gist_id}","starred_url":"https://api.github.com/users/Beskhue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Beskhue/subscriptions","organizations_url":"https://api.github.com/users/Beskhue/orgs","repos_url":"https://api.github.com/users/Beskhue/repos","events_url":"https://api.github.com/users/Beskhue/events{/privacy}","received_events_url":"https://api.github.com/users/Beskhue/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:files_encryption","name":"app:files_encryption","color":"02d7e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/update","name":"update","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/32","labels_url":"https://api.github.com/repos/owncloud/core/milestones/32/labels","id":955004,"number":32,"title":"8.0.1-next-maintenance","description":"","creator":{"login":"craigpg","id":160667,"avatar_url":"https://avatars.githubusercontent.com/u/160667?v=3","gravatar_id":"","url":"https://api.github.com/users/craigpg","html_url":"https://github.com/craigpg","followers_url":"https://api.github.com/users/craigpg/followers","following_url":"https://api.github.com/users/craigpg/following{/other_user}","gists_url":"https://api.github.com/users/craigpg/gists{/gist_id}","starred_url":"https://api.github.com/users/craigpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigpg/subscriptions","organizations_url":"https://api.github.com/users/craigpg/orgs","repos_url":"https://api.github.com/users/craigpg/repos","events_url":"https://api.github.com/users/craigpg/events{/privacy}","received_events_url":"https://api.github.com/users/craigpg/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":5,"state":"open","created_at":"2015-01-28T14:58:27Z","updated_at":"2015-02-10T09:16:41Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-02-09T22:16:10Z","updated_at":"2015-02-10T09:22:56Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Have a working installation of owncloud version 7.0.4.2 with files_encryption enabled.\r\n2. Attempt to upgrade to owncloud 8.0.0.7.\r\n\r\n### Expected behaviour\r\nThe upgrade should succeed.\r\n\r\n### Actual behaviour\r\nThe upgrade hangs. After disabling maintenance mode and trying again, it still hangs.\r\n\r\nAfter disabling files_encryption through the occ console, the upgrade succeeded. However, encrypted files are not decrypted (and owncloud does not prompt users to decrypt their files). After re-enabling files_encryption, owncloud shows the upgrade-screen again. Upgrading still fails.\r\n\r\n### Server configuration\r\n**Operating system**: Ubuntu 12.04\r\n\r\n**Web server:** Apache 2.4.9\r\n\r\n**Database:** MySQL\r\n\r\n**PHP version:** 5.5.12\r\n\r\n**ownCloud version:** 7.0.4.2=>8.0.0.7\r\n\r\n**Updated from an older ownCloud or fresh install:** During upgrading\r\n\r\n**List of activated apps:**\r\n - files\r\n - files_encryption\r\n - files_external\r\n - files_pdfviewer\r\n - files_sharing\r\n - files_texteditor\r\n - files_trashbin\r\n - files_versions\r\n - files_videoviewer\r\n - firstrunwizard\r\n - gallery\r\n - templateeditor\r\n - updater\r\n\r\n**The content of config/config.php:**\r\n```\r\n<?php\r\n$CONFIG = array (\r\n  'instanceid' => 'oc2197ab4a5f',\r\n  'trusted_domains' =>\r\n  array (\r\n    0 => 'kepow.org',\r\n  ),\r\n  'datadirectory' => '/www/kepow/owncloud_data',\r\n  'dbtype' => 'mysql',\r\n  'version' => '8.0.0.7',\r\n  'dbname' => 'owncloud',\r\n  'dbhost' => 'localhost',\r\n  'dbtableprefix' => 'oc_',\r\n  'dbuser' => 'oc_Thomas',\r\n  'installed' => true,\r\n  'forcessl' => true,\r\n  'mail_smtpmode' => 'php',\r\n  'mail_smtpname' => 'thomas',\r\n  'maintenance' => true,\r\n  'theme' => '',\r\n);\r\n```\r\n\r\n**Are you using external storage, if yes which one:** No.\r\n\r\n**Are you using encryption:** Yes.\r\n\r\n### Client configuration\r\n**Browser:** Issue occurs on firefox and chrome\r\n\r\n**Operating system:** Windows\r\n\r\n### Logs\r\n#### Web server error log\r\nNo errors are logged during the upgrade process.\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n\r\nFirst try:\r\n```\r\n{\"reqId\":\"230bd67050902ddeb36c9af31787d650\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/user\\/session.php#282\",\"level\":3,\"time\":\"2015-02-09T20:51:06+00:00\"}\r\n{\"reqId\":\"230bd67050902ddeb36c9af31787d650\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/user\\/session.php#283\",\"level\":3,\"time\":\"2015-02-09T20:51:06+00:00\"}\r\n{\"reqId\":\"230bd67050902ddeb36c9af31787d650\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/user\\/session.php#284\",\"level\":3,\"time\":\"2015-02-09T20:51:06+00:00\"}\r\n{\"reqId\":\"230bd67050902ddeb36c9af31787d650\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/user\\/session.php#287\",\"level\":3,\"time\":\"2015-02-09T20:51:06+00:00\"}\r\n{\"reqId\":\"230bd67050902ddeb36c9af31787d650\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/user\\/session.php#288\",\"level\":3,\"time\":\"2015-02-09T20:51:06+00:00\"}\r\n{\"reqId\":\"230bd67050902ddeb36c9af31787d650\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/user\\/session.php#289\",\"level\":3,\"time\":\"2015-02-09T20:51:06+00:00\"}\r\n{\"reqId\":\"230bd67050902ddeb36c9af31787d650\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"opendir(\\/www\\/kepow\\/owncloud_data\\/files_encryption\\/keyfiles): failed to open dir: No such file or directory at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/files\\/storage\\/local.php#78\",\"level\":3,\"time\":\"2015-02-09T20:51:06+00:00\"}\r\n{\"reqId\":\"230bd67050902ddeb36c9af31787d650\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"core\",\"message\":\"unable to rename, file does not exists : files_encryption\\/Jordi.private.key\",\"level\":3,\"time\":\"2015-02-09T20:53:38+00:00\"}\r\n```\r\n\r\nRetry:\r\n\r\n```\r\n{\"reqId\":\"1637703e855ad9def0d8b34063f10a6e\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/user\\/session.php#282\",\"level\":3,\"time\":\"2015-02-09T20:55:39+00:00\"}\r\n{\"reqId\":\"1637703e855ad9def0d8b34063f10a6e\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/user\\/session.php#283\",\"level\":3,\"time\":\"2015-02-09T20:55:39+00:00\"}\r\n{\"reqId\":\"1637703e855ad9def0d8b34063f10a6e\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/user\\/session.php#284\",\"level\":3,\"time\":\"2015-02-09T20:55:39+00:00\"}\r\n{\"reqId\":\"1637703e855ad9def0d8b34063f10a6e\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/user\\/session.php#287\",\"level\":3,\"time\":\"2015-02-09T20:55:39+00:00\"}\r\n{\"reqId\":\"1637703e855ad9def0d8b34063f10a6e\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/user\\/session.php#288\",\"level\":3,\"time\":\"2015-02-09T20:55:39+00:00\"}\r\n{\"reqId\":\"1637703e855ad9def0d8b34063f10a6e\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"Cannot modify header information - headers already sent at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/user\\/session.php#289\",\"level\":3,\"time\":\"2015-02-09T20:55:39+00:00\"}\r\n{\"reqId\":\"1637703e855ad9def0d8b34063f10a6e\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"copy(\\/www\\/kepow\\/owncloud_data\\/owncloud_private_key): failed to open stream: No such file or directory at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/files\\/storage\\/local.php#211\",\"level\":3,\"time\":\"2015-02-09T20:55:39+00:00\"}\r\n{\"reqId\":\"1637703e855ad9def0d8b34063f10a6e\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"copy(\\/www\\/kepow\\/owncloud_data\\/public-keys): failed to open stream: No such file or directory at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/files\\/storage\\/local.php#211\",\"level\":3,\"time\":\"2015-02-09T20:55:39+00:00\"}\r\n{\"reqId\":\"1637703e855ad9def0d8b34063f10a6e\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"opendir(\\/www\\/kepow\\/owncloud_data\\/public-keys): failed to open dir: No such file or directory at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/files\\/storage\\/local.php#78\",\"level\":3,\"time\":\"2015-02-09T20:55:39+00:00\"}\r\n{\"reqId\":\"1637703e855ad9def0d8b34063f10a6e\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"opendir(\\/www\\/kepow\\/owncloud_data\\/files_encryption\\/keyfiles): failed to open dir: No such file or directory at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/files\\/storage\\/local.php#78\",\"level\":3,\"time\":\"2015-02-09T20:55:39+00:00\"}\r\n{\"reqId\":\"1637703e855ad9def0d8b34063f10a6e\",\"remoteAddr\":\"84.85.215.83\",\"app\":\"PHP\",\"message\":\"opendir(\\/www\\/kepow\\/owncloud_data\\/owncloud_private_key): failed to open dir: No such file or directory at \\/www\\/kepow\\/owncloud\\/lib\\/private\\/files\\/storage\\/local.php#78\",\"level\":3,\"time\":\"2015-02-09T20:55:39+00:00\"}\r\n```\r\n\r\n#### Browser log\r\n```\r\nUsing //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead jquery.min.js:1\r\nUsing //@ to indicate sourceMappingURL pragmas is deprecated. Use //# instead jquery-migrate.min.js:3\r\nContent Security Policy: The page's settings blocked the loading of a resource at self (\"script-src https://kepow.org 'unsafe-eval'\"). index.php\r\nUse of getPreventDefault() is deprecated.  Use defaultPrevented instead. jquery.min.js:5\r\n```"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/73668106","html_url":"https://github.com/owncloud/core/issues/14012#issuecomment-73668106","issue_url":"https://api.github.com/repos/owncloud/core/issues/14012","id":73668106,"user":{"login":"kkretsch","id":1115638,"avatar_url":"https://avatars.githubusercontent.com/u/1115638?v=3","gravatar_id":"","url":"https://api.github.com/users/kkretsch","html_url":"https://github.com/kkretsch","followers_url":"https://api.github.com/users/kkretsch/followers","following_url":"https://api.github.com/users/kkretsch/following{/other_user}","gists_url":"https://api.github.com/users/kkretsch/gists{/gist_id}","starred_url":"https://api.github.com/users/kkretsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkretsch/subscriptions","organizations_url":"https://api.github.com/users/kkretsch/orgs","repos_url":"https://api.github.com/users/kkretsch/repos","events_url":"https://api.github.com/users/kkretsch/events{/privacy}","received_events_url":"https://api.github.com/users/kkretsch/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T09:22:56Z","updated_at":"2015-02-10T09:22:56Z","body":"Having a similar problem I switched back to 704. I have nearly 10GB of encrypted media which seems to upgrade for such a long time OC9 might even be released befaore it finishes.\r\n\r\nAny hints how to upgrade in a reasonable timeframe?"}}