Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExecCurl exception #76

Closed
qoobaa opened this issue Jun 25, 2012 · 8 comments · Fixed by #77
Closed

ExecCurl exception #76

qoobaa opened this issue Jun 25, 2012 · 8 comments · Fixed by #77

Comments

@qoobaa
Copy link

qoobaa commented Jun 25, 2012

I'm constantly getting an gr::http::Error exception when using grive from master.

HTTP GET "https://docs.google.com/feeds/default/private/changes?start-index=0"
HTTP response 400
exception: /home/kuba/Downloads/grive-git/src/grive/libgrive/src/http/CurlAgent.cc(149): Throw in function long int gr::http::CurlAgent::ExecCurl(const string&, gr::http::Receivable*, const gr::http::Header&)
Dynamic exception type: boost::exception_detail::clone_impl<gr::http::Error>
std::exception::what: std::exception
[gr::expt::BacktraceTag*] = #0 0x45c059 grive gr::Exception::Exception()
#1 0x4505d9 grive gr::http::Error::Error()
#2 0x44fb46 grive gr::http::CurlAgent::ExecCurl(std::string const&, gr::http::Receivable*, gr::http::Header const&)
#3 0x44ff4d grive gr::http::CurlAgent::Get(std::string const&, gr::http::Receivable*, gr::http::Header const&)
#4 0x443cb0 grive gr::Drive::UpdateChangeStamp(gr::http::Agent*)
#5 0x444037 grive gr::Drive::Update()
#6 0x42fcd5 grive Main(int, char**)
#7 0x42dadb grive main
#8 0x7f2a1a110455 /lib/libc.so.6 __libc_start_main
#9 0x42e6d1 grive 
@qoobaa
Copy link
Author

qoobaa commented Jun 25, 2012

[kuba@x200 Grive]$ grive -v
grive version 0.2.0 Jun 25 2012 19:23:47

@jorgebr
Copy link

jorgebr commented Jun 25, 2012

I'm also getting a similar exception, which is probably the same issue:
$ ./grive -v
grive version 0.2.0 Jun 25 2012 16:47:06

$ ./grive -l log.txt
Reading local directories
Synchronizing folders
Reading remote server file list
Synchronizing files
sync "./log.txt" doesn't exist in server, uploading
exception: /home/me/Downloads/git master branch/grive/libgrive/src/http/CurlAgent.cc(149): Throw in function long int gr::http::CurlAgent::ExecCurl(const string&, gr::http::Receivable_, const gr::http::Header&)
Dynamic exception type: boost::exception_detail::clone_implgr::http::Error
std::exception::what: std::exception
[gr::expt::BacktraceTag_] = #0 0x4c4e7e :0 gr::Exception::Exception()
#1 0x4b90eb :0 gr::http::Error::Error()
#2 0x4b8659 :0 gr::http::CurlAgent::ExecCurl(std::string const&, gr::http::Receivable_, gr::http::Header const&)
#3 0x4b8a07 :0 gr::http::CurlAgent::Get(std::string const&, gr::http::Receivable_, gr::http::Header const&)
#4 0x4a5860 :0 gr::Drive::UpdateChangeStamp(gr::http::Agent_)
#5 0x4a566b :0 gr::Drive::Update()
#6 0x488eb9 :0 Main(int, char_*)
#7 0x4895b5 :0 main
#8 0x7fe630ae676d /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#9 0x487589 :0 _start

[gr::expt::MsgTag_] =
[gr::http::CurlCodeTag_] = 0
[gr::http::HttpResponseTag_] = 400
[gr::http::UrlTag_] = https://docs.google.com/feeds/default/private/changes?start-index=0
[gr::http::HeaderTag*] = Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXX
GData-Version: 3.0

