Coder Social home page Coder Social logo

Reading remote server list problem about grive HOT 11 CLOSED

grive avatar grive commented on July 21, 2024
Reading remote server list problem

from grive.

Comments (11)

nestal avatar nestal commented on July 21, 2024

Can you post your result of "grive -V" ?

from grive.

juliotux avatar juliotux commented on July 21, 2024

The end error lines are the same:

file "./Dumont Simulations/dumont-code/Tucano/src/menu.h" is already in sync
grive: /home/julio/Downloads/match065-grive-197abfd/libgrive/src/drive/Resource.cc:177: void gr::Resource::FromRemoteFile(const gr::Entry&, const gr::DateTime&): Assertion 'm_state == local_new || m_state == local_changed || m_state == remote_deleted' failed.
Aborted (core dumped)

from grive.

frones avatar frones commented on July 21, 2024

Same here, for revision b6aafd7:

last sync time: 2012-06-06T01:28:17.219Z
Reading local directories
file .grive is ignored by grive
file .grive_state is ignored by grive
file "./edxrf_txrf-virgilio(1999).doc" read from local remote_deleted
file .main.tex.swp is ignored by grive
...
Synchronizing folders
folder "./USP" is in sync
...
folder "./USP/Processos Estocasticos/Sim2/ROOT" is in sync
Reading remote server file list
file "./USP/Lab6/Dados/FWHM_por_E_45.txt" is already in sync
...
file "./USP/Lab6/Sintese/mainNotes.bib" is already in sync
grive: /home/frones/opt/grive/libgrive/src/drive/Resource.cc:181: void gr::Resource::FromRemoteFile(const gr::Entry&, const gr::DateTime&): Assertion `m_state == local_new || m_state == local_changed || m_state == remote_deleted' failed.
Aborted

from grive.

frones avatar frones commented on July 21, 2024

There's a strange thing about this error... I didn't read the code carefully, but apparently, this line of code is meant to be executed when there's a change in some file (// use mtime to check which one is more recent).

However, if I do grive -a, and right after all the files are downloaded, I do a grive (all files unchanged, therefore), the error occurs anyway.

from grive.

frones avatar frones commented on July 21, 2024

I'm having some progress on debugging... but I'm pretty sure I won't be able to provide a fix. So, here's what I did:

I added the following debug lines on Resource.cc:

    // use mtime to check which one is more recent
    else
    {
            std::cout << "File: " << Path() << std::endl;
            std::cout << "MTime: " << remote.MTime() << std::endl;
            std::cout << "MD5: " << remote.MD5() << std::endl;
            std::cout << "MD5local: " << m_entry.MD5() << std::endl;


            assert( m_state == local_new || m_state == local_changed || m_state == remote_deleted ) ;

When I ran grive with this, it returned:

File: "./USP/Lab6/Sintese/.main.tex.swp"
MTime: 2012-06-05T20:59:00.777Z
MD5: a05a025f1f52045785fe86ac6dfb97bc
MD5local:

I deleted the local .main.tex.swp file (temporary file for vim). Ran grive again. Another error very similar to this one (with a hidden file, .something). After a few runs, and deletes, it worked fine (and also uploaded a number of .xml files in the main directory... files that should have been deleted if there were no errors, perhaps).

PS: for these files, m_state == unknown.

from grive.

nestal avatar nestal commented on July 21, 2024

Grive should ignore all files started with a dot. It's strange.

from grive.

frones avatar frones commented on July 21, 2024

They were already in my Google Drive. Before using grive, I uploaded my entire folder through the GDrive web interface. Perhaps that's the issue.

From the MD5, it seems like it was ignored in my local drive, but not on the remote server (m_entry.MD5() == 0, but remote.MD5() != 0).

Also, I'm using Ubuntu 10.04 Lucid Lynx, if that is relevant.

PS: I swear I tried, but I couldn't find the piece of code that skips the files started with "."

from grive.

nestal avatar nestal commented on July 21, 2024

I see the problem now. It will be fixed soon.

from grive.

nestal avatar nestal commented on July 21, 2024

It should be fixed by commit c81bb0a. Would you please pull and re-test?

Many thanks.

from grive.

frones avatar frones commented on July 21, 2024

Fixed.

Reading remote server file list
file "./meta-160342.xml" is already in sync
application/octet-stream .main.tex.swp is ignored by grive

from grive.

ikwyl6 avatar ikwyl6 commented on July 21, 2024

I'm still getting this error even with the #112 branch. I believe it has something to do with a slash in a directory name on the remote side. Can this issue be re-opened? See below from verbose output:

$ grive -V -p GoogleDrive/
config file name GoogleDrive/.grive
last sync time: 2013-02-09T08:10:03.296Z
Reading local directories
file .grive_state is ignored by grive
file .grive is ignored by grive
Synchronizing folders
folder "Safety/Course Certs" contains a slash in its name, ignored
......
Reading remote server file list
......
folder GoogleDrive/Engr/Safety/Course Certs is in sync
grive: /home/charding/dev/grive/libgrive/src/drive/Resource.cc:230: void gr::Resource::FromRemoteFile(const gr::Entry&, const gr::DateTime&): Assertion `m_state != unknown' failed.
Aborted

from grive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.