This operation is forbidden - permissions errors?


#1

Steps to reproduce

  1. Updated my Control Panel which somehow deleted Owncloud
  2. Reinstall owncloud from PHP auto file
  3. Finish setup and log in.

Expected behaviour

I expected to be able to view my files

Actual behaviour

I Got "This operation is forbidden" after logging in. I have followed all the instructions to get WebDav working (I think). The only thing I can think is that it's permission errors, but I've set the New Data folder to exactly the same as the old original data folder (which survived the update)

I have carried out a repair and upgrade through the ./OC command. But this hasn't solved any issues.

Server configuration

Operating system: Centos 6.8 running Centos Web Panel

Web server: Apache 2.4.25

Database: My SQL 5.5.56

PHP version: 5.6.24

ownCloud version: 10.0.0

Updated from an older ownCloud or fresh install: Fresh

Where did you install ownCloud from: PHP file

Signing status (ownCloud 9.0 and above): "No errors have been found."

The content of config/config.php:

{
    "system": {
        "instanceid": "ocrz45ed2t51",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.stapleton.org.uk"
        ],
        "datadirectory": "\/home\/owncloud\/data",
        "overwrite.cli.url": "http:\/\/cloud.stapleton.org.uk",
        "dbtype": "mysql",
        "version": "10.0.0.12",
        "dbname": "staples_ownc766",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "loglevel": 0
    },
    "apps": {
        "activity": {
            "enabled": "no",
            "installed_version": "2.3.3",
            "types": "filesystem"
        },
        "backgroundjob": {
            "lastjob": "5"
        },
        "comments": {
            "enabled": "no",
            "installed_version": "0.3.0",
            "types": "logging"
        },
        "configreport": {
            "enabled": "no",
            "installed_version": "0.1.1",
            "types": "filesystem"
        },
        "core": {
            "backgroundjobs_mode": "ajax",
            "encryption_enabled": "yes",
            "installedat": "1494599898.5121",
            "lastcron": "1494604148",
            "lastupdateResult": "[]",
            "lastupdatedat": "1494599898.5356",
            "oc.integritycheck.checker": "[]",
            "public_files": "files_sharing\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "vendor": ""
        },
        "dav": {
            "enabled": "yes",
            "installed_version": "0.2.8",
            "types": "filesystem"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "0.3.0",
            "types": ""
        },
        "federation": {
            "enabled": "no",
            "installed_version": "0.1.0",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "enabled": "yes",
            "installed_version": "1.5.1",
            "types": "filesystem"
        },
        "files_external": {
            "enabled": "yes",
            "installed_version": "0.7.0",
            "ocsid": "166048",
            "types": "filesystem"
        },
        "files_pdfviewer": {
            "enabled": "no",
            "installed_version": "0.8.1",
            "ocsid": "166049",
            "types": ""
        },
        "files_sharing": {
            "enabled": "no",
            "installed_version": "0.10.0",
            "types": "filesystem"
        },
        "files_texteditor": {
            "enabled": "no",
            "installed_version": "2.1",
            "ocsid": "166051",
            "types": ""
        },
        "files_trashbin": {
            "enabled": "no",
            "installed_version": "0.9.0",
            "types": "filesystem"
        },
        "files_versions": {
            "enabled": "no",
            "installed_version": "1.3.0",
            "types": "filesystem"
        },
        "files_videoplayer": {
            "enabled": "no",
            "installed_version": "0.9.8",
            "types": ""
        },
        "firstrunwizard": {
            "enabled": "no",
            "installed_version": "1.1",
            "ocsid": "166055",
            "types": ""
        },
        "gallery": {
            "enabled": "no",
            "installed_version": "15.0.0",
            "types": ""
        },
        "market": {
            "enabled": "no",
            "installed_version": "0.1.0",
            "types": ""
        },
        "notifications": {
            "enabled": "no",
            "installed_version": "0.3.0",
            "types": "logging"
        },
        "provisioning_api": {
            "enabled": "no",
            "installed_version": "0.5.0",
            "types": "prevent_group_restriction"
        },
        "systemtags": {
            "enabled": "no",
            "installed_version": "0.3.0",
            "types": "logging"
        },
        "templateeditor": {
            "enabled": "no",
            "installed_version": "0.1",
            "types": ""
        },
        "updatenotification": {
            "enabled": "no",
            "installed_version": "0.2.1",
            "types": ""
        }
    }
}

