Action Collection Error after updating to 2023.1

Discuss any issues you may run across installing, moving, upgrading, or uninstalling Indigo.
vvrangler
Posts: 39
Joined: Mon Sep 01, 2014 11:50 am

Action Collection Error after updating to 2023.1

Post by vvrangler »

After installing version 2023.1 I am receiving the following error over and over in the log file.

And after some time indigo client crashes and I have to restart it to get the main window back.

Action Collection Error shortcut_list: failed to get shortcut list: 'Error: The operation couldn’t be completed. No such file or directory
'
Action Collection Error shortcut_list: failed to get shortcut list: 'Error: The operation couldn’t be completed. No such file or directory
'
Action Collection Error shortcut_list: failed to get shortcut list: 'Error: The operation couldn’t be completed. No such file or directory
'

User avatar
DaveL17
Posts: 6845
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: Action Collection Error after updating to 2023.1

Post by DaveL17 »

The built-in Action Collection plugin is attempting to build a list of all the Apple Shortcuts on your machine to populate a list that's presented in the Run Apple Shortcut action under Server Actions. It's trying to find them here:

Code: Select all

/Users/USERNAME/Library/Shortcuts
Take a look at the following file to see if there are any clues to what's causing the problem. Please post everything in that log between the repeating messages you see in the Event Log (making sure to remove anything sensitive).

Code: Select all

/Library/Application Support/Perceptive Automation/Indigo 2023.1/Logs/indigoplugin.ActionCollection/plugin.log
If you're uncomfortable posting this information to the forums, please send it to support AT indigodomo.com referencing this forum post and include your MacOS version as well.
I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]
User avatar
jay (support)
Site Admin
Posts: 18351
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Action Collection Error after updating to 2023.1

Post by jay (support) »

While running under the same user account on your Mac as the Indigo Server, open a terminal window and paste in the following, one line at a time:

Code: Select all

file /usr/bin/shortcuts
/usr/bin/shortcuts list
Copy/paste the results in a reply. Also, please reply with the version of macOS that you are running.

The error you posted is because the above shell command is returning that error (Error: The operation couldn’t be completed. No such file or directory), which seems to indicate that shortcuts aren't available on your Mac. The plugin attempts to detect this and we've tested on a variety of macOS versions, but apparently in your environment it appears that the shortcuts app is available but when trying to get the list it's failing. Very odd...
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
User avatar
jay (support)
Site Admin
Posts: 18351
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Action Collection Error after updating to 2023.1

Post by jay (support) »

Ok, I think I found the bug: if you don't have any shortcuts on your Mac then you probably get that error. Just create a shortcut (doesn't really need to do anything) and that should solve the error. We'll fix it appropriately in the next release.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
vvrangler
Posts: 39
Joined: Mon Sep 01, 2014 11:50 am

Re: Action Collection Error after updating to 2023.1

Post by vvrangler »

Thanks for the quick response, you were right, it was the shortcuts, as soon as I opened the Shortcuts app on the Mac the error stopped.

Thanks again everyone!
Londonmark
Posts: 513
Joined: Wed Feb 29, 2012 12:57 pm

Re: Action Collection Error after updating to 2023.1

Post by Londonmark »

I've updated to Sonoma so appreciate I may not get much sympathy! Everything seems to be working except that I am seeing this:

Action Collection Error Error in plugin execution runConcurrentThread:

File "plugin.py", line 1273, in runConcurrentThread
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 503, in run
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1149, in communicate
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 2001, in _communicate
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1193, in _check_timeout
type: Command '['/usr/bin/shortcuts', 'list']' timed out after 5 seconds

Action Collection Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Not sure what's prompting it.
User avatar
DaveL17
Posts: 6845
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: Action Collection Error after updating to 2023.1

Post by DaveL17 »

Most likely, it's because you don't have any Apple Shortcuts defined on that machine. If you create a Shortcut (it doesn't have to do anything), that should silence the error. This is a temporary condition, and the next update to Indigo should address the error.
I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]
User avatar
jay (support)
Site Admin
Posts: 18351
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Action Collection Error after updating to 2023.1

Post by jay (support) »

If you do have shortcuts, how many do you have? This error is slightly different than the other - the shell command that we have to use to get the shortcuts list is not completing within 5 seconds. That seems quite odd/unusual to me. I wonder if a reboot will fix the problem (maybe there's a Shortcuts app issue)?
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Londonmark
Posts: 513
Joined: Wed Feb 29, 2012 12:57 pm

Re: Action Collection Error after updating to 2023.1

Post by Londonmark »

Thanks Jay. It seems to have resolved itself without me doing anything at all. I have lots of shortcuts but can't identify any that were causing problems. Anyway - no more red text, so all good for now.
User avatar
jay (support)
Site Admin
Posts: 18351
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Action Collection Error after updating to 2023.1

Post by jay (support) »

Fixed in Indigo 2023.1.1, available now.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
fmullerindigo
Posts: 1
Joined: Tue Jan 15, 2019 9:55 pm

Re: Action Collection Error after updating to 2023.1

Post by fmullerindigo »

I upgraded to 2023.1.1, added some dummy shortcuts and am still getting the issue.
Can you let me know what log data I should send?
Thanks, Fred
User avatar
matt (support)
Site Admin
Posts: 21453
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Action Collection Error after updating to 2023.1

Post by matt (support) »

Double check that Indigo 2023.1.1 is the version of both client and server that are running by choosing the Indigo->About Indigo menu item.
Image
ericwass
Posts: 54
Joined: Wed Feb 10, 2010 1:36 am

Re: Action Collection Error after updating to 2023.1

Post by ericwass »

Having a very similar issue and have tried all the troubleshooting steps above. I'm running 2023.1.1 (both server and client) and my Event Log is full of the following error:
"Timeout error getting shortcut list: this likely indicates that there is something going wrong on with your Mac. If it persists, you may need to restart."

I have many shortcuts on this Mac (which is used exclusively for Indigo and Security Spy) and they work. I even leave the Shortcuts app open.
Needless to say I have restarted. Nothing seems to help. Any thoughts?
Londonmark
Posts: 513
Joined: Wed Feb 29, 2012 12:57 pm

Re: Action Collection Error after updating to 2023.1

Post by Londonmark »

Getting the same. Also have lots of shortcuts.
User avatar
jay (support)
Site Admin
Posts: 18351
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Action Collection Error after updating to 2023.1

Post by jay (support) »

How many shortcuts do each of you have?

Can one of you do this:

1) Open a terminal window and paste in the following command:

Code: Select all

/usr/local/bin/indigo-restart-plugin -d com.perceptiveautomation.indigoplugin.ActionCollection
Note, this will likely cause an extra terminal window to open (depending on your Plugin debugging settings), you can just ignore that.

2) Look in your Event Log window for the error that you reported above - there should be a debug line starting with Exact exception info just after it with more specific error information

3) Once you see that, switch back to the terminal and paste in this (so your event log doesn't get flooded any further):

Code: Select all

/usr/local/bin/indigo-restart-plugin com.perceptiveautomation.indigoplugin.ActionCollection
4) Copy/paste in the log line that starts with Exact exception info into Code tags in a reply.

That should tell us what we need to know. I suspect that you guys have so many shortcuts that it's just taking a long time to get and process the list, but this will confirm it.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Post Reply

Return to “Installing/Moving/Upgrading/Uninstalling Questions”