Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grive not working on ubuntu 19.04 #272

Open
ghost opened this issue Apr 23, 2019 · 1 comment
Open

Grive not working on ubuntu 19.04 #272

ghost opened this issue Apr 23, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 23, 2019

Since I updated Ubuntu to version 19.04 grive is not working anymore. Grive requires libboost in version 1.65.1 but my ubuntu has libboost only in version 1.67.0. Are you aware of this issue?

@CryptoSiD
Copy link

I have the same issue on 19.04.

Here's the error I'm getting:

Reading local directories
Reading remote server file list
exception: /root/GitHub/grive2/libgrive/src/protocol/AuthAgent.cc(170): 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 0x55911eaa5f29 grive gr::Exception::Exception()
#1 0x55911ea7c931 grive gr::http::Error::Error()
#2 0x55911ea98395 grive gr::AuthAgent::CheckHttpResponse(long, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, gr::http::Header const&)
#3 0x55911ea97c0f grive gr::AuthAgent::Request(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, gr::SeekStream*, gr::DataStream*, gr::http::Header const&, unsigned long long)
#4 0x55911ea7afa8 grive gr::http::Agent::Get(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, gr::DataStream*, gr::http::Header const&, unsigned long long)
#5 0x55911eac673c grive gr::v2::Feed2::GetNext(gr::http::Agent*)
#6 0x55911ea62b33 grive gr::Drive::DetectChanges()
#7 0x55911ea43a79 grive Main(int, char**)
#8 0x55911ea4436d grive main
#9 0x7ff87325cb6b /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#10 0x55911ea4225a grive _start

[gr::http::ResponseBodyTag*] =
[gr::http::ResponseCodeTag*] = 403
[gr::http::RequestHeadersTag*] = Authorization: Bearer ya29.REMOVED
GData-Version: 3.0

[gr::http::ResponseHeadersTag*] =
[gr::http::UrlTag*] = https://www.googleapis.com/drive/v2/files?maxResults=999999999&pageToken=~!!~***REMOVED***&q=trashed%3Dfalse

Sometimes the error is this one instead:

