nextcloud / integration_dropbox

🧊 Dropbox integration into Nextcloud
GNU Affero General Public License v3.0
24 stars 10 forks source link

App only show connection status #5

Closed manuel140 closed 3 years ago

manuel140 commented 3 years ago

Hi, i've installed the app and connected it to my Dropbox account. After that it doesn't show anything but the connection (see image attached).

Am i doing something wrong?

image

julien-nc commented 3 years ago

Hi, I don't think you're doing anything wrong :grin:. There must be an error somewhere. Do you see something in the browser console log (F12 -> Console)?

manuel140 commented 3 years ago

Hi @eneiluj, there are no errors (just jQuery deprecation warnings which i filtered).

image

julien-nc commented 3 years ago

Then another possible reason is that your dropbox storage is empty. Is it?

If it's not empty, could you check the response of the request which URL is ending with storage-size? This can be found in the "network" tab, same place as the console.

manuel140 commented 3 years ago

My Dropbox is not empty. :)

The storage-size request ist pending for 10 minutes now. No errors.

image

manuel140 commented 3 years ago

After nearly 20 minutes i received something :)

image

manuel140 commented 3 years ago

It's now showing the Import button. Trying to import the files.

Thank you @eneiluj!

julien-nc commented 3 years ago

Could you check what's the response content? Just select the request line and go to "Response" tab. It should show you something like

usageInStorage: xxx,
nbFiles: xxx,
manuel140 commented 3 years ago

Oh i'm sorry, i just closed the Task. There are like 270GB on the Dropbox and about 700.000 Files. I will start the Request again and post the Screenshot later.

manuel140 commented 3 years ago

Request took 19 minutes again. image

But it seems like it's importing files now. 👍

julien-nc commented 3 years ago

There is clearly a bottleneck here. I'll improve that soon. Thanks a lot for the feedback. I'll keep you informed.

In the meantime, you can stop the import which will take a very long time since you will loose 20 minutes on each import job...

manuel140 commented 3 years ago

The import job seems to run much quicker. There is an update every couple seconds. image

julien-nc commented 3 years ago

v0.0.8 is out. With this release, storage size information is going to be much faster (less than one second) because it does not count the files anymore. This counting operation was listing files by chunks of 2000 which means it was doing a huge number of requests to get a list of all your files. That's why it took 20 minutes.

Files were also counted each time an import background job was launched. This is not the case anymore.

My advice for you is to stop the import, upgrade the app and launch the import again.

manuel140 commented 3 years ago

Thank you very much! The storage-size request is much faster now!

julien-nc commented 3 years ago

Thanks for your enthusiasm. I'm interested to know if everything was imported successfully on your side.

A little more details about the file count issue. Dropbox API does not provide a way to get the total file number on a storage. I thought counting them by listing directories content would be fast enough...but apparently it's really not. Thanks again for reporting your issue.