Google drive issue

Get help for specific problems
Posts: 29
Joined: 9 Jun 2020

troels

I'm using the latest Donation version on Mac.

I have a sync job running as a daemon on MacOS every 30 minutes which sync two local (Mac) folders to their equivalents on Google Drive. This worked fine for several weeks.

A few days ago this started failing and the only fix is I have is to disconnect from my Google account and reconnect. Its now doing this on every 30 minute run.

Here is part of the error I get running the job directly from inside FFS:
Cannot read file attributes of "gdrive:/<my gmail account>/Vira".

{
 "kind": "drive#changeList",
 "newStartPageToken": "6990532",
 "changes": [
  {
   "kind": "drive#change",
   "removed": false,
   "fileId": "12r_BwZJtqvfjG6basuo9TZw0VKUJcy5D",
   "file": {
    "name": "<file name #1>",
    "mimeType": "application/vnd.google-apps.folder",
    "trashed": false,
    "modifiedTime": "2018-06-11T16:58:30.104Z",
    "shared": true
   }
  },
Similar sections like this are repeated about 30 times more with different <file names> in the "name" section. The names are files on my Google drive but are not in either of the two folders I am monitoring. So I don't know why it is even looking at those folders.

I tried to post the full error message but got told I was a spammer!
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

You can send the full error message to me via email, and I'll have a look.
Posts: 29
Joined: 9 Jun 2020

troels

Its basically more of the same, as I updated above. Like this:
{
   "kind": "drive#change",
   "removed": false,
   "fileId": "118jgQX4C8M1LbKZnwrPL1MxDD-Xf4ODh",
   "file": {
    "name": "<filename>.mkv",
    "mimeType": "video/x-matroska",
    "trashed": false,
    "parents": [
     "1t1f0hgh_lfGJ_Z3hYmSHAp-fMBJagVnE"
    ],
    "modifiedTime": "2020-04-17T14:26:35.000Z",
    "shared": false,
    "size": "3521946685"
   }
  },
  {
   "kind": "drive#change",
   "removed": false,
   "fileId": "1jM4zR0hSWrx6P3YcXXNycQdvuLjDZeH6",
   "file": {
    "name": "<filename>.mkv",
    "mimeType": "video/x-matroska",
    "trashed": false,
    "parents": [
     "1TEsjNGO9l1Q2kTCYa3MH3L-6eE4VW1Ds"
    ],
    "modifiedTime": "2020-04-17T16:24:28.000Z",
    "shared": false,
    "size": "3521411479"
   }
  },
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

The names are files on my Google drive but are not in either of the two folders I am monitoring. So I don't know why it is even looking at those folders. troels, 09 Jun 2020, 10:02
Where are these files located exactly (the first one in particular)? It looks like FFS is receiving change notifications for files without the "parents" array.
Posts: 29
Joined: 9 Jun 2020

troels

On my Google Drive I have top level folders including "NAS", "Downloads", "Vira" and "Sreyneang".

The files appearing in the error message are all located in the NAS folder. I'm only trying to sync the last two folders above.

I do have a task running on my NAS (a native sync app) which is permanently syncing to the Google Drive NAS folder but this should be unrelated to what I'm trying to do in FFS.
User avatar
Posts: 2450
Joined: 22 Aug 2012

Plerry

If you only want/need to sync the folders "Vira" and "Sreyneang", you can limit the scope of your sync to just those two folders (and their subfolders) by (either/or):

- Using multiple, more specific left-right folder pairs. See here.
- Via the Include Filter, including only \Vira\* and \Sreyneang\*
- Via the Exclude Filter, excluding at least \NAS\ and possibly also \Downloads\

For the use of Filters, see here.
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

On my Google Drive I have top level folders including "NAS", "Downloads", "Vira" and "Sreyneang".

The files appearing in the error message are all located in the NAS folder. I'm only trying to sync the last two folders above.

I do have a task running on my NAS (a native sync app) which is permanently syncing to the Google Drive NAS folder but this should be unrelated to what I'm trying to do in FFS. troels, 10 Jun 2020, 00:04
The folder in the first error message above: Where did you get it from? Was it shared, etc? Where is it located? It doesn't have the "parents" array, that's the problem, but I do not know how to create such a situation (or what it even means: The folder is not deleted or trashed, so is it in limbo?). Whoever shared it with you: What did he do with the folder so that it loses its parents?
Posts: 29
Joined: 9 Jun 2020

troels

My sync is using two specific left-right folder pairs, that's why I don't understand how other files are even being looked at.
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

My sync is using two specific left-right folder pairs, that's why I don't understand how other files are even being looked at. troels, 10 Jun 2020, 07:58
These are change notifications.
User avatar
Posts: 2450
Joined: 22 Aug 2012

Plerry

So, it seems to be an RTS related "issue" rather than an FFS "issue".
You (troels) should be able to solve that by limiting the scope of the folders monitored by RTS to just those two folders, and not your full Google Drive folder.
Posts: 29
Joined: 9 Jun 2020

troels

This is not using RTS - it is using an FFS batch file called every 30 minutes.

The reason is that I already have an RTS job monitoring and syncing two local folders Mac <> NAS. Note its not monitoring Gdrive.

Is it possibly interference between the two?

Can I have more than one RTS job running? If so I will try that.
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Issue has been fixed for the next version. Turns out items from "Shared with me" that are referenced from "My Drive" via shortcuts do not have any parents (as far as your own Google Drive is concerned). Also, next version will have full support for Google Drive shortcuts (= basically Symbolic Links).
Posts: 29
Joined: 9 Jun 2020

troels

Issue has been fixed for the next version. Turns out item from "Shared with me" that are referenced from "My Drive" via shortcuts do not have any parents (as far as your own Google Drive is concerned). Also, next version will have full support for Google Drive shortcuts (= basically Symbolic Links). Zenju, 12 Jun 2020, 16:51
Brilliant, thanks
Posts: 29
Joined: 9 Jun 2020

troels

Any ETA on the next version? Or is it possible to get a beta please? I've had to suspend my scripts waiting for this fix.
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Posts: 29
Joined: 9 Jun 2020

troels

Ah, I'm on Mac. If its later this week I can wait,