files_external_dropbox icon indicating copy to clipboard operation
files_external_dropbox copied to clipboard

Trying to get this running on NC 20.0.3 and struggling

Open Upperholme opened this issue 5 years ago • 2 comments

Having following the install instructions and read through many of the logged issues I'm struggling to get this working on a 20.0.3 install of Nextcloud. Reporting what I'm seeing in the hope that it might be helpful.

Setting up the integration at /settings/admin/externalstorages - entering the secret key seems unreliable. Almost as if the key is being lost or overwritten. It seems to connect correctly, but only temporarily. After some while - not clear yet how long - I see the following in my log:

Kunnu\Dropbox\Exceptions\DropboxClientException: {"error_summary": "expired_access_token/.", "error": {".tag": "expired_access_token"}}

Deleting the config and re-creating it seems to resolve this, at least temporarily, and I can get a green tick on the screen.

Setting it up in the user settings at /settings/user/externalstorages - I see a message reporting:

"smbclient" is not installed. Mounting of "SMB / CIFS", "SMB / CIFS using OC login" is not possible. Please ask your system administrator to install it.

It's not clear whether this breaks the whole thing. I'm assuming we're not using SMB to access these files, but that's just a guess and it might that the case that any external storage functionality gets borked if smbclient isn't installed, so I'm looking into that next.

I can get a green tick displayed.

Looking at the files interface, for now, I can see a Dropbox folder listed in the web interface. When I click on it I get either a fairly quick message to tell me that there aren't any files in the folder, or I get the spinning 'wait' icon. A pop-up message tells me that "Storage is temporarily not available".

This gives me an error message:

OCP\Lock\LockedException: "files/bfe7ee2199435e40ced353ad929685b4"("dropbox_external::my_app_key/TvubjTNWs3EAAAAAAAAAAaTCI-IALyK6GvCfYVXEKR47A0CUQb7qaQXV3uNN8lmM::scanner::/") is locked

Any input most welcome.

Upperholme avatar Dec 12 '20 11:12 Upperholme

Seems your token has a limited lifetime and expires. Dropbox announced some changes for this, but it should not be changed for now as I remember. If this would be the case this issue should also occur for others. Else you created the API credentials wrongly. Does it work after reconnect only if you recreate the credentials or also with old ones?

DJaeger avatar Dec 12 '20 14:12 DJaeger

In the Dropbox app I've set the following:

Redirect URIs:

https://my-domain/index.php/settings/admin/externalstorages

https://my-domain/index.php/settings/user/externalstorages

(based on error messages when I attempted to those suggested in the README)

I also generated an access token with no expiry, but there's nowhere in the UI at the Nextcloud end of things where I can provide this token, either as admin or user.

Other options offered in the Dropbox app UI have not been edited (e.g. Webhooks, Chooser, Extensions).

In terms of "does it work after reconnect", I can the settings pages for both admin and user to display a green tick, and I can see that there is a Dropbox folder in my Files listing, but that's as far as I can get.

Upperholme avatar Dec 12 '20 15:12 Upperholme