restx reports "Exception <urlopen error timed out>" for Wunderground-PWS, Wunderground-RF & StationRegistry

395 views
Skip to first unread message

Chris Phillips

unread,
Apr 20, 2014, 7:59:44 PM4/20/14
to weewx...@googlegroups.com
Hi All,

I'm just starting with weewx on a Raspberry Pi and although I've got it talking to my WH1081 and graphing as desired, I am seeing errors when trying to upload data.

Here's some log entries around the issue - each for a different upload method: -

Starting up: -

# /etc/init.d/weewx start
[....] Starting weewx weather system: weewxApr 21 00:12:06 home weewx[12640]: wxengine: Initializing weewx version 2.6.3
Apr 21 00:12:06 home weewx[12640]: wxengine: Using Python 2.7.3 (default, Mar 18 2014, 05:13:23) #012[GCC 4.6.3]
Apr 21 00:12:06 home weewx[12640]: wxengine: pid file is /var/run/weewx.pid
Apr 21 00:12:07 home weewx[12642]: wxengine: Using configuration file /etc/weewx/weewx.conf
Apr 21 00:12:07 home weewx[12642]: wxengine: Loading station type FineOffsetUSB (weewx.drivers.fousb)
Apr 21 00:12:07 home weewx[12642]: fousb: driver version is 1.6
Apr 21 00:12:07 home weewx[12642]: fousb: polling mode is PERIODIC
Apr 21 00:12:07 home weewx[12642]: fousb: polling interval is 60
Apr 21 00:12:07 home weewx[12642]: fousb: altitude is 79.8576 meters
Apr 21 00:12:07 home weewx[12642]: fousb: pressure offset is 0.0
Apr 21 00:12:07 home weewx[12642]: fousb: found station on USB bus=001 device=004
Apr 21 00:12:07 home weewx[12642]: fousb: Detach kernel driver failed: could not detach kernel driver from interface 0: No data available
Apr 21 00:12:07 home weewx[12642]: wxengine: Loading service weewx.wxengine.StdTimeSynch
Apr 21 00:12:07 home weewx[12642]: wxengine: Finished loading service weewx.wxengine.StdTimeSynch
Apr 21 00:12:07 home weewx[12642]: wxengine: Loading service weewx.wxengine.StdConvert
Apr 21 00:12:07 home weewx[12642]: wxengine: StdConvert target unit is 0x11
Apr 21 00:12:07 home weewx[12642]: wxengine: Finished loading service weewx.wxengine.StdConvert
Apr 21 00:12:07 home weewx[12642]: wxengine: Loading service weewx.wxengine.StdCalibrate
Apr 21 00:12:07 home weewx[12642]: wxengine: Finished loading service weewx.wxengine.StdCalibrate
Apr 21 00:12:07 home weewx[12642]: wxengine: Loading service weewx.wxengine.StdQC
Apr 21 00:12:07 home weewx[12642]: wxengine: Finished loading service weewx.wxengine.StdQC
Apr 21 00:12:07 home weewx[12642]: wxengine: Loading service weewx.wxengine.StdArchive
Apr 21 00:12:07 home weewx[12642]: wxengine: Record generation will be attempted in 'hardware'

The data-upload setup: -

Apr 21 00:12:08 home weewx[12642]: wxengine: Loading service weewx.restx.StdStationRegistry
Apr 21 00:12:08 home weewx[12642]: restx: StationRegistry: Station will be registered.
Apr 21 00:12:08 home weewx[12642]: wxengine: Finished loading service weewx.restx.StdStationRegistry

Apr 21 00:12:08 home weewx[12642]: wxengine: Loading service weewx.restx.StdWunderground
Apr 21 00:12:08 home weewx[12642]: restx: Wunderground-PWS: Data for station ISOUTHGL3 will be posted
Apr 21 00:12:08 home weewx[12642]: wxengine: Finished loading service weewx.restx.StdWunderground

The WUnderground-PWS bit: -

Apr 21 00:12:28 home weewx[12642]: restx: Wunderground-PWS: Failed upload attempt 1: Exception <urlopen error timed out>
Apr 21 00:12:43 home weewx[12642]: restx: Wunderground-PWS: Failed upload attempt 2: Exception <urlopen error timed out>
Apr 21 00:12:58 home weewx[12642]: restx: Wunderground-PWS: Failed upload attempt 3: Exception <urlopen error timed out>
Apr 21 00:13:03 home weewx[12642]: restx: Wunderground-PWS: Failed to publish record 2014-04-20 23:50:13 BST (1398034213): Failed upload after 3 tries

