Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Crash during grive -a #47

Closed
donhilion opened this Issue · 13 comments

3 participants

@donhilion

When running "grive -a" after inserting the Google API key the program crashes.
This is the output:


Please go to this URL and get an authentication code:

https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fdocs.google.com%2Ffeeds%2F+https%3A%2F%2Fdocs.googleusercontent.com%2F+https%3A%2F%2Fspreadsheets.google.com%2Ffeeds%2F&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&client_id=22314510474.apps.googleusercontent.com


Please input the authentication code here:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<gr::http::Error>'
what(): std::exception
Abgebrochen

The local directory is empty.
The remote directory contains some Google Docs documents and two folders with subfolders.

@nestal
Owner

Did you compile Grive from source or using the binary packages? Is it v0.1.0 or it's the latest code?

@nestal
Owner

BTW, I also like fallout.

@donhilion

I have the problem with v0.1.0 and the latest code from git.
My system is Arch Linux and I installed both version from the AUR.

The v0.1.0 ("grive" in AUR) is the binary.
When I install "grive-git", the latest code is downloaded and compiled.

@nestal
Owner
@antiplex

i can confirm having the exact same problem that donhillon described with the pre-build package '0.1.0-1+git20120601~webupd8~precise1' pulled from 'ppa:nilarimogard/webupd8' as described in http://www.webupd8.org/2012/06/grive-update-brings-full-google-drive.html
i'm running ubuntu 12.04 64bit and had google drive (successfully) enabled on another device (android) before running 'grive -a'

regards,
anti

@nestal
Owner
@donhilion

I just compiled the new sources (20120606) and now the error is gone.
Instead nothing happens. No download and no .grive folder.

@nestal
Owner
@donhilion

It seems that grive tries to read a config file in the folder it was build in.
The complete log:

cannot read config: /tmp/yaourt-tmp-name/aur-grive-git/src/grive/libgrive/src/protocol/Json.cc(154): Throw in function gr::Json gr::Json::operator const
Dynamic exception type: boost::exception_detail::clone_impl<gr::Json::Error>
std::exception::what: std::exception
[gr::expt::BacktraceTag] = #0 0x7f96f3e01639 /usr/lib/libgrive.so.0 gr::Exception::Exception()
#1 0x7f96f3dfb4e5 /usr/lib/libgrive.so.0 gr::Json::Error::Error()
#2 0x7f96f3dfa7e2 /usr/lib/libgrive.so.0 gr::Json::operator const
#3 0x40fae6 grive Main(int, char
*)
#4 0x40eeda grive main
#5 0x7f96f3058455 /lib/libc.so.6 __libc_start_main
#6 0x40f0e9 grive

[gr::expt::MsgTag] = key: refresh_token is not found in object
[gr::JsonTag
] = { }

Please run grive with the "-a" option if this is the first time you're accessing your Google Drive!

@nestal
Owner

donhilion, did you run with -a?

@donhilion

Yes. grive -al log.txt

@nestal
Owner

I am not able to reproduce it.

Can you delete the .grive file and retry?

@donhilion

There never was a .grive file.
But I have used a new API key and now it is working.

Maybe there should be a test and a notification, if there is something wrong with the API key.

@donhilion donhilion closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.