Author Topic: Local METAR reports Not loading  (Read 11573 times)

0 Members and 1 Guest are viewing this topic.

Offline 92merc

  • BismarckWeather.net
  • Forecaster
  • *****
  • Posts: 1308
  • BismarckWeather.net
    • BismarckWeather.net
Re: Local METAR reports Not loading
« Reply #25 on: September 15, 2019, 04:53:17 PM »
I'm sure they do.  I had a similar response from their support about the Hannis radar.

https://www.bismarckweather.net/wxusradars-hanis3.php

The console GD gives you shows that it can resolve the DNS server names and it does on that screen quickly.  But from our Script Experts here, we're surmising that that console isn't the console of your actual virtual server your website resides on.  We were betting that would show much slower.  But of course GoDaddy support denies it.  And we have no way to prove it.

So I just live with a slow loading radar page.  It is better some days vs. others.  But it almost never pops up in seconds.
https://www.BismarckWeather.net
Davis VP2, Cumulus, WeatherDisplay, Blitzortung, Saratoga Scripts, NOAA Stream via PI

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Local METAR reports Not loading
« Reply #26 on: September 15, 2019, 05:07:32 PM »
Offline we ran a test that shows that rlee's server isn't succeeding in getting the DNS resolution for the METAR server. I've cleaned up the code a little bit and anyone can try it on their own.  Just take the code slice below and stick it in a file called "testdns.php". Upload to your root directory (where index.php is). Then from a browser, just add "/testdns.php" to your site name and it will execute.

Here is the code:

Code: [Select]
<?php

echo "<p>\n";
echo 
"Running on " $_SERVER["SERVER_NAME"] . " (" $_SERVER["SERVER_ADDR"] . ")\n";
echo 
"</p>\n";

if (isset(
$_REQUEST['host']) )
  
$host $_REQUEST['host'];
else
  
$host "tgftp.nws.noaa.gov";
  

echo 
"<p>dns_get_record(\"$host\", DNS_A) returns:</p>\n";
$result dns_get_record($hostDNS_A);
echo 
"<pre>\n";
var_dump($result);
echo 
"</pre>\n";

$hostaddr gethostbyname($host);
echo 
"<p>gethostbyname(\"$host\") returns: " $hostaddr "</p>\n";

?>


If I run this on my site (https://lexmaweather.info/testdns.php), I get the following output:

Code: [Select]
Running on lexmaweather.info (74.208.57.239)

dns_get_record("tgftp.nws.noaa.gov", DNS_A) returns:

array(1) {
  [0]=>
  array(5) {
    ["host"]=>
    string(22) "tgftp.cp.ncep.noaa.gov"
    ["class"]=>
    string(2) "IN"
    ["ttl"]=>
    int(214)
    ["type"]=>
    string(1) "A"
    ["ip"]=>
    string(13) "140.90.101.79"
  }
}

gethostbyname("tgftp.nws.noaa.gov") returns: 140.90.101.79

If the DNS fails, dns_get_record() will return false and gethostbyname() just returns the string that is passed in.

Finally, note that you can test DNS resolution of other sites with the parameter "host" added to the url.  E.g.

https://lexmaweather.info/testdns.php?host=www.wxforum.com

returns:

Code: [Select]
Running on lexmaweather.info (74.208.57.239)

dns_get_record("www.wxforum.com", DNS_A) returns:

array(1) {
  [0]=>
  array(5) {
    ["host"]=>
    string(59) "HDRedirect-LB5-1afb6e2973825a56.elb.us-east-1.amazonaws.com"
    ["class"]=>
    string(2) "IN"
    ["ttl"]=>
    int(60)
    ["type"]=>
    string(1) "A"
    ["ip"]=>
    string(12) "23.20.239.12"
  }
}

gethostbyname("www.wxforum.com") returns: 23.20.239.12
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Local METAR reports Not loading
« Reply #27 on: September 15, 2019, 05:14:04 PM »
I've never dealt with GoDaddy but with 1&1 I've usually been able to get issues handed off to a higher level when the front line responders can't figure it out.  I also always do it via email so I can include reams of info when I have it.

I think it's going to take that sort of effort on GD's part to figure out what is happening. Unless there is something obvious and simple we are all overlooking (would not be the first time for me...).
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Local METAR reports Not loading
« Reply #28 on: September 15, 2019, 09:44:26 PM »
OK, I believe we have a workaround for this until / unless someone can figure out why the DNS resolution is failing.

Only make this change if you see the problem described in this thread.

Edit get-metar-conditions-inc.php. Look for the following code:

Code: [Select]
    curl_setopt($ch, CURLOPT_TIMEOUT, $numberOfSeconds); //  data timeout
    $data = curl_exec($ch); // execute session
    if (curl_error($ch) <> '') { // IF there is an error
      $Debug.= "<!-- curl Error: " . curl_error($ch) . " -->\n"; //  display error notice
    }

Add one line to the top of this so it looks like this:

Code: [Select]
    curl_setopt($ch, CURLOPT_RESOLVE, array("tgftp.nws.noaa.gov:443:140.90.101.79"));
    curl_setopt($ch, CURLOPT_TIMEOUT, $numberOfSeconds); //  data timeout
    $data = curl_exec($ch); // execute session
    if (curl_error($ch) <> '') { // IF there is an error
      $Debug.= "<!-- curl Error: " . curl_error($ch) . " -->\n"; //  display error notice
    }

Upload modified file to your server.

This is a hack/kludge that forces the DNS resolution to happen locally.

This particular issue makes almost all pages on a site slow because the software plugin *-defs.php file (e.g., MB-defs.php), which is included on most pages, does a METAR call for the local conditions data.
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline CamarilloWX

  • CamarilloWX
  • Senior Contributor
  • ****
  • Posts: 181
    • Camarillo Weather
Re: Local METAR reports Not loading
« Reply #29 on: September 15, 2019, 10:05:49 PM »
I am experiencing the same issues described and I am also using Go Daddy for hosting.  I'll try some of the tests and workarounds posted.  I appreciate everyone's efforts in finding out what is causing the issue.  It's strange how some are not affected.
Eric

Offline rlee171

  • Contributor
  • ***
  • Posts: 124
Re: Local METAR reports Not loading
« Reply #30 on: September 15, 2019, 10:11:33 PM »
Eric...  Jasiu's work around worked for me. If you look at the time stamps of his post he spent quite a bit of time on this, my hat is off to him!
Davis VP2 
Blitzortung Stations: 1387  1445  2315
Cumulus
GRLevel3

Offline CamarilloWX

  • CamarilloWX
  • Senior Contributor
  • ****
  • Posts: 181
    • Camarillo Weather
Re: Local METAR reports Not loading
« Reply #31 on: September 15, 2019, 10:19:17 PM »
Could the issue be Cumulus related?  The stations that are reporting issues all seem to be running Cumulus.  The stations reporting no issues are running Weather Display.  I am going to try Jaisu's workarounds.  Thank's for your efforts Jasiu!
Eric

Offline CamarilloWX

  • CamarilloWX
  • Senior Contributor
  • ****
  • Posts: 181
    • Camarillo Weather
Re: Local METAR reports Not loading
« Reply #32 on: September 16, 2019, 12:08:25 AM »
I implemented the workaround as described by Jasiu and my METAR information is now loading.  My National and State Extremes in the menubar are still not working.   Same DNS issue maybe?

https://www.camarilloweather.com/index.php
« Last Edit: September 16, 2019, 12:16:22 AM by CamarilloWX »
Eric

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Local METAR reports Not loading
« Reply #33 on: September 16, 2019, 12:30:05 AM »
Thanks to Jasiu for the bypass fix shown above.  The root cause of the issue for GoDaddy folks is a DNS lookup failure by the GoDaddy caching DNS servers for tgftp.nws.noaa.gov. You have to ask their tech support to
1) login to the Webserver using SSH
2) try using
Code: [Select]
nslookup tgftp.nws.noaa.gov and see/fix the error messages shown.

