Grive / grive

an open source Linux client for Google Drive
http://www.lbreda.com/grive/start
GNU General Public License v2.0
1.59k stars 379 forks source link

Error syncing XML files. #113

Open javacowboy opened 12 years ago

javacowboy commented 12 years ago

When I create a new xml file locally, then run ./grive, the xml file syncs fine. When I modify the xml file locally, then run ./grive, I get an error while syncing. Work around: Delete the xml file locally, run ./grive, create the file locally again, run ./grive.

Error log:

grive version 0.3.0-pre Aug 1 2012 22:38:20 current time: 2012-08-02T04:39:13.427Z config file name "./.grive" last sync time: 2012-08-02T02:26:44.116Z Reading local directories file .grive_state is ignored by grive file .trash is ignored by grive file .grive is ignored by grive file .project is ignored by grive file .classpath is ignored by grive previous change stamp is 12635 Synchronizing folders HTTP GET "https://docs.google.com/feeds/default/private/full/-/folder?max-results=50&showroot=true" HTTP response 200 HTTP GET "https://docs.google.com/feeds/default/private/full/-/folder?max-results=50& HTTP response 200

REMOVED A BUNCH OF "already in sync" LINES

sync "./CouesWhitetail/dist/resources/config/application.xml" already in sync sync "./CouesWhitetail/dist/CouesWhitetailContests-1.0.jar" already in sync sync "./CouesWhitetail/results" already in sync sync "./CouesWhitetail/results/results.csv" already in sync sync "./CouesWhitetail/lib" already in sync sync "./CouesWhitetail/lib/jsoup-1.6.1.jar" already in sync sync "./CouesWhitetail/lib/commons-io-2.4.jar" already in sync sync "./CouesWhitetail/build.xml" already in sync sync "./CouesWhitetail/CouesWhitetail.iml" already in sync sync "./CouesWhitetail/src" already in sync sync "./CouesWhitetail/src/com" already in sync sync "./CouesWhitetail/src/com/javacowboy" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/core" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/core/AlphanumComparator.java" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/core/FileManager.java" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/core/Constants.java" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/core/PostInfoDto.java" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/core/HtmlParser.java" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/photo" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/score" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/score/ScorePostInfoDto.java" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/score/ScoreContest.java" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/draw" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/draw/DrawPostInfoDto.java" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/draw/DrawResultsContest.java" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/weight" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/weight/WeightContest.java" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/weight/WeightPostInfoDto.java" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/IContest.java" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/Application.java" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/generic" already in sync sync "./CouesWhitetail/src/com/javacowboy/cwt/contest/generic/GenericContest.java" already in sync sync "./CouesWhitetail/build" already in sync sync "./CouesWhitetail/build/com" already in sync sync "./CouesWhitetail/build/com/javacowboy" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/core" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/core/HtmlParser.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/core/PostInfoDto.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/core/HtmlParser$TagAttribute.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/core/PostInfoDto$Label.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/core/AlphanumComparator.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/core/HtmlParser$TagClass.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/core/FileManager.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/core/Constants.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/Application.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/score" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/score/ScoreContest.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/score/ScorePostInfoDto.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/draw" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/draw/DrawPostInfoDto.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/draw/DrawResultsContest.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/IContest.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/weight" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/weight/WeightPostInfoDto.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/weight/WeightContest.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/Application$Contest.class" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/generic" already in sync sync "./CouesWhitetail/build/com/javacowboy/cwt/contest/generic/GenericContest.class" already in sync sync "./CouesWhitetail/resources" already in sync sync "./CouesWhitetail/resources/config" already in sync sync "./CouesWhitetail/resources/config/application.xml" changed in local. uploading HTTP PUT "https://docs.google.com/feeds/upload/create-session/default/private/full/file%3A0B0bFMNwvu25iOUU0UzVkM01rUzQ" HTTP response 200 HTTP PUT "https://docs.google.com/feeds/upload/create-session/default/private/full/file%3A0B0bFMNwvu25iOUU0UzVkM01rUzQ?upload_id=AEnB2UoZk_7CCZWOBhIr9Wh__vPDQBJsu6_RhtkeeFG2rOfqkflBa7Awad2AX0fwNGVnbAt_NpjRqa7jKN1Sqwa-BLxsd7vEyg" HTTP response 400 exception: /home/matthew/projects/grive/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 std::exception::what: std::exception [gr::expt::BacktraceTag*] = #0 0x80f9874 :0 gr::Exception::Exception()

1 0x80f06b3 :0 gr::http::Error::Error()

2 0x80f371f :0 gr::AuthAgent::CheckHttpResponse(long, std::string const&, gr::http::Header const&)

3 0x80f3173 :0 gr::AuthAgent::Put(std::string const&, gr::StdioFile&, gr::http::Receivable*, gr::http::Header const&)

4 0x810c742 :0 gr::Resource::Upload(gr::http::Agent*, std::string const&, bool)

5 0x810bb9a :0 gr::Resource::EditContent(gr::http::Agent*, bool)

