GithubHelp home page GithubHelp logo

Comments (8)

vitalif avatar vitalif commented on June 9, 2024

Please retry with the latest master, I suppose it's the same bug as in #5

from grive2.

mkauzlar avatar mkauzlar commented on June 9, 2024

Seems ok now. I have tested it on a couple of files and don't get the error anymore

from grive2.

grzesiek-galezowski avatar grzesiek-galezowski commented on June 9, 2024

Happened to me as well today:

/Google Drive$ grive
Reading local directories
Synchronizing folders
Reading remote server file list
Detecting changes from last sync
Synchronizing files
sync "./Shared/Raporty i prezentacje/TDDEBook/custom_commands.rb" deleted in local. deleting remote
sync "./Shared/Raporty i prezentacje/TDDEBook/Rakefile
" deleted in local. deleting remote
sync "./Shared/Raporty i prezentacje/TDDEBook/Rakefile" deleted in local. deleting remote
sync "./Shared/Raporty i prezentacje/TDDEBook/.gitignore" deleted in local. deleting remote
sync "./Shared/Raporty i prezentacje/TDDEBook/.project" deleted in local. deleting remote
sync "./Shared/Raporty i prezentacje/TDDEBook/README.md" deleted in local. deleting remote
sync "./Shared/Raporty i prezentacje/TDDEBook/environment_setup.sh" deleted in local. deleting remote
sync "./Shared/Raporty i prezentacje/TDDEBook/LICENSE.txt" deleted in local. deleting remote
sync "./Shared/Raporty i prezentacje/TDDEBook/License.txt" deleted in local. deleting remote
sync "./Shared/Raporty i prezentacje/TDDEBook/document-web.png" deleted in local. deleting remote
exception: /build/grive2-JFQ2lp/grive2-0.4.0/libgrive/src/protocol/AuthAgent.cc(191): Throw in function long int gr::AuthAgent::CheckHttpResponse(long int, const string&, const gr::http::Header&)
Dynamic exception type: N5boost16exception_detail10clone_implIN2gr4http5ErrorEEE
[PN2gr4expt12BacktraceTagE] = #0 0x47d0fc grive gr::Exception::Exception()
#1 0x4603cc grive gr::AuthAgent::CheckHttpResponse(long, std::string const&, gr::http::Header const&)
#2 0x460c96 grive gr::AuthAgent::Post(std::string const&, std::string const&, gr::DataStream_, gr::http::Header const&)
#3 0x455b6d grive gr::v2::Syncer2::DeleteRemote(gr::Resource_)
#4 0x446bce grive gr::Resource::SyncSelf(gr::Syncer_, gr::Val const&)
#5 0x446e5b grive gr::Resource::Sync(gr::Syncer_, gr::DateTime&, gr::Val const&)
#6 0x446f70 grive gr::Resource::Sync(gr::Syncer_, gr::DateTime&, gr::Val const&)
#7 0x446f70 grive gr::Resource::Sync(gr::Syncer_, gr::DateTime&, gr::Val const&)
#8 0x446f70 grive gr::Resource::Sync(gr::Syncer_, gr::DateTime&, gr::Val const&)
#9 0x446f70 grive gr::Resource::Sync(gr::Syncer_, gr::DateTime&, gr::Val const&)
#10 0x440548 grive gr::State::Sync(gr::Syncer_, gr::Val const&)
#11 0x44a3e6 grive gr::Drive::Update()
#12 0x42fd85 grive Main(int, char_*)
#13 0x42db8b grive main
#14 0x7f380683fa40 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#15 0x42e8f9 grive _start

[PN2gr4http15HttpResponseTagE] = 412
[PN2gr4http6UrlTagE] = https://www.googleapis.com/drive/v2/files/0B0nzjz32viZmNDY5OGh3eEcwNlE/trash
[PN2gr4http9HeaderTagE] = If-Match: "V1-oYosm7Hqin5z0Mtb-CnZdXIE/MTM5MTU0NTMzMTQxMw"
Authorization: Bearer ya29.lwGYROMxLfMBqlvsjsq8w37X7GGO851fLqetSHyQWS62ZjsF_Rn2ABOz
GData-Version: 3.0

Grive version: ~/Google Drive$ grive --version
grive version 0.4.0-pre May 25 2015 13:40:47

from grive2.

grzesiek-galezowski avatar grzesiek-galezowski commented on June 9, 2024

Also, when I upload files, I get a lot of 412 response:

grive
Reading local directories
Synchronizing folders
Reading remote server file list
Detecting changes from last sync
Synchronizing files
sync "./Shared/Raporty i prezentacje/TDDEBook/cover.png" doesn't exist in server, uploading
sync "./Shared/Raporty i prezentacje/TDDEBook/cover-small.png" doesn't exist in server, uploading
sync "./Shared/Raporty i prezentacje/TDDEBook/Cover.odg" doesn't exist in server, uploading
sync "./Shared/Raporty i prezentacje/TDDEBook/mimetype" doesn't exist in server, uploading
request failed with 412, retrying whole upload in 5s
sync "./Shared/Raporty i prezentacje/TDDEBook/Rakefile~" doesn't exist in server, uploading
sync "./Shared/Raporty i prezentacje/TDDEBook/LICENSE.txt" doesn't exist in server, uploading
request failed with 412, retrying whole upload in 5s
request failed with 412, retrying whole upload in 5s
sync "./Shared/Raporty i prezentacje/TDDEBook/custom_commands.rb" doesn't exist in server, uploading
sync "./Shared/Raporty i prezentacje/TDDEBook/document-web.png" doesn't exist in server, uploading
request failed with 412, retrying whole upload in 5s
request failed with 412, retrying whole upload in 5s
request failed with 412, retrying whole upload in 5s
request failed with 412, retrying whole upload in 5s

from grive2.

vitalif avatar vitalif commented on June 9, 2024

Please retry with the latest master, it should print response body of these 412's - maybe we'll learn something about them at last...

from grive2.

vitalif avatar vitalif commented on June 9, 2024

You can also try the new --http-log file option to have all HTTP responses logged and then provide me the details from the end of that file.

from grive2.

vitalif avatar vitalif commented on June 9, 2024

I'm now also getting a lot of intermittent 412 errors myself... But I don't yet understand why. They usually go away after restarting grive, but I end up with duplicated files...

from grive2.

vitalif avatar vitalif commented on June 9, 2024

I believe 412 is fixed in master by using multipart uploads - now file metadata and contents are uploaded in a single request so the situation where the second request "does not see" the result of the first one due to the async nature of google drive service is impossible.
Please test and reopen the issue if you still experience it.

from grive2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.