List of activated apps: None

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

Are you using encryption: no

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

Client configuration

Browser: Chrome

Operating system: Linux-mint

Logs

Web server error log

[Fri May 12 17:28:36.899021 2017] [authz_core:error] [pid 4740:tid 140397504358144] [client 31.51.194.10:47710] AH01630: client denied by server configuration: /home/staples/public_html/cloud/remote.php
[Fri May 12 17:28:46.597606 2017] [:error] [pid 4740:tid 140397294561024] [client 180.76.15.145:34796] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so' - /usr/l$
[Fri May 12 17:28:47.191568 2017] [authz_core:error] [pid 4357:tid 140397613172480] [client 31.51.194.10:47718] AH01630: client denied by server configuration: /home/staples/public_html/cloud/remote.php
[Fri May 12 17:28:47.339446 2017] [:error] [pid 4740:tid 140397378479872] [client 180.76.15.23:35041] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so' - /usr/lo$
[Fri May 12 17:39:49.929236 2017] [:error] [pid 4358:tid 140397623662336] [client 185.85.239.157:50635] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so' - /usr/$
[Fri May 12 17:39:50.213331 2017] [:error] [pid 4358:tid 140397305050880] [client 144.76.32.22:45814] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so' - /usr/lo$
[Fri May 12 17:39:51.368879 2017] [:error] [pid 4358:tid 140397602682624] [client 185.85.239.157:50635] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so' - /usr/$
[Fri May 12 17:41:32.183668 2017] [authz_core:error] [pid 4358:tid 140397483378432] [client 31.51.194.10:51534] AH01630: client denied by server configuration: /home/staples/public_html/cloud/remote.php
[Fri May 12 17:41:32.227951 2017] [authz_core:error] [pid 4359:tid 140397347010304] [client 31.51.194.10:51540] AH01630: client denied by server configuration: /home/staples/public_html/cloud/remote.php
[Fri May 12 17:46:41.632832 2017] [:error] [pid 4358:tid 140397388969728] [client 51.255.65.74:33303] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so' - /usr/lo$
[Fri May 12 17:47:47.761527 2017] [:error] [pid 4740:tid 140397347010304] [client 185.129.148.181:12694] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so' - /usr$
[Fri May 12 17:48:15.816667 2017] [:error] [pid 4357:tid 140397514848000] [client 120.89.75.19:63483] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so' - /usr/lo$
[Fri May 12 17:48:16.415904 2017] [:error] [pid 4357:tid 140397504358144] [client 120.89.75.19:63483] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20131226/ffmpeg.so' - /usr/lo$
[Fri May 12 17:53:03.026337 2017] [:error] [pid 4357:tid 140397367990016] [client 31.51.194.10:52218] PHP Warning:  fopen(/home/staples/public_html/cloud/config/config.php): failed to open stream: Permission denied in /home/staples/publi$
[Fri May 12 17:53:03.026436 2017] [:error] [pid 4357:tid 140397367990016] [client 31.51.194.10:52218] PHP Warning:  flock() expects parameter 1 to be resource, boolean given in /home/staples/public_html/cloud/lib/private/Config.php on li$
[Fri May 12 17:53:03.026848 2017] [:error] [pid 4357:tid 140397367990016] [client 31.51.194.10:52218] PHP Fatal error:  Call to a member function getRequest() on null in /home/staples/public_html/cloud/lib/private/legacy/response.php on $
[Fri May 12 17:53:35.025606 2017] [:error] [pid 4740:tid 140397347010304] [client 31.51.194.10:52221] PHP Warning:  fopen(/home/staples/public_html/cloud/config/config.php): failed to open stream: Permission denied in /home/staples/publi$
[Fri May 12 17:53:35.025700 2017] [:error] [pid 4740:tid 140397347010304] [client 31.51.194.10:52221] PHP Warning:  flock() expects parameter 1 to be resource, boolean given in /home/staples/public_html/cloud/lib/private/Config.php on li$
[Fri May 12 17:53:35.026133 2017] [:error] [pid 4740:tid 140397347010304] [client 31.51.194.10:52221] PHP Fatal error:  Call to a member function getRequest() on null in /home/staples/public_html/cloud/lib/private/legacy/response.php on $
[Fri May 12 17:54:07.047354 2017] [:error] [pid 4740:tid 140397420439296] [client 31.51.194.10:52222] PHP Warning:  fopen(/home/staples/public_html/cloud/config/config.php): failed to open stream: Permission denied in /home/staples/publi$
[Fri May 12 17:54:07.047453 2017] [:error] [pid 4740:tid 140397420439296] [client 31.51.194.10:52222] PHP Warning:  flock() expects parameter 1 to be resource, boolean given in /home/staples/public_html/cloud/lib/private/Config.php on li$
[Fri May 12 17:54:07.047884 2017] [:error] [pid 4740:tid 140397420439296] [client 31.51.194.10:52222] PHP Fatal error:  Call to a member function getRequest() on null in /home/staples/public_html/cloud/lib/private/legacy/response.php on $
[Fri May 12 17:54:39.032730 2017] [:error] [pid 4740:tid 140397357500160] [client 31.51.194.10:52239] PHP Warning:  fopen(/home/staples/public_html/cloud/config/config.php): failed to open stream: Permission denied in /home/staples/publi$
[Fri May 12 17:54:39.032842 2017] [:error] [pid 4740:tid 140397357500160] [client 31.51.194.10:52239] PHP Warning:  flock() expects parameter 1 to be resource, boolean given in /home/staples/public_html/cloud/lib/private/Config.php on li$
[Fri May 12 17:54:39.033253 2017] [:error] [pid 4740:tid 140397357500160] [client 31.51.194.10:52239] PHP Fatal error:  Call to a member function getRequest() on null in /home/staples/public_html/cloud/lib/private/legacy/response.php on $
[Fri May 12 17:55:11.028186 2017] [:error] [pid 4359:tid 140397451908864] [client 31.51.194.10:52246] PHP Warning:  fopen(/home/staples/public_html/cloud/config/config.php): failed to open stream: Permission denied in /home/staples/publi$
[Fri May 12 17:55:11.028283 2017] [:error] [pid 4359:tid 140397451908864] [client 31.51.194.10:52246] PHP Warning:  flock() expects parameter 1 to be resource, boolean given in /home/staples/public_html/cloud/lib/private/Config.php on li$
[Fri May 12 17:55:11.028705 2017] [:error] [pid 4359:tid 140397451908864] [client 31.51.194.10:52246] PHP Fatal error:  Call to a member function getRequest() on null in /home/staples/public_html/cloud/lib/private/legacy/response.php on $
[Fri May 12 17:55:43.029902 2017] [:error] [pid 4740:tid 140397315540736] [client 31.51.194.10:52251] PHP Warning:  fopen(/home/staples/public_html/cloud/config/config.php): failed to open stream: Permission denied in /home/staples/publi$
[Fri May 12 17:55:43.029997 2017] [:error] [pid 4740:tid 140397315540736] [client 31.51.194.10:52251] PHP Warning:  flock() expects parameter 1 to be resource, boolean given in /home/staples/public_html/cloud/lib/private/Config.php on li$
[Fri May 12 17:55:43.030424 2017] [:error] [pid 4740:tid 140397315540736] [client 31.51.194.10:52251] PHP Fatal error:  Call to a member function getRequest() on null in /home/staples/public_html/cloud/lib/private/legacy/response.php on $
[Fri May 12 17:56:15.056497 2017] [:error] [pid 4359:tid 140397441419008] [client 31.51.194.10:52268] PHP Warning:  fopen(/home/staples/public_html/cloud/config/config.php): failed to open stream: Permission denied in /home/staples/publi$
[Fri May 12 17:56:15.056593 2017] [:error] [pid 4359:tid 140397441419008] [client 31.51.194.10:52268] PHP Warning:  flock() expects parameter 1 to be resource, boolean given in /home/staples/public_html/cloud/lib/private/Config.php on li$
[Fri May 12 17:56:15.056987 2017] [:error] [pid 4359:tid 140397441419008] [client 31.51.194.10:52268] PHP Fatal error:  Call to a member function getRequest() on null in /home/staples/public_html/cloud/lib/private/legacy/response.php on $

