Jump to content

Google Drive — List File Stream contents from Google Drive


Recommended Posts

That localhost error is not related to the Workflow. Have you followed the instructions in the previous post? What’s the result of:

 

ls -lA "/Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A41E4C52-64AF-41DB-8A77-AA42563B3D47"

Link to comment
11 hours ago, vitor said:

That localhost error is not related to the Workflow. Have you followed the instructions in the previous post? What’s the result of:

Yes I ran that command in terminal in Alfred workflow. the file permission has execute x permission.

 

ls -lA "/Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A41E4C52-64AF-41DB-8A77-AA42563B3D47"

 

ls: /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A41E4C52-64AF-41DB-8A77-AA42563B3D47: No such file or directory

 

Link to comment

did the chmod again and with the ls result here.

 

image.png.5360d8c9cd3a09f3226382929824c83f.png

 

so far, after I uninstalled and reinstalled Alfred and redownload the latest workflow and import, ran the :gdlaunchd, there wasn't the error. perhaps there was some corruption. Will wait for notification once the daemon finishes and check if the indexing successful.

 

thanks

Edited by alvint
Link to comment

### Workflow version
2022.7

### Alfred version
4.6.3

### macOS version
12.2.1

### Workflow environment variables
Dict {
    ignore_list = 
    result_limit = 50
    google_drive_path = /Volumes/GoogleDrive
}

### Google drive paths
Exists: /Volumes/GoogleDrive
121M
72384 paths

### Cache dir
Files NOT present

### Cache file
Does NOT exist

### Temporary cache
Does NOT exist

### Build progress
NOT running

### Launchd job
Loaded: -    0    com.alfredapp.launchd.googledrivecache
Installed
 

Not sure if it's working ...haven;t had any notifications. .this is the diagnostic output with !gddiagnostic

Not sure why the files are NOT present and says Build Progress NOT running. 

 

Link to comment

I’ll rephrase my request: please avoid posting serially. That muddles the discussion for everyone coming after and is annoying for the people who follow the thread, because they are constantly pinged. Today they will have received six emails from your replies, but no more than two were necessary. Remember this is a public forum, not a chat app. The goal is for everyone to be able to benefit from the questions and answers.


Impatience makes us miss important information. I don’t have access to you or your machine so I can only take guesses at what you’re doing wrong or what is odd about your setup. To get help, you need to be collected and think with me what about your setup is different from (literally) a few thousand people using this without your problem.


Have you checked the debugger? Have you tried :gdrebuildcache?

Edited by vitor
Link to comment

Hi Vitor

 

I have done all you mentioned as I am no expert on this. Apologies if the post were serial. Let me recap in one post here and hopefully we can resolve this. I appreciate that you are responding and helping. 

 

I have done the following

 

1. Removed Alfred and redownloaded and installed

2. Redownloaded the workflow from GitHub and imported

3. chmod +x gd rebuild_cache in the workflow terminal. 
I have attached the ls -al as you requested and you see it has x on rebuild_cache.

image.png.771730976cc26f3cb22a7965c4189be1.png

 

3. Ran :gdlaunchd and waited.

4. gd somefilename and it says No Cache found and below is debugger output

image.thumb.png.71b1e9e105139b1219e997221b3900aa.png

 

[07:36:23.460] Google Drive[Script Filter] Queuing argument 'a'

[07:36:23.618] Google Drive[Script Filter] Script with argv 'a' finished

[07:36:23.621] Google Drive[Script Filter] {"items":[{"title":"No cache found!","subtitle":"Run either :gdlaunchd or :gdrebuildcache. Consult the “About this Workflow” section.","valid":false}]}

[07:36:23.623] Google Drive[Script Filter] Queuing argument 'ai'

[07:36:23.753] Google Drive[Script Filter] Script with argv 'ai' finished

[07:36:23.755] Google Drive[Script Filter] {"items":[{"title":"No cache found!","subtitle":"Run either :gdlaunchd or :gdrebuildcache. Consult the “About this Workflow” section.","valid":false}]}

[07:38:23.062] Google Drive[Script Filter] Queuing argument 'a'

[07:38:23.200] Google Drive[Script Filter] Queuing argument 'ai'

