ODrive
ODrive copied to clipboard
[BUG] Authentication Error
Describe the bug When trying to connect to my google account I am met by an Authentication Error.
To Reproduce Steps to reproduce the behavior:
- From a clean install, open preferences...
- Click Next on the Setup Required page.
- Under Account, click Connect.
- Follow the Google account sign in process (I have 2FA enabled, so I entered username on one page, password on the next, and completed 2FA with my phone)
- See Error Screenshot.
Expected behavior Successful authentication
Screenshots

Desktop
- OS: Ubuntu 20.04
- Version 0.2.2 (installed with snap)
I have exactly the same problem.
Desktop
- OS: Ubuntu 20.04
- I tried snap and the installation via
npm run release-linux debalso with the same result.
Same problem in Windows 10
It seems that google blocks the client
Same problem in Linux Mint 20.1
same problem in arch linux
I think the main issue is related to Google Drive API Scopes. When I changed the API key n Secret, there is no auth-related issue, but I unable to SYNC with Google Drive. In an API scope, I chose only basic permissions. I didn't choose or read more for what are scopes are required to sync with local because of sort of time. I hope I will check soon or someone can do it and post back here.
In the current code, the author's Goodge Drive API APP is not verified by google. So all issues raised because of it.
Exact same error in Mint 19.3. "Less secure app access" is turned on in my Google account settings. Two-factor disabled.
Exact same error in Ubuntu 20.04.2, even after "Less secure app access" is turned on in Google account. This is the latest git master compiled into a deb pkg.
Same problem with Ubuntu 20.04 installing from a Snap
same issue manjaro
I'm experiencing this issue too on debian with the latest release. I think it might be an issue with GSuite accounts.
I have the bug, installed with snap on the latest ubuntu with kde.
Same issue, Kubuntu 20.04, installing from snap.
If you are using ubuntu os, you can directly access your google drive by adding an online account in settings. Then after open the file manager and then go to "other locations". Here you will find your Gmail drive.
PS: This application project is not working only because of Google Drive API APP. Make your own and approve from google and add that API key in this app's sourcecode. Tada... That's all.
@shivangpatel That is not the same thing:
- It does not work from the command line. You have to find the file and copy it over manually (whether to or from GDrive). What
odrivegives us is the same experience as the official Google Sync (or whatever it's called these days) client on Windows and Mac. odrivesyncs all the files to your local hard drive. In my case I need this because I often need to work offline.
While you can use the workaround you mentioned and make your own, that means that you have to constantly merge changes from upstream and rebuild the app. While I could do that, it is one more thing to remember to do.
@shivangpatel I tried to do your idea of adding a google account in the settings but it didn't work. Since then I have been using OverGrive, although my trial ran out, since its in a partition that is available on my windows boot too (I need windows to play games) I just let it sync when I switch to windows.
@BossCode45 I think you need more privileges/scopes in drive API, and you need to approve your app from google. Then after those API will work. One more thing, you need to update electron and other packages too. because, when I tried with a normal drive key, one of the issues was an old browser error.
same issue, installed from flathub on ubuntu 20.04
anyone have fork to solve this, seem like dev abandoned project
anyone have fork to solve this, seem like dev abandoned project
So the cause of this issue is that the Google Drive API Key which liberodark uses isn't verified by Google. I believe Google requires a paid security audit for this level of access to google drive (I may be wrong though, correct me if I am).
To fix this, you can create your own token from your account:
- Go to the Google Developers console and create a new project.
- Enable the google drive API (API's & Services > Library)
- Create an OAuth token (Credentials) with access to google drive (use "Desktop App"). You shouldn't need approval if it's set up for just your gmail account.
- Clone the repo and update
config/globals.jsfile with your token. Now you can run:
npm install
npm start
and it should work. You might need to add the relevant redirect_uri in the console if you get a different error when trying to sign in.
anyone have fork to solve this, seem like dev abandoned project
So the cause of this issue is that the Google Drive API Key which liberodark uses isn't verified by Google. I believe Google requires a paid security audit for this level of access to google drive (I may be wrong though, correct me if I am).
To fix this, you can create your own token from your account:
- Go to the Google Developers console and create a new project.
- Enable the google drive API (API's & Services > Library)
- Create an OAuth token (Credentials) with access to google drive (use "Desktop App"). You shouldn't need approval if it's set up for just your gmail account.
- Clone the repo and update
config/globals.jsfile with your token. Now you can run:npm install npm startand it should work. You might need to add the relevant
redirect_uriin the console if you get a different error when trying to sign in.
Thank you very much sir. How i can complie this app for Windows?
anyone have fork to solve this, seem like dev abandoned project
So the cause of this issue is that the Google Drive API Key which liberodark uses isn't verified by Google. I believe Google requires a paid security audit for this level of access to google drive (I may be wrong though, correct me if I am). To fix this, you can create your own token from your account:
- Go to the Google Developers console and create a new project.
- Enable the google drive API (API's & Services > Library)
- Create an OAuth token (Credentials) with access to google drive (use "Desktop App"). You shouldn't need approval if it's set up for just your gmail account.
- Clone the repo and update
config/globals.jsfile with your token. Now you can run:npm install npm startand it should work. You might need to add the relevant
redirect_uriin the console if you get a different error when trying to sign in.Thank you very much sir. How i can complie this app for Windows?
Why would you want to compile it for windows - the google backup and sync is perfectly fine for windows. It just isn't available on linux. But if you did want to do so then install node.js and follow the insutrctions.
Thank you very much sir. How i can complie this app for Windows?
npm run release-windows should do the trick. See the README for more information.
It's been a year. Any word on this?
@AMDphreak I use https://github.com/astrada/google-drive-ocamlfuse which is ok.
Ok so will ANYONE fix this? It's been a year. The app will remain literally unusable?