Phidgets Plugin Discussion

Posted on
Mon Feb 17, 2020 6:53 am
hamw offline
Posts: 1198
Joined: Mar 31, 2008

Re: Phidgets Plugin Discussion

I’ll take a look, but it is a new machine with a clean install of the operating system and each application newly installed individually. No other issues as far as I can tell.

Posted on
Mon Feb 17, 2020 7:26 am
berkinet offline
User avatar
Posts: 3403
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin Discussion

hamw wrote:
I’ll take a look, but it is a new machine with a clean install of the operating system and each application newly installed individually. No other issues as far as I can tell.

I suspect the Launch Daemon never got installed, or wasn't enabled. Check to see you have /Library/LaunchDaemons/com.phidgets.webservice21.plist

Posted on
Mon Feb 17, 2020 9:01 pm
hamw offline
Posts: 1198
Joined: Mar 31, 2008

Re: Phidgets Plugin Discussion

Yes, thanks for the suggestion. Here's the contents of the plist:

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
   <key>Label</key>
   <string>com.phidgets.webservice21</string>
   <key>ProgramArguments</key>
   <array>
      <string>/usr/local/bin/phidgetwebservice21</string>
      <string>-p</string>
      <string>5001</string>
   </array>
   <key>RunAtLoad</key>
   <true/>
</dict>
</plist>


The phidgets22 plist was also still in there, so I deleted it. Maybe that will make a difference.

Posted on
Tue Feb 18, 2020 2:53 am
berkinet offline
User avatar
Posts: 3403
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin Discussion

hamw wrote:
Yes, thanks for the suggestion. Here's the contents of the plist:
... ...The phidgets22 plist was also still in there, so I deleted it. Maybe that will make a difference.

If the plist is there, it should start. Are you are sure you checked Start Automatically in the Phidgets Web Service preference pane? Assuming you have checked the auto-start option, try these steps...

Enter the following command in a terminal window:
Code: Select all
launchctl list |grep phidget
If that returned something, post it here. If it returned nothing, try this next:
Code: Select all
launchctl load /Library/LaunchDaemons/com.phidgets.webservice21.plist
and then try the first command again. If it succeeds this time then issue this command
Code: Select all
launchctl start com.phidgets.webservice21
and see if the web service has started. If it didn't start, enter this command and post any results back here:
Code: Select all
 grep phidget /var/log/system.log

Posted on
Tue Feb 18, 2020 9:36 pm
hamw offline
Posts: 1198
Joined: Mar 31, 2008

Re: Phidgets Plugin Discussion

Thanks, Berkinet. I turned off the WebService, and the commands would not launch it. Here's the results of your suggestions.

Code: Select all
  [Restored Feb 14, 2020 at 7:21:20 PM]
Last login: Fri Feb 14 19:21:17 on console
Restored session: Fri Feb 14 19:20:33 EST 2020
Hamiltons-Mac-mini:~ hamilton$ launchctl list |grep phidget

Hamiltons-Mac-mini:~ hamilton$ launchctl load /Library/LaunchDaemons/com.phidgets.webservice21.plist

Hamiltons-Mac-mini:~ hamilton$ launchctl list |grep phidget
-   1   com.phidgets.webservice21
Hamiltons-Mac-mini:~ hamilton$ launchctl list |grep phidget
-   1   com.phidgets.webservice21
Hamiltons-Mac-mini:~ hamilton$ launchctl load /Library/LaunchDaemons/com.phidgets.webservice21.plist
/Library/LaunchDaemons/com.phidgets.webservice21.plist: service already loaded

Hamiltons-Mac-mini:~ hamilton$ launchctl load /Library/LaunchDaemons/com.phidgets.webservice21.plist
/Library/LaunchDaemons/com.phidgets.webservice21.plist: service already loaded

Hamiltons-Mac-mini:~ hamilton$  grep phidget /var/log/system.log

Feb 18 22:32:05 Hamiltons-Mac-mini com.apple.xpc.launchd[1] (com.phidgets.webservice21[74685]): Service exited with abnormal code: 1

Hamiltons-Mac-mini:~ hamilton$



Appreciate your thoughts.

Posted on
Wed Feb 19, 2020 5:15 am
berkinet offline
User avatar
Posts: 3403
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin Discussion

hamw wrote:
...
... launchctl load /Library/LaunchDaemons/com.phidgets.webservice21.plist
/Library/LaunchDaemons/com.phidgets.webservice21.plist: service already loaded

... launchctl load /Library/LaunchDaemons/com.phidgets.webservice21.plist
/Library/LaunchDaemons/com.phidgets.webservice21.plist: service already loaded

...grep phidget /var/log/system.log
...(com.phidgets.webservice21[74685]): Service exited with abnormal code: 1
[/code]
Well, based on the last line, we can see the service did not start. However, you executed the launchctl load command twice. The second command should have been launchctlstart
Code: Select all
launchctl start com.phidgets.webservice21
Try just doing a load, then the start, and then the grep again.

Posted on
Wed Feb 19, 2020 8:36 pm
hamw offline
Posts: 1198
Joined: Mar 31, 2008

Re: Phidgets Plugin Discussion

Thanks; here's what it resulted.

Code: Select all
Hamiltons-Mac-mini:~ hamiltonwilliams$ launchctl start com.phidgets.webservice21
Hamiltons-Mac-mini:~ hamiltonwilliams$ launchctl list |grep phidget
-   -11   com.phidgets.webservice21
Hamiltons-Mac-mini:~ hamiltonwilliams$ launchctl load /Library/LaunchDaemons/com.phidgets.webservice21.plist
/Library/LaunchDaemons/com.phidgets.webservice21.plist: service already loaded
Hamiltons-Mac-mini:~ hamiltonwilliams$ launchctl list |grep phidget
-   -11   com.phidgets.webservice21
Hamiltons-Mac-mini:~ hamiltonwilliams$ launchctl start com.phidgets.webservice21
Hamiltons-Mac-mini:~ hamiltonwilliams$ launchctl list |grep phidget
-   -11   com.phidgets.webservice21
Hamiltons-Mac-mini:~ hamiltonwilliams$ launchctl load /Library/LaunchDaemons/com.phidgets.webservice21.plist
/Library/LaunchDaemons/com.phidgets.webservice21.plist: service already loaded
Hamiltons-Mac-mini:~ hamiltonwilliams$ launchctl list |grep phidget
-   -11   com.phidgets.webservice21
Hamiltons-Mac-mini:~ hamiltonwilliams$ launchctl start com.phidgets.webservice21
Hamiltons-Mac-mini:~ hamiltonwilliams$ launchctl start com.phidgets.webservice21
Hamiltons-Mac-mini:~ hamiltonwilliams$  grep phidget /var/log/system.log
Feb 19 21:27:49 Hamiltons-Mac-mini com.apple.xpc.launchd[1] (com.phidgets.webservice21[37984]): Service exited due to SIGSEGV | sent by exc handler[37984]
Feb 19 21:30:35 Hamiltons-Mac-mini com.apple.xpc.launchd[1] (com.phidgets.webservice21[38131]): Service exited due to SIGSEGV | sent by exc handler[38131]
Feb 19 21:33:12 Hamiltons-Mac-mini com.apple.xpc.launchd[1] (com.phidgets.webservice21[38331]): Service exited due to SIGSEGV | sent by exc handler[38331]
Feb 19 21:33:51 Hamiltons-Mac-mini com.apple.xpc.launchd[1] (com.phidgets.webservice21[38340]): Service exited due to SIGSEGV | sent by exc handler[38340]
Hamiltons-Mac-mini:~ hamiltonwilliams$

Posted on
Thu Feb 20, 2020 5:26 am
berkinet offline
User avatar
Posts: 3403
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin Discussion

hamw wrote:
... Service exited due to SIGSEGV | sent by exc handler[37984]
[/code]

Well, that is the error that is causing the auto loading of the phidgets web service to fail. Unfortunately, I have no idea what is causing it. Even odder is that it starts when you do it manually from the pref pane.

It is probably a permissions problem, so you might want to run the disk utility and run First-Aid on the disk. If that doesn't fix it, I'd contact Phidgets. But, one thing is clear, there is definitely something wrong on your installation.

Posted on
Fri Feb 28, 2020 3:19 pm
landry offline
Posts: 32
Joined: Jul 30, 2017

Re: Phidgets Plugin Discussion

Hi Birkinet
I have a new Mac mini and I am am in the same boat as hamw. The latest Mac software for Phidgets is only 22 libraries and Brian Burley at Phidgets has suggested installing the 21 libraries from this site:
https://www.phidgets.com/downloads/phid ... s/Phidget/

I tried and can't get past the malware security and Brain has no suggestions how to remedy this. I think phidgets.com is abandoning the 21 libraries starting with the new Mac OS 10.11+ software. I'll keep working on him. My twos sbsc3's are less than three years old.

Any suggestions how to install past the Mac security?

Posted on
Fri Feb 28, 2020 3:39 pm
landry offline
Posts: 32
Joined: Jul 30, 2017

Re: Phidgets Plugin Discussion

Birkinet

Never mind I finally got phidgets 21 installed ad its up and running!! Dont know how i got around malware warning I wish i could recorded what I did. i think I left security unlocked and open and rebooted mac and then I got the llibraies installed!! i was just persistent!

Posted on
Sat Feb 29, 2020 2:51 am
berkinet offline
User avatar
Posts: 3403
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phidgets Plugin Discussion

landry wrote:
Hi Birkinet
I have a 0ew Mac mini and I am am in the same boat as hamw. ... ...I tried and can't get past the malware security and Brain has no suggestions how to remedy this. I think phidgets.com is abandoning the 21 libraries .. ...
Any suggestions how to install past the Mac security?

I am glad you got this fixed. I really don't know what I could have added to help. I have the 21 libs running on MacOS 10.15.3 on a 2018 Mac Mini without issue. I suspect your problems had something to do with your firewall or security settings. But, without being able to duplicate the problem, that would just be a guess.

Phidgets have dropped support for the 21 libs, but they will continue to be available. In the meantime, if all goes well I may have a 22 plugin sometime in Spring.

Posted on
Sat Feb 29, 2020 4:43 pm
hamw offline
Posts: 1198
Joined: Mar 31, 2008

Re: Phidgets Plugin Discussion

Berkinet, great news on perhaps a new plugin. I will hold on adding anything to the system until we hear back.

Who is online

Users browsing this forum: No registered users and 0 guests