{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/12801","labels_url":"https://api.github.com/repos/owncloud/core/issues/12801/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/12801/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/12801/events","html_url":"https://github.com/owncloud/core/issues/12801","id":51741073,"number":12801,"title":"Issues with missing personal files and no access to shared files after upgrading from 6.0.6 to 7.x","user":{"login":"fleish","id":2106430,"avatar_url":"https://avatars.githubusercontent.com/u/2106430?v=3","gravatar_id":"","url":"https://api.github.com/users/fleish","html_url":"https://github.com/fleish","followers_url":"https://api.github.com/users/fleish/followers","following_url":"https://api.github.com/users/fleish/following{/other_user}","gists_url":"https://api.github.com/users/fleish/gists{/gist_id}","starred_url":"https://api.github.com/users/fleish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fleish/subscriptions","organizations_url":"https://api.github.com/users/fleish/orgs","repos_url":"https://api.github.com/users/fleish/repos","events_url":"https://api.github.com/users/fleish/events{/privacy}","received_events_url":"https://api.github.com/users/fleish/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/5%20-%20To%20review","name":"5 - To review","color":"ededed"},{"url":"https://api.github.com/repos/owncloud/core/labels/Update","name":"Update","color":"e10c02"}],"state":"open","locked":false,"assignee":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars.githubusercontent.com/u/245432?v=3","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"milestone":null,"comments":83,"created_at":"2014-12-11T21:34:46Z","updated_at":"2015-02-02T15:36:06Z","closed_at":null,"body":"### Steps to reproduce\r\n1. upgrade owncloud 6.0.6 using SQLite database to 7.0.3 or 7.0.4 using ubuntu package from http://download.opensuse.org/repositories/isv:/ownCloud:/community:/7.0/xUbuntu_12.04/\r\n2. run occ upgrade\r\n3. (optional - issue occurs in either database type) convert from SQLite to MySQL using occ db:convert-type --all-apps mysql owncloud localhost \r\n4. Login to your owncloud via the web\r\n\r\n### Expected behaviour\r\nYou should be able to see your files & the files that have been shared with you\r\n\r\n### Actual behaviour\r\nYou will not be able to view your files nor any of the files that have been shared with you (for the latter you can see the folders that have been shared with you but you cannot get into them)\r\n\r\nNOTE: talked to AnybodyElse on IRC about this and as suggested ran \"occ files:scan --all\" which fixed the first issue of not being able to see my own files. \r\n\r\n### Server configuration\r\n**Operating system**: Ubuntu 12.04.5 LTS\r\n\r\n**Web server:** Apache/2.2.22 (Ubuntu)\r\n\r\n**Database:** SQLite3 or mysql  Ver 14.14 Distrib 5.5.40, for debian-linux-gnu (x86_64) using readline 6.2\r\n\r\n**PHP version:** PHP 5.3.10-1ubuntu3.15 with Suhosin-Patch (cli) (built: Oct 29 2014 12:19:04) \r\n\r\n**ownCloud version:** 7.0.4.2\r\n\r\n**Updated from an older ownCloud or fresh install:** updated from 6.0.6\r\n\r\n**List of activated apps:** \r\nActivity\r\nDeleted Files\r\nDocuments\r\nEncryption\r\nFirst Run Wizard\r\nFull Text Search\r\nLDAP user and group backend\r\nPDF Viewer\r\nPictures\r\nShare Files\r\nText Editor\r\nVideo Viewer\r\n\r\n**The content of config/config.php:**\r\n<?php\r\n$CONFIG = array (\r\n  'instanceid' => '**REDACTED**',\r\n  'passwordsalt' => '**REDACTED**',\r\n  'datadirectory' => '/var/www/owncloud/data',\r\n  'dbtype' => 'mysql',\r\n  'version' => '7.0.4.2',\r\n  'installed' => true,\r\n  'ldapIgnoreNamingRules' => false,\r\n  'forcessl' => true,\r\n  'enable_previews' => false,\r\n  'theme' => '',\r\n  'maintenance' => false,\r\n  'trusted_domains' => \r\n  array (\r\n    0 => '**REDACTED**',\r\n  ),\r\n  'secret' => '**REDACTED**',\r\n  'share_folder' => '/Shared',\r\n  'dbname' => 'owncloud',\r\n  'dbhost' => 'localhost',\r\n  'dbuser' => 'owncloud',\r\n  'dbpassword' => '**REDACTED**',\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:** Google Chrome Version 39.0.2171.71 (64-bit)\r\n\r\n**Operating system:** Mac OSX 10.8.5 (also tested in Mac OSX 10.9.5)\r\n\r\n### Logs\r\n#### Web server error log\r\n[Thu Dec 11 21:12:27 2014] [error] [client 50.248.219.14] PHP Fatal error:  Cannot redeclare class OC_Search_Provider in /var/www/owncloud/lib/private/search/provider.php on line 5, referer: https://owncloud2.newconews.org/index.php/apps/files/?dir=%2F\r\n\r\n\r\n#### ownCloud log (data/owncloud.log)\r\nmessages seen after the upgrade:\r\n1) This one appears repeatedly. I think it corresponds to me trying to view things that have been shared with me by user with UUID yyy-yyy-yyy-yyy (REDACTED):\r\n{\"app\":\"files_sharing\",\"message\":\"Unable to get mount for shared storage '3' user 'yyy-yyy-yyy-yyy'\",\"level\":3,\"time\":\"2014-12-11T21:07:31+00:00\"} \r\n\r\n2) This one appears just once, seems to happen when trying to view shared files. First error No. 1 is repeated twice, then this message appears, then error No. 1 is repeated many more times:\r\n{\"app\":\"PHP\",\"message\":\"Invalid argument supplied for foreach() at \\/var\\/www\\/owncloud\\/lib\\/private\\/files\\/cache\\/scanner.php#216\",\"level\":3,\"time\":\"2014-12-11T21:07:31+00:00\"}\r\n\r\n3) This one appears a couple of times:\r\n{\"app\":\"PHP\",\"message\":\"Cannot redeclare class OC_Search_Provider at \\/var\\/www\\/owncloud\\/lib\\/private\\/search\\/provider.php#5\",\"level\":3,\"time\":\"2014-12-11T21:12:27+00:00\"}\r\n\r\n4) These appeared once in conjunction with me deleting a file on my computer (REDACTED my UUID xxx-xxx-xxx-xxx) and my sync client pushing it to the server. The file was actually deleted, but the messages were logged:\r\n{\"app\":\"Encryption library\",\"message\":\"No share key found for user \\\"xxx-xxx-xxx-xxx\\\" for file \\\"Test222.txt\\\"\",\"level\":2,\"time\":\"2014-12-11T21:11:47+00:00\"}\r\n{\"app\":\"core\",\"message\":\"No preview providers exist\",\"level\":3,\"time\":\"2014-12-11T21:11:47+00:00\"}\r\n{\"app\":\"hook\",\"message\":\"error while running hook (OC\\\\Preview::post_delete_files): No preview providers\",\"level\":3,\"time\":\"2014-12-11T21:11:47+00:00\"}\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/72477084","html_url":"https://github.com/owncloud/core/issues/12801#issuecomment-72477084","issue_url":"https://api.github.com/repos/owncloud/core/issues/12801","id":72477084,"user":{"login":"jcfischer","id":3088,"avatar_url":"https://avatars.githubusercontent.com/u/3088?v=3","gravatar_id":"","url":"https://api.github.com/users/jcfischer","html_url":"https://github.com/jcfischer","followers_url":"https://api.github.com/users/jcfischer/followers","following_url":"https://api.github.com/users/jcfischer/following{/other_user}","gists_url":"https://api.github.com/users/jcfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/jcfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcfischer/subscriptions","organizations_url":"https://api.github.com/users/jcfischer/orgs","repos_url":"https://api.github.com/users/jcfischer/repos","events_url":"https://api.github.com/users/jcfischer/events{/privacy}","received_events_url":"https://api.github.com/users/jcfischer/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T15:36:05Z","updated_at":"2015-02-02T15:36:05Z","body":"@PVince81 @blizzz: I wonder if you guys shouldn't try to understand what exactly causes the upgrade to fail (i.e. users not seeing the files in the GUI). We are happy to provide excerpts samples of pre and post migration databases - just tell us what you need."}}