Sync Incomplete #222

Open
farleylai opened this Issue Dec 12, 2013 · 6 comments

Comments

Projects
None yet
4 participants

Ubuntu 13.04 and Grive 0.3.

Only a small number of folders and files are downloaded with synchronization.
Seeing the debug output, it seems like an error is thrown in the end as follows.
Any ideas?

sync "./edu/uiowa/CS/Coursework/Networking && Security for Informatics/homework/hw1/code/tmp/scipy/scipy/optimize/lbfgsb/lbfgsb.f" changed in local. uploading
HTTP PUT "https://docs.google.com/feeds/upload/create-session/default/private/full/file%3A0B4XuqKXDPDpRZWd2M0s1azM4Y2s"
HTTP response 200
HTTP PUT "https://docs.google.com/feeds/upload/create-session/default/private/full/file%3A0B4XuqKXDPDpRZWd2M0s1azM4Y2s?upload_id=AEnB2Ur1c-9afPyDgY77rP6M2eLtVWANbGp60BEtGaj7f8GO8_GmQTX-Am4T7pfqPscGGzJMLNAx6Sf8-U93kuZBJK6TMHADvg"
HTTP response 400
exception: /build/buildd/grive-0.3.0/libgrive/src/protocol/AuthAgent.cc(174): Throw in function long int gr::AuthAgent::CheckHttpResponse(long int, const string&, const gr::http::Header&)
Dynamic exception type: boost::exception_detail::clone_implgr::http::Error
[gr::expt::BacktraceTag*] = #0 0x46dc59 grive gr::Exception::Exception()
#1 0x45d829 grive gr::http::Error::Error()
#2 0x468040 grive gr::AuthAgent::CheckHttpResponse(long, std::string const&, gr::http::Header const&)
#3 0x4686b8 grive gr::AuthAgent::Put(std::string const&, gr::File_, gr::DataStream_, gr::http::Header const&)
#4 0x449a00 grive gr::v1::Resource::Upload(gr::http::Agent*, std::string const&, bool)
#5 0x44a5f2 grive gr::v1::Resource::EditContent(gr::http::Agent*, bool)
#6 0x44ab5f grive gr::v1::Resource::SyncSelf(gr::http::Agent*, gr::Json const&)
#7 0x44ae14 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#8 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#9 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#10 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#11 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#12 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#13 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#14 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#15 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#16 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#17 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#18 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#19 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#20 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#21 0x44aed8 grive gr::v1::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)
#22 0x44f7ad grive gr::v1::State::Sync(gr::http::Agent*, gr::Json const&)
#23 0x443681 grive gr::v1::Drive::Update()
#24 0x43441a grive Main(int, char**)
#25 0x43205b grive main
#26 0x7f3949783ea5 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#27 0x4330a1 grive

[gr::http::HttpResponseTag_] = 400
[gr::http::UrlTag_] = https://docs.google.com/feeds/upload/create-session/default/private/full/file%3A0B4XuqKXDPDpRZWd2M0s1azM4Y2s?upload_id=AEnB2Ur1c-9afPyDgY77rP6M2eLtVWANbGp60BEtGaj7f8GO8_GmQTX-Am4T7pfqPscGGzJMLNAx6Sf8-U93kuZBJK6TMHADvg
[gr::http::HeaderTag*] = Expect:
Accept:
Authorization: Bearer ya29.1.AADtN_UAQn9SLXHt33meF5-gTVelppnRGQxJiYbEQ1GmspMvpeWGYMXjWYjkJ8kHJQ
GData-Version: 3.0

I can confirm this issue, it started after upgrading Ubuntu to 13.10.

A blind tip: if you're using the packaged Grive 0.3.0 included in the Ubuntu PPA repos, download the source from Github and try to recompile. Worked for me. Not an ideal solution, but it's an option.

Either if it works or not, please pass by and leave a comment.

Many thanks. I'll find some time to build it from scratch.

fommil commented Jul 10, 2014

I get the same thing, self compiled on debian jessie :-(

I got the same problem. I fixed it local, my grive logs errors, but does not terminate anymore. I put an try/catch-block around uploading the file.
I just think about an extension of the code, so that I could see which files could not be updated.
But it works for me at the moment. Sorry, I don't know how to put the patch into here.... You can ask me!

fommil commented Feb 9, 2015

@MrCoffee77 if you don't know how to use git, then you can simply go to the file in this repository and click "edit" and then make the changes there. It will create a pull request. But I think this project is dead and is now being loosely maintained at https://github.com/linwiz/grive

Hi, thanks for the help. See #298
I will take a look at the other url. Perhaps I can include it there, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment