NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Stu on September 20, 2017, 06:50:14 PM

Title: Webserver stops serving at similar time each day (exe service is still running)
Post by: Stu on September 20, 2017, 06:50:14 PM
Hi Everyone/Bruce,

Got a strange one that is pretty wierd, cant work it out yet.

Since Sept 12 between 12am and 12:10am my public site webserver will stop serving (Uptime Robot pings me), although the exe service is still running when I go in to restart.

The build on Sept 11 didn't have anything dramatic in changes to the public site or dlls. And it wasn't the Nettalk 10 update (10.06) that came out on Sept 11 because I've only just upgraded to that this week.

To try and understand what is going on, I put a Debug() log into the ProcessLink embed for times >= 11:40pm and <= 12:20am.

These logs show activity right up until 12am on the dot, then one single entry for 12am and that's it. Nothing else from then until I restart the server.

Any ideas how I might carry on trouble-shooting this one?
Title: Re: Webserver stops serving at similar time each day (exe service is still running)
Post by: Bruce on September 20, 2017, 08:53:32 PM
so the server is still running, you can tab from one tab to another, performance, logs and so on, but it just doesn't response to the port?

And if you click the Restart Server button does it come back?

cheers
Bruce
Title: Re: Webserver stops serving at similar time each day (exe service is still running)
Post by: Stu on September 20, 2017, 10:14:05 PM
Hey Bruce,

It's usually running as a service. So I'm not sure whether that is the case or not.

I'll try tonight, leave it running open, stay up "late" and monitor.
Title: Re: Webserver stops serving at similar time each day (exe service is still running)
Post by: peterH on September 20, 2017, 10:29:20 PM
Hi Stu,

Maybe a long shot, but is there something else happening on the server at that time?

Peter
Title: Re: Webserver stops serving at similar time each day (exe service is still running)
Post by: oggy on September 20, 2017, 10:42:21 PM
Maybe I can help. I had similar problems with service. Occasionally, service stop working. Better say, responding. After months and months of examinations,
I realize that service stoped to response in one condition:
If service is on server, and if that service is logged as some account, for example Administrator, and if someone else, in my case myself, use that account to log on server via RDP, after logging of the RDP session, the service stop to respond. I create for that service another user account, just for service himself.
After that, never saw my service(s) stoped responding.
Edit: maybe you use one account for your service, and for some scheduled task, like backup or so....
Just my thought.
Regards, Oggy
Title: Re: Webserver stops serving at similar time each day (exe service is still running)
Post by: Stu on September 21, 2017, 12:29:24 AM
Peter - Yeah maybe, will be checking the event logs. Thanks!

Oggy - Yeah I ran into that issue a few years back with NT webservers, particularly around print drivers etc, so it's running as a service with a separate account. But there might be something there, perhaps that account is having issues. Thanks!
Title: Re: Webserver stops serving at similar time each day (exe service is still running)
Post by: Stu on September 22, 2017, 06:14:48 AM
Well it was 12:00 and 5,6,7 seconds when things got interesting.

I ran the public site as an exe straight (not service), and at 12:00:05 up popped a "Nettalk Object Error" (attached screenshot).

Code: [Select]
A network communication error has occurred.
Error = The URL for the Fetch command was blank.
The error number was -15 which means No servers.
Error occurred in function NetWebClient.Fetch

And there seem to be three debugview lines that are related:

Code: [Select]
[st] [netTalk][thread=2] w_Property END
[st] [netTalk][thread=1] xxx  self.state=1
[st] [netTalk][thread=1] NetSimple.ErrorTrap -15 The URL for the Fetch command was blank NetWebClient.Fetch

Now to my knowledge this doesn't happen at any other time. It certainly doesn't happen throughout the day while the public site is under the bulk of it's usual load.

So. Bruce - Does this give any further prompts to what might be going on? (remembering that this happens at the same time, once a day, each day)
Title: Re: Webserver stops serving at similar time each day (exe service is still running)
Post by: Bruce on September 23, 2017, 10:41:56 PM
It's the automatic certificate check - ie the same problem you're having getting certificates at the moment.
We'll do a bit more digging on the server itself on Monday.

cheers
Bruce

update: I've also tweaked the class for 10.07 so that it does not popup the error message (unless the server is set to popup error messages.) and it also handles the error case of the GetDirectory command failing better.
Title: Re: Webserver stops serving at similar time each day (exe service is still running)
Post by: Stu on September 24, 2017, 09:31:38 PM
Cool.