Sanitized log.txt file:
grive version 0.2.0 Jun 25 2012 16:47:06
current time: 2012-06-25T22:47:37.191Z
last sync time: 1970-01-01T00:00:00.000Z
Reading local directories
file .~lock.notes.odt# is ignored by grive
file .grive is ignored by grive
file .trash is ignored by grive
file .grive_state.old is ignored by grive
previous change stamp is -1
Synchronizing folders
HTTP GET "https://docs.google.com/feeds/default/private/full/-/folder?max-results=50&showroot=true"
HTTP response 200
... lots of ignored and already sync'ed files
folder "./blah/blah/blah" is in sync
HTTP GET "https://docs.google.com/feeds/default/private/full/-/folder?max-results=50&start-key=XXXXXXXXXXXXXXXXXXXXXXXXXX&showroot=true"
HTTP response 200
... lots of ignored and already sync'ed files
...
sync "./grive0.2.0" already in sync
sync "./grive" already in sync
sync "./log.txt" doesn't exist in server, uploading
HTTP POST "https://docs.google.com/feeds/upload/create-session/default/private/full?convert=false" with "
<title>log.txt</title>"
HTTP response 200
HTTP PUT "https://docs.google.com/feeds/upload/create-session/default/private/full?convert=false&upload_id=XXXXXX"
HTTP response 201
HTTP GET "https://docs.google.com/feeds/default/private/changes?start-index=0"
HTTP response 400
exception: /home/me/Downloads/git master branch/grive/libgrive/src/http/CurlAgent.cc(149): Throw in function long int gr::http::CurlAgent::ExecCurl(const string&, gr::http::Receivable
, const gr::http::Header&)
Dynamic exception type: boost::exception_detail::clone_implgr::http::Error
std::exception::what: std::exception
[gr::expt::BacktraceTag_] = #0 0x4c4e7e :0 gr::Exception::Exception()
#1 0x4b90eb :0 gr::http::Error::Error()
#2 0x4b8659 :0 gr::http::CurlAgent::ExecCurl(std::string const&, gr::http::Receivable_, gr::http::Header const&)
#3 0x4b8a07 :0 gr::http::CurlAgent::Get(std::string const&, gr::http::Receivable_, gr::http::Header const&)
#4 0x4a5860 :0 gr::Drive::UpdateChangeStamp(gr::http::Agent_)
#5 0x4a566b :0 gr::Drive::Update()
#6 0x488eb9 :0 Main(int, char_*)
#7 0x4895b5 :0 main
#8 0x7fe630ae676d /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#9 0x487589 :0 _start

[gr::expt::MsgTag_] =
[gr::http::CurlCodeTag_] = 0
[gr::http::HttpResponseTag_] = 400
[gr::http::UrlTag_] = https://docs.google.com/feeds/default/private/changes?start-index=0
[gr::http::HeaderTag*] = Authorization: Bearer XXXXXX
GData-Version: 3.0

@kcivey
Copy link

kcivey commented Jun 27, 2012

Got a similar error with grive version 0.2.0 Jun 27 2012 12:48:36.

