oetiker / SmokePing

The Active Monitoring System
http://www.smokeping.org
GNU General Public License v2.0
1.41k stars 184 forks source link

CGI Gateway Timeout with Internet issues #366

Open ertyu opened 1 year ago

ertyu commented 1 year ago

Yesterday there was a fiber cut upstream of my ISP that caused many connections to fail, while some others succeeded. Once again Smokeping became unusable just when it would be handy to help identify the problem. I get a Gateway timeout trying to load the CGI pages and graphs. There is a local DNS resolver which was able to resolve some addresses. Of course when there is no connectivity the same thing happens. Is there some thing that can be changed to fix or work around this?

github-actions[bot] commented 1 year ago

This issue has become stale and will be closed automatically within 7 days. Comment on the issue to keep it alive.

ertyu commented 1 year ago

Bump

knofte commented 1 year ago

@ertyu Can you elaborate a bit more what the problem is? Maybe a local caching dns would solve your problem? (dnsmasq, bind etc)

ertyu commented 1 year ago

The CGI web pages won't load when there are upstream connectivity issues. As mentioned I do have a local caching dns server.

knofte commented 1 year ago

Can you share your conf? I don't understand where you'd get a gateway upstream issue. Maybe seeing a conf makes it more clear. Sounds like gateway of proxypass or such in apache/nginx.

ertyu commented 1 year ago

I believe the error message itself originates from apache. The gateway to the cgi script times out, i.e. it's running far too long without returning any content. But ultimately its the problem with the script.

knofte commented 1 year ago

Cool,  not entirely related to this, but drop your Apache conf for smokeping and I'll have a look.

⁣/k

On 30 Sept 2023, 00:11, at 00:11, ertyu @.***> wrote:

I believe the error message itself originates from apache. The gateway to the cgi script times out, i.e. it's running far too long without returning any content. But ultimately its the problem with the script.

-- Reply to this email directly or view it on GitHub: https://github.com/oetiker/SmokePing/issues/366#issuecomment-1741493993 You are receiving this because you commented.

Message ID: @.***>

ertyu commented 1 year ago

<Directory /usr/local/www/smokeping/> AllowOverride None AddHandler cgi-script .cgi AddHandler cgi-script .fcgi Options ExecCGI

The rest of apache config is pretty much default.

github-actions[bot] commented 11 months ago

This issue has become stale and will be closed automatically within 7 days. Comment on the issue to keep it alive.

ertyu commented 11 months ago

Bump

github-actions[bot] commented 8 months ago

This issue has become stale and will be closed automatically within 7 days. Comment on the issue to keep it alive.

ertyu commented 8 months ago

Ok then

github-actions[bot] commented 5 months ago

This issue has become stale and will be closed automatically within 7 days. Comment on the issue to keep it alive.

ertyu commented 5 months ago

Silly bot, problems don't fix themselves

github-actions[bot] commented 2 months ago

This issue has become stale and will be closed automatically within 7 days. Comment on the issue to keep it alive.

AGSPhoenix commented 2 months ago

Bump.