Author Topic: Very slow loading site after SSL Rekey - **Solved**  (Read 2920 times)

0 Members and 1 Guest are viewing this topic.

Offline Ian.

  • Forecaster
  • *****
  • Posts: 459
    • Chatteris Weather
Very slow loading site after SSL Rekey - **Solved**
« on: October 22, 2017, 03:12:58 PM »
Hi All,

Got myself into a problem and need guidance on how to get out of it.

I host with GoDaddy and use North American servers, there was a free option to migrate date to a nearer server in Europe which I took up, after migration my site is now incredibly slow to load, as in upto a minute!

Talking to Tech Help at GoDaddy they suggested rekeying my SSL certificate which I did (with help), but this has made no difference.

Running a SSL checker shows that the certificates is ok.

Running a site performance online script shows it hanging for the Thermometer script (thermometer.php) in the first instance, the problem here is that METEOBRIDGE sends data to update this but times out, so I think I might be in some loop.

Would some kind sole have a quick look and give me a pointer please - http://www.chatteris.biz

Ian
« Last Edit: October 23, 2017, 01:22:51 PM by Ian. »
CWOP - DW3371
PWS - ICAMBRID16
https://www.chatteris.biz

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Very slow loading site after SSL Rekey -
« Reply #1 on: October 22, 2017, 03:53:49 PM »
Hi All,

Got myself into a problem and need guidance on how to get out of it.

I host with GoDaddy and use North American servers, there was a free option to migrate date to a nearer server in Europe which I took up, after migration my site is now incredibly slow to load, as in upto a minute!

Talking to Tech Help at GoDaddy they suggested rekeying my SSL certificate which I did (with help), but this has made no difference.

Running a SSL checker shows that the certificates is ok.

Running a site performance online script shows it hanging for the Thermometer script (thermometer.php) in the first instance, the problem here is that METEOBRIDGE sends data to update this but times out, so I think I might be in some loop.

Would some kind sole have a quick look and give me a pointer please - http://www.chatteris.biz

Ian
All scripts run  rarely with normal response times, almost every time extremely long response times.

This one from Ken only checks the loading of external data to your site and needs sometimes 40 seconds to run: https://www.chatteris.biz/check-fetch-times.php.  Normal time should be  les then 4 seconds.
Running the same script for loading only local data gives an immediate response https://www.chatteris.biz/check-fetch-times.php?show=settings

The thermometer script does use uploaded data but it is in php and that takes at your site 40 seconds, at my site less then 0.1 second

Next to the image there should be a conditions text (cloudy a.s.o.). There is an error message unable to load EGUL data RC=

YES, you have a problem, but probably not with Meteobridge 5 minute or realtime data. 
To much other scripts run extremely slow also or end with a 500 error
The server encountered an internal error or misconfiguration and was unable to complete your request.

There is also "nearly alwyas" another unknown (to me) error:
Quote
livezilla/server.php?a=9a687&amp;rqst=track&amp;output=jcrpt&amp;nse=0.25936036424981634:1 Uncaught SyntaxError: Unexpected token <

So at one page there are numerous concurrent scripts and it could be be that at your new server the number of concurrent active PHP scripts is set to low.

Wim

« Last Edit: October 22, 2017, 04:03:55 PM by wvdkuil »

Offline Ian.

  • Forecaster
  • *****
  • Posts: 459
    • Chatteris Weather
Re: Very slow loading site after SSL Rekey -
« Reply #2 on: October 22, 2017, 04:08:09 PM »
Hi Wim,

Thanks for looking at this, I'll call GoDaddy and see what they say.

Wish me luck!

Ian
CWOP - DW3371
PWS - ICAMBRID16
https://www.chatteris.biz

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Very slow loading site after SSL Rekey -
« Reply #3 on: October 22, 2017, 04:21:45 PM »
Hi Wim,

Thanks for looking at this, I'll call GoDaddy and see what they say.

Wish me luck!

Ian
I attach as usual with gGodaddy a small test script. Some servers are not able to load all external data needed for Saratoga or Leuven templates. Please unzip this script and upload to your Godaddy server.  Run it. It should get data from three different servers.  It fails at my European and numerous other Godaddy servers. But not at all American servers.  Off course it runs ant millions of other providers-servers but that is, as Godaddy support explained, not an issue they can solve.

