Access to files not possible after upgrade

Steps to reproduce

  1. login in my owncloud in browser
  2. try open/download file
  3. Error: Forbidden

Expected behaviour

show file / downloda file

Actual behaviour

error page

Server configuration

ownCloud version:

Are you using external storage, if yes which one: No

Are you using encryption: yes

Are you using an external user-backend, if yes which one: No

Client configuration

Browser: firefox 64.0.2

Operating system: Win 7 Prof


ownCloud log (data/owncloud.log)

nur einträge wie:
{"reqId":"wjZKNPuL2cmXD6PNyG6H","level":3,"time":"2019-01-27T15:04:08+00:00","remoteAddr":"","user":"admin","app":"PHP","method":"GET","url":"\/owncloud\/remote.php\/webdav\/[..]","message":"set_time_limit(): Cannot set max execution time limit due to system policy at [..]\/httpd.www\/owncloud\/lib\/base.php#547"}


I tried to upgrade our ownCloud.
Now the download of old files is not possible anymore. Forbidden is shown.
With new files we have no problem.
The file permissions are the same for new and old ones as well as user + group.
Only error in log: set_time_limit(): Cannot set max execution time limit due to system policy at ...

If you write in German - you limit the amount of ppl who will read / help you.

I changed it to English after I saw that you wrote the description in English

Please describe what you have enabled and how.

I enabled with my admin account over settings the default encryption module with master key.

I just realised that I am not able to uncheck this option anymore

PS. Thanks for changing the title. I forgot to translate it

Okay, master key is good. Did you just do this or something else. Because in the official documentation there are more steps. Also did you enable encryption right after the installation of ownCloud or later?

Somebody else installed the owncloud. I later enabled the encryption

Okay, so some files were already there, then you enabled encryption.

If that’s true then there are 2 type of files - encrypted and un encrypted.

Now - how did you upgrade? step by step

I unpacked the tar archive and moved the data folder as well as the config file Form the old to the new owncloud folder. After owncloud compained about a missing .ocdata i added a empty file to data

On what OS did you install ownCloud?


could it be possible that this is the culprit here? From what i know you can’t “just move” the data directory from one place to anther one without doing modifications within the ownCloud database.


Moving data

Unfortunately, I think this is not the point. All path variables mentioned in your link are correct. That’s because I renamed the old folder to owncloud-old and installed the new owncloud such that all pathes kept the same.


VERSION=“18.04.1 LTS (Bionic Beaver)”
PRETTY_NAME=“Ubuntu 18.04.1 LTS”