[07:38:23.397] Google Drive[Script Filter] Script with argv 'ai' finished

[07:38:23.398] Google Drive[Script Filter] {"items":[{"title":"No cache found!","subtitle":"Run either :gdlaunchd or :gdrebuildcache. Consult the “About this Workflow” section.","valid":false}]}

 

5. :gdrebuildcache and here is the notification and debugger result below

image.png.e980538fef9df592378db5f32c3c00ab.png

[07:39:40.196] Google Drive[Keyword] Processing complete

[07:39:40.197] Google Drive[Keyword] Passing output '' to Run Script

[07:39:40.388] ERROR: Google Drive[Run Script] /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `open': Operation not permitted @ dir_initialize - /Volumes/GoogleDrive/.TemporaryItems (Errno::EPERM)

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `children'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `block (2 levels) in find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:48:in `catch'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:48:in `block in find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:43:in `each'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:43:in `find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/pathname.rb:565:in `find'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:43:in `each'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:43:in `each'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:43:in `block in <main>'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:42:in `each'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:42:in `<main>'

[07:39:40.393] Google Drive[Run Script] Processing complete

[07:39:40.394] Google Drive[Run Script] Passing output '' to Run Script

[07:39:40.394] Google Drive[Run Script] Passing output '' to Conditional

[07:39:40.395] Google Drive[Conditional] Processing complete

[07:39:40.395] Google Drive[Conditional] Passing output '' to Conditional

[07:39:40.395] Google Drive[Conditional] Processing complete

[07:39:40.395] Google Drive[Conditional] Passing output '' to Post Notification

 

6. :gdlaunchd uninstall and install. Notification Cache rebuilt below came up but I get same "no cache error" when gd file.

image.png.79d4ec293c49bc92116352afedecd9bb.png 

 

here's the debugger result

 

[07:23:27.803] Google Drive[Script Filter] Queuing argument ''

[07:23:27.870] Google Drive[Script Filter] Script with argv '' finished

[07:23:27.871] Google Drive[Script Filter] {"items": [

      {

        "title": "Remove Google Drive launchd service",

        "subtitle": "Stops periodically rebuilding the cache",

    "arg": "uninstall"

      }

    ]}

[07:23:29.799] Google Drive[Script Filter] Processing complete

[07:23:29.800] Google Drive[Script Filter] Passing output 'uninstall' to Run Script

[07:23:29.877] Google Drive[Run Script] Processing complete

[07:23:29.880] Google Drive[Run Script] Passing output '' to Conditional

[07:23:57.984] Google Drive[Script Filter] Queuing argument ''

[07:23:57.993] Google Drive[Script Filter] Script with argv '' finished

[07:23:57.993] Google Drive[Script Filter] {"items": [

      {

        "title": "Install Google Drive launchd service",

        "subtitle": "Periodically rebuilds the cache",

        "arg": "install"

      },

    ]}

[07:23:58.881] Google Drive[Script Filter] Processing complete

[07:23:58.886] Google Drive[Script Filter] Passing output 'install' to Run Script

[07:23:58.900] Google Drive[Run Script] Processing complete

[07:23:58.902] Google Drive[Run Script] Passing output 'BUILD_CACHE' to Conditional

[07:23:58.903] Google Drive[Conditional] Processing complete

[07:23:58.904] Google Drive[Conditional] Passing output 'BUILD_CACHE' to Run Script

[07:23:59.048] ERROR: Google Drive[Run Script] /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `open': Operation not permitted @ dir_initialize - /Volumes/GoogleDrive/.TemporaryItems (Errno::EPERM)

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `children'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `block (2 levels) in find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:48:in `catch'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:48:in `block in find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:43:in `each'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:43:in `find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/pathname.rb:565:in `find'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:43:in `each'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:43:in `each'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:43:in `block in <main>'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:42:in `each'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:42:in `<main>'

[07:23:59.059] Google Drive[Run Script] Processing complete

[07:23:59.061] Google Drive[Run Script] Passing output '' to Run Script

[07:23:59.061] Google Drive[Run Script] Passing output '' to Conditional

[07:23:59.062] Google Drive[Conditional] Processing complete

[07:23:59.063] Google Drive[Conditional] Passing output '' to Conditional

[07:23:59.065] Google Drive[Conditional] Processing complete

