Author Topic: Error 500 Internal Server Error ...help needed  (Read 3776 times)

0 Members and 1 Guest are viewing this topic.

Offline cavuu

  • Senior Member
  • **
  • Posts: 55
    • Kincardine Weather
Re: Error 500 Internal Server Error ...help needed
« Reply #25 on: March 17, 2017, 02:20:13 PM »
The latest email from 1and1:

Thank you for contacting us.
We are able to make a successful connection from some test locations but not from the server your webspace is hosted on.  Please contact weather.gc.ca to ensure the following IPs are not blacklisted or filtered in any way:
 74.208.16.28
 66.175.239.5
 If you have any further questions, do not hesitate to contact us.

I emailed EC:
For years I have been showing environment Canada weather on my website but as of  March 2, 2017 I have been unable to display the weather or radar image. After 2 weeks of trouble shooting my webserver 1and1.com is saying that they are being blocked by your servers Could you please check this out and see if anything can be done. Their email is below and a internet forum here has been trying to resolve the problem. .http://www.wxforum.net/index.php?topic=31593.0
Thanks
Don Matheson
www.pilor.com
----------------------------
 We are able to make a successful connection from some test locations but not from the server your webspace is hosted on.  Please contact weather.gc.ca to ensure the following IPs are not blacklisted or filtered in any way:

 74.208.16.28
 66.175.239.5
If you have any further questions, do not hesitate to contact us.
support@1and1.com
Subject: : Re, C730844771
« Last Edit: March 17, 2017, 02:39:49 PM by cavuu »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Error 500 Internal Server Error ...help needed
« Reply #26 on: March 18, 2017, 02:15:24 PM »
I heard from Ann-Marie and she has voted with her feet to leave 1and1.  She's porting beamsvillewx.ca and the Ontario-Weather.net sites to GoDaddy.

Both sites are not fully active just yet as the DNS has to propagate and the sites restored on the new server.
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 cavuu

  • Senior Member
  • **
  • Posts: 55
    • Kincardine Weather
Re: Error 500 Internal Server Error ...help needed
« Reply #27 on: March 20, 2017, 03:40:30 PM »
I contacted Environment Canada and they replied today and are looking into the issue. Their quick response is encouraging.

"Hi Don,
 Your request has been relayed to me. In order to be able to help you, can you send me your IP address, the data you request and every pertinent information related to your issue, I will send it to our technical team. I  hope we can solve your ECCC data access shortly.
 Thanks a lot,  Sandrine"

Also emailed 1and1 and requested they move my account to a different server to resolve the problem.

The website is stable without the 2 EC pages. I will report back with any updates.

Offline cavuu

  • Senior Member
  • **
  • Posts: 55
    • Kincardine Weather
Re: Error 500 Internal Server Error ...help needed
« Reply #28 on: March 21, 2017, 12:52:54 PM »
Further update:

Both EC and 1and1 are actively working on the problem and I have received multiple emails.

At the moment I have my original homepage back up and the EC forecast is working as it did before the problem. No one seems to know/say why it's now ok.
EC radar is still not working.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Error 500 Internal Server Error ...help needed
« Reply #29 on: March 21, 2017, 01:03:27 PM »
The ec-radar.php page (view-source) shows
Quote
<!-- ec-radar.php - V2.02 - 22-Feb-2017 -->
<!-- cacheDir='/homepages/35/d87111527/htdocs/pilor/radar/' -->
<!-- imageDir='./radar/' -->
<!-- date default timezone='America/New_York' -->
<!-- siteID='WSO' -->
<!-- changed '/homepages/35/d87111527/htdocs/pilor/radar/ec-radar-en-WSO.txt'
         to: '/homepages/35/d87111527/htdocs/pilor/radar/ec-radar-en-WSO.txt' -->
<!-- now='2017-03-21 16:56:17 UTC' page cached='2017-03-21 16:56:13 UTC' (4 seconds ago) -->
<!-- forceRefresh=true -->
<!-- loading ec-radar-en-WSO.txt from
  'https://weather.gc.ca/radar/index_e.html?id=WSO' -->
<!-- curl fetching 'https://weather.gc.ca/radar/index_e.html?id=WSO' -->
<!-- curl Error: Operation timed out after 0 milliseconds with 0 out of 0 bytes received -->
<!-- HTTP stats:  RC=0 dest=205.189.10.43 port=443 (from sce=74.208.16.28)
      Times: dns=0.130 conn=0.197 pxfer=0.000 get=5.339 total=5.339 secs -->
<!-- headers returned:

 -->
<!-- unable to open ec-radar-en-WSO.txt for writing 0 bytes.. cache not saved -->
<!-- file: '/homepages/35/d87111527/htdocs/pilor/radar/ec-radar-en-WSO.txt' -->
<!-- html loading finished -->

You can try changing ec-radar.php
Code: [Select]
   $numberOfSeconds=6;   
to
Code: [Select]
   $numberOfSeconds=10;   
to add 4 seconds to the timeout.  That's still a loonnnggg time so there's still some traffic congestion between your webserver and weather.ec.ca server.

