I've found some confusing stuff while migrating owncloud to another server.
My instance has been running since version 4 or 5 of owncloud, cant remember for sure.

So, let's go to the point, i did the migration, i moved all the files and databases to the new server, fixed permissions, changed paths on the config file and everything seemed to work. Except it didn't worked because the database had some references to absolute filesystem paths, ok fixed that to on oc_storages.

But there was a problem with a single file, and rescanning the occ files:scan didnt fixed it, so i checked the permissions, and everything was ok, checked the database and there where no references left to the old install path. After a while i took a look into the oc_filecache table, and there where 2 references to the same file, and they were, apparently alright, but they sync client kept saying "Access denied". So i deleted the references to the file and issued another occ files:scan.

That fixed the problem with the file. Now, i check the database and there is just one reference for that file, but 2 for others.

On the references it points to 2 different storages. One of them is of type home::username and the other is of type local::/absolute_path/to_owncloud/data/username/

What i don't understand its why are there 2 references for the same file?
Why are there 2 storages for the same user?
If that's needed, why the new scan left just 1 ref to the file?, if not, should i delete all the not absolute storages and its references?

I don't want to fix this problem many times in the future.

Thanks in advance.
_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user

Reply via email to