Page 1 of 1

Server crashing

Posted: Fri Feb 24, 2006 5:22 pm
by PT
Has anyone else experienced problems with housebot crashing due to vbscript.dll or nt.dll errors?

I have housebot runnng on windows 2003 server.

I cannot figure out if it is due to a script problem or a problem with dll.

Posted: Fri Feb 24, 2006 5:35 pm
by Richard Naninck
All the time.

Sometimes due to the system time or ntdll (or something), but most of the times due to the scriptdevice. Never figured out why. I have many scripts running. Usually it happens on the hour when I perform an outside temperature log. I tried putting trace messages in the script, but never came to a valid conclusion. My Server restarts automatically after a crash and I even kill the server every night now to make up for lost (garbadge controlled) memory. These are two work arounds which I would rather not have, but they fix my problems, so I am happy until a more stable scriptdevice (????) is released.

Posted: Sun Feb 26, 2006 4:15 am
by PT
Hi Richard

Thanks for the reply.

Looked and tested further and .I think I may have some success in finding out my problem!!??Hoping anyway.Up and running for 38 hours now. :D



Turns out that one of my scripts which required the time and indeed some other tasks/scripts looked to be causing the problem.Although they worked fine running script from windows and ran from housebot on normal use apparently ok for short spaces of time.

So I changed over to using the countdown timer(5 seconds set time) and therefore took out some of the items which were parsing system time and then trimming etc and bingo!.

I must admit I had not used the countdown timer untill a few weeks ago,so I was making the process more difficult than it needed to be.



How do you activate your hourly script?

Posted: Sun Feb 26, 2006 6:07 am
by Richard Naninck
I use lots of one minute timers (slightly deconflicted in time) for trigerring scripts using tasks. So a task looks at a timer which is set to repeat. If the timer is at zero and resets, the task triggers and the script is run.

In the script I took the system time from housebot using GetProperty and I found that that might be the problem of my server crashes. I could never isolate it, but sine I use the following lines to get the hourly time, my crashes have gone down a lot but still occur every now and then.



Below I get the time using standard vbscript. If Minute(Now) = "0", the time is on the hour. If it is 10 minutes past the hour Minute(Now) would pass a "10" etc etc.



Hope this helps..

'-------------------------------------------------------

If Minute(Now) = "0" Then

....

End If

Posted: Sun Feb 26, 2006 2:47 pm
by PT
Hi Richard,



I too was using the GetProperty method and then trimming the item and I think this was causing the problem as it was too frequent.

I have used the vbscript method for time in web pages.

Oh well the server seems to be working without falling over as often.

The other item which causes some problems is the network message when Housebot cannot initialize either an airpanel or a viewpad. This I think is more to do with network problems when the panel goes offline.



Maybe a little tweak from Housebot( if they ever read this) to say only give a remote 10 times to initialize and then stop. If it continues it only stops housebot,bat file comes into operation and housebot starts and the whole thing does the same thing again.