PrismReflector Disabled

Posted on
Fri Dec 30, 2011 9:35 am
gisplatin offline
Posts: 35
Joined: Jul 15, 2011

PrismReflector Disabled

I finally upgraded from my old PPC MacMini with iNTEL Core 2 Duo processor.

Indigo is running fine on the new computer - I can access it from the local network, and from 3G, but I can't use Prism, as I did before.

Here's my event log:


Dec 30, 2011 10:14:10 AM
Starting Indigo Server version 4.1.19
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 - 177_Mitchell_Indigo_V4"
Error failed to create reflector connection: [Errno 1] Operation not permitted: '/Library/Application Support/Perceptive Automation/Indigo 4/Preferences/PrismReflector/id_rsa.pub'
Error reflector reconnection scheduled in 15 minutes
Indigo Cocoa client authenticated
WebServer client authenticated
WebServer client authenticated
WebServer started on port 8176 -- digest authentication enabled

Dec 30, 2011 10:14:14 AM
Connected to PowerLinc 2413U interface
PowerLinc address 14.84.07, firmware version 9.2

Dec 30, 2011 10:17:10 AM
WebServer Indigo Touch client connected from 166.137.139.156

Dec 30, 2011 10:19:39 AM
WebServer Indigo Touch client connected from 166.137.139.156


How can I correct the PrismReflector error that I'm getting now?

Posted on
Fri Dec 30, 2011 10:29 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: PrismReflector Disabled

The permissions (or file owner) on one of the reflector key files is no longer correct. Do this:

1) Launch the Terminal application (inside /Applications/Utilities/)

2) Copy/paste the following line into Terminal. You will be prompted for your OS X admin account password, which needs to be entered so that all the steps complete successfully.

Code: Select all
id
sudo bash

3) Copy/paste each line below *individually* and hit the return key after each one:

Code: Select all
cd /Library/Application\ Support/Perceptive\ Automation/
cd Indigo\ 5/Preferences/PrismReflector
ls -al
chmod ugo-x *
chmod o-rwx *
chmod g-rw id_rsa
ls -al
id

4) Select all and Copy/Paste the entire contents of the Terminal window into a forum reply (or email) to me.

The above step will help fix the file permissions, but we probably also need to change the file owner. Once I have the results from the above I can give you the Terminal commands to fix that as well.

Image

Posted on
Fri Dec 30, 2011 10:54 am
gisplatin offline
Posts: 35
Joined: Jul 15, 2011

Re: PrismReflector Disabled

The terminal window is below ... I noticed you had a "5" for version 5 of Indigo, but I haven't upgraded yet, so I changed that to "4'...


Last login: Fri Dec 30 10:14:08 on console
jimserv2:~ jimserv2$ id
uid=502(jimserv2) gid=20(staff) groups=20(staff),...
jimserv2:~ jimserv2$ sudo bash
Password:
bash-3.2# cd /Library/Application\ Support/Perceptive\ Automation/
bash-3.2# cd Indigo\ 4/Preferences/PrismReflector
bash-3.2# ls -al
total 40
drwxrwx--- 6 501 admin 204 Dec 30 01:40 .
drwxrwxr-x 6 root admin 204 Dec 30 10:42 ..
-rw-r-----@ 1 jimserv2 admin 6148 Dec 30 01:40 .DS_Store
-rw-------+ 1 501 admin 883 Oct 2 2010 id_rsa
-rw-rw---- 1 501 admin 233 Oct 2 2010 id_rsa.pub
-rw-rw---- 1 jimserv2 admin 989 Oct 2 2010 ssh_config
bash-3.2# chmod ugo-x *
bash-3.2# chmod o-rwx *
bash-3.2# chmod g-rw id_rso
chmod: id_rso: No such file or directory
bash-3.2# chmod g-rw id_rsa
bash-3.2# ls -al
total 40
drwxrwx--- 6 501 admin 204 Dec 30 01:40 .
drwxrwxr-x 6 root admin 204 Dec 30 10:42 ..
-rw-r-----@ 1 jimserv2 admin 6148 Dec 30 01:40 .DS_Store
-rw-------+ 1 501 admin 883 Oct 2 2010 id_rsa
-rw-rw---- 1 501 admin 233 Oct 2 2010 id_rsa.pub
-rw-rw---- 1 jimserv2 admin 989 Oct 2 2010 ssh_config
bash-3.2# id
uid=0(root) gid=0(wheel) groups=0(wheel),204(_developer),100(_lpoperator),98(_lpadmin),...
bash-3.2#

Posted on
Fri Dec 30, 2011 11:02 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: PrismReflector Disabled

From the Terminal do:

Code: Select all
sudo bash
cd /Library/Application\ Support/Perceptive\ Automation/
cd Indigo\ 5/Preferences/PrismReflector
chown 502:admin *

Then stop and restart the Indigo Server.

Definitely do check out Indigo 5 if you a haven't already. Lots of new features added, and tons of great plugins being developed by folks on this forum.

Image

Posted on
Fri Dec 30, 2011 11:32 am
gisplatin offline
Posts: 35
Joined: Jul 15, 2011

Re: PrismReflector Disabled

Success !!

Thanks very much for your help!

I very much want to get on the last Indigo version ASAPl. Having Indigo on that PPC Mac Mini was like torture.

Question for you: I will upgrade this Mac Mini now, which is running Snow Leopard, to Lion first - then I'll upgrade Indigo.

Will I have to go through this process with the PrismReflector again, or should it remain activated and without errors through these upgrades?

Thanks again for the help and your insight.

Posted on
Fri Dec 30, 2011 6:44 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: PrismReflector Disabled

gisplatin wrote:
Question for you: I will upgrade this Mac Mini now, which is running Snow Leopard, to Lion first - then I'll upgrade Indigo.

If you don't do a clean update, then your OS X user ID number won't change and it should work without any issues. If you use Apple's migration assistant or end copying files over somehow, then you might have to correct the file owner again.

Image

Posted on
Fri Dec 30, 2011 10:09 pm
gisplatin offline
Posts: 35
Joined: Jul 15, 2011

Re: PrismReflector Disabled

Thanks for the tip - I'll know better now, what to keep an eye on after I upgrade...

Posted on
Sun Apr 29, 2012 5:06 am
philc offline
Posts: 156
Joined: May 17, 2011

Re: PrismReflector Disabled

So yesterday, because I can't leave well enough alone, I was attempting to set up my Mac Mini Server to run from a non-admin account. I created a new account, then added permissions for all the Indigo files in Application Support to allow read/write access for the new account (did not change any other permissions). Restarted the Mac Mini Server, started to work on shifting other stuff, then gave up...just too hard at this point (due to alarm integration, etc). So I just logged back in to the admin account - no worries, right? Not exactly. Now I'm getting this error in my logs.

Error (client) failed to get reflector URL (geturl error): [Errno 1] Operation not permitted: '/Library/Application Support/Perceptive Automation/Indigo 5/Preferences/PrismReflector/ssh_config'

Prism Reflector isn't working, says it can't get the URL in the Start Local Server pane.

I followed the instructions to change permissions that Matt gave - and I'm still getting the error when I restart. Damn me and my security paranoia....any help?

Thanks,
Phil

UPDATE: So, I figured it out. The CHOWN instruction you gave above was very specific to the op's issue...I figured out that my owner needed to change to 501 (vice 502) and I needed to include the -Rv tag. So, to help anyone else out, here's the key:

the id command Matt lists will list the user id for the account (something like 501, 502, etc.). You have to put THAT user id in the chown command...in my case it was
sudo chown -Rv 501:admin *

Worked like a champ, now I'm back up.

Posted on
Sun Apr 29, 2012 9:22 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: PrismReflector Disabled

Hi Phil,

That particular ssh file has to have just the right permissions and owner for the secure tunnel connection to be created, as you've noticed. On my ToDo list is to create a script or some other self-healing technique for those files, so it doesn't always break when users switch Macs or user accounts.

Image

Posted on
Sun May 06, 2012 10:01 pm
bcmayes offline
Posts: 119
Joined: Apr 02, 2006
Location: Philadelphia, PA

Re: PrismReflector Disabled

I'm not getting the same error as the others. I'm getting:

Error failed to create reflector connection: [Errno 1] Operation not permitted: '/Library/Application Support/Perceptive Automation/Indigo 5/Preferences/PrismReflector/ssh_config'
Error reflector reconnection scheduled in 15 minutes


This is since I fixed the "extension installed incorrectly" by reinstalling Indigo Pro 5.

Under "Start Local Server..." I see the text "Check your Mac's Network settings to make sure this machine has Internet access and visit the http://prismreflector.com website for server outage information."

I have internet as I'm posting to this forum. No outage information at the Prism site.

In the dialog box I see "Reflector status: Disabled" and nowhere to enter any information about my Reflector account.

I have no idea where to start.

Thanks,
Byron

Mac mini 1.25, 1024MB RAM; Indigo 2.0

Posted on
Mon May 07, 2012 7:15 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: PrismReflector Disabled

The permissions (or file owner) on one of the reflector key files is no longer correct. Do this:

1) Launch the Terminal application (inside /Applications/Utilities/)

2) Copy/paste the following line into Terminal. You will be prompted for your OS X admin account password, which needs to be entered so that all the steps complete successfully.

Code: Select all
id
sudo bash

3) Copy/paste each line below *individually* and hit the return key after each one:

Code: Select all
cd /Library/Application\ Support/Perceptive\ Automation/
cd Indigo\ 5/Preferences/PrismReflector
ls -al
chmod ugo-x *
chmod o-rwx *
chmod g-rw id_rsa
ls -al
id

4) Select all and Copy/Paste the entire contents of the Terminal window into a forum reply (or email) to me.

The above step will help fix the file permissions, but we probably also need to change the file owner. Once I have the results from the above I can give you the Terminal commands to fix that as well.

Image

Posted on
Mon May 14, 2012 10:37 pm
bcmayes offline
Posts: 119
Joined: Apr 02, 2006
Location: Philadelphia, PA

Re: PrismReflector Disabled

Was out of town. I did the above and this is the result:

Code: Select all
Last login: Mon May 14 23:57:06 on console
You have mail.
iMayes:Users bcmayes$ id
uid=501(bcmayes) gid=20(staff) groups=20(staff),102(com.apple.sharepoint.group.2),
iMayes:Users bcmayes$ sudo bash
sudo: /var/db/sudo writable by non-owner (040777), should be mode 0700

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
bash-3.2# cd /Library/Application\ Support/Perceptive\ Automation/
bash-3.2# cd Indigo\ 5/Preferences/PrismReflector
bash-3.2# ls -al
total 40
drwxrwxrwx  6 root     wheel   204 May  6 23:53 .
drwxrwxrwx  8 root     wheel   272 May 13 03:16 ..
-rw-r--r--@ 1 bcmayes  wheel  6148 May  6 23:53 .DS_Store
-rw-rw-rw-  1 root     wheel   887 Jan 29  2007 id_rsa
-rw-rw-rw-  1 root     wheel   233 Jan 29  2007 id_rsa.pub
-rw-rw-rw-  1 root     wheel   966 Jan 29  2007 ssh_config
bash-3.2# chmod ugo-x *
bash-3.2# chmod o-rwx *
bash-3.2# chmod g-rw id_rsa
bash-3.2# ls -al
total 40
drwxrwxrwx  6 root     wheel   204 May  6 23:53 .
drwxrwxrwx  8 root     wheel   272 May 13 03:16 ..
-rw-r--r--@ 1 bcmayes  wheel  6148 May  6 23:53 .DS_Store
-rw-------  1 root     wheel   887 Jan 29  2007 id_rsa
-rw-rw----  1 root     wheel   233 Jan 29  2007 id_rsa.pub
-rw-rw----  1 root     wheel   966 Jan 29  2007 ssh_config
bash-3.2# id
uid=0(root) gid=0(wheel) groups=0(wheel),102(com.apple.sharepoint.group.2),...
bash-3.2# ls -al

Mac mini 1.25, 1024MB RAM; Indigo 2.0

Posted on
Tue May 15, 2012 7:00 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: PrismReflector Disabled

From the Terminal try:

Code: Select all
cd /Library/Application\ Support/Perceptive\ Automation/
cd Indigo\ 5/Preferences/PrismReflector
sudo chown bcmayes id_rsa
sudo chown bcmayes id_rsa.pub
sudo chown bcmayes ssh_config
ls -al


Then stop and restart the Indigo Server, wait a minute and try a reflector connection. If it fails, then copy/paste the Event Log contents again.

Also note the terminal command "sudo" has the incorrect permissions. This isn't related to the prism issue, but it sounds like you still have some pretty serious file permission problems on your Mac. I presume you've run Disk Utility and had it repair the permissions?

Image

Posted on
Thu May 17, 2012 11:12 pm
bcmayes offline
Posts: 119
Joined: Apr 02, 2006
Location: Philadelphia, PA

Re: PrismReflector Disabled

matt (support) wrote:
From the Terminal try:

Code: Select all
cd /Library/Application\ Support/Perceptive\ Automation/
cd Indigo\ 5/Preferences/PrismReflector
sudo chown bcmayes id_rsa
sudo chown bcmayes id_rsa.pub
sudo chown bcmayes ssh_config
ls -al


Then stop and restart the Indigo Server, wait a minute and try a reflector connection. If it fails, then copy/paste the Event Log contents again.


Performed the steps listed.

I am able to connect to my household database ("Home Address") when at home via Bonjour. When I leave home and attempt to reconnect via wifi/3G Indigo appears to do so. However when I look at the Devices, etc, it's using the Sample Home and not my own household database.

I've discarded the Sample Home several times but it seems to like being there.

matt (support) wrote:
Also note the terminal command "sudo" has the incorrect permissions. This isn't related to the prism issue, but it sounds like you still have some pretty serious file permission problems on your Mac. I presume you've run Disk Utility and had it repair the permissions?


I've run the Disk Utility and repaired permissions several times. Apparently it doesn't consider sudo part of the essential repairs

I should point out that I recently went from Verizon DSL to FiOS (and thus a new router). I was having this problem before that switch, but it's another recent change.

Thanks,
Byron

Mac mini 1.25, 1024MB RAM; Indigo 2.0

Posted on
Fri May 18, 2012 7:05 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: PrismReflector Disabled

Do the Terminal steps above again, then copy/paste the results from the Event Log so I can see what it did.

Also, stop and restart the Indigo Server, wait 1 minute, then copy/paste the Contents of the Event Log in to a reply as well.

Image

Who is online

Users browsing this forum: No registered users and 5 guests

cron