You are not logged in.

#1 2016-03-30 16:41:31

archymedes
Member
Registered: 2012-09-25
Posts: 16

[Solved] Error to sync with grive

Hello. I use to use grive (from AUR) to sync my folder data, but I'm having this issue in a new computer. I've reinstalled it several times but it doesn't change

lluis@cajal [GOOGLE.DRIVE]$ grive
Reading local directories
Reading remote server file list
Synchronizing files
sync "./SINCRONIZACION-PC/Decoracion/wallpaper.hd/space2.png" created in remote. creating local
exception: /tmp/yaourt-tmp-lluis/aur-grive/src/grive2-0.5.0/libgrive/src/util/OS.cc(88): Throw in function void gr::os::SetFileTime(const string&, const gr::DateTime&)
Dynamic exception type: boost::exception_detail::clone_impl<gr::os::Error>
[gr::expt::BacktraceTag*] = #0 0x4b655c grive gr::Exception::Exception()
#1 0x4af931 grive gr::os::Error::Error()
#2 0x4af0e1 grive gr::os::SetFileTime(boost::filesystem::path const&, gr::DateTime const&)
#3 0x4c267f grive gr::Syncer::Download(gr::Resource*, boost::filesystem::path const&)
#4 0x47dbde grive gr::Resource::SyncSelf(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#5 0x47dff5 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#6 0x47e0f0 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#7 0x47e0f0 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#8 0x47e0f0 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#9 0x47e0f0 grive gr::Resource::Sync(gr::Syncer*, gr::ResourceTree*, gr::Val const&)
#10 0x481f12 grive gr::Drive::Update()
#11 0x44f105 grive Main(int, char**)
#12 0x44d13b grive main
#13 0x7fa9f344f710 /usr/lib/libc.so.6 __libc_start_main
#14 0x44de59 grive _start

1, "Operation not permitted"[boost::errinfo_file_name_*] = ./SINCRONIZACION-PC/Decoracion/wallpaper.hd/space2.png
[boost::errinfo_api_function_*] = utimes

lluis@cajal [GOOGLE.DRIVE]$ 

Some error I've had in the past but it was because there was a new version of grive on AUR, problems with API's and something like that.
Some idea? Thanks

Last edited by archymedes (2016-04-08 16:10:23)

Offline

#2 2016-03-30 17:16:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] Error to sync with grive

I have no idea why yaourt is in that error message, but it is almost always to blame for something...


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2016-03-31 07:01:32

raygenbogen
Member
Registered: 2014-11-12
Posts: 17

Re: [Solved] Error to sync with grive

Where did you create your google drive folder? What are the permissions of this folder? It seems you have no permission to create this file.

I'm really puzzled by that

exception: /tmp/yaourt-tmp-lluis/aur-grive/src/grive2-0.5.0/libgrive/src/util/OS.cc(88)

.
What is the output of

which grive

?

Offline

#4 2016-03-31 08:37:18

archymedes
Member
Registered: 2012-09-25
Posts: 16

Re: [Solved] Error to sync with grive

Hello. Thanks for the reply
The output is:

/usr/bin/grive

The folder's path that I want to sync is /mnt/DATA/GOOGLE.DRIVE. The folder's owner and group is root. My user is in root group. I usually use this path for my data. In all other computers I'm using this path and no problem with it.

Offline

#5 2016-03-31 08:43:33

raygenbogen
Member
Registered: 2014-11-12
Posts: 17

Re: [Solved] Error to sync with grive

You didn't give me the permissions of the folder. Can you create files in this folder? What is the output of

 ls -l

inside /mnt/DATA?
If only the owner can read and write to that folder and not the group, it doesn't matter in what group you're in.
Why not just change the owner of this folder to your user? Why does it have to be root:root?

Last edited by raygenbogen (2016-03-31 08:59:32)

Offline

#6 2016-03-31 10:56:12

archymedes
Member
Registered: 2012-09-25
Posts: 16

Re: [Solved] Error to sync with grive

Sorry, here is the permissions output.
When I created the GOOGLE.DRIVE folder into /mnt/DATA as normal user, it was created and owner was root. I didn't used "su mkdir /mnt/DATA/GOOGLE.DRIVE". I've tried to change the owner to my user but it do not solve the problem.
I use to create this folder to sync in other computers in the same way and it's the first time I have this problem to sync.

lluis@cajal [DATOS]$ ls -l
total 3456
-rwxrwxrwx 1 root root 1027585 mar 10 14:27 'Captured GFP-B 2.jpg'
-rwxrwxrwx 1 root root 1105463 mar 10 14:33 'Captured GFP-C-3.jpg'
drwxrwxrwx 1 root root  131072 mar 21 21:53 CONFOCAL
drwxrwxrwx 1 root root  131072 mar 30 18:15 Descargas
-rwxrwxrwx 1 root root  150260 mar 29 18:17 'Diseños Experimentales.docx'
drwxrwxrwx 1 root root  131072 mar 29 12:05 GOOGLE.DRIVE
drwxrwxrwx 1 root root  131072 mar 21 21:52 MUSICA
drwxrwxrwx 1 root root  131072 mar 21 22:18 SISTEMAS.OPERATIVOS.VIRTUALBOX
drwxrwxrwx 1 root root  131072 mar 21 21:52 SISTEMAS.OPERATORIOS
drwxrwxrwx 1 root root  131072 mar 21 22:37 SOFTWARE
drwxrwxrwx 1 root root  131072 mar 21 21:52 VIDEOS
lluis@cajal [GOOGLE.DRIVE]$ ls -l
total 256
-rwxrwxrwx 1 root root   1019 mar 29 12:02 bashrc
drwxrwxrwx 1 root root 131072 mar 29 12:05 SINCRONIZACION-PC

Offline

#7 2016-03-31 11:03:50

raygenbogen
Member
Registered: 2014-11-12
Posts: 17

Re: [Solved] Error to sync with grive

raygenbogen wrote:

Can you create files in this folder?

Offline

#8 2016-03-31 11:19:24

archymedes
Member
Registered: 2012-09-25
Posts: 16

Re: [Solved] Error to sync with grive

Yes, I created this folder as normal user, not as root. I can create files and folders into GOOGLE.DRIVE folder as normal user

Offline

#9 2016-03-31 11:22:44

raygenbogen
Member
Registered: 2014-11-12
Posts: 17

Re: [Solved] Error to sync with grive

Then I guess something is wrong with google drive. Does it sync anything and stops somewhere in the middle, or is nothing synced? Does the journal say anything? Did you try to map a new folder to google drive? You have to start testing a few things for yourself

Offline

#10 2016-03-31 17:57:52

archymedes
Member
Registered: 2012-09-25
Posts: 16

Re: [Solved] Error to sync with grive

Grive's sync works ok if I create a folder in my home and sync it. But it's not a solutions because my /home partition is tiny to use it as sync folder.
But it doesn't work in /mnt/DATA/Google folder. This folder is created with my user, not with root and (as in other computers I have this folder), so this is an strange thing, because sync is stopped after a pair of files synced. Allways start but immediately after download a pair of files, gives me the error

Offline

#11 2016-04-08 16:10:04

archymedes
Member
Registered: 2012-09-25
Posts: 16

Re: [Solved] Error to sync with grive

I've formated the partition where grive sync and now it works perfectly. I created the data partition within the other OS and it was the reason it had root owner. Now it owned by my user.
Thanks a lot

Offline

Board footer

Powered by FluxBB