Hope it runs OK at your site, otherwise you should go back to your previous server a.s.a.p.

Wim

« Last Edit: October 22, 2017, 04:24:01 PM by wvdkuil »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Very slow loading site after SSL Rekey -
« Reply #4 on: October 22, 2017, 04:29:31 PM »
Hi Wim,

Thanks for looking at this, I'll call GoDaddy and see what they say.

Wish me luck!

Ian
You should check this discussion also, extremely slow loading, same error message next to the condition icon.
https://www.wxforum.net/index.php?topic=32610.msg329378#msg329378

Wim

Offline Ian.

  • Forecaster
  • *****
  • Posts: 459
    • Chatteris Weather
Re: Very slow loading site after SSL Rekey -
« Reply #5 on: October 22, 2017, 04:34:13 PM »
Hi Wim,

This the result of the test_curl.php:

Following link retrieves swpc and is executed on your server:
http://services.swpc.noaa.gov/text/3-day-forecast.txt
 WAIT TIME 5 seconds max


Return codes:
Array
(
    [url] => http://services.swpc.noaa.gov/text/3-day-forecast.txt
    [content_type] =>
    [http_code] => 0
    [header_size] => 0
    [request_size] => 0
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 5.001912
    [namelookup_time] => 0
    [connect_time] => 0
    [pretransfer_time] => 0
    [size_upload] => 0
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 0
    [download_content_length] => -1
    [upload_content_length] => -1
    [starttransfer_time] => 0
    [redirect_time] => 0
    [redirect_url] =>
    [primary_ip] =>
    [certinfo] => Array
        (
        )

    [primary_port] => 0
    [local_ip] =>
    [local_port] => 0
)



Error codes: Resolving timed out after 5001 milliseconds

No data was retrieved for http://services.swpc.noaa.gov/text/3-day-forecast.txt

Following link retrieves ndbc and is executed on your server:
http://www.ndbc.noaa.gov/data/latest_obs/latest_obs.txt
 WAIT TIME 5 seconds max


Return codes:
Array
(
    [url] => http://www.ndbc.noaa.gov/data/latest_obs/latest_obs.txt
    [content_type] =>
    [http_code] => 0
    [header_size] => 0
    [request_size] => 0
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 5.000945
    [namelookup_time] => 0
    [connect_time] => 0
    [pretransfer_time] => 0
    [size_upload] => 0
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 0
    [download_content_length] => -1
    [upload_content_length] => -1
    [starttransfer_time] => 0
    [redirect_time] => 0
    [redirect_url] =>
    [primary_ip] =>
    [certinfo] => Array
        (
        )

    [primary_port] => 0
    [local_ip] =>
    [local_port] => 0
)



Error codes: Resolving timed out after 5000 milliseconds

No data was retrieved for http://www.ndbc.noaa.gov/data/latest_obs/latest_obs.txt

Following link retrieves nws and is executed on your server:
http://tgftp.nws.noaa.gov/data/observations/metar/stations/EBBR.TXT
 WAIT TIME 5 seconds max


Return codes:
Array
(
    [url] => http://tgftp.nws.noaa.gov/data/observations/metar/stations/EBBR.TXT
    [content_type] =>
    [http_code] => 0
    [header_size] => 0
    [request_size] => 0
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 5.000971
    [namelookup_time] => 0
    [connect_time] => 0
    [pretransfer_time] => 0
    [size_upload] => 0
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 0
    [download_content_length] => -1
    [upload_content_length] => -1
    [starttransfer_time] => 0
    [redirect_time] => 0
    [redirect_url] =>
    [primary_ip] =>
    [certinfo] => Array
        (
        )

    [primary_port] => 0
    [local_ip] =>
    [local_port] => 0
)



Error codes: Resolving timed out after 5000 milliseconds

No data was retrieved for http://tgftp.nws.noaa.gov/data/observations/metar/stations/EBBR.TXT
CWOP - DW3371
PWS - ICAMBRID16
https://www.chatteris.biz

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Very slow loading site after SSL Rekey -
« Reply #6 on: October 23, 2017, 02:24:35 AM »
Hi Wim,

This the result of the test_curl.php:

Following link retrieves swpc and is executed on your server:
http://services.swpc.noaa.gov/text/3-day-forecast.txt
 WAIT TIME 5 seconds max

