Page 1 of 12

SBC webservice stops

Posted: Wed May 12, 2010 6:36 pm
by danhoskin
I have a Win XP PC cat5'ed to an SBC with 3 Advanced Servo 8 Motor controllers attached to it. Every few hours for no reason that I can see, the webservice stops. What can cause this and how can I prevent it from happening? I read in a post here about hardware issues with connecting the SBC and Advanced Servo 4 motor controllers that required a hardware fix. Does this apply to the 8 motor units as well?
The project works great and I love the Phidgets SBC and controllers, but I have to come up with a way to stabilize the connection.

Any help would be greatly appreciated. (again ;)
Thanks

Re: SBC webservice stops

Posted: Thu May 13, 2010 8:38 am
by Patrick
How do you know that the webservice is crashing - could it be that the Phidgets are disconnecting and the webservice is still running? Can you bring things back up by restarting the webservice in the web interface, or do you need to reboot the SBC?

-Patrick

Re: SBC webservice stops

Posted: Thu May 13, 2010 10:11 am
by danhoskin
In the Phidgets control panel the webservice status says 'stopped'. It will restart through the web interface without rebooting the SBC. It has been running for 5 hours so far today with no issues, but it would be nice to know that it is unlikely to happen again.

Re: SBC webservice stops

Posted: Thu May 13, 2010 10:28 am
by Patrick
How are you using the webservice? ie are you connecting once and keeping the connection open, or are you connecting and disconnecting many times?

There is a memory leak in the webservice that only presents occasionally, and only on the SBC that we haven't been able to track down, so this could be the issue.

-Patrick

Re: SBC webservice stops

Posted: Thu May 13, 2010 12:36 pm
by danhoskin
We are shutting down completely at the end of the day and booting up the SBC and PC in the mornings. During the day it is left connected through the webservice.

SBC2 webservice stops

Posted: Sat Nov 10, 2012 8:39 am
by AndreGermain
Hello,

to revive this 1 year old thread, I have the same issue with the SBC2. After a few hours, I find the web service has stopped, and I can re-enable it from the web page without trouble. However, the fact that it stopped causes my automated observatory to lose an entire night's of imaging, and even worst if weather worsens, the facility can't be closed automatically to protect against the elements.

This SBC2 is wired via a router. There is also an SBC1 wireless that goes through the same router. TP-100 CAT 5E to the controlling Windows PC, XP SP3. Latest Phidget loads and libs. The SBC1 is fine. Other Phidgets are via Icron USB (qty 2), in total 13 Phidgets.

Cheers

Re: SBC webservice stops

Posted: Thu Feb 07, 2013 4:00 am
by Laertes
Hi,
I am having the same problem with a SBC2.
The web service stops intermitently, and starts without problems if i log on to the device.

The device is in a barn in the north of sweden, can the temperature be an issue (grasping for straws here)?

regards,
/Lars

Re: SBC webservice stops

Posted: Thu Feb 07, 2013 9:39 am
by burley
What sort of temperatures are you seeing inside of the barn? The board is rated for 0-70C. You can probably get away with a bit below 0 but if you are seeing substantially below zero temperatures for sustained periods of time then it could definitely be causing issues.

Re: SBC webservice stops

Posted: Thu Feb 07, 2013 10:36 am
by Patrick
If the webservice is just stopping intermittently, but the SBC is still accessible, then it's not a temperature issue. The webservice does sometimes have long-running stability issues.

-Patrick

Re: SBC webservice stops

Posted: Thu Feb 07, 2013 2:09 pm
by Laertes
Hi,
thanks for your quick reply.

I was thinking of a crue workaround:
A http call that starts the damn thing once every hour :)

if I look at the code on the webinterface the following form is used to start the web service.

<form enctype="multipart/form-data" action="/cgi-bin/phidgets-webservice.sh" method="post">
<input type="submit" value="Start" name="startstop" />
</form>

if I submit this using curl and set basic auth on the request, will the service start again?

Have you seen the same problem on the SBC3? Might it help if I upgrade the HW?


/Lars