[07:23:59.066] Google Drive[Conditional] Passing output '' to Post Notification

[07:23:59.124] Google Drive[External] Processing complete

[07:23:59.135] Google Drive[External] Passing output '' to Arg and Vars

[07:23:59.136] Google Drive[Arg and Vars] Processing complete

[07:23:59.138] Google Drive[Arg and Vars] Passing output '' to Run Script

[07:23:59.325] ERROR: Google Drive[Run Script] /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `open': Operation not permitted @ dir_initialize - /Volumes/GoogleDrive/.TemporaryItems (Errno::EPERM)

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `children'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `block (2 levels) in find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:48:in `catch'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:48:in `block in find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:43:in `each'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:43:in `find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/pathname.rb:565:in `find'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:43:in `each'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:43:in `each'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:43:in `block in <main>'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:42:in `each'

from /Users/alvin/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.115FA0E4-3516-4EBB-84F2-1F9A61C7C27E/rebuild_cache:42:in `<main>'

[07:23:59.330] Google Drive[Run Script] Processing complete

[07:23:59.335] Google Drive[Run Script] Passing output '' to Run Script

[07:23:59.336] Google Drive[Run Script] Passing output '' to Conditional

[07:23:59.337] Google Drive[Conditional] Processing complete

[07:23:59.338] Google Drive[Conditional] Passing output '' to Conditional

 

7. ran !gddiagnostic and here's the debugger output

 

[07:44:27.530] Google Drive[Keyword] Processing complete

[07:44:27.531] Google Drive[Keyword] Passing output '' to Run Script

[07:47:28.853] STDERR: Google Drive[Run Script] du: /Volumes/GoogleDrive/.TemporaryItems: Operation not permitted

du: /Volumes/GoogleDrive/.Trashes: Operation not permitted

find: /Volumes/GoogleDrive/.TemporaryItems: Operation not permitted

find: /Volumes/GoogleDrive/.Trashes: Operation not permitted

[07:47:28.861] Google Drive[Run Script] Processing complete

[07:47:28.862] Google Drive[Run Script] Passing output '### Workflow version

2022.7

 

### Alfred version

4.6.3

 

### macOS version

12.2.1

 

### Workflow environment variables

Dict {

    ignore_list =

    result_limit = 50

    google_drive_path = /Volumes/GoogleDrive

}

 

### Google drive paths

Exists: /Volumes/GoogleDrive

121M

72389 paths

 

### Cache dir

tmp.db

 

### Cache file

Does NOT exist

 

### Temporary cache

16777232 5344883 -rw-r--r-- 1 alvin staff 0 8192 "Feb 24 07:39:40 2022" "Feb 24 07:39:40 2022" "Feb 24 07:39:40 2022" "Feb 24 07:39:40 2022" 4096 16 0 /Users/alvin/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.alfredapp.googledrive/tmp.db

 

### Build progress

NOT running

 

### Launchd job

Loaded: - 0 com.alfredapp.launchd.googledrivecache

Installed

' to Copy to Clipboard

[07:47:28.869] Google Drive[Copy to Clipboard] Processing complete

[07:47:28.869] Google Drive[Copy to Clipboard] Passing output '### Workflow version

2022.7

 

### Alfred version

4.6.3

 

### macOS version

12.2.1

 

### Workflow environment variables

Dict {

    ignore_list =

    result_limit = 50

    google_drive_path = /Volumes/GoogleDrive

}

 

### Google drive paths

Exists: /Volumes/GoogleDrive

121M

72389 paths

 

### Cache dir

tmp.db

 

### Cache file

Does NOT exist

 

### Temporary cache

16777232 5344883 -rw-r--r-- 1 alvin staff 0 8192 "Feb 24 07:39:40 2022" "Feb 24 07:39:40 2022" "Feb 24 07:39:40 2022" "Feb 24 07:39:40 2022" 4096 16 0 /Users/alvin/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.alfredapp.googledrive/tmp.db

 

### Build progress

NOT running

 

### Launchd job

Loaded: - 0 com.alfredapp.launchd.googledrivecache

Installed

' to Post Notification

[07:47:28.871] Google Drive[Post Notification] Processing complete