Reading local directories
Reading remote server file list
Synchronizing files
sync "./Backup/Ubuntu/usrlocalbin/grive" doesn't exist in server, uploading
request failed due to auth token expired: 401 (body: ). refreshing token
exception: /root/GitHub/grive2/libgrive/src/json/JsonParser.cc(169): Throw in function void gr::JsonParser::Parse(const char*, std::size_t)
Dynamic exception type: boost::exception_detail::clone_implgr::JsonParser::Error
[gr::expt::BacktraceTag*] = #0 0x55e75c4e8f29 grive gr::Exception::Exception()
#1 0x55e75c4c7bfb grive gr::JsonParser::Error::Error()
#2 0x55e75c4c77dc grive gr::JsonParser::Parse(char const*, unsigned long)
#3 0x55e75c4da799 grive gr::http::ValResponse::Write(char const*, unsigned long)
#4 0x55e75c4bebca grive gr::http::CurlAgent::Receive(void*, unsigned long, unsigned long, gr::http::CurlAgent*)
#5 0x7ffb48d43504 /lib/x86_64-linux-gnu/libcurl.so.4
#6 0x7ffb48d5611b /lib/x86_64-linux-gnu/libcurl.so.4
#7 0x7ffb48d5f643 /lib/x86_64-linux-gnu/libcurl.so.4
#8 0x7ffb48d608c9 /lib/x86_64-linux-gnu/libcurl.so.4 curl_multi_perform
#9 0x7ffb48d57482 /lib/x86_64-linux-gnu/libcurl.so.4 curl_easy_perform
#10 0x55e75c4bee52 grive gr::http::CurlAgent::ExecCurl(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, gr::DataStream*, gr::http::Header const&)
#11 0x55e75c4bf312 grive gr::http::CurlAgent::Request(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, gr::SeekStream*, gr::DataStream*, gr::http::Header const&, unsigned long long)
#12 0x55e75c4dabd3 grive gr::AuthAgent::Request(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, gr::SeekStream*, gr::DataStream*, gr::http::Header const&, unsigned long long)
#13 0x55e75c4bb6cc grive gr::v2::Syncer2::Upload(gr::Resource*, bool)
#14 0x55e75c4b9fe9 grive gr::v2::Syncer2::Create(gr::Resource*)
#15 0x55e75c4f6447 grive gr::Resource::SyncSelf(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#16 0x55e75c4f5296 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#17 0x55e75c4fba9d grive boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>::operator()(gr::Resource*, gr::Syncer*, gr::ResourceTree*, gr::Val const&) const
#18 0x55e75c4fb2ce grive void boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::rrlist1gr::Resource*& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>&, boost::_bi::rrlist1gr::Resource*&&, int)
#19 0x55e75c4fa7f1 grive void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >::operator()gr::Resource*&(gr::Resource*&)
#20 0x55e75c4f91f0 grive boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > std::for_each<__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > >(__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, __gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >)
#21 0x55e75c4f536d grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#22 0x55e75c4fba9d grive boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>::operator()(gr::Resource*, gr::Syncer*, gr::ResourceTree*, gr::Val const&) const
#23 0x55e75c4fb2ce grive void boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::rrlist1gr::Resource*& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>&, boost::_bi::rrlist1gr::Resource*&&, int)
#24 0x55e75c4fa7f1 grive void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >::operator()gr::Resource*&(gr::Resource*&)
#25 0x55e75c4f91f0 grive boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > std::for_each<__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > >(__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, __gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >)
#26 0x55e75c4f536d grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#27 0x55e75c4fba9d grive boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>::operator()(gr::Resource*, gr::Syncer*, gr::ResourceTree*, gr::Val const&) const
#28 0x55e75c4fb2ce grive void boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::rrlist1gr::Resource*& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>&, boost::_bi::rrlist1gr::Resource*&&, int)
#29 0x55e75c4fa7f1 grive void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >::operator()gr::Resource*&(gr::Resource*&)
#30 0x55e75c4f91f0 grive boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > std::for_each<__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > >(__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, __gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >)
#31 0x55e75c4f536d grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#32 0x55e75c4fba9d grive boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>::operator()(gr::Resource*, gr::Syncer*, gr::ResourceTree*, gr::Val const&) const
#33 0x55e75c4fb2ce grive void boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val >::operator()<boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::rrlist1gr::Resource*& >(boost::_bi::type, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>&, boost::_bi::rrlist1gr::Resource*&&, int)
#34 0x55e75c4fa7f1 grive void boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >::operator()gr::Resource*&(gr::Resource*&)
#35 0x55e75c4f91f0 grive boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > std::for_each<__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > > >(__gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, __gnu_cxx::__normal_iterator<gr::Resource**, std::vector<gr::Resource*, std::allocatorgr::Resource* > >, boost::_bi::bind_t<void, boost::_mfi::mf3<void, gr::Resource, gr::Syncer*, gr::ResourceTree*, gr::Val const&>, boost::_bi::list4<boost::arg<1>, boost::_bi::valuegr::Syncer*, boost::_bi::valuegr::ResourceTree*, boost::_bi::valuegr::Val > >)
#36 0x55e75c4f536d grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#37 0x55e75c4ab685 grive gr::State::Sync(gr::Syncer*, gr::Val const&)
#38 0x55e75c4a5faf grive gr::Drive::Update()
#39 0x55e75c486b28 grive Main(int, char**)
#40 0x55e75c48736d grive main
#41 0x7ffb483fdb6b /lib/x86_64-linux-gnu/libc.so.6 __libc_start_main
#42 0x55e75c48525a grive _start

[gr::JsonText*] = {
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Login Required",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Login Required"
}
}

[gr::ParseErr*] = parse error: trailing garbage
{ "error": { "errors": [
(right here) ------^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant