View unanswered posts | View active topics It is currently Wed Jun 19, 2013 5:15 pm



Reply to topic  [ 5 posts ] 
 Prism problem on new computer 
Author Message

Joined: Mar 14, 2007
Posts: 10
Location: Erie, CO
Post Prism problem on new computer
I've moved Indigo to a new computer and can't seem to connect via Prism. Indigo was freshly installed and the support files were moved from the old computer. I've followed the forum recommendations concerning permissions with these results (copied from Terminal):

Code: Select all
Last login: Fri Apr  2 11:31:38 on console
mini-TV:~ greg$ cd /Library/Application\ Support/Perceptive\ Automation/
mini-TV:Perceptive Automation greg$
mini-TV:Perceptive Automation greg$ cd Indigo\ 4/Preferences/PrismReflector
mini-TV:PrismReflector greg$ ls -al
total 24
drwxr-x---  5 greg  greg  170 Feb 20  2009 .
drwxr-xr-x  6 greg  greg  204 Apr 10 08:02 ..
-rw-------  1 greg  greg  883 Feb 20  2009 id_rsa
-rw-rw----  1 greg  greg  233 Feb 20  2009 id_rsa.pub
-rw-rw----  1 greg  greg  989 Feb 20  2009 ssh_config
mini-TV:PrismReflector greg$ chmod ugo-x *
mini-TV:PrismReflector greg$ chmod o-rwx *
mini-TV:PrismReflector greg$ chmod g-rw id_rsa
mini-TV:PrismReflector greg$ ls -al
total 24
drwxr-x---  5 greg  greg  170 Feb 20  2009 .
drwxr-xr-x  6 greg  greg  204 Apr 10 08:02 ..
-rw-------  1 greg  greg  883 Feb 20  2009 id_rsa
-rw-rw----  1 greg  greg  233 Feb 20  2009 id_rsa.pub
-rw-rw----  1 greg  greg  989 Feb 20  2009 ssh_config
mini-TV:PrismReflector greg$ id
uid=501(greg) gid=501(greg) groups=501(greg),31(boinc_master),32(boinc_project),204(_developer),100(_lpoperator),98(_lpadmin),80(admin),61(localaccounts),12(everyone)
mini-TV:PrismReflector greg$


Code: Select all
Last login: Sat Apr 10 16:09:47 on ttys000
mini-TV:~ greg$ cd /Library/Application\ Support/Perceptive\ Automation
mini-TV:Perceptive Automation greg$ cd Indigo\ 4/IndigoServer.app/Contents/PlugIns
mini-TV:PlugIns greg$ ps -axww | grep "Indigo"
82448 ??         0:10.41 /Applications/Indigo 4.app/Contents/MacOS/Indigo 4 -psn_0_1286458
82478 ??         0:02.92 /Library/Application Support/Perceptive Automation/Indigo 4/IndigoServer.app/Contents/MacOS/IndigoServer
82479 ??         0:03.28 python /Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/IndigoWebServer.py -i1176 -w8000 -cfn
82483 ??         0:00.05 ssh -N -F/Library/Application Support/Perceptive Automation/Indigo 4/Preferences/PrismReflector/ssh_config -i/Library/Application Support/Perceptive Automation/Indigo 4/Preferences/PrismReflector/id_rsa -R1234:127.0.0.1:8000 prism@goprism.com
mini-TV:PlugIns greg$ ./prism_reflect.py -m geturl -d
- public key:
AAAAB3NzaC1yc2EAAAABIwAAAIEAs2PFMYC1SBO6cGp/BIHHpQUyq+xvtwY/L2X0ss0gOlDC/g92LbnA318RoLg09Nr3gnxlL3Ew7HCcXuSE4NmQuBvIE8t3oDFdKsFyl5RPZSl9um1SXvfQGpIGiLOtN9zR6wRiAMiHEPcyPEKW9sP7OkN2xtIBNVEeeV4Z/XoC6xc=

- querying server for active reflector from public key

- remote server response: https://gkielian.goprism.com

https://gkielian.goprism.com
mini-TV:PlugIns greg$ ./prism_reflect.py -m tunnel -d
- querying status via local request: http://127.0.0.1:8176/prismstatus

- urlopen error: [Errno socket error] [Errno 61] Connection refused

local server unreachable
mini-TV:PlugIns greg$ ps -axww | grep "Indigo"
82448 ??         0:12.74 /Applications/Indigo 4.app/Contents/MacOS/Indigo 4 -psn_0_1286458
82478 ??         0:03.34 /Library/Application Support/Perceptive Automation/Indigo 4/IndigoServer.app/Contents/MacOS/IndigoServer
82479 ??         0:03.77 python /Library/Application Support/Perceptive Automation/Indigo 4/IndigoWebServer/IndigoWebServer.py -i1176 -w8000 -cfn
82483 ??         0:00.06 ssh -N -F/Library/Application Support/Perceptive Automation/Indigo 4/Preferences/PrismReflector/ssh_config -i/Library/Application Support/Perceptive Automation/Indigo 4/Preferences/PrismReflector/id_rsa -R1234:127.0.0.1:8000 prism@goprism.com
82702 ttys001    0:00.00 grep Indigo
mini-TV:PlugIns greg$

The loopback connection appears to have been refused.

Restarting the Indigo Server produces this log:

Code: Select all
Apr 10, 2010 10:53:54 PM
  Starting Indigo Server version 4.1.7
  Loading attachments
  "device target attachment.scpt" script loaded
  "group target attachment.scpt" script loaded
  "growl attachment.scpt" script loaded
  "iTunes attachment.scpt" script loaded
  "scenes attachment.scpt" script loaded
  "time stamp attachment.scpt" script loaded
  Bonjour registered "Indigo - Kielian 2009-04-21"
  Indigo Cocoa client authenticated
  WebServer client authenticated
  WebServer          started on port 8000 -- digest authentication enabled
  WebServer          loaded plugin "Mini View by seaofclouds"
  WebServer          enabled browser access to plugin path "plugins/m/css"
  WebServer          enabled browser access to plugin path "plugins/m/images"

Apr 10, 2010 10:53:58 PM
  Connected to SmartHome PowerLinc USB E
  PowerLinc address 08.A3.92, firmware version 2.13
  PowerLinc standalone operation disabled
  Indigo directly controlling automation logic
  Reflector          starting reflector connection to https://gkielian.goprism.com


It's admittedly been some time since I've used Prism to access Indigo, even from the old computer, but it has worked in the past. If memory serves, the log entry for establishing the Reflector connection should contain a confirmation.

Any ideas?

Thanks.

_________________
Best,
Greg


Sat Apr 10, 2010 11:56 pm
Profile WWW
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11815
Location: Texas
Post Re: Prism problem on new computer
This definitely looks like a firewall issue. It is preventing access to Indigo's Web server. Try totally turning off the firewall to see if that helps. If it does, then turn it back on and stop and restart the Indigo Server (not just the Indigo client) to see if the OS prompts you to allow access to IndigoServer. If it doesn't, then you made need to manually add IndigoServer and Python to the firewall accepted app list.

_________________
Image


Sun Apr 11, 2010 7:46 am
Profile WWW

Joined: Mar 14, 2007
Posts: 10
Location: Erie, CO
Post Re: Prism problem on new computer
Turning off the OS X firewall has no effect. Neither does forwarding port 8176 on the router.

Here's my log from the new computer:
Code: Select all
Apr 11, 2010 9:11:55 AM
  Starting Indigo Server version 4.1.7
  Loading attachments
  "device target attachment.scpt" script loaded
  "group target attachment.scpt" script loaded
  "growl attachment.scpt" script loaded
  "iTunes attachment.scpt" script loaded
  "scenes attachment.scpt" script loaded
  "time stamp attachment.scpt" script loaded
  Bonjour registered "Indigo - Kielian 2009-04-21"
  Indigo Cocoa client authenticated
  WebServer client authenticated
  WebServer          started on port 8000 -- digest authentication enabled
  WebServer          loaded plugin "Mini View by seaofclouds"
  WebServer          enabled browser access to plugin path "plugins/m/css"
  WebServer          enabled browser access to plugin path "plugins/m/images"

Apr 11, 2010 9:11:59 AM
  Connected to SmartHome PowerLinc USB E
  PowerLinc address 08.A3.92, firmware version 2.13
  PowerLinc standalone operation disabled
  Indigo directly controlling automation logic
  Reflector          starting reflector connection to https://gkielian.goprism.com

Apr 11, 2010 9:13:01 AM
  Error              reflector connection test failed: unable to connect to server
  Error              reflector reconnection scheduled in 5 seconds
  Killing 89659 using SIGTERM
  Reflector          restarting reflector connection to https://gkielian.goprism.com

Apr 11, 2010 9:13:57 AM
  Error              reflector connection test failed: unable to connect to server
  Error              reflector reconnection scheduled in 2 minutes

Apr 11, 2010 9:15:57 AM
  Killing 89668 using SIGTERM
  Reflector          restarting reflector connection to https://gkielian.goprism.com

I then moved the PowerLinc back to my old computer, disabled the firewall, and still no Prism:
Code: Select all
Apr 11, 2010 12:00:58 PM
  Starting Indigo Server version 4.1.7
  Loading attachments
  "device target attachment.scpt" script loaded
  "group target attachment.scpt" script loaded
  "growl attachment.scpt" script loaded
  "iTunes attachment.scpt" script loaded
  "scenes attachment.scpt" script loaded
  "time stamp attachment.scpt" script loaded
  Bonjour registered "Indigo - Kielian 2009-04-21"
  Indigo Cocoa client authenticated
  WebServer client authenticated
  WebServer          started on port 8000 -- digest authentication enabled
  WebServer          loaded plugin "Mini View by seaofclouds"
  WebServer          enabled browser access to plugin path "plugins/m/css"
  WebServer          enabled browser access to plugin path "plugins/m/images"

Apr 11, 2010 12:01:01 PM
  Connected to SmartHome PowerLinc USB E
  PowerLinc address 08.A3.92, firmware version 2.13
  PowerLinc standalone operation disabled
  Indigo directly controlling automation logic
  Reflector          starting reflector connection to https://gkielian.goprism.com

_________________
Best,
Greg


Sun Apr 11, 2010 12:07 pm
Profile WWW
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11815
Location: Texas
Post Re: Prism problem on new computer
Inside Indigo's Start Local Server dialog, change the Web server (not Indigo Server) port number from 8000 to 8176. Next, re-do the Terminal steps you did in your original post and copy/paste the results. Those steps only work if the Web server is running on port 8176, so the results I saw there were misleading me into thinking it was a firewall problem.

_________________
Image


Sun Apr 11, 2010 12:29 pm
Profile WWW

Joined: Mar 14, 2007
Posts: 10
Location: Erie, CO
Post Re: Prism problem on new computer
Whenever the "Start Local Server" dialog appears, the "Override Web Server (HTTP) port number" box is NOT checked. After reading your suggestion, I first tried the following experiment:
- Stopped the server.
- Clicked "Start Local Server..." in "Server Connection Status" dialog.
- Checked the "Override Web Server..." box (leaving the default port of 8000)
- Clicked "Start Server"

Used my iPhone via 3G to connect via Prism and surprise! It worked!

Then, as a test, I repeated the above, with one exception. The "Override Web Server..." box was again NOT checked, and I left it that way.

I could still connect via Prism! Cool... It appears that the default port had somehow gotten whacked along the way (?).

I then turned the OS X firewall back on and all was still good. All of this was on my old computer.

I moved the PowerLinc back to the new computer, and started Indigo, Here's the log:
Code: Select all
Apr 11, 2010 12:57:51 PM
  Starting Indigo Server version 4.1.7
  Loading attachments
  "device target attachment.scpt" script loaded
  "group target attachment.scpt" script loaded
  "growl attachment.scpt" script loaded
  "iTunes attachment.scpt" script loaded
  "scenes attachment.scpt" script loaded
  "time stamp attachment.scpt" script loaded
  Bonjour registered "Indigo - Kielian 2009-04-21"

Apr 11, 2010 12:57:54 PM
  Connected to SmartHome PowerLinc USB E
  PowerLinc address 08.A3.92, firmware version 2.13
  PowerLinc standalone operation disabled
  Indigo directly controlling automation logic
  Error              failed to create reflector connection: local server unreachable
  Error              check your Firewall and Network configurations and try restarting the server
  Error              reflector reconnection scheduled in 15 minutes
  WebServer client authenticated
  WebServer          started on port 8000 -- digest authentication enabled
  WebServer          loaded plugin "Mini View by seaofclouds"
  WebServer          enabled browser access to plugin path "plugins/m/css"
  WebServer          enabled browser access to plugin path "plugins/m/images"

Apr 11, 2010 12:58:40 PM
  Indigo Cocoa client authenticated

The Reflector connection failed and my Indigo Touch indicated "Reflector Connection Down".

I repeated the procedure above (including reactivation of the OS X firewall) and all is now working on the new computer!

Please note that I did initially perform all the Terminal steps (as outlined in an earlier post to this thread) but I did NOT repeat them as you suggested. It does seem that an internal setting somehow got itself hosed along the way and then was carried to the new computer.

Thanks for all your help!

_________________
Best,
Greg


Sun Apr 11, 2010 1:10 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.