ownCloud log (data/owncloud.log)

{"reqId":"tTNvL8wVVONj1MHHzrSv","level":3,"time":"2017-05-12T15:57:19+00:00","remoteAddr":"31.51.194.10","user":"--","app":"PHP","method":"GET","url":"\/cloud\/status.php","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/home\/staples\/public_html\/cloud\/lib\/composer\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18"}
{"reqId":"aa4vBKdaAa2NLAKcjqcj","level":2,"time":"2017-05-12T15:57:51+00:00","remoteAddr":"31.51.194.10","user":"--","app":"core","method":"GET","url":"\/cloud\/status.php","message":"Trusted domain error. \"31.51.194.10\" tried to access using \"stapleton.org.uk\" as host."}
{"reqId":"aa4vBKdaAa2NLAKcjqcj","level":3,"time":"2017-05-12T15:57:51+00:00","remoteAddr":"31.51.194.10","user":"--","app":"PHP","method":"GET","url":"\/cloud\/status.php","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/home\/staples\/public_html\/cloud\/lib\/composer\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18"}
{"reqId":"BiQ1DM1z0NrfmSVxvLcw","level":2,"time":"2017-05-12T15:58:23+00:00","remoteAddr":"31.51.194.10","user":"--","app":"core","method":"GET","url":"\/cloud\/status.php","message":"Trusted domain error. \"31.51.194.10\" tried to access using \"stapleton.org.uk\" as host."}
{"reqId":"BiQ1DM1z0NrfmSVxvLcw","level":3,"time":"2017-05-12T15:58:23+00:00","remoteAddr":"31.51.194.10","user":"--","app":"PHP","method":"GET","url":"\/cloud\/status.php","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/home\/staples\/public_html\/cloud\/lib\/composer\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18"}
{"reqId":"5AHdnB06QMCYm9RprVnr","level":2,"time":"2017-05-12T15:58:55+00:00","remoteAddr":"31.51.194.10","user":"--","app":"core","method":"GET","url":"\/cloud\/status.php","message":"Trusted domain error. \"31.51.194.10\" tried to access using \"stapleton.org.uk\" as host."}
{"reqId":"5AHdnB06QMCYm9RprVnr","level":3,"time":"2017-05-12T15:58:55+00:00","remoteAddr":"31.51.194.10","user":"--","app":"PHP","method":"GET","url":"\/cloud\/status.php","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/home\/staples\/public_html\/cloud\/lib\/composer\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18"}
{"reqId":"5HvDrYrcbNUS9ptBpsnd","level":0,"time":"2017-05-12T15:58:57+00:00","remoteAddr":"31.51.194.10","user":"--","app":"cron","method":"GET","url":"\/cron.php","message":"Started background job of class : OCA\\Files\\BackgroundJob\\CleanupFileLocks with arguments : "}
{"reqId":"5HvDrYrcbNUS9ptBpsnd","level":0,"time":"2017-05-12T15:58:57+00:00","remoteAddr":"31.51.194.10","user":"--","app":"cron","method":"GET","url":"\/cron.php","message":"Finished background job, the job took : 0 seconds, this job is an instance of class : OCA\\Files\\BackgroundJob\\CleanupFileLocks with arguments : "}
{"reqId":"5HvDrYrcbNUS9ptBpsnd","level":3,"time":"2017-05-12T15:58:57+00:00","remoteAddr":"31.51.194.10","user":"--","app":"PHP","method":"GET","url":"\/cron.php","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/home\/staples\/public_html\/cloud\/lib\/composer\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18"}
{"reqId":"HUKAZcwZRcxbYkCoDRcT","level":3,"time":"2017-05-12T15:59:00+00:00","remoteAddr":"31.51.194.10","user":"pete-n","app":"PHP","method":"GET","url":"\/index.php\/settings\/admin?sectionid=general","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/home\/staples\/public_html\/cloud\/lib\/composer\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18"}
{"reqId":"nekXteIsEp7wXi7RMrlC","level":3,"time":"2017-05-12T15:59:00+00:00","remoteAddr":"31.51.194.10","user":"pete-n","app":"PHP","method":"GET","url":"\/index.php\/core\/js\/oc.js?v=18a6e9a979dab2a8c0b0913dfdc3010d","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/home\/staples\/public_html\/cloud\/lib\/composer\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18"}
{"reqId":"r1J2LHxUJoMYqDCYovmi","level":3,"time":"2017-05-12T15:59:01+00:00","remoteAddr":"31.51.194.10","user":"pete-n","app":"PHP","method":"GET","url":"\/index.php\/heartbeat","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/home\/staples\/public_html\/cloud\/lib\/composer\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18"}
{"reqId":"wD4jjxiHPjYMaNfEtqXe","level":0,"time":"2017-05-12T15:59:01+00:00","remoteAddr":"31.51.194.10","user":"--","app":"cron","method":"GET","url":"\/cron.php","message":"Started background job of class : OC\\Authentication\\Token\\DefaultTokenCleanupJob with arguments : "}
{"reqId":"wD4jjxiHPjYMaNfEtqXe","level":1,"time":"2017-05-12T15:59:01+00:00","remoteAddr":"31.51.194.10","user":"--","app":"cron","method":"GET","url":"\/cron.php","message":"Invalidating tokens older than 2017-05-11T15:59:01+00:00"}
{"reqId":"wD4jjxiHPjYMaNfEtqXe","level":0,"time":"2017-05-12T15:59:01+00:00","remoteAddr":"31.51.194.10","user":"--","app":"cron","method":"GET","url":"\/cron.php","message":"Finished background job, the job took : 0 seconds, this job is an instance of class : OC\\Authentication\\Token\\DefaultTokenCleanupJob with arguments : "}
{"reqId":"zeOkWv1xsCU5wRXoKdGU","level":3,"time":"2017-05-12T15:59:01+00:00","remoteAddr":"31.51.194.10","user":"pete-n","app":"PHP","method":"GET","url":"\/remote.php\/webdav","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/home\/staples\/public_html\/cloud\/lib\/composer\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18"}
{"reqId":"wD4jjxiHPjYMaNfEtqXe","level":3,"time":"2017-05-12T15:59:01+00:00","remoteAddr":"31.51.194.10","user":"--","app":"PHP","method":"GET","url":"\/cron.php","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/home\/staples\/public_html\/cloud\/lib\/composer\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18"}
{"reqId":"9NKQa2opT2gRqtGt6Rdo","level":3,"time":"2017-05-12T15:59:01+00:00","remoteAddr":"31.51.194.10","user":"pete-n","app":"PHP","method":"GET","url":"\/index.php\/settings\/ajax\/checksetup","message":"You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at \/home\/staples\/public_html\/cloud\/lib\/composer\/patchwork\/utf8\/src\/Patchwork\/Utf8\/Bootup\/intl.php#18"}