Problem with IndigoPluginHost - IPH

Posted on
Sat Nov 24, 2018 5:02 am
Lalit offline
Posts: 71
Joined: Jul 05, 2006
Location: Paris (France)

Problem with IndigoPluginHost - IPH

Hi,

I spent a lot of time reading on the forum and testing with the terminal but with no success.
I have Indigo 7.2 installed on a dedicated Mac Mini (2009 and 3GB RAM) running macOS 10.11.6 with a Aeotec Z-Stick Gen5.

I enabled SSH on the Mac Mini, I created an alias (indigohost) and I have no problem to login via SSH from the Terminal.

The problem is that I can only execute :
Code: Select all
indigohost --help
help.png
help.png (21.73 KiB) Viewed 2802 times

No very useful, but that proves: SSH is enabled, the alias is ok, IPH is working (almost)

My problem is each time I execute :
Code: Select all
indigohost -i
It freezes, nothing happen and after 120 seconds there is a timeout
timeout.png
timeout.png (108.71 KiB) Viewed 2802 times

The problem is the same if I execute an Indigo command:
log.png
log.png (4.28 KiB) Viewed 2802 times


What else can I do ?

Is it normal in Activity Monitor to have many instances of IPH?
activity.png
activity.png (30.84 KiB) Viewed 2802 times


Thanks for your help!

Posted on
Sat Nov 24, 2018 6:25 am
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Problem with IndigoPluginHost - IPH

Hello - be sure that you have followed the instructions that apply to your version of Indigo:

https://wiki.indigodomo.com/doku.php?id=indigo_7_documentation:plugin_scripting_tutorial#executing_indigo_commands_directly

And see if the information contained in this thread might help address the situation you're seeing (note in particular the post about the .bash_profile file):

https://forums.indigodomo.com/viewtopic.php?t=7229&f=18

I am able to follow those instructions and Indigo responded as expected.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Nov 24, 2018 6:48 am
Lalit offline
Posts: 71
Joined: Jul 05, 2006
Location: Paris (France)

Re: Problem with IndigoPluginHost - IPH

Thanks Dave for your help.

Of course, I've followed instructions on these pages but without success.

It's not a problem with the alias (.bashrc or .bash_profile) as I can execute
Code: Select all
indigohost --help
.

I also tried without the alias to execute something:
url.png
url.png (329.47 KiB) Viewed 2786 times
but it's always frozen!
frozen.png
frozen.png (58 KiB) Viewed 2786 times


Any thoughts?

Posted on
Sat Nov 24, 2018 9:47 am
DaveL17 offline
User avatar
Posts: 6753
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Problem with IndigoPluginHost - IPH

Hmm. I wonder if it might be a permissions issue. Does yours look like this?
Code: Select all
-rwxrwxr-x  1 username  admin  4135296 Sep 27 19:38 IndigoServer


You might try rerunning the Indigo installer and see if that fixes the issue. Beyond that, I'm not sure enough about the Indigo architecture to know if it's a signal that you can get '--help' but not '-i' .

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Nov 24, 2018 10:43 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Problem with IndigoPluginHost - IPH

does "indigohost -i" work on the Mac running Indigo Server (no ssh)? Or maybe you weren't trying to use ssh from a remote Mac?

The error means the Indigo Server isn't running. Is it for sure running on that Mac? IPH won't start the server; it will only connect to the server if it is already running.

Image

Posted on
Sun Nov 25, 2018 8:50 pm
Lalit offline
Posts: 71
Joined: Jul 05, 2006
Location: Paris (France)

Re: Problem with IndigoPluginHost - IPH

DaveL17 wrote:
Hmm. I wonder if it might be a permissions issue. .

That were my permissions before
before.png
before.png (8.61 KiB) Viewed 2682 times

Now after typed chmod 755 it's like that
after.png
after.png (6.17 KiB) Viewed 2682 times

DaveL17 wrote:
You might try rerunning the Indigo installer.

