[Owncloud] Problem with changing data directory

Arman Khalatyan arm2arm at gmail.com
Tue Sep 3 13:23:15 UTC 2013


5 steps require to change data store:
1) stop mysql
2) move data on storage(do not forget to give a right permissions for
apache/webservice user.
3) change config.php file to tell OC where is the user data.
4) drop file cache table(probably md5sum table as well)
5) start mysql

login and see your files. On a first login it will take a while for
scanning storage.
This works in my case.
cheers arman.


On Sun, Sep 1, 2013 at 10:01 AM, Tornóci László <
tornoci.laszlo at med.semmelweis-univ.hu> wrote:

> On 08/31/2013 11:52 PM, Masaki Kawabata Neto wrote:
>
>> Hi,
>> checking my database (mysql), the oc_storages table is populated with
>> the path of the data dir.
>> I have cleaned my table and it is automatically recreated, possibly for
>> the new data path.
>> May you try this?
>> Masaki
>>
>
> Hi,
>
> I would like to see a clear statement on this from the devs:
> - does owncloud support changing the data path or not?
> - if yes, what are the steps to properly do that?
>
> The problem is, as Masaki noticed that in some tables of the db full paths
> are stored. Changing the data path and transferring the data files are
> definitely not enough, you need to change many records in the db as well.
>
>                                         Yours: Laszlo
>
>>
>>
>> 2013/8/31 Torsten Seyffarth <t.seyffarth at gmx.de <mailto:
>> t.seyffarth at gmx.de>>
>>
>>
>>     Hello all,
>>
>>     I am using OC for a while (currently 5.0.9) and it is running good.
>>
>>     Now I wanted to change the data directory. So I copied everything
>>     with preventing permissions, owners, ect. in the new folder and
>>     changed the entry in config.php.
>>     If I now login over the web interface I can see the files that are
>>     directly owned by me. But the shared files are problematic. I can
>>     still see the shared folders directly under "Shared" (let's assume
>>     this is "testfolder") , but when I click on "testfolder" the home
>>     folder is shown again. When I login as the user that shares
>>     "testfolder" with me, it shows that he do not share the folder. If
>>     he shares it again, then I still have "testfolder" under "Shared"
>>     that is not working and in addition I have something like this
>>     "testfolder (3)" that is working.
>>
>>     I changed config.php back to the old data directory, but I still
>>     have the problem. I also loaded an backup of the database from
>>     before and this also didn't help?!? The only solution that I found
>>     was to delete all entries in the "oc_share" table and toconfigure
>>     all shares again. Apparently "item_source", "item_target" and
>>     "file_source" are different after that.
>>
>>     Did I forgot something when changing the data directory? Or can
>>     someone verify that this is a bug?
>>
>>     Best
>>     Torsten
>>     ______________________________**___________________
>>     Owncloud mailing list
>>     Owncloud at kde.org <mailto:Owncloud at kde.org>
>>     https://mail.kde.org/mailman/_**_listinfo/owncloud<https://mail.kde.org/mailman/__listinfo/owncloud>
>>     <https://mail.kde.org/mailman/**listinfo/owncloud<https://mail.kde.org/mailman/listinfo/owncloud>
>> >
>>
>>
>>
>>
>>
>> ______________________________**_________________
>> Owncloud mailing list
>> Owncloud at kde.org
>> https://mail.kde.org/mailman/**listinfo/owncloud<https://mail.kde.org/mailman/listinfo/owncloud>
>>
>>
> ______________________________**_________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/**listinfo/owncloud<https://mail.kde.org/mailman/listinfo/owncloud>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20130903/75d80b05/attachment.html>


More information about the Owncloud mailing list