How to detect/recover restx thread exiting?

81 views
Skip to first unread message

David Hathaway

unread,
Dec 10, 2019, 8:14:59 AM12/10/19
to weewx-user
Every once in a while, I get an exception posting to Wunderground :

Dec  8 01:48:52 hathaway weewx[1353]: restx: Wunderground-PWS: Unexpected exception of type <class 'ssl.CertificateError'>
Dec  8 01:48:52 hathaway weewx[1353]: restx: Wunderground-PWS: Thread exiting. Reason: hostname 'weatherstation.wunderground.com' doesn't match either of '*.wpengine.com', 'wpengine.com'

Further, Wunderground has stopped sending me alerts that my station isn't reporting, so I may go many days without posting to WU.  And as of now, wunderfixer doesn't work to populate the history.

Is there a way to automatically detect that restx isn't running and to restart it?  Or to email me an alert?

Thomas Keffer

unread,
Dec 10, 2019, 9:36:13 AM12/10/19
to weewx-user
Wunderground has a habit of fiddling with their SSL certificates, and/or letting them expire, which can cause this error. See issue #413. There's a fix for this, appearing in V4. Instead of exiting, the thread will wait 60 minutes, then retry.

In the meantime, you can try using logwatch to send you an email if the thread exits.

-tk

--
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 on the web visit https://groups.google.com/d/msgid/weewx-user/760b4fe6-1a66-47dd-b08c-d11d5fdbbac3%40googlegroups.com.

David Hathaway

unread,
Dec 10, 2019, 9:47:48 AM12/10/19
to weewx...@googlegroups.com
Thanks for this.  I'll give logwatch a try.  I appreciate the suggestion.


You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/-IF4QjC82-w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEC4S16kLUb%2BzDP1MFdcL0raAFjmOoumqmzwRVDuccRhZQ%40mail.gmail.com.

Xant

unread,
Dec 10, 2019, 9:59:44 AM12/10/19
to weewx-user
WeatherCloud have saved me a few times. Its the only WX Service I know today that has consistently alert me if data is not been uploaded.

Untitled.png


You may consider also uploading to WeatherCloud, even if just for "parallel" alert.

WU as most know, no longer the same...

X
Reply all
Reply to author
Forward
0 new messages