I also see that even the weewx station registration is failing: -

Apr 21 00:13:18 home weewx[12642]: restx: StationRegistry: Failed upload attempt 1: Exception <urlopen error timed out>

I reconfigured, turning on WURapidFire: -

Apr 21 00:44:50 home weewx[13039]: wxengine: Loading service weewx.restx.StdWunderground
Apr 21 00:44:50 home weewx[13039]: restx: Wunderground-RF: Data for station ISOUTHGL3 will be posted
Apr 21 00:44:50 home weewx[13039]: wxengine: Finished loading service weewx.restx.StdWunderground

Apr 21 00:45:41 home weewx[13039]: restx: Wunderground-RF: Failed upload attempt 1: Exception <urlopen error timed out>
Apr 21 00:45:46 home weewx[13039]: restx: Wunderground-RF: Failed to publish record 2014-04-21 00:45:31 BST (1398037531): Failed upload after 1 tries
Apr 21 00:46:45 home weewx[13039]: restx: Wunderground-RF: Failed upload attempt 1: Exception <urlopen error timed out>
Apr 21 00:46:50 home weewx[13039]: restx: Wunderground-RF: Failed to publish record 2014-04-21 00:46:35 BST (1398037595): Failed upload after 1 tries

Then I tried WOW (I've never used WOW before, so am less sure of a working account): -

Apr 21 00:49:24 home weewx[13149]: wxengine: Loading service weewx.restx.StdWOW
Apr 21 00:49:24 home weewx[13149]: restx: WOW: Data for station furriephillips will be posted
Apr 21 00:49:24 home weewx[13149]: wxengine: Finished loading service weewx.restx.StdWOW

Apr 21 00:50:27 home weewx[13149]: restx: WOW: Failed upload attempt 1: Exception <urlopen error [Errno 97] Address family not supported by protocol>
Apr 21 00:50:42 home weewx[13149]: restx: WOW: Failed upload attempt 2: Exception <urlopen error [Errno 97] Address family not supported by protocol>
Apr 21 00:50:57 home weewx[13149]: restx: WOW: Failed upload attempt 3: Exception <urlopen error [Errno 97] Address family not supported by protocol>
Apr 21 00:51:03 home weewx[13149]: restx: WOW: Failed to publish record 2014-04-21 00:48:13 BST (1398037693): Failed upload after 3 tries

I'm not sure what to do, to further diagnose the issue - any ideas would be welcomed :)

Cheers,
--
ChrisP

Thomas Keffer

unread,
Apr 20, 2014, 8:46:54 PM4/20/14
to weewx-user
Hi, Chris

This looks like a connectivity problem from your RPi to the outside world. It could be caused by firewall settings on a router. 

From a terminal, try this (you type what's in blue):


It should print out some info about connecting to the weather underground, then some HTML outlining the PWS protocol. If you are able to get this, the connectivity to the WU is OK and the problem lies elsewhere. If it doesn't work, then it's a connectivity issue.

-tk



--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Phillips

unread,
Apr 20, 2014, 9:18:05 PM4/20/14
to weewx...@googlegroups.com
Well, this is embarrassing!

Approximately 3 minutes after I posted, I did some simple "back-to-basics" network diagnostics and found that the Pi had lost Internet connectivity...

Just before I went out last night, I set up the Pi with a static IP rather than a DHCP & rebooted.  When I got back I had forgotten that fact and when I discovered the typo I'd made on the gateway IP, I could have kicked myself!

Typo on gateway corrected in "/etc/network/interfaces", then "/etc/init.d/networking reload" and all my data upload issues are gone - what a fool I am.

Should be a nice easy git of googling for any other numpties who have similar issues in the future :)

Cheers,
--
ChrisP

Thomas Keffer

unread,
Apr 20, 2014, 9:20:10 PM4/20/14
to weewx-user
No problem. I'm gratified that I diagnosed it correctly! :-)

-tk


Chris Phillips

unread,
Apr 20, 2014, 9:26:34 PM4/20/14
to weewx...@googlegroups.com
Yep, good diagnosis Tom.

It's kinda hilarious when you know what I do for a living and indeed, what I was out doing, just after making the typo ;)
Reply all
Reply to author
Forward
0 new messages