{"action":"closed","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/20008","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/20008/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/20008/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/20008/events","html_url":"https://github.com/owncloud/core/issues/20008","id":113038377,"number":20008,"title":"Some file and folder sharing not working after server migration","user":{"login":"ownclouduser2","id":15154314,"avatar_url":"https://avatars.githubusercontent.com/u/15154314?v=3","gravatar_id":"","url":"https://api.github.com/users/ownclouduser2","html_url":"https://github.com/ownclouduser2","followers_url":"https://api.github.com/users/ownclouduser2/followers","following_url":"https://api.github.com/users/ownclouduser2/following{/other_user}","gists_url":"https://api.github.com/users/ownclouduser2/gists{/gist_id}","starred_url":"https://api.github.com/users/ownclouduser2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ownclouduser2/subscriptions","organizations_url":"https://api.github.com/users/ownclouduser2/orgs","repos_url":"https://api.github.com/users/ownclouduser2/repos","events_url":"https://api.github.com/users/ownclouduser2/events{/privacy}","received_events_url":"https://api.github.com/users/ownclouduser2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/needs%20info","name":"needs info","color":"0b02e1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-23T15:04:55Z","updated_at":"2016-03-01T15:11:12Z","closed_at":"2016-03-01T15:11:12Z","body":"I have an old  openSUSE 12.2 running owncloud version 7.0.1. I have installed a fresh 8.2 Debian server and the latest owncloud version (8.1.3) on it. As next step I copied the data folder from old server to the new server (I have changed the path of data folder in the new server) and corrected the owner of files and folders. \r\nNext I exported the owncloud database from mysql in the old server and imported it into the new server. I have corrected the owncloud-data path in oc_storages but I still get the following error message with some shared files and folders:\r\n\r\nError\tPHP\tInvalid argument supplied for foreach() at /var/www/owncloud/lib/private/files/view.php#1287\t2015-10-23T14:47:46+00:00\r\nError\tfiles_sharing\tUnable to get mount for shared storage '2' user '5E92634A-6F89-40DF-89FB-28C05A2840A3'\t2015-10-23T14:47:46+00:00\r\nError\tfiles_sharing\tUnable to get mount for shared storage '2' user '5E92634A-6F89-40DF-89FB-28C05A2840A3'\t2015-10-23T14:47:46+00:00\r\n\r\nThe problem appears for some users and not for all. I have compared the orphaned shares on both servers. Everything looks the same. Even the content of select * from oc_storages where numeric_id=2 and select * from oc_filecache where storage=2 is the same on both servers. \r\n\r\nI am using owncloud on a server with LDAP and have a couple of hundert users. \r\n\r\nAny Idea is welcome as I am stuck on this problem for a couple of days."}}