I went to my OwnCloud website after installing some apps and no files were showing. My desktop sync was also erroring. My Android app though could view/download/upload files. I tested through a WebDAV connection and that worked too, so at least my files were safe!
I am not sure what app was causing the issue or if it was a combination of things since I tried many methods, but the last attempts to fix it was by disabling all the apps that were not essential. Here are the ones that I disabled and then bam! It worked!
- user_webdavauth
- storagecharts2
- galleryplus
So, if that does not work, continue by doing these advanced steps. I did these before the final steps above but I think it was an app that was messing OwnCloud up.
- Look at your log file for clues
/var/www/owncloud/data/owncloud.log
- Stop Apache server before doing work
sudo service apache2 stop
- Rescan files as the www-data user
sudo su -c "/var/www/owncloud/occ files:scan --all" -s /bin/bash www-data
- If you get an error with the database being malformed, clear the cache (continue).
- Make a copy of the owncloud.db
sudo cp /var/www/owncloud/data/owncloud.db /var/www/owncloud/data/owncloud.db_original
- Install sqlite3 to view the database
sudo aptitude install sqlite3
- Clear cache
sqlite3 /var/www/owncloud/data/owncloud.db 'DELETE FROM oc_filecache;'
- Start Apache server and test
sudo service apache2 start
- If that does not work, try some maintenance steps…
- Stop Apache server before doing work
sudo service apache2 stop
- Go to your OwnCloud directory
cd /var/www/owncloud
- Run file cleanup
-
sudo su -c "php ./occ files:cleanup" -s /bin/bash www-data
-
- Run maintenance repair
sudo su -c "php ./occ maintenance:repair" -s /bin/bash www-data
- Start Apache server and test
sudo service apache2 start
Let me know in the comments if this helped you out!
Sources