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

can't syn properly #179

Open
optimum opened this issue Jun 10, 2013 · 4 comments
Open

can't syn properly #179

optimum opened this issue Jun 10, 2013 · 4 comments

Comments

@optimum
Copy link

optimum commented Jun 10, 2013

$ grive -V -d -l log.txt -f
config file name "./.grive"
last sync time: 1970-01-01T00:00:00.000Z
Reading local directories
file .grive is ignored by grive
previous change stamp is -1
Synchronizing folders
HTTP GET "https://docs.google.com/feeds/default/private/full/-/folder?max-results=50&showroot=true"
HTTP response 200
folder "./libgrive" is created in remote
folder "./libgrive/CMakeFiles" is created in remote
folder "./cmake" is created in remote
file "./grive" has unknown checksum in remote. assuned in sync
folder "./cmake/Modules" is created in remote
grive: /google/grive/libgrive/src/drive/State.cc:183: bool gr::v1::State::Update(const gr::v1::Entry&): Assertion `parent->IsFolder()' failed.
[1] 42728 abort (core dumped) grive -V -d -l log.txt -f

$ cat log.txt
grive version 0.3.0-pre Jun 10 2013 23:39:42
current time: 2013-06-10T19:52:36.134Z
config file name "./.grive"
last sync time: 1970-01-01T00:00:00.000Z
Reading local directories
file .grive is ignored by grive
previous change stamp is -1
Synchronizing folders
HTTP GET "https://docs.google.com/feeds/default/private/full/-/folder?max-results=50&showroot=true"
HTTP response 200
folder "./libgrive" is created in remote
folder "./libgrive/CMakeFiles" is created in remote
folder "./cmake" is created in remote
file "./grive" has unknown checksum in remote. assuned in sync
folder "./cmake/Modules" is created in remote

grive -V -d -l log.txt
config file name "./.grive"
last sync time: 1970-01-01T00:00:00.000Z
Reading local directories
file .grive is ignored by grive
previous change stamp is -1
Synchronizing folders
HTTP GET "https://docs.google.com/feeds/default/private/full/-/folder?max-results=50&showroot=true"
HTTP response 200
folder "./libgrive" is created in remote
folder "./libgrive/CMakeFiles" is created in remote
folder "./cmake" is created in remote
file "./grive" has unknown checksum in remote. assuned in sync
folder "./cmake/Modules" is created in remote
grive: /google/grive/libgrive/src/drive/State.cc:183: bool gr::v1::State::Update(const gr::v1::Entry&): Assertion `parent->IsFolder()' failed.
[1] 42900 abort (core dumped) grive -V -d -l log.txt

@Taurolyon
Copy link

I get a similar issue when syncing many files:

exception: /home/jay/grive/src/grive-0.2.0/libgrive/src/http/CurlAgent.cc(149): Throw in function long int gr::http::CurlAgent::ExecCurl(const string&, gr::http::Receivable*, const gr::http::Header&)
Dynamic exception type: boost::exception_detail::clone_impl<gr::http::Error>
std::exception::what: std::exception
[gr::expt::MsgTag*] = 
[gr::http::CurlCodeTag*] = 0
[gr::http::HttpResponseTag*] = 404
[gr::http::UrlTag*] = https://doc-0c-c4-docs.googleusercontent.com/docs/securesc/(((_omitted_)))&e=download&gd=true
[gr::http::HeaderTag*] = Authorization: Bearer (((_omitted_)))
GData-Version: 3.0

This occurs after a random number of files (normally in excess of 100+).

Note: I omitted sensitive hash.

@oportsac
Copy link

exception: /home/joseluis/src/debian/Grive-Debian-packaging/libgrive/src/http/CurlAgent.cc(149): Throw in function long int gr::http::CurlAgent::ExecCurl(const string&, gr::http::Receivable_, const gr::http::Header&)
Dynamic exception type: boost::exception_detail::clone_implgr::http::Error
std::exception::what: std::exception
[gr::expt::BacktraceTag_] = #0 0x4569bc grive gr::Exception::Exception()
#1 0x44df09 grive gr::http::Error::Error()
#2 0x44d52d grive gr::http::CurlAgent::ExecCurl(std::string const&, gr::http::Receivable_, gr::http::Header const&)
#3 0x44d93d grive gr::http::CurlAgent::Get(std::string const&, gr::http::Receivable_, gr::http::Header const&)
#4 0x462616 grive gr::Resource::Download(gr::http::Agent_, boost::filesystem3::path const&, gr::http::Header const&) const
#5 0x464932 grive gr::Resource::SyncSelf(gr::http::Agent_, gr::http::Header const&)
#6 0x464aa9 grive gr::Resource::Sync(gr::http::Agent_, gr::http::Header const&)
#7 0x464b3b grive gr::Resource::Sync(gr::http::Agent_, gr::http::Header const&)

[gr::expt::MsgTag_] =
[gr::http::CurlCodeTag_] = 0
[gr::http::HttpResponseTag_] = 404
[gr::http::UrlTag_] = https://doc-04-0o-docs.googleusercontent.com/docs/securesc/[omitted]&e=download&gd=true
[gr::http::HeaderTag*] = Authorization: Bearer [omitted]
FData-Version: 3.0

I geta similar error as well. Usually re-authorizing fixes it, but it comes back soon, sometimes after syncing only 10 files or so

@tkruse
Copy link

tkruse commented Sep 24, 2014

Same for Ubuntu 13.10:

grive: /build/buildd/grive-0.3.0/libgrive/src/drive/State.cc:183: bool gr::v1::State::Update(const gr::v1::Entry&): Assertion `parent->IsFolder()' failed.

@ljkenny
Copy link

ljkenny commented Dec 2, 2014

Same for Ubuntu 14.04:

grive: /build/buildd/grive-0.3.0/libgrive/src/drive/State.cc:183: bool gr::v1::State::Update(const gr::v1::Entry&): Assertion `parent->IsFolder()' failed.
Aborted (core dumped)

Is anyone actually going to fix this?

AquariusPower pushed a commit to AquariusPower/grive that referenced this issue Sep 26, 2018
Fix uninitialized use of c2 variable in State::FromLocal
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

5 participants