Difference between revisions of "CentOS 7.x Owncloud file cache and sharing"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>CentOS_7.x_owncloud|CentOS 7.x owncloud</yambe:breadcrumb> =CentOS 7.x Owncloud file cache and sharing= Table oc_filecache has cache information. But that...")
 
m
Line 18: Line 18:
* https://github.com/owncloud/core/issues/14684
* https://github.com/owncloud/core/issues/14684
* https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/occ_command.html
* https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/occ_command.html
==For file locks error during scan==
Go to maintenance mode, delete all rows from filelocks table and then switch of maintenance mode using:
<pre>
    sudo -u apache php occ maintenance:mode --on
    (With MySQL)  truncate table oc_filelocks;
    sudo -u apache php occ maintenace:mode --off
</pre>
==Owncloud regular maintenance==
Run background cron job
<pre>
    su - apache php -f cron.php
</pre>
Refer:
* https://central.owncloud.org/t/file-is-locked-how-to-unlock/985
<yambe:breadcrumb>CentOS_7.x_owncloud|CentOS 7.x owncloud</yambe:breadcrumb>

Revision as of 09:59, 14 October 2017

<yambe:breadcrumb>CentOS_7.x_owncloud|CentOS 7.x owncloud</yambe:breadcrumb>

CentOS 7.x Owncloud file cache and sharing

Table oc_filecache has cache information. But that information is used in oc_share to understand which files are shared with whom. Hence the information in that table is critical. If there is a path issue then use:

   su - apache php occ files:scan --all

For faster recovery we can also given path such as

   su - apache php occ files:scan --path "admin/files/HR DEP/hr2"

In any case do not truncate or delete rows from oc_filecache manually or else all sharing will get broken.

Refer:


For file locks error during scan

Go to maintenance mode, delete all rows from filelocks table and then switch of maintenance mode using:

    sudo -u apache php occ maintenance:mode --on
    (With MySQL)   truncate table oc_filelocks;
    sudo -u apache php occ maintenace:mode --off


Owncloud regular maintenance

Run background cron job

    su - apache php -f cron.php

Refer:



<yambe:breadcrumb>CentOS_7.x_owncloud|CentOS 7.x owncloud</yambe:breadcrumb>