From Notes Wiki
Jump to: navigation, search
m
m
Line 28: Line 28:
 
     sudo -u apache php occ maintenace:mode --off
 
     sudo -u apache php occ maintenace:mode --off
 
</pre>
 
</pre>
 
 
 
==Owncloud regular maintenance==
 
For regular owncloud maintenance cron job create '<tt>/etc/cron.daily/owncloud-maintenance.sh</tt>' with
 
<pre>
 
    #!/bin/bash
 
    cd /opt/owncloud-10.1.0-1/apps/owncloud/htdocs
 
    sudo -u daemon /opt/owncloud-10.1.0-1/php/bin/php -f cron.php
 
</pre>
 
Note in case of source based installation user name would perhaps be apache and not daemon.  Also note that above example assumes bitnami stack based installation.  For source based installation cd might be required to /var/www/html/owncloud folder.  '''For large installations having several TB of data maintenance can go on for more than a day''', in such cases run maintenance manually or via /etc/cron.weekly or /etc/cron.monthly instead.
 
 
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>
 
<yambe:breadcrumb>CentOS_7.x_owncloud|CentOS 7.x owncloud</yambe:breadcrumb>

Revision as of 08:58, 6 June 2019

Home > CentOS > CentOS 7.x > Web Based Tools > CentOS 7.x owncloud > CentOS 7.x Owncloud file cache and sharing

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


Home > CentOS > CentOS 7.x > Web Based Tools > CentOS 7.x owncloud > CentOS 7.x Owncloud file cache and sharing