OwnCloud files not showing up on website

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.

  1. Look at your log file for clues
    1. /var/www/owncloud/data/owncloud.log
  2. Stop Apache server before doing work
    1. sudo service apache2 stop
  3. Rescan files as the www-data user
    1. sudo su -c "/var/www/owncloud/occ files:scan --all" -s /bin/bash www-data
  4. If you get an error with the database being malformed, clear the cache (continue).
  5. Make a copy of the owncloud.db
    1. sudo cp /var/www/owncloud/data/owncloud.db /var/www/owncloud/data/owncloud.db_original
  6. Install sqlite3 to view the database
    1. sudo aptitude install sqlite3
  7. Clear cache
    1. sqlite3 /var/www/owncloud/data/owncloud.db 'DELETE FROM oc_filecache;'
  8. Start Apache server and test
    1. sudo service apache2 start
  9. If that does not work, try some maintenance steps…
  10. Stop Apache server before doing work
    1. sudo service apache2 stop
  11. Go to your OwnCloud directory
    1. cd /var/www/owncloud
  12. Run file cleanup
    1.  sudo su -c "php ./occ files:cleanup" -s /bin/bash www-data
  13. Run maintenance repair
    1. sudo su -c "php ./occ maintenance:repair" -s /bin/bash www-data
  14. Start Apache server and test
    1. sudo service apache2 start

Let me know in the comments if this helped you out!

Sources

Advertisements
This entry was posted in How-To, Nextcloud/OwnCloud and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s