When trying to start a windows service I have created I get the following error:
Error 1053: The service did not respond to the start or control request in a timely fashion
What I find odd is that the error occurs as soon as I start up the service (within 2 seconds) so basically my service does not have time to start at all. I have added a new entry in the registry at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control setting the ServicesPipeTimeout to 30000 miliseconds but this does not correct the problem.
It turned out that there was a problem while trying to connect to a database. The error message was a bit confusing.
Related
Am working with wso2esb4.9.0 and having around 160 services which are http and are processed frequently, Initially when the server is started every thing is fine all service request response is up to the mark,
After 10-12 days the ESB server gets hanged does not process any request and no exception are seen in the log file even,They are some request which may be piled up in the server and not allowing new connection to process.
when i do restart of the server all the connections get releases and works for other 10-12 days again.
But doing a restart of the server may not be a good idea to do , where can i find these connections and close them if possible and am i missing any config changes of wso2 esb.
Am trying to find some different connection number using JMX and also what to know if any one face this issue and found the possible solution.
Basically this question asked multiple time but in my point, I can't able to clear out those so I want your side help for this error.
My app was complete with all decided features but it was giving me following error multiple time in log.
App is totally custom web server based and I was using GoDaddy server for placing admin panel content and for webservices.
In all loading pages , app has to call different web services. In this its work normally with good response but some time it will take so much time in loading page details and I got above kind of error log in XCode.
If next time, I call same service then its respond me quickly but some time, it creating problem for me.
From coding side, I am very much sure its just delay in server response because process become stuck in waiting of server response.
I am kind of getting lost with this one, we are using Tomcat7 on Windows 2008 server which is running behind IIS. The application framework is Struts2 and we have kept logs in the first and last line of a struts action method. Also, we have turned on tomcat access log valve. The problem,
1) The logs in the action class method states that the request enter and leave the method in a few milliseconds, post completing the entire processing.
2) The tomcat access valve logs show the same request taking more then a 10 minutes.
Where would the response be getting stuck in this case. No clue on where to start debugging, as this happens completely randomly.
I love the site. It's a good place to look for answers. Thanks for that.
I am wrestling with a feature of munin on a test server.
It runs lighttpd, mysql, ssh, proftpd, postfix and dovecot.
If one of them fails, I would like to receive a text message next to the 'default' email. I have got an SMS gateway in use, with VoipBuster. If I request an url (as stated below) I will receive a text message.
https://www.voipbuster.com/myaccount/sendsms.php?username=xxxxxx&password=xxxxxx&from=xxxxxx&to=xxxxxx&text=xxxxxx
I have tried including this in my monit config, but I just can't get it to work.
Here's what I tried.
Including a 'if failed then' under every check, like this:
check process lighttpd with pidfile /var/run/lighttpd.pid
group lighttpd
start program = "/etc/init.d/lighttpd start"
stop program = "/etc/init.d/lighttpd stop"
if failed host 178.21.118.206 port 80
protocol http then restart
if 5 restarts within 5 cycles then timeout
if failed then (url https://www.voipbuster.com/myaccount/sendsms.php?username=xxxxxx&password=xxxxxx&from=xxxxxx&to=xxxxxx&text=CHECK EMAIL -- SERVER ERRORS!)
But I keep getting errors like this when I am restarting.
/etc/monit/monitrc:194: Error: syntax error 'EMAIL'
I tried moving around with the 'if failed then' clause, but I literally don't know how to solve this anymore.
Thanks for the possible solutions.
I ended up using Pushover, which is an app for mobile phones.
With his app you can send an email to a specific email address (built-in feature in Monit) and get push notifications on your mobile.
I have writen a windows service that overwrite Logon and Logoff methods of ISenesLogon2 to check out when logon and logoff occure and then insert the log information into the sql server on server computer.
But it has problem when i turn on the client computer just after the server.
In this situation my service could not insert in sql server.
I think it's because of that the sql server did not load completely before the winservice tried to access to it.
So i want to find a way to check programmatically if the sql server is ready and then try to work with?
Your service cant start until its dependencies remote or otherwise have also started. Checking SQL Server is easy, try and connect to it and retry until you succeed.
Only problem is services have timeouts on startup, you cant sit and repeat this indefinitely.
Things that cannot be reliably started in a reasonable timeframe should not be services or they should fail as soon as possible. Otherwise you will end up with a lot of support requests for your service timing out.
Services are also usually not interactive to the user, so the failure is worse because you cant directly tell the user that your not up unless you do a tray icon.