They can use the contents of /etc/resolv.conf to figure out which nameserver(s) are having the issues.  It is THEIR problem to fix, and Jasiu’s bypass is a good temporary workaround.

I am currently on a cruise ship between Bergen, Norway and Torshavn, Faroe Islands on our way to Montreal, Canada on the 30th.  So.. responses to issues are going to be quite limited by me as I’m away from my normal debugging tools (writing this on an iPad using ship’s internet).

BTW.. in Bergen, Norway we’ve experienced the remnants of Dorian causing heavy rain/wind and high seas.  What goes up the east coast of the USA ends up in Europe, thanks to following the Gulf Stream.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Local METAR reports Not loading
« Reply #34 on: September 16, 2019, 07:53:39 AM »
I implemented the workaround as described by Jasiu and my METAR information is now loading.  My National and State Extremes in the menubar are still not working.   Same DNS issue maybe?

https://www.camarilloweather.com/index.php

Good chance of that since it loads from www.cpc.ncep.noaa.gov (same server farm).

I should have time to look at this later if no one else gets a chance. I believe the solution Ken details above should fix both but if someone contacts GoDaddy, mention both domain names.
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5509
    • KomokaWeather
Re: Local METAR reports Not loading
« Reply #35 on: September 16, 2019, 09:45:01 AM »
I have made Jasiu's mod in get-metar-conditions-inc.php and now the page loads, but all painfully slow.
Thanks for your diligence.

Enjoy,
Paul


Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Local METAR reports Not loading
« Reply #36 on: September 16, 2019, 11:01:51 AM »
Hey Eric,

Yeah, same thing.  Similar fix.  go into usaextremes.php, find the function curl_get_contents(), and add this line just before the curl_exec() call:

Code: [Select]
curl_setopt($ch, CURLOPT_RESOLVE, array("www.cpc.ncep.noaa.gov:443:140.90.101.79"));
Note that this is the same IP address as the other case. Both resolve to the same server.
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Local METAR reports Not loading
« Reply #37 on: September 16, 2019, 11:20:03 AM »
Paul,

It looks like the issue in your case is fetching a bunch of images when the caches are invalid. If the caches are good and there are no refetches, it loads pretty quick for me.

Here is the view-source of the files in question.

Code: [Select]
<!-- Loading 14-Color https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_14_50.GIF
 to radar-NAT-0.png
 dir=/home/psoykkrhjuz3/public_html/komokaweather-ca/radar/ -->
<!-- fetch https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_14_50.GIF in 0.465 secs -->
<!-- reloaded radar-NAT-0.png in 0.974 secs. (Mon, 16 Sep 2019 14:50:00 UTC) -->
<!-- Loading 14-Color https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_14_40.GIF
 to radar-NAT-1.png
 dir=/home/psoykkrhjuz3/public_html/komokaweather-ca/radar/ -->
<!-- fetch https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_14_40.GIF in 0.477 secs -->
<!-- reloaded radar-NAT-1.png in 0.999 secs. (Mon, 16 Sep 2019 14:40:00 UTC) -->
<!-- Loading 14-Color https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_14_30.GIF
 to radar-NAT-2.png
 dir=/home/psoykkrhjuz3/public_html/komokaweather-ca/radar/ -->
<!-- fetch https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_14_30.GIF in 0.508 secs -->
<!-- reloaded radar-NAT-2.png in 0.952 secs. (Mon, 16 Sep 2019 14:30:00 UTC) -->
<!-- Loading 14-Color https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_14_20.GIF
 to radar-NAT-3.png
 dir=/home/psoykkrhjuz3/public_html/komokaweather-ca/radar/ -->
<!-- fetch https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_14_20.GIF in 0.508 secs -->
<!-- reloaded radar-NAT-3.png in 1.028 secs. (Mon, 16 Sep 2019 14:20:00 UTC) -->
<!-- Loading 14-Color https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_14_10.GIF
 to radar-NAT-4.png
 dir=/home/psoykkrhjuz3/public_html/komokaweather-ca/radar/ -->
<!-- fetch https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_14_10.GIF in 0.557 secs -->
<!-- reloaded radar-NAT-4.png in 1.086 secs. (Mon, 16 Sep 2019 14:10:00 UTC) -->
<!-- Loading 14-Color https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_14_00.GIF
 to radar-NAT-5.png
 dir=/home/psoykkrhjuz3/public_html/komokaweather-ca/radar/ -->
<!-- fetch https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_14_00.GIF in 0.563 secs -->
<!-- reloaded radar-NAT-5.png in 1.095 secs. (Mon, 16 Sep 2019 14:00:00 UTC) -->
<!-- Loading 14-Color https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_13_50.GIF
 to radar-NAT-6.png
 dir=/home/psoykkrhjuz3/public_html/komokaweather-ca/radar/ -->
<!-- fetch https://weather.gc.ca/data/radar/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_2019_09_16_13_50.GIF in 0.514 secs -->
<!-- reloaded radar-NAT-6.png in 1.060 secs. (Mon, 16 Sep 2019 13:50:00 UTC) -->
<!-- small image w=300 h=261 saved to radar-NAT-0-sm.png in 0.046 secs. -->
<!-- image files cached in 7.000 secs. -->

I've seen this take up to 12 seconds. You might want to think about a cron job to fetch the files so that the caches are always fresh.
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Local METAR reports Not loading
« Reply #38 on: September 16, 2019, 03:02:39 PM »
I’m ya having the same issue load speeds slow and meter not working for BMG
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Local METAR reports Not loading
« Reply #39 on: September 17, 2019, 07:35:32 PM »
1) Anyone gotten anywhere with GoDaddy?

2) Has everyone effected put in the temporary hack to get around the problem?
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline DW7240

  • Senior Contributor
  • ****
  • Posts: 225
    • The Vicarage Weather Feed
Re: Local METAR reports Not loading
« Reply #40 on: September 17, 2019, 10:46:47 PM »
Hi,

I've had little to no response from GoDaddy, except their quick to blame the scripts that we use, yet their own help forum suggests changes they have made, read my answer above (second post).  Clearly this is not something we have done, pretty sure about that, and I've applied the fixes, still very slow loads, and yes......…..no metar reports, so I guess its a bit like flogging a dead horse, and I think as time goes on this problem will re-accure in the future as PHP changes, and other scripts that are hosts use get updated.  We are a small minority fighting for a usable server space, guess our voice is not big enough, hence the negativity from GoDaddy.

Nick. dw7240.com.
 


Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Local METAR reports Not loading
« Reply #41 on: September 18, 2019, 09:38:22 AM »
Hey Nick,

