Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

external_storage: mounting Dropbox fails in 8.1 #17778

Closed
gvdhoven opened this issue Jul 21, 2015 · 1 comment
Closed

external_storage: mounting Dropbox fails in 8.1 #17778

gvdhoven opened this issue Jul 21, 2015 · 1 comment

Comments

@gvdhoven
Copy link

I am unable to mount dropbox to my owncloud 8.1 install.

Precondition:

Shows RED square even though:

  • I get a mail from dropbox that i've connected an app
  • I see 1/100 users in my app console
  • I see a mount.js file in my data directory with contents:
{
    "user": {
        "all": {
            "\/$user\/files\/Dropbox": {
                "id": 1,
                "class": "\\OC\\Files\\Storage\\Dropbox",
                "options": {
                    "configured": "false",
                    "app_key": "...",
                    "app_secret": "...",
                    "token": "N8aLsCRHpzpaq8nW",
                    "token_secret": "R0hF4mLbB4h5A3GL"
                },
                "priority": 100
            }
        }
    }
}

So it seems dropbox authenticated succesfully, however OwnCloud is not working.. I tried with URLs

As well as

Even multiple combinations of fresh installs but nothing seems to work.

The PUT results in a 403:

Remote Address:[ip]
Request URL:https://cloud.[mydomain].[ext]/index.php/apps/files_external/globalstorages/1
Request Method:PUT
Status Code:403 Forbidden

Additionally; I am also unable to remove this failed storage mount (HTTP DELETE gives also 403 error).

@gvdhoven
Copy link
Author

Ok, problem was related to my upgrade to Apache 2.4.x

Looking at the log files, i saw a lot of these errors

AH01797: client denied by server configuration: /.../private_html/index.php, referer: https://cloud.[domain].[ext]/index.php/settings/admin

That seemed to be caused by my upgrade to Apache 2.4.x which has breaking changes to the authorization scheme. It replaces the "Order deny,allow + Deny from all" and "Order allow,deny + Allow from all" with respectively "Require all denied" and "Require all granted".
More information here: http://httpd.apache.org/docs/2.4/upgrading.html#run-time

After replacing all the configuration files, i saw a new error popping up:

AH01630: client denied by server configuration: /.../private_html/index.php, referer: https://cloud.[domain].[ext]/index.php/settings/admin

This one was fixed by looking at http-directories.conf; The setting

<Directory />
    AllowOverride none
    Require all denied
</Directory>

Basically disables all access to every directory in your webserver.

So in order to re-enable the acces, for your ALLOWED directories (e.g. your /home folders), you should add something like this:

<Directory /home>
        # ...

    Require all granted

        # ...
</Directory>

Then i could again click "Authorize" and all worked fine, i got a green light next to my DropBox.

Hope this helps someone.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant