Failure To Create Reflector Connection

Posted on
Wed Aug 22, 2012 1:15 pm
Dino-Two offline
Posts: 22
Joined: Jan 12, 2009
Location: AZ

Failure To Create Reflector Connection

We run Indigo in a Standard user account. For the last 10-14 days we have been unable to connect remotely. We are now at the remote site; I upgraded to the latest Indigo version and the user has read and write permissions. Rebooting doesn't help. Here's the log:

Aug 21, 2012 3:51:46 PM
Starting Indigo Server version 5.1.5
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
Found plugin "Action Collection 1.2.1" (requires pro version)
Found plugin "Airfoil 1.0.3" (requires pro version)
Found plugin "DIRECTV DVR Control 1.0.0" (requires pro version)
Found plugin "EasyDAQ Relay Card 1.0.11" (requires pro version)
Found plugin "Growl 1.0.5" (requires pro version)
Found plugin "iCal Alarm Processor 1.0.2" (requires pro version)
Found plugin "INSTEON Commands 1.1.0" (requires pro version)
Found plugin "iTunes 1.0.14" (requires pro version)
Found plugin "NOAA Weather 1.0.1" (requires pro version)
Found plugin "SQL Logger 1.1.0" (requires pro version)
Found plugin "WeatherSnoop 1.0.3" (requires pro version)
Bonjour registered "Indigo - KV House"
Indigo Cocoa client connected

Aug 21, 2012 3:52:02 PM
Connected to PowerLinc 2413U interface on port usbserial-A8006XGR
PowerLinc address 19.79.75, firmware version 9.8
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
WebServer client connected
WebServer started on port 8176 -- digest authentication enabled


Don't know if it has anything to do with our issue, but the cable service "upgraded" our service during this time frame and we have a new IP address. We did not have to reboot our modem or router.

Any help would be greatly appreciated.

Carroll
MacBook Pro
OS 10.7.4

Posted on
Wed Aug 22, 2012 3:17 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Failure To Create Reflector Connection

This is a file/folder permission problem. Try the following:

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.

id
sudo bash

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

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 an email or forum reply me.

Image

Posted on
Wed Aug 22, 2012 4:10 pm
Dino-Two offline
Posts: 22
Joined: Jan 12, 2009
Location: AZ

Re: Failure To Create Reflector Connection

Hi Matt,

Looks like there are problems. We do have parental controls enabled on this user. But all was working fine since we think late 2011. No one was at the house when it stopped working.

Last login: Tue Aug 21 17:06:27 on console
Carroll-Admin-Frison-KVs-MacBook-Pro:~ indigokv$ /Applications/No-IP\ DUC.app/Contents/MacOS/No-IP\ DUC ; exit;
Aug 21 17:07:11 Carroll-Admin-Frison-KVs-MacBook-Pro.local No-IP DUC[237] <Error>: kCGErrorInvalidConnection: CGSGetWindowTags: Invalid connection
Aug 21 17:07:11 Carroll-Admin-Frison-KVs-MacBook-Pro.local No-IP DUC[237] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
logout

[Process completed]
Last login: Tue Aug 21 20:00:51 on console
Carroll-Admin-Frison-KVs-MacBook-Pro:~ indigokv$ id
uid=503(indigokv) gid=20(staff) groups=20(staff),403(com.apple.sharepoint.group.2)
:~ indigokv$ sudo bash

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:
indigokv is not in the sudoers file. This incident will be reported.
Carroll-Admin-Frison-KVs-MacBook-Pro:~ indigokv$ cd /Library/Application\ Support/Perceptive\ Automation/
Carroll-Admin-Frison-KVs-MacBook-Pro:Perceptive Automation indigokv$ cd Indigo\ 5/Preferences/PrismReflector
Carroll-Admin-Frison-KVs-MacBook-Pro:PrismReflector indigokv$ ls -al
total 40
drwxrwxr-x+ 6 root admin 204 Nov 30 2011 .
drwxrwxr-x+ 7 root admin 238 Aug 21 20:16 ..
-rw-rw-r--@ 1 root admin 6148 Nov 30 2011 .DS_Store
-rw-rw-r--+ 1 root admin 887 Nov 30 2011 id_rsa
-rw-rw-r--+ 1 root admin 237 Nov 30 2011 id_rsa.pub
-rw-rw-r--+ 1 root admin 989 Nov 30 2011 ssh_config
Carroll-Admin-Frison-KVs-MacBook-Pro:PrismReflector indigokv$ chmod ugo-x *
Carroll-Admin-Frison-KVs-MacBook-Pro:PrismReflector indigokv$ chmod o-rwx *
chmod: Unable to change file mode on id_rsa: Operation not permitted
chmod: Unable to change file mode on id_rsa.pub: Operation not permitted
chmod: Unable to change file mode on ssh_config: Operation not permitted
Carroll-Admin-Frison-KVs-MacBook-Pro:PrismReflector indigokv$ chmod g-rw id_rsa
chmod: Unable to change file mode on id_rsa: Operation not permitted
Carroll-Admin-Frison-KVs-MacBook-Pro:PrismReflector indigokv$ ls -al
total 40
drwxrwxr-x+ 6 root admin 204 Nov 30 2011 .
drwxrwxr-x+ 7 root admin 238 Aug 21 20:16 ..
-rw-rw-r--@ 1 root admin 6148 Nov 30 2011 .DS_Store
-rw-rw-r--+ 1 root admin 887 Nov 30 2011 id_rsa
-rw-rw-r--+ 1 root admin 237 Nov 30 2011 id_rsa.pub
-rw-rw-r--+ 1 root admin 989 Nov 30 2011 ssh_config
Carroll-Admin-Frison-KVs-MacBook-Pro:PrismReflector indigokv$ id
uid=503(indigokv) gid=20(staff) groups=20(staff),403(com.apple.sharepoint.group.2),402(com.apple.
Carroll-Admin-Frison-KVs-MacBook-Pro:PrismReflector indigokv$


Thanks,
Carroll

Posted on
Wed Aug 22, 2012 4:22 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Failure To Create Reflector Connection

You'll need to login as an admin user to do the Terminal steps. It is failing since you don't have permission to modify the file permissions under the restricted user.

Image

Posted on
Wed Aug 22, 2012 4:52 pm
Dino-Two offline
Posts: 22
Joined: Jan 12, 2009
Location: AZ

Re: Failure To Create Reflector Connection

Try #2:


Last login: Wed Aug 22 15:32:22 on console
Carroll-Admin-Frison-KVs-MacBook-Pro:~ carrollgfrisonkv$ id
uid=501(carrollgfrisonkv) gid=20(staff) groups=20(staff),401(com.apple.access_screensharing-disabled),403
Carroll-Admin-Frison-KVs-MacBook-Pro:~ carrollgfrisonkv$ sudo bash

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
drwxrwxr-x+ 6 root admin 204 Nov 30 2011 .
drwxrwxr-x+ 7 root admin 238 Aug 22 15:32 ..
-rw-rw-r--@ 1 root admin 6148 Nov 30 2011 .DS_Store
-rw-rw-r--+ 1 root admin 887 Nov 30 2011 id_rsa
-rw-rw-r--+ 1 root admin 237 Nov 30 2011 id_rsa.pub
-rw-rw-r--+ 1 root admin 989 Nov 30 2011 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
drwxrwxr-x+ 6 root admin 204 Nov 30 2011 .
drwxrwxr-x+ 7 root admin 238 Aug 22 15:32 ..
-rw-rw-r--@ 1 root admin 6148 Nov 30 2011 .DS_Store
-rw-------+ 1 root admin 887 Nov 30 2011 id_rsa
-rw-rw----+ 1 root admin 237 Nov 30 2011 id_rsa.pub
-rw-rw----+ 1 root admin 989 Nov 30 2011 ssh_config
bash-3.2# id
uid=0(root) gid=0(wheel) groups=0(wheel),401(com.apple.access_screensharing-disabled),403(com.apple.sharepoint.group.2),402(com.apple.sharepoint.group.1),404(com.apple.sharepoint.group.3),
bash-3.2#

Carroll

Posted on
Wed Aug 22, 2012 4:56 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Failure To Create Reflector Connection

Okay, getting closer. File permissions are now good but the file owner is not. From the admin user again on Terminal try:

id
sudo bash

cd /Library/Application\ Support/Perceptive\ Automation/
cd Indigo\ 5/Preferences/PrismReflector
ls -al
chown indigokv:admin *
ls -al

And select all and Copy/Paste the entire contents of the Terminal window into an email or forum reply me. Also try restarting the Indigo Server to see if it works and copy/paste the Event Log results.

Image

Posted on
Wed Aug 22, 2012 5:37 pm
Dino-Two offline
Posts: 22
Joined: Jan 12, 2009
Location: AZ

Re: Failure To Create Reflector Connection

Fantastic! That fixed it. I am able to login from a remote computer.

Any idea what might have goofed it up?

Carroll

Posted on
Wed Aug 22, 2012 5:47 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Failure To Create Reflector Connection

If you first enabled GoPrism under a different login account, then it would have stopped working when you created the new restricted user account and started using it. It also could have broken if you copied files over using Migration Assistant after an OS upgrade or Mac switch, or a rogue installer could have trashed the file owners and permissions.

I haven't a clue as to how it broke if no one was in the house though.

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests

cron