Scratching my head. You have the right code (http://dw7240.com/Base-Canada/get-metar-conditions-inc.php?sce=view)

Code: [Select]
    curl_setopt($ch, CURLOPT_RESOLVE, array("tgftp.nws.noaa.gov:443:140.90.101.79"));
    curl_setopt($ch, CURLOPT_TIMEOUT, $numberOfSeconds); //  data timeout
    $data = curl_exec($ch); // execute session
    if (curl_error($ch) <> '') { // IF there is an error
      $Debug.= "<!-- curl Error: " . curl_error($ch) . " -->\n"; //  display error notice
    }

However... (view-source:http://dw7240.com/Base-Canada/index.php?debug=y)

Code: [Select]
<!-- get-metar-conditions-inc.php - Version 1.17 - 30-Nov-2018 -->
<!-- mtr_conditions using METAR ICAO='CYOO' -->
<!-- curl fetching 'https://tgftp.nws.noaa.gov/data/observations/metar/stations/CYOO.TXT' -->
<!-- curl Error: Resolving timed out after 6000 milliseconds -->
<!-- HTTP stats:  RC=0
      Times: dns=0.000 conn=0.000 pxfer=0.000 get=6.001 total=6.001 secs -->
<!-- headers returned:

 -->

I found an instance of someone getting the same error and fixing it by adding:

Code: [Select]
curl_setopt($ch, CURLOPT_DNS_USE_GLOBAL_CACHE, false);
(https://stackoverflow.com/questions/36434049/php-curl-curlopt-resolve-not-working)

So you could try that. Goes with the other options before the curl_exec() call.
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Local METAR reports Not loading
« Reply #42 on: September 18, 2019, 06:34:03 PM »
1) Anyone gotten anywhere with GoDaddy?

2) Has everyone effected put in the temporary hack to get around the problem?

I have godaddy and i run testdns.php and get this

Quote
Running on www.gosportwx.com (160.153.94.162)

dns_get_record("tgftp.nws.noaa.gov", DNS_A) returns:

bool(false)
gethostbyname("tgftp.nws.noaa.gov") returns: 140.90.101.79

I too have done the workaround and it appears to be working now, except for my CloudLevel . Seems like my website still loads slow as well :(
« Last Edit: September 18, 2019, 07:07:03 PM by mkutche »
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline gateway2capecod

  • Senior Member
  • **
  • Posts: 99
    • West Wareham, Ma Weather
Re: Local METAR reports Not loading
« Reply #43 on: September 18, 2019, 08:13:21 PM »
Hello All......

I too have been having this no metar data issue since around september 9th and was not getting any metar data at all on my homepage dashboard near top of thermometer for Text words of the Current conditions and also on my nearby metar reports page. I wasnt aware that this many other people are also having same issue till now. I have called godaddy about 4 times and they always tell me it is not their problem or their servers. Ialos know of 3 other sites not mentioned in this thread that are having same issue. and my USA Extremes script IS also not working so I removed the code temporarily from my menubar.php file so it doesnt display at all for now.

These 2 issues were making my web pages load super slow and it is very annoying. I also have disabled my metar data from doing anything by going into my settings-weather.php file and uncommentting the lines like this with the 2 .... "//" 's  at begining of line to disable it.

//$SITE['conditionsMETAR'] = 'KTAN';  // set to nearby METAR for current conditions icon/text

one thing I have noticed in past 2 day  (september 17,18th)  is that it is now sometimes working again without any workarounds, so tonight I have reenabled the metar data to fetch again in my settings-weather.php file

as of 8pm EST tonight (september 18th)  I am getting Metar data.  Hopefully it will continue on working and maybe godaddy fixed the DNS issues Ken Mentioned.

Big Thanks to Jasiu and Ken for their help and efforts and everyone else for their input.  I have been with godaddy for my Domain name only since 2007 and then when E-rice webhost vanished...I went to godaddy for my webhosting at least 5 years ago I believe and havent had many issues with them till this chain of events started Happening.

Special Message to Jasiu......just noticed you are also Located in Taxachusetts like me and wondering when did you first put your site online? I checked it out tonight as this is the first time of realizing someone from that area was also involved in the weather website world. on my left side bar I have external links to others in MASS if you want to ever check them out.

www.gateway2capecod.com    (West Wareham, MA)..About 10 miles away from Cape Cod Canal.

......Chris
« Last Edit: September 18, 2019, 08:18:11 PM by gateway2capecod »

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Local METAR reports Not loading
« Reply #44 on: September 18, 2019, 10:22:37 PM »
Special Message to Jasiu......just noticed you are also Located in Taxachusetts like me and wondering when did you first put your site online? I checked it out tonight as this is the first time of realizing someone from that area was also involved in the weather website world. on my left side bar I have external links to others in MASS if you want to ever check them out.

www.gateway2capecod.com    (West Wareham, MA)..About 10 miles away from Cape Cod Canal.

......Chris

Original site with the Saratoga template went up late July 2015.  I redid the UI into its present form (evolving slowly since then) in June of 2016. There is also another site in Weston that uses my code (http://himead.com) but I'll note that I'm NOT getting into the distribution and support business.  :grin:
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Local METAR reports Not loading
« Reply #45 on: September 19, 2019, 09:30:23 AM »
Weird, Chris... I'm seeing inconsistent results for your site. Sometimes the DNS resolution goes fine and everything loads. Other times I still see the "curl Error: Could not resolve host: tgftp.nws.noaa.gov" message.


edit: put a comma between "weird" and "Chris" so you didn't think I was calling you "Weird Chris".  :grin:
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline mkutche

  • Forecaster
  • *****
  • Posts: 1041
    • GosportWx.com
Re: Local METAR reports Not loading
« Reply #46 on: September 19, 2019, 09:59:16 AM »
Anyway to fix cloudbaseCU.php from loading slow? I know the meter is causing it just dunno how to fix it within the script.
Mike K.
Davis Vantage Vue 6250 - CumulusMX (3.21.1-b3205)
Gosport, Indiana
Gosportwx.com twitter.com/GosportINWX
-----------------------------------------------------------

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 947
    • LexMAWeather
Re: Local METAR reports Not loading
« Reply #47 on: September 19, 2019, 12:08:26 PM »
I don't have / use that code. If you want to DM me the source (you'll need to rename it a txt file to do that) I can have a look.
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline gateway2capecod

  • Senior Member
  • **
  • Posts: 99
    • West Wareham, Ma Weather
Re: Local METAR reports Not loading
« Reply #48 on: September 19, 2019, 08:40:24 PM »
hello again....


yes Jasiu sometimes it loads and sometimes not. it was working most of last night and this morning and the crapped out sometime shortly after and now at 830pm EST still not loading.

so I called the idots at Godaddy and told them to do this as per Kens instructions:

Thanks to Jasiu for the bypass fix shown above.  The root cause of the issue for GoDaddy folks is a DNS lookup failure by the GoDaddy caching DNS servers for tgftp.nws.noaa.gov. You have to ask their tech support to
1) login to the Webserver using SSH
2) try using
Code: [Select]