I tried rerunning the indigo, but nothing changed :(


matt (support) wrote:
does "indigohost -i" work on the Mac running Indigo Server (no ssh)? Or maybe you weren't trying to use ssh from a remote Mac?
No, it doesn't work from the Mac hosting Indigo Server and obviously not from the remote MBP via SSH (only "--help" command)

matt (support) wrote:
The error means the Indigo Server isn't running. Is it for sure running on that Mac? IPH won't start the server; it will only connect to the server if it is already running.
Yes, I can confirm that Indigo Server is running on my Mac Mini and I only use my MBP as a client. :(

My wish is to create with Shortcuts (using SSH) on my iPhone : 2 buttons to arm/disarm my alarm on the dashboard.

Posted on
Mon Nov 26, 2018 4:47 am
Lalit offline
Posts: 71
Joined: Jul 05, 2006
Location: Paris (France)

Re: Problem with IndigoPluginHost - IPH

Hi,

I forgot to specify that I can't run in Plugins > Open Scripting Shell
1.png
1.png (11.02 KiB) Viewed 2657 times
and after 2 minutes
2.png
2.png (23.75 KiB) Viewed 2657 times

Hope it helps

Posted on
Mon Nov 26, 2018 9:04 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Problem with IndigoPluginHost - IPH

There is either something wrong with your Indigo installation (unlikely since you've re-run the installer), or your macOS installation / configuration.

Did you perhaps install a custom version of python on it, or any related command-line or python libraries?

Do you have any 3rd party firewall software installed? If so, temporarily turn them totally off to see if that solves the problem.

Image

Posted on
Mon Nov 26, 2018 10:27 am
Lalit offline
Posts: 71
Joined: Jul 05, 2006
Location: Paris (France)

Re: Problem with IndigoPluginHost - IPH

matt (support) wrote:
Did you perhaps install a custom version of python on it, or any related command-line or python libraries?.
Absolutely not, I started to use Python via Indigo not long ago.
matt (support) wrote:
Do you have any 3rd party firewall software installed? If so, temporarily turn them totally off to see if that solves the problem.
No 3rd party firewall too. I also tried to disable the System's firewall but always the same problem.

Posted on
Mon Nov 26, 2018 10:31 am
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Problem with IndigoPluginHost - IPH

I just saw this, I very recently read online (somewhere) that the Shortcuts SSH command does not work the same as, well, SSH, relevantly involving aliases. I run into similar problems using the alias on Shortcuts SSH, but the full path is fine.

E.g. this works:
Code: Select all
"/Library/Application Support/Perceptive Automation/Indigo 7.2/IndigoPluginHost.app/Contents/MacOS/IndigoPluginHost" -e 'indigo.variable.updateValue("test_link", "Dictated Text")'


But this doesn’t work even though it works at home in a terminal window:
Code: Select all
indigohost -e indigo.variable.updateValue("test_link", "Dictated Text")


Oh, and I can ssh in using a terminal app and open the interactive shell with no problem too.

Posted on
Mon Nov 26, 2018 10:44 am
jay (support) offline
Site Admin
User avatar
Posts: 18219
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Problem with IndigoPluginHost - IPH

As Matt says, there is definitely something wrong with your installation. A misbehaving plugin might cause a problem like this, so try disabling all plugins and see if you can successfully open the scripting shell.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Nov 26, 2018 10:45 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Problem with IndigoPluginHost - IPH

Lalit:

If after trying Jay's suggestion it still doesn't work then choose the Plugins > Open Scripting Shell menu item and copy/paste the contents of Indigo's Event Log window into a reply.

Image

Posted on
Tue Nov 27, 2018 11:28 am
Lalit offline
Posts: 71
Joined: Jul 05, 2006
Location: Paris (France)

Re: Problem with IndigoPluginHost - IPH

mundmc wrote:
I just saw this, I very recently read online (somewhere) that the Shortcuts SSH command does not work the same as, well, SSH, relevantly involving aliases. I run into similar problems using the alias on Shortcuts SSH, but the full path is fine.
Thank you for your comment.

jay (support) wrote:
As Matt says, there is definitely something wrong with your installation. A misbehaving plugin might cause a problem like this, so try disabling all plugins and see if you can successfully open the scripting shell.
I tried to disable all the plugins and interfaces also, but it's the same thing.

matt (support) wrote:
If after trying Jay's suggestion it still doesn't work...
Thank you Matt and Jay for the support. I don't want to waste our time anymore. I'm gonna replace my very old MacMini (2009) with a 2014 model in a few days. I'll do a clean install and everything should work as supposed. I'll let you know ASAP.

Regards,

Lalit

Posted on
Fri Dec 07, 2018 6:45 pm
Lalit offline
Posts: 71
Joined: Jul 05, 2006
Location: Paris (France)

Re: Problem with IndigoPluginHost - IPH

Hi Matt and Jay,

As I wrote previously, now I have a Mac mini (2014).
I did a clean install (10.14) and it's crazy as I'm still having the same problem!

I found where the problem comes from.
If I start Indigo as Run client/server as single application, it works finally! I can run Open Scripting Shell

But if I select Start and connect to Indigo Server on this computer, it doesn't work, the shell is frozen.

start.png
start.png (508.82 KiB) Viewed 2498 times

I also tried to disable every options (port number, authentication...) and it's the same problem.

So what can I do now as I know where it comes from?

Thanks

Posted on
Sat Dec 08, 2018 11:51 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Problem with IndigoPluginHost - IPH

On the last UI checkbox, what port number are you overriding it to? Also what value are you using for the HTTP port override? If your Mac is behind a NAT router then sharing those on the forum should be safe (but you can email them to me if you aren't comfortable doing so).

And are you specifying that port number to indigohost (with -p argument) when calling it?

The menu item to open the scripting shell should automatically use your port override (but perhaps there is a bug there).

Image

Who is online

Users browsing this forum: No registered users and 2 guests