grive sync error, possibly google API shift

Yes, Grive is using the defunct Documents List API. As of around 9AM PST we stopped serving these API requests. This is why the Grive client is receiving '400 Bad Request' responses.

Looking at the project, it appears to be unmaintained for almost a year and definitely hasn't been updated (here & here) to the new API that was released in 2012 when Documents List was officially deprecated.


A good alternative might be drive which is written in go and has quite a lot features.

To install follow these instructions:

  1. Install needed packages

    sudo apt-get install golang git mercurial
    
  2. Create a path for go packages in your home directory

    mkdir $HOME/go $HOME/go/bin
    
  3. Add these paths to the appropriate environment variables by editing the file .profile in your home directory. So add these lines at the and of that file:

    if [ -d "$HOME/go" ] ; then
        export GOPATH="$HOME/go"
    fi
    
    if [ -d "$HOME/go/bin" ] ; then
        PATH="$HOME/go/bin:$PATH"
    fi
    
  4. Log off and log on to let the changes take effect.

  5. Download and install drive from latest source

    go get -u github.com/odeke-em/drive/cmd/drive
    
  6. Read https://github.com/odeke-em/drive/#usage

    Basic usage:

    • drive init <folder> initializes <folder> for syncing with your Google Drive.
    • If yo do drive pull in your initialized folder, it will download all changes from Google Drive. At the first time maybe you have to do this more times to download everything.
    • drive push uploads local changes.
    • drive pull <fileOrPath> or drive push <fileOrPath> does the corresponding action only for <fileOrPath>.
    • There are many more options to use, so read the manual.

A fork of grive has been made that works again (not by me, just found it)

https://github.com/vitalif/grive2

Easy replacement

mkdir grive 
cd grive/
git clone https://github.com/vitalif/grive2.git
cd grive2/
mkdir build 
cd build 
cmake ..
make -j4
sudo make install

Now grive works fine for me.

Tags:

Sync

14.04

Grive