nslookup tgftp.nws.noaa.gov

and see/fix the error messages shown.


They told me I would need my developer of the Files (Ken) to login to my server using SSH and that they could not do it. They just maintain..or as She said... make sure my shared webhosting site is loading, which it is, but they cant fix specific things like one file not being able to go out and fetch data. They are obviously f**kING MORONS and Im seriously thinking Of getting web hosting from some other Place in the near future.
I told the Stupid Bitch on the phone that I could take all my files and put them on my buddy's server that is on a different host and the site loads fine including the metar data stuff but as of september 9th something is not allowing the metar data to work on their servers.

at the same time my metar Data stopped working so did my USA extreme's script that was originally on my left side bar, but I have since removed since it doesnt load the data.

so Pissed at those Assholes @#$#@!!!

Offline CamarilloWX

  • CamarilloWX
  • Senior Contributor
  • ****
  • Posts: 181
    • Camarillo Weather
Re: Local METAR reports Not loading
« Reply #49 on: September 20, 2019, 05:08:14 PM »
Hey Eric,

Yeah, same thing.  Similar fix.  go into usaextremes.php, find the function curl_get_contents(), and add this line just before the curl_exec() call:

Code: [Select]
curl_setopt($ch, CURLOPT_RESOLVE, array("www.cpc.ncep.noaa.gov:443:140.90.101.79"));
Note that this is the same IP address as the other case. Both resolve to the same server.

Thanks Jaisu.  Currently things seem to be working without the temporary fix but I'll use this if the problem returns.  I have noticed that the issue has been coming and going the past few days.
Eric