uptime icon indicating copy to clipboard operation
uptime copied to clipboard

'Request timed out'

Open MasterXX opened this issue 11 years ago • 20 comments

On every check, i get a request timed out. After one minute it goes up again, but the website wasn't even off. Is it my server configuration?

MasterXX avatar Feb 07 '14 14:02 MasterXX

I wonder about the same thing..

basvdheijden avatar Mar 06 '14 14:03 basvdheijden

Maybe it'd be nice to check if uptime is connected to the internet prior to displaying 'offline' messages?

basvdheijden avatar Mar 06 '14 14:03 basvdheijden

I am also suffering from this issue

TheFrogDaddy avatar Mar 06 '14 14:03 TheFrogDaddy

Same here.

goonoo avatar Apr 10 '14 05:04 goonoo

Same here, Currenly I use vps for app.js and 3 more for monitor.js

ismaelpuerto avatar Jun 18 '14 08:06 ismaelpuerto

Yea same here

brantje avatar Aug 11 '14 09:08 brantje

:+1: I ran 92 Checks, most per Minute, 6 per 10 Minutes and 2 per 30 seconds...

I think as longer as the Monitor is running, as more it is difficult for him to handle multiple checks.. Watch my Screenshot

fehler

The Red once was the Monitoring BEFORE an Reboot, running round about 24 Hours (I set up Uptime yesterday), than I rebooted, the checks are highlighted in Green... No timeout.

lippoliv avatar Sep 19 '14 06:09 lippoliv

Should it come because some kind of connection limit?

brantje avatar Sep 19 '14 06:09 brantje

Don't know. Since the Reboot, there where no "false positives" checks, I have just 4 down-checks, and theese once has to be down.

I had read arround and set up "net.core.somaxconn" to 1024, read that the Default value is may to less for an System with much Connections. There are also some additional Parameters to set to a higher value, but currently I just modifyed that one.

To do so I added the line

net.core.somaxconn = 1024

to /etc/sysctl.conf and rebooted the System.

Now I let it run for a cupple of hours.

These false-positives I had for months with "Zabbix" wich I previous ran on that VPS to check my Hosted Websites, may it's really an System-Configuration-Problem. Than it would be good to write an "real" setup-documentation where also the system-modification should be documented.

lippoliv avatar Sep 19 '14 07:09 lippoliv

@lippoliv did the "net.core.somaxconn" setting made effect? We're facing a similar problem and want to make sure if the modification of the parameter is worth it

mflopez79 avatar Oct 01 '14 15:10 mflopez79

@mflopez79 No, the modification didn't Change that Problem. Even if my range is better than yours (wrong Pings all 30 to 120 Minutes)

lippoliv avatar Oct 01 '14 16:10 lippoliv

i made a little change in the file httpPoller.js for the poll function

old one:

HttpPoller.prototype.poll = function() {
  HttpPoller.super_.prototype.poll.call(this);

  this.request = http.get(this.target, this.onResponseCallback.bind(this));
  this.request.on('error', this.onErrorCallback.bind(this));
};

new one:

HttpPoller.prototype.poll = function() {
  HttpPoller.super_.prototype.poll.call(this);
  this.target.agent = false;

  this.request = http.request(this.target, this.onResponseCallback.bind(this));
  this.request.on('error', this.onErrorCallback.bind(this));

  this.request.end();
};

works much better for me. can someone please test also maybe? would be nice to get some feedback.

traskat avatar May 16 '15 22:05 traskat

@traskat not tested yet but looks great.

What this.target.agent = false; mean?

Maybe you can mare a PR for it.

soullivaneuh avatar May 19 '15 08:05 soullivaneuh

Please Keep this issue up to date. Currently, because of this issue, I don't use uptime...

If an solution is found, I will setup uptime again :)

lippoliv avatar May 20 '15 07:05 lippoliv

me too, @lippoliv

basvdheijden avatar May 20 '15 07:05 basvdheijden

@BasVanDerHeijden @lippoliv Me too! The problem is there are 34 outstanding pull requests so I don't think it would get implemented very soon. I did have a nosey at all the forks to see if this was fixed by anybody else or at least find one thats regularly contributed to, I think we should all jump on one of them. This product has great potential but sadly not maintained by fzaninotto any longer.

TheFrogDaddy avatar May 20 '15 08:05 TheFrogDaddy

Looking at the network graph seems that @nerevu merged some forks into his one. Maybe we can use his as base of the 'new' uptime. I've asked @fzaninotto a few month's back if he wants to pickup this project again, he said he was too busy, i can understand that. So now its up to us to pick it up and use a central GIT repo for it.

brantje avatar May 20 '15 12:05 brantje

Did any of these fixes make a difference? I'm monitoring 20 servers, and each one goes down due to "request timeout" about once or twice per day (or more). Seems to get worse the longer it's running.

I checked the logs on the servers, and the request doesn't make it. Meaning it's some kind of choke on the monitoring server http client, not on the server that is getting checked.

edit: I'm trying the 'request-timeout-fix' branch on this fork: https://github.com/SpringerPE/uptime/tree/request-timeout-fix

I'll report back to see if it makes a difference.

booherbg avatar Nov 19 '15 18:11 booherbg

That fork works OK -- but I still get timeouts. Plus it ignores the headers completely (hard coded GET).

Interestingly, on my laptop I don't get timeouts so I think it boils down to infrastructure or operating system. I'm going to spin up CentOS or BSD and see if it makes a difference.

booherbg avatar Nov 19 '15 21:11 booherbg

@booherbg. I tried a bit more. But couldn't verify it. For me it looks like that The polling oft The monitor isn't Wirkung correct. With pooling i mean the timer functions. But i couldn't verify vor test it till now.

traskat avatar Nov 19 '15 22:11 traskat