Failed to get about: googleapi: Error 401: Invalid Credentials, authError

0

I'm using a generic Linux application for Google Drive, which aims to upload local folders to Google Drive via Shell Script.

However, when trying to execute command in the terminal of Debian:

  

./ gdrive about

The application returns me the following error:

  

Failed to get about: googleapi: Error 401: Invalid Credentials,   authError

Hasanyonehereusedthisapplicationand/orwouldyoubeabletotellmewhattheproblemmightbe?(RememberthatIhavealreadyclearedthesystemcache,Ireinstalledtheapplication,butitdoesnotsolve)

GitHubapplink: link

I'm using this version.

    
asked by anonymous 04.11.2018 / 01:29

1 answer

0

I solved the problem. The software basically stores a Drive Authentication key in the .json file in the

/home/.gdrive/
/home/.gdrive/file_cache.json
/home/.gdrive/token_v2.json

And whenever we ask for a new ./gdrive , the software checks to see if this file exists. The problem is that this file is hidden.

What did I do? I ran the command:

locate gdrive

andfoundalloccurrencesofthenameonmysystem.ThenIdo:

locategdrive|xargsrm

todeleteallpossibleoccurrencesofgdriveontheserver.

So,Idothenewdownload:

wgethttps://docs.google.com/uc?id=0B3X9GlR6EmbnQ0FtZmJJUXEyRTA&export=download

mvucid0B3X9GlR6EmbnQ0FtZmJJUXEyRTAexpordownloadgdrive

then:

./gdriveabout

Everything works perfect in this method

    
04.11.2018 / 04:28