Comments (8)
Please retry with the latest master, I suppose it's the same bug as in #5
from grive2.
Seems ok now. I have tested it on a couple of files and don't get the error anymore
from grive2.
Happened to me as well today:
/Google Drive$ grive" deleted in local. deleting remote
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
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.
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.
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.
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.
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.
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)
- Unable to ignore .git/ files and node_modules HOT 2
- CMake error according to policy CMP0004 HOT 5
- Issue with initial sync HOT 2
- authenticate the OAuth2 HOT 4
- Feature : an easy way to install on Linux (flatpak, snap,PPA) HOT 9
- Produce a static binary HOT 3
- Error 403
- CurlAgent Error HOT 1
- Request failed due to auth token expired: 401
- .griveignore not working
- Can't find sync services status with systemctl HOT 11
- Error 400: invalid_request HOT 1
- Error 400: invalid_request HOT 1
- Can't sync directory outside home HOT 5
- Authenticate without Browser HOT 1
- error while loading shared libraries: libsframe.so.0 HOT 3
- sync google sheets HOT 1
- Error lines in the end of sync "request failed due to auth token expired: 401 (body: ). refreshing token exception: /home/kpaxradio/Programs/grive2/libgrive/src/json/JsonParser.cc(165): Throw in function void gr::JsonParser::Parse(const char*, std::size_t)"
- grive2 -a fails after opening the localhost screen
- grive -a returns localhost error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grive2.