Certificate Verify failed

110 views
Skip to first unread message

David Barto

unread,
Aug 4, 2023, 9:13:20 PM8/4/23
to weewx...@googlegroups.com
But only after I changed my password on the Wunderground.com site because they asked me to. (Bas..rds)

So it went from fine:
Aug  1 20:43:15 Magrathea weewx[58335]: manager: Added record 2023-08-01 20:43:00 PDT (1690947780) to database 'weewx.sdb'
Aug  1 20:43:15 Magrathea weewx[58335]: manager: Added record 2023-08-01 20:43:00 PDT (1690947780) to daily summary in 'weewx.sdb'
Aug  1 20:43:15 Magrathea weewx[58335]: restx: CWOP: wait interval (240 < 600) has not passed for record 2023-08-01 20:43:00 PDT (1690947780)
Aug  1 20:43:15 Magrathea weewx[58335]: restx: StationRegistry: wait interval (85440 < 604800) has not passed for record 2023-08-01 20:43:00 PDT (1690947780)
Aug  1 20:43:16 Magrathea weewx[58335]: forecast: WUThread: WU: failed attempt 1 to download forecast: HTTP Error 503: Service Unavailable
Aug  1 20:43:18 Magrathea weewx[58335]: forecast: WUThread: WU: failed attempt 2 to download forecast: HTTP Error 503: Service Unavailable
Aug  1 20:43:19 Magrathea weewx[58335]: forecast: WUThread: WU: failed attempt 3 to download forecast: HTTP Error 503: Service Unavailable
Aug  1 20:43:19 Magrathea weewx[58335]: forecast: WUThread: WU: failed to download forecast
Aug  1 20:43:19 Magrathea weewx[58335]: forecast: WUThread: WU: no forecast data for KCAPOWAY187 from http://api.wunderground.com/api

to this:

Aug  4 00:57:18 Magrathea weewx[58335]: manager: Added record 2023-08-04 00:57:00 PDT (1691135820) to database 'weewx.sdb'
Aug  4 00:57:18 Magrathea weewx[58335]: manager: Added record 2023-08-04 00:57:00 PDT (1691135820) to daily summary in 'weewx.sdb'
Aug  4 00:57:18 Magrathea weewx[58335]: restx: StationRegistry: wait interval (273480 < 604800) has not passed for record 2023-08-04 00:57:00 PDT (1691135820)
Aug  4 00:57:18 Magrathea weewx[58335]: restx: CWOP: wait interval (480 < 600) has not passed for record 2023-08-04 00:57:00 PDT (1691135820)
Aug  4 00:57:19 Magrathea weewx[58335]: restx alert: Wunderground-PWS: Failed upload attempt 1: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>
Aug  4 00:57:19 Magrathea weewx[58335]: forecast: WUThread: WU: failed attempt 1 to download forecast: HTTP Error 503: Service Unavailable
Aug  4 00:57:20 Magrathea weewx[58335]: forecast: WUThread: WU: failed attempt 2 to download forecast: HTTP Error 503: Service Unavailable
Aug  4 00:57:20 Magrathea weewx[58335]: forecast: WUThread: WU: failed attempt 3 to download forecast: HTTP Error 503: Service Unavailable
Aug  4 00:57:20 Magrathea weewx[58335]: forecast: WUThread: WU: failed to download forecast
Aug  4 00:57:20 Magrathea weewx[58335]: forecast: WUThread: WU: no forecast data for KCAPOWAY187 from http://api.wunderground.com/api

And I stopped publishing.

Which certificate is it complaining about and how would I find/create a proper certificate.
Note: Version 3.9.2 (yeah, old and my Mac I’m using has a very old python on it)

David


...well over half of the time you spend working on a project (on the order of 70 percent)
is spent thinking, and no tool, no matter how advanced, can think for you.
Consequently, even if a tool did everything except the thinking for you -- if it wrote 100 percent of the code,
wrote 100 percent of the documentation, did 100 percent of the testing, burned the CD-ROMs,
put them in boxes, and mailed them to your customers -- the best you could hope for would
be a 30 percent improvement in productivity. In order to do better than that, you have to
change the way you think.
            --Fred Brooks
David Barto
ba...@kdbarto.org


Tom Keffer

unread,
Aug 4, 2023, 9:25:42 PM8/4/23
to weewx...@googlegroups.com
Can't speak for the problem with forecast, but for your CERTIFICATE_VERIFY_FAILED error, try refreshing the certificates on your machine:

sudo apt-get update
sudo apt-get install --reinstall ca-certificates


--
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/405339E8-0448-477E-9162-719CFCDD90E9%40kdbarto.org.

David Barto

unread,
Aug 4, 2023, 9:33:09 PM8/4/23
to weewx...@googlegroups.com
This is a MacOS install, apt-get doesn’t exist. 8^(

David


Do the right thing. It will gratify some people and astonish the rest.
        --Mark Twain.
David Barto
ba...@kdbarto.org





Tom Keffer

unread,
Aug 4, 2023, 10:07:22 PM8/4/23
to weewx...@googlegroups.com
Sorry. I missed that piece of information. 

I believe the WU uses DigiCert, so if an expired certificate is the problem, your goal is to update the DigiCert root certificate. I'm not sure how to do that on a Mac, although I'm sure there are instructions somewhere. Perhaps you can download a .pem file directly from their website. Check around.

One thing to try is the app Keychain Access. Click on "System Roots" and look for the DigiCert certificates and see how old they are.

Sorry I don't have anything more helpful.

Paul R Anderson

unread,
Aug 5, 2023, 7:46:06 PM8/5/23
to weewx...@googlegroups.com

2 days ago I changed my password on Weather Underground after they requested I do so. My new password is accepted when logging on to their site. However  if I update my weewx.conf with the new password uploads fail. Setting weewx.conf with the old password uploading works. I'm assuming that Weather Underground doesn't sync new passwords across their services on a timely basis. So just check my log daily and when uploads stop working then it's time to set weewx.conf to the new password.

Classic Weather Underground behavior actually they have always had flaky api's and services, and things have gone from bad to worse since IBM bought them. Often wonder why I still bother uploading my data to them and the only reason is that I've been doing so for about 20 years.


Paul      

Tom Keffer

unread,
Aug 5, 2023, 8:19:12 PM8/5/23
to weewx...@googlegroups.com
You should use the "station key" as the password. You can find it at  https://www.wunderground.com/member/devices

gary....@gmail.com

unread,
Aug 5, 2023, 8:19:58 PM8/5/23
to weewx-user
Since they just consolidated several sites/services, I just 'reset' my password to the current one.
If there is anything tied to the WU password, it'll be fine.

Paul R Anderson

unread,
Aug 5, 2023, 9:11:01 PM8/5/23
to weewx...@googlegroups.com
Thanks Tom
Set my "station key" as the password and uploads are working. Funny it was set to the old password for years without issue.

  

Tom Keffer

unread,
Aug 5, 2023, 10:28:01 PM8/5/23
to weewx...@googlegroups.com
About two years ago, they quietly changed their documented upload protocol to require the station key. But they continued to allow the user password to be used, but in an erratic manner. Sometimes it works, sometimes it doesn't. 

Reply all
Reply to author
Forward
0 new messages