Open rubber-ant opened 9 years ago
Shall I restart everything from scratch again?
Yes, I think you can try it... It looks like it couldn't move some file into trash because drive responded with HTTP 403... but I don't know what it means and it seems drive API documentation says nothing on HTTP response code...
There's something here https://developers.google.com/drive/web/handle-errors I think I should add some logging to see what the error means when a crash occurs...
From the scratch shows up grive -V:
exception: /home/XXX/Downloads/grive2-master/libgrive/src/util/File.cc(128): Throw in function void gr::File::Open(const boost::filesystem::path&, int, int) Dynamic exception type: N5boost16exception_detail10clone_implIN2gr4File5ErrorEEE [PN2gr4expt12BacktraceTagE] = #0 0x4fc8b1 :0 gr::Exception::Exception()
13, "Permission denied"[PN5boost18errinfo_file_name_E] = ./XXXXg/XXX/XXX.XXX/XXX.pdf [PN5boost21errinfo_api_function_E] = open
Fix your file permissions...
"Permission denied" --> ./XXXXg/XXX/XXX.XXX/XXX.pdf
fixed the permissions but now from the scratch get the same error from the beginning :/
it's a bit ridiculous that google didn't develop yet "google drive" for the users using GNU/linux
I still think it's something related to file permissions.
/home/XXXXXX/Downloads/grive2-master/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_implIXXXXXXXXXXXXXX
Dynamic exception type: N5boost16exception_detail10clone_implIN2gr4http5ErrorEEE [PN2gr4expt12BacktraceTagE] = #0 0x4fc8b1 :0 gr::Exception::Exception()
1 0x4d7017 :0 gr::http::Error::Error()
2 0x4de4bd :0 gr::AuthAgent::CheckHttpResponse(long, std::string const&, gr::http::Header const&)
3 0x4de006 :0 gr::AuthAgent::Post(std::string const&, std::string const&, gr::DataStream*, gr::http::Header const&)
4 0x4ced47 :0 gr::v2::Syncer2::DeleteRemote(gr::Resource*)
5 0x4c3502 :0 gr::Resource::SyncSelf(gr::Syncer*, gr::Val const&)
6 0x4c30bd :0 gr::Resource::Sync(gr::Syncer*, gr::DateTime&, gr::Val const&)
7 0x4c77cd :0 boost::mfi::mf3<void, gr::Resource, gr::Syncer*, gr::DateTime&, gr::Val const&>::operator()(gr::Resource, gr::Syncer_, gr::DateTime&, gr::Val const&) const
8 0x4c6bad :0 void boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list1gr::Resource& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::Syncer , gr::DateTime&, gr::Val const&>&, boost::_bi::list1gr::Resource*&&, int)
9 0x4c5e43 :0 void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > >::operator()gr::Resource(gr::Resource&)
10 0x4c51e3 :0 boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > > 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::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > > >(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::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > >)
11 0x4c31cd :0 gr::Resource::Sync(gr::Syncer*, gr::DateTime&, gr::Val const&)
12 0x4c77cd :0 boost::mfi::mf3<void, gr::Resource, gr::Syncer*, gr::DateTime&, gr::Val const&>::operator()(gr::Resource, gr::Syncer_, gr::DateTime&, gr::Val const&) const
13 0x4c6bad :0 void boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list1gr::Resource& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::Syncer , gr::DateTime&, gr::Val const&>&, boost::_bi::list1gr::Resource*&&, int)
14 0x4c5e43 :0 void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > >::operator()gr::Resource(gr::Resource&)
15 0x4c51e3 :0 boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > > 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::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > > >(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::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > >)
16 0x4c31cd :0 gr::Resource::Sync(gr::Syncer*, gr::DateTime&, gr::Val const&)
17 0x4c77cd :0 boost::mfi::mf3<void, gr::Resource, gr::Syncer*, gr::DateTime&, gr::Val const&>::operator()(gr::Resource, gr::Syncer_, gr::DateTime&, gr::Val const&) const
18 0x4c6bad :0 void boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list1gr::Resource& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::Syncer , gr::DateTime&, gr::Val const&>&, boost::_bi::list1gr::Resource*&&, int)
19 0x4c5e43 :0 void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > >::operator()gr::Resource(gr::Resource&)
20 0x4c51e3 :0 boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > > 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::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > > >(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::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > >)
21 0x4c31cd :0 gr::Resource::Sync(gr::Syncer*, gr::DateTime&, gr::Val const&)
22 0x4c77cd :0 boost::mfi::mf3<void, gr::Resource, gr::Syncer*, gr::DateTime&, gr::Val const&>::operator()(gr::Resource, gr::Syncer_, gr::DateTime&, gr::Val const&) const
23 0x4c6bad :0 void boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list1gr::Resource& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::Syncer , gr::DateTime&, gr::Val const&>&, boost::_bi::list1gr::Resource*&&, int)
24 0x4c5e43 :0 void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > >::operator()gr::Resource(gr::Resource&)
25 0x4c51e3 :0 boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > > 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::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > > >(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::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > >)
26 0x4c31cd :0 gr::Resource::Sync(gr::Syncer*, gr::DateTime&, gr::Val const&)
27 0x4c77cd :0 boost::mfi::mf3<void, gr::Resource, gr::Syncer*, gr::DateTime&, gr::Val const&>::operator()(gr::Resource, gr::Syncer_, gr::DateTime&, gr::Val const&) const
28 0x4c6bad :0 void boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list1gr::Resource& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::Syncer , gr::DateTime&, gr::Val const&>&, boost::_bi::list1gr::Resource*&&, int)
29 0x4c5e43 :0 void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > >::operator()gr::Resource(gr::Resource&)
30 0x4c51e3 :0 boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > > 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::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > > >(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::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > >)
31 0x4c31cd :0 gr::Resource::Sync(gr::Syncer*, gr::DateTime&, gr::Val const&)
32 0x4c77cd :0 boost::mfi::mf3<void, gr::Resource, gr::Syncer*, gr::DateTime&, gr::Val const&>::operator()(gr::Resource, gr::Syncer_, gr::DateTime&, gr::Val const&) const
33 0x4c6bad :0 void boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list1gr::Resource& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::Syncer , gr::DateTime&, gr::Val const&>&, boost::_bi::list1gr::Resource*&&, int)
34 0x4c5e43 :0 void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > >::operator()gr::Resource(gr::Resource&)
35 0x4c51e3 :0 boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > > 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::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer*, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > > >(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::Syncer, gr::DateTime&, gr::Val const&>, boost::_bi::list4boost::arg<1, boost::_bi::valuegr::Syncer, boost::reference_wrappergr::DateTime, boost::_bi::valuegr::Val > >)
36 0x4c31cd :0 gr::Resource::Sync(gr::Syncer*, gr::DateTime&, gr::Val const&)
37 0x4cc4b7 :0 gr::State::Sync(gr::Syncer*, gr::Val const&)
38 0x4beffb :0 gr::Drive::Update()
39 0x4a4467 :0 Main(int, char**)
40 0x4a4a14 :0 main
41 0x7fa56485cec5 /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
42 0x4a31a9 :0 _start
[PN2gr4http15HttpResponseTagE] = 403 [PN2gr4http6UrlTagE] = https://www.googleapis.com/drive/v2/files/XXXXXXXXXXXXXXXX/trash [PN2gr4http9HeaderTagE] = If-Match: "XXXXXXXXXXXXXX/XXXXXXXX" Authorization: Bearer XXX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX GData-Version: 3.0