[07:47:28.871] Google Drive[Post Notification] Passing output '### Workflow version

2022.7

 

### Alfred version

4.6.3

 

### macOS version

12.2.1

 

### Workflow environment variables

Dict {

    ignore_list =

    result_limit = 50

    google_drive_path = /Volumes/GoogleDrive

}

 

### Google drive paths

Exists: /Volumes/GoogleDrive

121M

72389 paths

 

### Cache dir

tmp.db

 

### Cache file

Does NOT exist

 

### Temporary cache

16777232 5344883 -rw-r--r-- 1 alvin staff 0 8192 "Feb 24 07:39:40 2022" "Feb 24 07:39:40 2022" "Feb 24 07:39:40 2022" "Feb 24 07:39:40 2022" 4096 16 0 /Users/alvin/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.alfredapp.googledrive/tmp.db

 

### Build progress

NOT running

 

### Launchd job

Loaded: - 0 com.alfredapp.launchd.googledrivecache

Installed

' to Play Sound

 

 

I hope all these collected steps and corresponding output gives you some better clues on where the issue might be to help me troubleshoot this. 

I like your work and am keen to be able to use it. 

I appreciate your contribution on this.

 

Thanks very much for stepping to assist. 

Link to comment

Hello, all. Having an issue that I don't think has been addressed directly in this thread. By way of background, I had @vitor's script working perfectly on a 2020 Intel MBP running MacOS 12.2.1 just last week with two Google Drive accounts.. 

 

This week I was upgraded to a M1 MBA and attempted to reinstall and index my two Google Drive accounts. One is personal ( /Volumes/GoogleDrive/ ) and the other is a Workplace ( /Volumes/GoogleDrive-102144131136212697629) Both are streamed, not mirrored.

 

If I edit google_drive_path for just the personal drive ( /Volumes/GoogleDrive/ ) it indexes and works like a champ. But whenever I include or attempt to index the Workplace drive, midway through the indexing it crashes my Mac -- black screen, completely frozen, forces a hard reboot. I've tried it with both drives and JUST indexing the Workplace drive -- no matter what happens, after about five minutes of indexing, black screen, crash, reboot.

 

I followed posts 1 and 2 of this thread exactly. I'm not sure if posting !gddiagnostic logs will help, but I'll include it. 

 

### Workflow version
2022.7

### Alfred version
4.6.3

### macOS version
12.2.1

### Workflow environment variables
Dict {
    ignore_list = 
    result_limit = 50
    google_drive_path = /Volumes/GoogleDrive
}

### Google drive paths
Exists: /Volumes/GoogleDrive
129M
67829 paths

### Cache dir
cache.db

### Cache file
16777233 3292858 -rw-r--r-- 1 dustingm staff 0 11718656 "Feb 25 21:18:55 2022" "Feb 25 21:18:55 2022" "Feb 25 21:18:55 2022" "Feb 25 21:11:11 2022" 4096 24704 0 /Users/dustingm/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.alfredapp.googledrive/cache.db

### Temporary cache
Does NOT exist

### Build progress
NOT running

### Launchd job
Loaded: -	0	com.alfredapp.launchd.googledrivecache
Installed

 

Not sure what the issue is with the Workplace drive, or if it's something with the M1 machine, but if I had a choice that's the one I'd prefer be indexed, so... help?

 

Many thanks to all in this thread, and to Vitor for making the script. It has been an invaluable resource.

Edited by dustingm
Link to comment

@vitor Well, it's definitely DIFFERENT. Instead of crashing my M1 MBA and going to a black screen, it froze for about 15 seconds, booted me out of both of my Google accounts (in all applications!), and then put Finder into a continual crash/reboot loop until I rebooted and uninstalled the workflow. So... progress?

 

To answer your first question, yes -- this happens when I include the Workplace drive ( /Volumes/GoogleDrive-102144131136212697629 ) in ANY combination of the scan -- I've tested it alone, and in conjunction with /Volumes/GoogleDrive, the personal drive. If I scan JUST the personal drive it works great.

Link to comment

Whatever it is, if it’s causing a kernel panic it has to be a bug in Google Drive since it uses a kernel extension. I find several reports online of it causing kernel panics for others reasons.

 