6 0x810abbe :0 gr::Resource::SyncSelf(gr::http::Agent*, gr::Json const&)

7 0x810a714 :0 gr::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)

8 0x810f4e7 :0 boost::mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>::operator()(gr::Resource, gr::http::Agent_, gr::DateTime&, gr::Json const&) const

9 0x810ebb7 :0 void boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list1gr::Resource& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>&, boost::_bi::list1gr::Resource*&&, int)

10 0x810e359 :0 void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > >::operator()gr::Resource(gr::Resource&)

11 0x810daaa :0 boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > > std::for_each<gnu_cxx::normal_iterator<gr::Resource*, std::vector<gr::Resource, std::allocator<gr::Resource> > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > > >(gnu_cxx::normal_iterator<gr::Resource, std::vector<gr::Resource, std::allocator<gr::Resource> > >, __gnu_cxx::__normal_iterator<gr::Resource, std::vector<gr::Resource, std::allocator<gr::Resource> > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > >)

12 0x810a806 :0 gr::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)

13 0x810f4e7 :0 boost::mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>::operator()(gr::Resource, gr::http::Agent_, gr::DateTime&, gr::Json const&) const

14 0x810ebb7 :0 void boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list1gr::Resource& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>&, boost::_bi::list1gr::Resource*&&, int)

15 0x810e359 :0 void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > >::operator()gr::Resource(gr::Resource&)

16 0x810daaa :0 boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > > std::for_each<gnu_cxx::normal_iterator<gr::Resource*, std::vector<gr::Resource, std::allocator<gr::Resource> > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > > >(gnu_cxx::normal_iterator<gr::Resource, std::vector<gr::Resource, std::allocator<gr::Resource> > >, __gnu_cxx::__normal_iterator<gr::Resource, std::vector<gr::Resource, std::allocator<gr::Resource> > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > >)

17 0x810a806 :0 gr::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)

18 0x810f4e7 :0 boost::mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>::operator()(gr::Resource, gr::http::Agent_, gr::DateTime&, gr::Json const&) const

19 0x810ebb7 :0 void boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list1gr::Resource& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>&, boost::_bi::list1gr::Resource*&&, int)

20 0x810e359 :0 void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > >::operator()gr::Resource(gr::Resource&)

21 0x810daaa :0 boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > > std::for_each<gnu_cxx::normal_iterator<gr::Resource*, std::vector<gr::Resource, std::allocator<gr::Resource> > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > > >(gnu_cxx::normal_iterator<gr::Resource, std::vector<gr::Resource, std::allocator<gr::Resource> > >, __gnu_cxx::__normal_iterator<gr::Resource, std::vector<gr::Resource, std::allocator<gr::Resource> > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > >)

22 0x810a806 :0 gr::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)

23 0x810f4e7 :0 boost::mfi::mf3<void, gr::Resource, gr::http::Agent*, gr::DateTime&, gr::Json const&>::operator()(gr::Resource, gr::http::Agent_, gr::DateTime&, gr::Json const&) const

24 0x810ebb7 :0 void boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list1gr::Resource& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>&, boost::_bi::list1gr::Resource*&&, int)

25 0x810e359 :0 void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > >::operator()gr::Resource(gr::Resource&)

26 0x810daaa :0 boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > > std::for_each<gnu_cxx::normal_iterator<gr::Resource*, std::vector<gr::Resource, std::allocator<gr::Resource> > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > > >(gnu_cxx::normal_iterator<gr::Resource, std::vector<gr::Resource, std::allocator<gr::Resource> > >, __gnu_cxx::__normal_iterator<gr::Resource, std::vector<gr::Resource, std::allocator<gr::Resource> > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::http::Agent, gr::DateTime&, gr::Json const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::http::Agent, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Json > >)

27 0x810a806 :0 gr::Resource::Sync(gr::http::Agent*, gr::DateTime&, gr::Json const&)

28 0x80e21da :0 gr::State::Sync(gr::http::Agent*, gr::Json const&)

29 0x80edf87 :0 gr::Drive::Update()

30 0x80c8fed :0 Main(int, char**)

31 0x80c9443 :0 main

32 0xb72014d3 /lib/i386-linux-gnu/libc.so.6 __libc_start_main

33 0x80c7e11 :0 _start

[gr::http::HttpResponseTag] = 400 [gr::http::UrlTag] = https://docs.google.com/feeds/upload/create-session/default/private/full/file%3A0B0bFMNwvu25iOUU0UzVkM01rUzQ?upload_id=AEnB2UoZk_7CCZWOBhIr9Wh__vPDQBJsu6_RhtkeeFG2rOfqkflBa7Awad2AX0fwNGVnbAt_NpjRqa7jKN1Sqwa-BLxsd7vEyg [gr::http::HeaderTag*] = Expect: Accept: Authorization: Bearer ya29.AHES6ZSFmEhxCj2tH9nhLB4TXOrRy-rX1prN9Cri4STOiJM31fU4e7o GData-Version: 3.0

acidrop commented 12 years ago

Thank you very much for sharing this! :)