EricTheMagician / DriveFS

A google drive fuse filesystem implemented in C++
Mozilla Public License 2.0
63 stars 7 forks source link

Can't get list of files #5

Closed mcadam closed 6 years ago

mcadam commented 6 years ago

Hi,

I managed to have it run on my cluster but for some reason it seems it cant find my root folder or the structure of my disk?

Getting those logs in a loop

2018-09-07 08:41:39,070 [D] [Account.cpp:554] teamDriveId root and token 498409
2018-09-07 08:41:40,128 [I] [Account.cpp:553] Getting updated list of files and folders
2018-09-07 08:41:40,128 [D] [Account.cpp:554] teamDriveId root and token 498509
2018-09-07 08:41:40,893 [I] [Account.cpp:553] Getting updated list of files and folders
2018-09-07 08:41:40,893 [D] [Account.cpp:554] teamDriveId root and token 498609
2018-09-07 08:41:41,855 [I] [Account.cpp:553] Getting updated list of files and folders
2018-09-07 08:41:41,855 [D] [Account.cpp:554] teamDriveId root and token 498709
2018-09-07 08:41:42,743 [I] [Account.cpp:553] Getting updated list of files and folders
2018-09-07 08:41:42,743 [D] [Account.cpp:554] teamDriveId root and token 498809
2018-09-07 08:41:43,614 [I] [Account.cpp:553] Getting updated list of files and folders
2018-09-07 08:41:43,614 [D] [Account.cpp:554] teamDriveId root and token 498909

I tried with a different google drive account and it worked, so the program is working, just something wrong for that account specifically apparently.

I also tried to put my client id / secret credentials instead of the default ones, same issue.

Any ideas what I can try next to troubleshoot?

Thanks.

mcadam commented 6 years ago

Ok so it seems that it is working fine, just taking a while to generate the tree structure, just connected to the database and I can see some files being created.

> db.GDriveData.count()
55754
> db.GDriveData.count()
55777
> db.GDriveData.count()
55794
> db.GDriveData.count()
55799
> db.GDriveData.count()
55808
> db.GDriveData.count()
55823
> db.GDriveData.count()
55847
> db.GDriveData.count()
55881
> db.GDriveData.count()
56099
mcadam commented 6 years ago

All good, I will try to push the pager to 1000 changes per page, see if that speed things up on startup time on big drives. Thanks we can close :)

EricTheMagician commented 6 years ago

it should already be at 1000 changes per page, but I think google is somehow limiting it.

mcadam commented 6 years ago

Its at 1000 on the background_refresh but at 500 still during the initial scan, missing a copy paste :)

mcadam commented 6 years ago

I went from one hour to half hour after updating to 1000 everywhere

mcadam commented 6 years ago

This one I updated https://github.com/thejinx0r/DriveFS/blob/master/src/gdrive/Account.cpp#L573

EricTheMagician commented 6 years ago

Cool thanks. I thought it didn't have an effect since it kept saying that the increment is 100 only.

Good to know.

On Fri, Sep 7, 2018, 10:37 AM Adam Guldemann notifications@github.com wrote:

This one I updated https://github.com/thejinx0r/DriveFS/blob/master/src/gdrive/Account.cpp#L573

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/thejinx0r/DriveFS/issues/5#issuecomment-419459793, or mute the thread https://github.com/notifications/unsubscribe-auth/AATvbH7agxl7I_szVGHEAZ60V2nXU6o2ks5uYoSegaJpZM4WebRI .