The Workflow essentially lists files in directories and saves them to a cache for faster retrieval, it’s not doing anything which should be able to cause a crash on its own.

 

But if it has stumbled on the condition to trigger the bug, finding what that is would be useful to go around it and/or report it to Google.

 

The Workflow has thousands of downloads and I know multiple people use it for shared drives (common question) and this is only the second report. Both happening with shared drives may narrow it down. We need to figure out what specifically about your shared drives is atypical.

 

I don’t use Google Drive, so I’ll need clues. Why does your shared drive have that specific path? Usually people seem to have them all under /Volumes/GoogleDrive.

 

Do you have a GitHub account? I may need to ask for output of specific commands and IPBoard isn’t great for sharing large blocks of code. A GitHub issue would work better.

Link to comment
25 minutes ago, vitor said:

I don’t use Google Drive, so I’ll need clues. Why does your shared drive have that specific path? Usually people seem to have them all under /Volumes/GoogleDrive.

 

Couldn't tell you! I work in higher education so the Workspace drive is tied to my institution's Google Workspace. Might have something to do with that? Strange that the Workspace drive was working on an Intel MBA (with a similar path) and not the M1 though. The only other variable is that on the M1 my institution pre-installed antivirus software that wasn't present on the Intel machine. 

 

I'll see about filing a bug report in GitHub - I do have an account.

Link to comment

Update:

  • Add delay on scheduled runs, in case Google Drive path exists but is being mounted.
  • Better skipping of unexistent paths.
  • Replace External Trigger for launchd with Inbound Configuration.
  • Simplified :gdlaunchd installation internally.
  • Added machine architecture type to diagnostics.

Link to comment