My 1and1 (VPS) shows
Quote
<!-- ec-radar.php - V2.02 - 22-Feb-2017 -->
<!-- cacheDir='/var/www/vhosts/s19486853.onlinehome-server.com/httpdocs/wx/radar/' -->
<!-- imageDir='./radar/' -->
<!-- date default timezone='UTC' -->
<!-- siteID='WKR' -->
<!-- changed '/var/www/vhosts/s19486853.onlinehome-server.com/httpdocs/wx/radar/ec-radar-en-WKR.txt'
         to: '/var/www/vhosts/s19486853.onlinehome-server.com/httpdocs/wx/radar/ec-radar-en-WKR.txt' -->
<!-- now='2017-03-21 17:01:58 UTC' page cached='2017-03-21 16:21:07 UTC' (2451 seconds ago) -->
<!-- forceRefresh=true -->
<!-- loading ec-radar-en-WKR.txt from
  'https://weather.gc.ca/radar/index_e.html?id=WKR' -->
<!-- curl fetching 'https://weather.gc.ca/radar/index_e.html?id=WKR' -->
<!-- HTTP stats:  RC=200 dest=205.189.10.43
      Times: dns=0.001 conn=0.067 pxfer=0.296 get=0.277 total=0.573 secs -->
<!-- loading finished. New page cache saved to ec-radar-en-WKR.txt 47754 bytes -->

Glad your ec-forecast is now working.
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 cavuu

  • Senior Member
  • **
  • Posts: 55
    • Kincardine Weather
Re: Error 500 Internal Server Error ...help needed
« Reply #30 on: March 21, 2017, 01:56:02 PM »
I deleted the old ec-radar.php, changed the timeout to 10 and uploaded the new file. Unfortunately it didn't help.
Also emailed EC to say radar is the only existing problem.

Thanks
Don

This is from EC, they really seem to want to help.
-----------------------------------
Is it possible that it’s working again? Justin mentioned below that it is working for him.
Anyway I’ve emailed 1and1 and opened a ticket with them to see what the underlying issue may be.
Adam Ayoub

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Error 500 Internal Server Error ...help needed
« Reply #31 on: March 21, 2017, 02:34:48 PM »
Don,
Would you mind downloading check-fetch-times.php latest version and uploading to your site?

There seems to be some issue with using fconnect() v.s. curl functions on your webserver.. this updated version uses curl instead.

I find it odd that running something like check-fetch-times.php?show=info (with no external accesses) just hangs, as does check-fetch-times.php itself (for testing EC forecast/radar site access).  The updated check-fetch-times.php script will help (I hope) diagnose the issues.
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 cavuu

  • Senior Member
  • **
  • Posts: 55
    • Kincardine Weather
Re: Error 500 Internal Server Error ...help needed
« Reply #32 on: March 21, 2017, 03:16:20 PM »
Your new version is on the site

Don

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Error 500 Internal Server Error ...help needed
« Reply #33 on: March 21, 2017, 03:22:35 PM »
Thanks.. the run of check-fetch-times.php itself shows
Quote
--checking EC Forecast URL --
Using Settings.php $SITE['fcsturlEC'] entry for test.
URL: https://weather.gc.ca/city/pages/on-28_metric_e.html
Cache: ./cache/ec-forecast-en.txt
 curl fetching 'https://weather.gc.ca/city/pages/on-28_metric_e.html'
 Error: Operation timed out after 0 milliseconds with 0 out of 0 bytes received
 HTTP stats:  RC=0 dest=205.189.10.44 port=443 (from sce=74.208.16.28)
      Times: dns=0.125 conn=0.214 pxfer=0.000 get=3.328 total=3.328 secs
RC=, bytes=0
------------
Headers returned:


------------

Skipped cache write test to ./cache/ec-forecast-en.txt file.
Test was NOT successful.
--end EC Forecast URL check --

--checking EC Radar URL --
Using Settings.php $SITE['ecradar'] entry for test.
URL: https://weather.gc.ca/radar/index_e.html?id=WSO
Cache: ./radar/ec-radar-en.txt
 curl fetching 'https://weather.gc.ca/radar/index_e.html?id=WSO'
 Error: Operation timed out after 0 milliseconds with 0 out of 0 bytes received
 HTTP stats:  RC=0 dest=205.189.10.44 port=443 (from sce=74.208.16.28)
      Times: dns=0.000 conn=0.090 pxfer=0.000 get=3.206 total=3.206 secs
RC=, bytes=0
------------
Headers returned:


------------

Skipped cache write test to ./radar/ec-radar-en.txt file.
Test was NOT successful.
--end EC Radar URL check --
with a double time-out getting to weather.gc.ca website from your webserver at 74.208.16.28

If they can't diagnose the internal connectivity issue (their webserver->weather.gc.ca) with that webserver,
1) ask them to move your hosting to another webserver.  If they refuse,
2) move your hosting away from them ...

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 cavuu

  • Senior Member
  • **
  • Posts: 55
    • Kincardine Weather
Re: Error 500 Internal Server Error ...help needed
« Reply #34 on: March 21, 2017, 04:47:14 PM »
Hi Ken

I forwarded your info to 1and1 and in a previous email asked to have them to change servers.

Thanks again!!!
Don

Offline cavuu

  • Senior Member
  • **
  • Posts: 55
    • Kincardine Weather
Re: Error 500 Internal Server Error ...help needed
« Reply #35 on: May 23, 2017, 04:02:38 PM »
Update; Never heard back from 1and1 (how surprising!) All is working again for whatever reason. I did replace EC forecast on the home page with WU and will leave it that way for a few months just in case.