Meteotemplate 500 HTTP Internal Server Error

149 views
Skip to first unread message

Andy Thompson

unread,
Nov 30, 2024, 9:11:31 AM11/30/24
to weewx-user
Hello all,

I've been scratching my head over this issue for quite some time. A while back Meteotemplate quit updating the date on my website. I went to the system log and turned on debug and found that its getting a 500 HTTP Internal Server Error. I contacted my host and they confirmed that all my FTP info is correct and that my IP address is not blocked. They claim its something on my end. What that is I do not know. I could use some help. Thanks.

-Andy

michael.k...@gmx.at

unread,
Dec 1, 2024, 3:29:14 AM12/1/24
to weewx-user
500 codes are on their side. The question is: why would a ftp server return a http error code? A complete log with debug on could reveal what's going on.

Andy Thompson

unread,
Dec 1, 2024, 9:21:09 AM12/1/24
to weewx-user
Screenshot 2024-12-01 082024.png

Tom Keffer

unread,
Dec 1, 2024, 10:08:30 AM12/1/24
to weewx...@googlegroups.com
Those error codes are being returned by the WeeWX RESTful uploader (which generally uses http), not the FTP uploader. You may have a configuration problem. If you want to use FTP, it will be configured in the [StdReport] / [[FTP]] section, not the [StdRESTful] section.

Screenshots do not work well for posting a log. See the wiki section on how to post a log.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/weewx-user/d7c74d1b-01a9-4f39-b789-0e034bcffba1n%40googlegroups.com.
Message has been deleted
Message has been deleted

Andy Thompson

unread,
Dec 3, 2024, 1:34:51 AM12/3/24
to weewx-user
I just want to fix the problem I'm having. What do you think is wrong with my configuration?

michael.k...@gmx.at

unread,
Dec 3, 2024, 1:53:25 AM12/3/24
to weewx-user
We just want to help you fixing the problem you have. Do you think this is possible without seeing your configuration and a useful log? If yes, you just have to be (very, very) patient. If not, or if you aren't patient enough, you can speed up things if you check Tom's link above and follow the instructions :)

Rainer Lang

unread,
Dec 3, 2024, 2:18:15 AM12/3/24
to weewx...@googlegroups.com

I think what would be helpful first is to post the portion of your weewx.conf file where this weewx posting is described (possible password can be replaced by xxxx) -
best the complete [StdReport] section (stanza) as it show in your weewx.conf.
And we'll take it from there. 

As far as I am aware the postings to the Meteotemplate API are http requests.

Rainer Lang

unread,
Dec 3, 2024, 2:44:31 AM12/3/24
to weewx...@googlegroups.com

in addition - an excerpt from your syslog covering one reporting cycle will also be needed - two+ pairs of eyes can often see more than one pair.

An commonly known reason for that behaviour (worked before, no changes made at your end) that your provider enforced https.
So changes to your .htaccess file on your hosting server need to be applied for the http calls still to be accepted
you'd find this file for MT in your ../template subdirectory
its content should look something like
<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>
Usually this file is protected and might only be changed by your hosting provider

another possibility is that the code 500 is returned by your php processor (on the web host) -
the provider may have upgraded the php version and you are not using a respective version of the template (meaning you are still on MT 18.0 and haven't upgraded to MT 19.0)
Reply all
Reply to author
Forward
0 new messages