OwnCloud “You don’t have permission to upload or create files here.” – Quick Tip

You don't have permission to upload or create files here.
You don’t have permission to upload or create files here.

 

In an OwnCloud server if you change the permissions of an external drive to give r/w access (in my case chgrp www-data) and OwnCloud isn’t updating those permissions you can do this. In your MySQL database find your external storage in oc_storages and make note of the numeric id. Then run this query “Delete from oc_filecache where storage = numeric_id” replacing numeric_id with the one you found in the oc_storages table.

My Setup:
Ubuntu 14.04 Server
OwnCloud 7.0.2
MySQL 5.5.38
Apache 2.4.7

10 thoughts on “OwnCloud “You don’t have permission to upload or create files here.” – Quick Tip

  1. Can someone please tell me how to do this step by step? I am not very proficient with mysql, but i can follow a walk through.

    1. mysql -u root -p #assuming root is your mysql admin user
      #enter mysql admin password
      use owncloud; #assuming your owncloud-db ist called owncloud (which is the default)
      select * from oc_storages;
      #note your user’s “numeric_id”, let’s assume it’s 2
      delete from oc_filecache where storage=2;
      #done

  2. Thank you!! I was trying to fix this problem the last days without success, and you post save me!! Thanks again,

Have a question or comment? Why not leave a Reply?