[Vitor- Thanks for your fantastically quick response and I'm sorry I posted in the wrong place. I took the steps you recommended and here is my update.]

 

I was using it on my old (Intel) Mac and it was great. The issue I'm having now is that the install and the rebuild cache all return notifications that the cache is rebuilt, but when I go to do a search I get the 'No cache found!' error. I am on v2022.8. 

 

I've tried adding, reinstalling both Alfred and Google Drive. I've also restarted the indexing process. I see the error below in the logs, and also the output of gddiagnostics. What would you recommend?

 

//gdiagnostic

### Workflow version

2022.8

 

### Alfred version

4.6.3

 

### macOS version

12.2.1

 

### Architecture

arm64

### Workflow environment variables

Dict {

    ignore_list =

    result_limit = 50

    google_drive_path = /Volumes/GoogleDrive

}

 

### Google drive paths

Exists: /Volumes/GoogleDrive

152M

100834 paths

 

### Cache dir

tmp.db

 

### Cache file

Does NOT exist

 

### Temporary cache

16777230 2715670 -rw-r--r-- 1 acowan staff 0 8192 "Mar  6 15:56:11 2022" "Mar  6 15:56:11 2022" "Mar  6 15:56:11 2022" "Mar  6 15:56:11 2022" 4096 16 0 /Users/acowan/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.alfredapp.googledrive/tmp.db

 

### Build progress

NOT running

 

### Launchd job

Loaded: - 0 com.alfredapp.launchd.googledrivecache

Installed

 

 

 

//Error From Logs

[15:41:33.599] ERROR: Google Drive[Run Script] /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `open': Operation not permitted @ dir_initialize - /Volumes/GoogleDrive/.TemporaryItems (Errno::EPERM)

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `children'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `block (2 levels) in find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:48:in `catch'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:48:in `block in find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:43:in `each'

Edited by cowansf
test
Link to comment

Hi Vitor- I am 98.1% sure that I did, but I just tried it again and it errored in (I think) the same way. 

 

 

//Logs

[15:18:30.709] Logging Started...

[15:18:43.211] Google Drive[Keyword] Processing complete

[15:18:43.215] Google Drive[Keyword] Passing output '' to Run Script

[15:18:43.470] ERROR: Google Drive[Run Script] /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `open': Operation not permitted @ dir_initialize - /Volumes/GoogleDrive/.TemporaryItems (Errno::EPERM)

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `children'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `block (2 levels) in find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:48:in `catch'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:48:in `block in find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:43:in `each'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:43:in `find'

from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/pathname.rb:565:in `find'

from /Users/acowan/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A5F5ECA7-61D7-48D8-9413-5CEDB53F01F5/rebuild_cache:43:in `each'

from /Users/acowan/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A5F5ECA7-61D7-48D8-9413-5CEDB53F01F5/rebuild_cache:43:in `each'

from /Users/acowan/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A5F5ECA7-61D7-48D8-9413-5CEDB53F01F5/rebuild_cache:43:in `block in <main>'

from /Users/acowan/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A5F5ECA7-61D7-48D8-9413-5CEDB53F01F5/rebuild_cache:42:in `each'

from /Users/acowan/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A5F5ECA7-61D7-48D8-9413-5CEDB53F01F5/rebuild_cache:42:in `<main>'

[15:18:43.477] Google Drive[Run Script] Processing complete

[15:18:43.477] Google Drive[Run Script] Passing output '' to Run Script

[15:18:43.477] Google Drive[Run Script] Passing output '' to Conditional

[15:18:43.478] Google Drive[Conditional] Processing complete

[15:18:43.478] Google Drive[Conditional] Passing output '' to Conditional

[15:18:43.478] Google Drive[Conditional] Processing complete

[15:18:43.478] Google Drive[Conditional] Passing output '' to Post Notification

Link to comment

Hi all,

 

It looks like I am experiencing a "No cache found!" error, similar to @cowansf.

 

Logs:

 

[22:37:32.728] Google Drive[Keyword] Processing complete
[22:37:32.729] Google Drive[Keyword] Passing output '' to Run Script
[22:37:33.033] ERROR: Google Drive[Run Script] /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `open': Operation not permitted @ dir_initialize - /Volumes/GoogleDrive/.TemporaryItems (Errno::EPERM)
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `children'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:58:in `block (2 levels) in find'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:48:in `catch'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:48:in `block in find'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:43:in `each'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/find.rb:43:in `find'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/pathname.rb:565:in `find'
	from /Users/username/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.BABCB763-E260-41CD-9FFF-50736F6B755A/rebuild_cache:43:in `each'
	from /Users/username/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.BABCB763-E260-41CD-9FFF-50736F6B755A/rebuild_cache:43:in `each'
	from /Users/username/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.BABCB763-E260-41CD-9FFF-50736F6B755A/rebuild_cache:43:in `block in <main>'
	from /Users/username/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.BABCB763-E260-41CD-9FFF-50736F6B755A/rebuild_cache:42:in `each'
	from /Users/username/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.BABCB763-E260-41CD-9FFF-50736F6B755A/rebuild_cache:42:in `<main>'
[22:37:33.043] Google Drive[Run Script] Processing complete
[22:37:33.043] Google Drive[Run Script] Passing output '' to Run Script
[22:37:33.044] Google Drive[Run Script] Passing output '' to Conditional
[22:37:33.045] Google Drive[Conditional] Processing complete
[22:37:33.045] Google Drive[Conditional] Passing output '' to Conditional
[22:37:33.046] Google Drive[Conditional] Processing complete
[22:37:33.046] Google Drive[Conditional] Passing output '' to Post Notification

 

[23:05:39.627] STDERR: Google Drive[Run Script] du: /Volumes/GoogleDrive/.TemporaryItems: Operation not permitted
du: /Volumes/GoogleDrive/.Trashes: Operation not permitted
find: /Volumes/GoogleDrive/.TemporaryItems: Operation not permitted
find: /Volumes/GoogleDrive/.Trashes: Operation not permitted
[23:05:39.634] Google Drive[Run Script] Processing complete
[23:05:39.635] Google Drive[Run Script] Passing output '### Workflow version
2022.8

### Alfred version
4.6.3

### macOS version
12.2.1

### Architecture
i386
### Workflow environment variables
Dict {
    ignore_list = 
    result_limit = 50
    google_drive_path = /Volumes/GoogleDrive
}

### Google drive paths
Exists: /Volumes/GoogleDrive
103M
49513 paths

### Cache dir
tmp.db

### Cache file
Does NOT exist

### Temporary cache
16777220 74594051 -rw-r--r-- 1 username staff 0 8192 "Mar  9 22:37:32 2022" "Mar  9 22:37:32 2022" "Mar  9 22:37:32 2022" "Mar  9 22:37:32 2022" 4096 16 0 /Users/username/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.alfredapp.googledrive/tmp.db

### Build progress
NOT running

### Launchd job
NOT loaded
NOT installed
' to Copy to Clipboard
[23:05:39.637] Google Drive[Copy to Clipboard] Processing complete
[23:05:39.639] Google Drive[Copy to Clipboard] Passing output '### Workflow version
2022.8

### Alfred version
4.6.3

### macOS version
12.2.1

### Architecture
i386
### Workflow environment variables
Dict {
    ignore_list = 
    result_limit = 50
    google_drive_path = /Volumes/GoogleDrive
}

### Google drive paths
Exists: /Volumes/GoogleDrive
103M
49513 paths

### Cache dir
tmp.db

### Cache file
Does NOT exist

### Temporary cache
16777220 74594051 -rw-r--r-- 1 username staff 0 8192 "Mar  9 22:37:32 2022" "Mar  9 22:37:32 2022" "Mar  9 22:37:32 2022" "Mar  9 22:37:32 2022" 4096 16 0 /Users/username/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.alfredapp.googledrive/tmp.db

### Build progress
NOT running

### Launchd job
NOT loaded
NOT installed
' to Post Notification
[23:05:39.646] Google Drive[Post Notification] Processing complete
[23:05:39.648] Google Drive[Post Notification] Passing output '### Workflow version
2022.8

### Alfred version
4.6.3

### macOS version
12.2.1

### Architecture
i386
### Workflow environment variables
Dict {
    ignore_list = 
    result_limit = 50
    google_drive_path = /Volumes/GoogleDrive
}

### Google drive paths
Exists: /Volumes/GoogleDrive
103M
49513 paths

### Cache dir
tmp.db

### Cache file
Does NOT exist

### Temporary cache
16777220 74594051 -rw-r--r-- 1 username staff 0 8192 "Mar  9 22:37:32 2022" "Mar  9 22:37:32 2022" "Mar  9 22:37:32 2022" "Mar  9 22:37:32 2022" 4096 16 0 /Users/username/Library/Caches/com.runningwithcrayons.Alfred/Workflow Data/com.alfredapp.googledrive/tmp.db

### Build progress
NOT running

### Launchd job
NOT loaded
NOT installed
' to Play Sound
[23:05:46.649] Google Drive[Script Filter] Queuing argument 'e'
[23:05:47.068] Google Drive[Script Filter] Script with argv 'e' finished
[23:05:47.077] Google Drive[Script Filter] {"items":[{"title":"No cache found!","subtitle":"Run either :gdlaunchd or :gdrebuildcache. Consult the “About this Workflow” section.","valid":false}]}

 

Any suggestions or insights would be much appreciated.

Link to comment
  • 2 weeks later...

I'm having issues with the latest version as well on Monterey (Intel).

 

After running :gdrebuildcache it returns almost instantaneously and logs show no errors:

 

[11:57:49.266] Google Drive[Keyword] Processing complete
[11:57:49.267] Google Drive[Keyword] Passing output '' to Run Script
[11:57:49.486] Google Drive[Run Script] Processing complete
[11:57:49.488] Google Drive[Run Script] Passing output '' to Run Script
[11:57:49.489] Google Drive[Run Script] Passing output '' to Conditional
[11:57:49.489] Google Drive[Conditional] Processing complete
[11:57:49.490] Google Drive[Conditional] Passing output '' to Conditional
[11:57:49.490] Google Drive[Conditional] Processing complete
[11:57:49.491] Google Drive[Conditional] Passing output '' to Post Notification

 

When running !gddiagnostic, I see this in the log:

 

[11:58:16.411] STDERR: Google Drive[Run Script] find: /Volumes/GoogleDrive: Operation not permitted

 

What's pasted in the clipboard doesn't really provide any information - the cache file is empty.

Link to comment

Welcome @John H,

 

4 minutes ago, John H said:

What's pasted in the clipboard doesn't really provide any information - the cache file is empty.

 

It doesn’t matter that the cache file is empty, the diagnostics provides information to try to figure out why that is. You need to provide all requested information for me to be able to help.

 

In addition, I’ll need the output of ls /Volumes/GoogleDrive (in a terminal).

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...