First run after initial sync it detected changes in (at least) two files (though I hadn't changed anything) and crashed on or after uploading the second one.

Reading local directories
Synchronizing folders
Reading remote server file list
Detecting changes from last sync
Synchronizing files
sync "./Images/100_PANA/P1000274.JPG" changed in local. uploading
sync "./Images/100_PANA/P1000174.JPG" changed in local. uploading
exception: /home/keith/build/grive/libgrive/src/http/CurlAgent.cc(149): Throw in function long int gr::http::CurlAgent::ExecCurl(const string&, gr::http::Receivable*, const gr::http::Header&)
Dynamic exception type: boost::exception_detail::clone_impl<gr::http::Error>
std::exception::what: std::exception
...

@kcivey
Copy link

kcivey commented Jun 27, 2012

On the following run it detected a change in the remote ./Images/100_PANA/P1000274.JPG (the file it had erroneously detected as changed locally before and uploaded) and downloaded it, then finished with no errors.

On the third run it detected no changes and finished normally, as expected.

@nickapos
Copy link

The problem persists in my version
grive version 0.2.0 Oct 3 2013 19:14:29

exception: /build/grive-EpFtyE/grive-0.2.0/libgrive/src/http/CurlAgent.cc(149): Throw in function long int gr::http::CurlAgent::ExecCurl(const string&, gr::http::Receivable_, const gr::http::Header&)
Dynamic exception type: boost::exception_detail::clone_implgr::http::Error
std::exception::what: std::exception
[gr::expt::BacktraceTag_] = #0 0x45abf0 grive gr::Exception::Exception()
#1 0x44f268 grive gr::http::CurlAgent::ExecCurl(std::string const&, gr::http::Receivable_, gr::http::Header const&)
#2 0x44f6b9 grive gr::http::CurlAgent::Post(std::string const&, std::string const&, gr::http::Receivable_, gr::http::Header const&)
#3 0x4412af grive gr::Resource::Upload(gr::http::Agent_, std::string const&, gr::http::Header const&, bool)
#4 0x44197d grive gr::Resource::Create(gr::http::Agent_, gr::http::Header const&)
#5 0x442ad8 grive gr::Resource::SyncSelf(gr::http::Agent_, gr::http::Header const&)
#6 0x442d19 grive gr::Resource::Sync(gr::http::Agent_, gr::http::Header const&)
#7 0x442e14 grive gr::Resource::Sync(gr::http::Agent_, gr::http::Header const&)
#8 0x442e14 grive gr::Resource::Sync(gr::http::Agent_, gr::http::Header const&)
#9 0x442e14 grive gr::Resource::Sync(gr::http::Agent_, gr::http::Header const&)
#10 0x442e14 grive gr::Resource::Sync(gr::http::Agent_, gr::http::Header const&)
#11 0x442e14 grive gr::Resource::Sync(gr::http::Agent_, gr::http::Header const&)
#12 0x4372a0 grive gr::State::Sync(gr::http::Agent_, gr::http::Header const&)
#13 0x44a8b9 grive gr::Drive::Update()
#14 0x426e36 grive Main(int, char**)
#15 0x424c3b grive main
#16 0x7ffa21469995 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#17 0x4259af grive

[gr::expt::MsgTag_] =
[gr::http::CurlCodeTag_] = 0
[gr::http::HttpResponseTag_] = 401
[gr::http::UrlTag_] = https://docs.google.com/feeds/upload/create-session/default/private/full/folder%3A0B2IrRN_O6I9AY3c5Z3lHcGpEUm8/contents?convert=false
[gr::http::HeaderTag*] = Authorization: Bearer ya29.AHES6ZTcKoa-MZf5KyPketzp39KYZV9yw0H6fnYxDP0gWoJS
GData-Version: 3.0
Content-Type: application/atom+xml
X-Upload-Content-Type: application/octet-stream
X-Upload-Content-Length: 2939676
If-Match:
Expect:

@aelzenaar
Copy link

Still happening here:
grive version 0.2.0 Apr 28 2014 10:34:27

Reading local directories
Synchronizing folders
exception: /build/buildd/grive-0.2.0/libgrive/src/http/CurlAgent.cc(149): Throw in function long int gr::http::CurlAgent::ExecCurl(const string&, gr::http::Receivable*, const gr::http::Header&)
Dynamic exception type: N5boost16exception_detail10clone_implIN2gr4http5ErrorEEE
std::exception::what: std::exception
[PN2gr4expt6MsgTagE] =
[PN2gr4http11CurlCodeTagE] = 0
[PN2gr4http15HttpResponseTagE] = 400
[PN2gr4http6UrlTagE] = https://docs.google.com/feeds/default/private/full/-/folder?max-results=50&showroot=true
[PN2gr4http9HeaderTagE] = Authorization: Bearer ya29.XgEcSyjUYkGMkIpdrhhvCPP_lRErz7gGLaFhBHHqR-BapNeHT_tkzH9Y
GData-Version: 3.0

@theiscnp
Copy link

theiscnp commented Feb 4, 2016

my first time, on ubuntu: $ grive -a

grive: Symbol `json_tokener_errors' has different size in shared object, consider re-linking

Please go to this URL and get an authentication code:

https://accounts.google.com/o/oauth2/auth?...

Please input the authentication code here:
4/AVdttfzKb5IPEdyV44MYA....
Reading local directories
Synchronizing folders
exception: /build/buildd/grive-0.2.0/libgrive/src/http/CurlAgent.cc(149): Throw in function long int gr::http::CurlAgent::ExecCurl(const string&, gr::http::Receivable_, const gr::http::Header&)
Dynamic exception type: boost::exception_detail::clone_implgr::http::Error
std::exception::what: std::exception
[gr::expt::MsgTag_] =
[gr::http::CurlCodeTag_] = 0
[gr::http::HttpResponseTag_] = 400
[gr::http::UrlTag_] = https://docs.google.com/feeds/default/private/full/-/folder?max-results=50&showroot=true
[gr::http::HeaderTag_] = Authorization: Bearer ya29.fgKg0JN6Fjzis0qa9RLeV4CFMXbJwk3NvM7p_rgVnppj_lhXJl3RcPXCs8GUAxALYaEI
GData-Version: 3.0

@ghost
Copy link

ghost commented Aug 25, 2017

what is solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants