owncloud 使用总结

好风 发表于 2018-04-10T12:28:25.282535Z
引用地址:https://plus.ooclab.com/note/article/1406

常见错误

File is locked

参考:

清空 oc_file_locks 表:

# kubectl exec -it owncloud-owncloud-57f9cb95f9-7jr96 -c postgres bash
root@owncloud-owncloud-57f9cb95f9-7jr96:/# su - postgres -c 'psql -d owncloud'
No directory, logging in with HOME=/
psql (9.5.12)
Type "help" for help.

owncloud=# DELETE FROM oc_file_locks ;
DELETE 34629
owncloud=# \q

重新扫描文件:

# kubectl exec -it owncloud-owncloud-57f9cb95f9-7jr96 bash
Defaulting container name to owncloud.
Use 'kubectl describe pod/owncloud-owncloud-57f9cb95f9-7jr96 -n default' to see all of the containers in this pod.
cb95f9-7jr96:/var/www/html# su -s /bin/bash www-data -c './occ files:scan --all'

最后,可能需要重启 owncloud

FAQ

清理文件 versions

apt update
apt install sudo -y
sudo - www-data
./occ help versions:cleanup