. . . shortened . . .


Error codes: Resolving timed out after 5001 milliseconds

No data was retrieved for http://services.swpc.noaa.gov/text/3-day-forecast.txt

Following link retrieves ndbc and is executed on your server:
http://www.ndbc.noaa.gov/data/latest_obs/latest_obs.txt
 WAIT TIME 5 seconds max

. . . shortened . . .

Error codes: Resolving timed out after 5000 milliseconds

No data was retrieved for http://www.ndbc.noaa.gov/data/latest_obs/latest_obs.txt

Following link retrieves nws and is executed on your server:
http://tgftp.nws.noaa.gov/data/observations/metar/stations/EBBR.TXT
 WAIT TIME 5 seconds max

. . . shortened . . .

Error codes: Resolving timed out after 5000 milliseconds

No data was retrieved for http://tgftp.nws.noaa.gov/data/observations/metar/stations/EBBR.TXT
So exactly as in the other threads, no data is retrieved, time out after 5 seconds. you can up the time to 20 seconds and wait for the 3*20 seconds, same result.

Different users and numerous discussions by telephone later, there is nothing "we, Godaddy can do"
They can not explain why it is happening, they can not explain why it is happening with European servers and not with American servers.
The "help"desk" can not help as there is no way to sent the complaint to a higher level.

Please check the other discussions mentioned above and move your site back to the server your site worked on, if they allow you.

Your question at http://forum.meteohub.de/viewtopic.php?f=61&t=12389&p=23772 has the same cause.  Bad loading times of the scripts which access outside weather-data results in time-outs.

Wim

Offline Ian.

  • Forecaster
  • *****
  • Posts: 459
    • Chatteris Weather
Re: Very slow loading site after SSL Rekey -
« Reply #7 on: October 23, 2017, 06:50:18 AM »
Hi Wim,

I’ve paid £19:20 to move back to North America, this is happening today, fingers crossed it will all work and I can chalk this up to experience.

I assumed everything would work so didn’t check on the forum first, big mistake, thank heavens we have people like you here.

Ian
CWOP - DW3371
PWS - ICAMBRID16
https://www.chatteris.biz

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6364
    • Valentine Nebraska's Real-Time Weather
Re: Very slow loading site after SSL Rekey -
« Reply #8 on: October 23, 2017, 08:15:05 AM »
thank heavens we have people like you here.



I'll second that. I'd be lost at times without the help.
Randy

Offline mldenison

  • Contributor
  • ***
  • Posts: 111
    • York, PA Weather
Re: Very slow loading site after SSL Rekey -
« Reply #9 on: October 23, 2017, 09:22:18 AM »
Wim PM'd me about this thread.  Some time back - I'm on GoDaddy - the NOAA swpc lookups would timeout in both my Saratoga and Leuven sites.  I spent a lot of time with their support about this with no help or resolution.  They flat out refused to escalate the problem,  It appears that NOAA has a number of servers that service the swpc requests,  They're all on different IP's.  When max connections are reached on a particular server, the next connection is routed to a server with a different IP address.

GoDaddy apparently caches the one IP address rather than dynamically looking up the swpc address.  Thus, the connection times out.

I'd hazard a guess that on their lookup servers they must have some sort of white list to indicate that a particular website should again look up the IP address rather than using the cached value.

They kept insisting that there must be something in the code - even with Wim's code check which is as straight forward as one can get.

Calling their tech support is basically a waste of time and energy.
Windows 7 x64
Weather PC: Intel NUC
Davis Vantage Pro 2
Weather Underground: KPAYORK30
York, PA Weather (Saratoga)
York, PA Weather (Leuven)
York, PA PWS Station

Offline Ian.

  • Forecaster
  • *****
  • Posts: 459
    • Chatteris Weather
Re: Very slow loading site after SSL Rekey - **Solved**
« Reply #10 on: October 23, 2017, 01:25:47 PM »
All sorted, moved back to North American server, although it cost £19.20, it could have been much worse as GoDaddy wanted £100 to transfer the SSL certificate as they suggested that it would solve the problem of a slow site, as I now know, it would have made no difference.
CWOP - DW3371
PWS - ICAMBRID16
https://www.chatteris.biz