Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3044 7 December 2018. See the Wiki for download

WU update: The Task was canceled

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.

Moderator: mcrossley

Post Reply
User avatar
jpsc
Posts: 163
Joined: Tue 23 Aug 2011 6:06 pm
Weather Station: Davis Vantage Vue, belfryboy USB
Operating System: Raspbian Jessie
Location: Wye valley, Herefordshire, UK
Contact:

WU update: The Task was canceled

Post by jpsc » Sat 04 Apr 2015 11:38 pm

Running solidly from 24/4 there was a wunderground message once on 30/3 then one on 2/4 and then yesterday after 20:07 every attempted connect to WU gave the same message. On the console there were repeated "error looking up socket handle" messages.

I pressed <ctrl>C and it took some time to stop. I have restarted CMX but not the Pi and it appears to be all OK now.
John Cooper

Cumulus MX on RPi3 with SSD

http://weather.mountpleasanthouse.uk

Image

User avatar
steve
Cumulus Author
Posts: 26714
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: WU update: The Task was canceled

Post by steve » Sun 05 Apr 2015 6:49 am

I think someone else had that same "error looking up socket handle" message, but it wasn't clear at the time that it was related to WU updates specifically. This may be a bug in Mono. OTOH it may be related to the threading in Cumulus. It presumably happens after an attempt to update WU times out. Are there any stack traces in the diags file? Are you using 'rapid fire'?
Steve

User avatar
jpsc
Posts: 163
Joined: Tue 23 Aug 2011 6:06 pm
Weather Station: Davis Vantage Vue, belfryboy USB
Operating System: Raspbian Jessie
Location: Wye valley, Herefordshire, UK
Contact:

Re: WU update: The Task was canceled

Post by jpsc » Sun 05 Apr 2015 11:41 pm

No stack traces, it's started doing it again

Code: Select all

2015-04-06 00:39:08.525 WU update: The Task was canceled
2015-04-06 00:39:13.508 WU update: The Task was canceled
2015-04-06 00:39:18.511 WU update: The Task was canceled
2015-04-06 00:39:23.508 WU update: The Task was canceled
2015-04-06 00:39:28.508 WU update: The Task was canceled
2015-04-06 00:39:33.524 WU update: The Task was canceled
2015-04-06 00:39:38.510 WU update: The Task was canceled
2015-04-06 00:39:43.509 WU update: The Task was canceled
2015-04-06 00:39:48.512 WU update: The Task was canceled
2015-04-06 00:39:53.510 WU update: The Task was canceled
2015-04-06 00:39:58.510 WU update: The Task was canceled
Yes I am using rapid fire realtime
John Cooper

Cumulus MX on RPi3 with SSD

http://weather.mountpleasanthouse.uk

Image

User avatar
steve
Cumulus Author
Posts: 26714
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: WU update: The Task was canceled

Post by steve » Mon 06 Apr 2015 7:14 am

It seems that "The task was canceled" usually indicates a timeout, so I suspect that you are not getting a response from WU. It can also mean that too many http tasks are queued; this might happen if the responses start taking more than 5 seconds. MX doesn't currently check whether there is already an update in progress before initiating a new one - I'll change it so it does that.
Steve

User avatar
jpsc
Posts: 163
Joined: Tue 23 Aug 2011 6:06 pm
Weather Station: Davis Vantage Vue, belfryboy USB
Operating System: Raspbian Jessie
Location: Wye valley, Herefordshire, UK
Contact:

Re: WU update: The Task was canceled

Post by jpsc » Tue 07 Apr 2015 1:39 am

Looks like something their end, at 14:00 yesterday it stopped, with no action on my part. It had been refusing updates since Sunday 20:00
John Cooper

Cumulus MX on RPi3 with SSD

http://weather.mountpleasanthouse.uk

Image

User avatar
GlueGuy2
Posts: 27
Joined: Fri 16 Jan 2015 5:39 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 8.1
Location: US - California

Re: WU update: The Task was canceled

Post by GlueGuy2 » Thu 15 Oct 2015 4:32 pm

jpsc wrote:Looks like something their end, at 14:00 yesterday it stopped, with no action on my part. It had been refusing updates since Sunday 20:00
I've been using CMX for a couple weeks now on my "CumulusPi". It's been working great, with the only issue being me accidentally starting CM1 on my windows machine. I need to reboot my VP2 as well as restarted CMX in order to recover from the boo boo.

But I digress.

I just started getting a few of these messages (WU update: The Task was canceled) today. I wondered whether this was some issue with CMX or with Weather Underground. At this point I'm inclined to believe that it is some (hopefully transient) issue with Weather Underground.
bp

User avatar
steve
Cumulus Author
Posts: 26714
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: WU update: The Task was canceled

Post by steve » Thu 15 Oct 2015 4:41 pm

I've had a couple of those today. Looks like WU being slow to respond; I'm having trouble getting WU to open in my browser.
Steve

lizmarr
Posts: 6
Joined: Tue 04 Nov 2014 3:16 pm
Weather Station: TP180WC
Operating System: Windows XP PRO
Location: Coos Bay, Oregon, US

Re: WU update: The Task was canceled

Post by lizmarr » Thu 15 Oct 2015 5:06 pm

WU is possibly going into major revision. Its parent company, The Weather Channel, announced severe cutbacks reducing their staff by probably 1/3 and reorganizing their shows - including their major players like Al and Jeff. I would expect such actions to fall over onto Wunderground and its products. Hold onto your hats folks, it might be a wild one. PS. It took me many tries to even log onto the site and my two stations are not showing on the map. The only system that the one using Weather Smart talks to is Wunderground. WTH am I going to do with that one if they quit carrying the PWS. It sure is irritating.

http://www.latimes.com/entertainment/en ... story.html

I found a bit about no longer using Facebook for logons, but I can't find the actual page that the site keeps bogging down.

User avatar
GlueGuy2
Posts: 27
Joined: Fri 16 Jan 2015 5:39 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 8.1
Location: US - California

Re: WU update: The Task was canceled

Post by GlueGuy2 » Thu 15 Oct 2015 5:51 pm

Not a good sign.

I started getting this message just a few minutes ago:
WU update: Connection refused
Also not a good sign...
bp

User avatar
radilly
Posts: 62
Joined: Fri 17 Jul 2015 11:01 am
Weather Station: Ambient WS-2080
Operating System: Raspian Jessie
Location: McMurray, PA, US
Contact:

Re: WU update: The Task was canceled

Post by radilly » Mon 22 Jan 2018 3:40 pm

I ran into this today. I have a watchdog on the Pi watching for various conditions and hadn't been looking for it previously. Stumbled onto after about 4 hours stuck in this mode - by looking at the WU site.

I'm going to suggest that at least part of the issue may be within CMX. That is based on just one experience which is hardly a pattern. After reading this thread, and monitoring a growing number of mono threads (336) and CPU usage, I tried a reboot. As far as I can see, after the reboot the WU updates are working normally, where prior to it they seemed to be failing with "WU update: The Task was canceled" consistently.

This is a fragment of the 2 sequential logs grepping for "WU"...

Code: Select all

20180108-210151.txt:2018-01-22 09:47:40.619 WU update: The Task was canceled
20180108-210151.txt:2018-01-22 09:49:40.648 WU update: The Task was canceled
20180108-210151.txt:2018-01-22 09:51:40.702 WU update: The Task was canceled
20180122-095424.txt:2018-01-22 09:56:01.178 WU Response: OK: success
20180122-095424.txt:2018-01-22 09:57:00.744 WU Response: OK: success
20180122-095424.txt:2018-01-22 09:58:00.744 WU Response: OK: success
I also note a different pattern here when CMX appears to drop into the "WU update: The Task was canceled" mode. CMX does an excellent job of starting updates at the top of the minute - and my WU updates fire once per minute. However, once this mode started, the "WU" lines are 2 minutes apart. If I had to guess, I suspect there's a timeout at around 100 seconds, or 1:40 when the canceled message is issued. CMX likely starts the next attempt at the top of the minute (20 sec later) and then takes another 1:40 to fail (skipping one attempt in the process). In the log the stride between errors is 2 minutes, but between successes is 1 minute.

Looking back through the logs, grepping for "WU update" I note that there hadn't been a burp in about a week...

Code: Select all

2018-01-15 16:05:00.942 WU update:    at System.Net.WebConnection.HandleError(WebExceptionStatus st, System.Exception e, System.String where)
2018-01-15 16:08:00.919 WU update:    at System.Net.WebConnection.HandleError(WebExceptionStatus st, System.Exception e, System.String where)
2018-01-22 05:57:40.987 WU update: The Task was canceled
2018-01-22 05:59:40.996 WU update: The Task was canceled
2018-01-22 06:01:41.021 WU update: The Task was canceled
2018-01-22 06:03:41.006 WU update: The Task was canceled
By the way ... Seems like, at least for my station, WU did something around 10 Jan that dramatically reduced the WU exception messages.

My Python watchdog already monitors Diags, so I'll add code to handle this case. Based on this single experience, it appears an unbroken string of "WU update: The Task was canceled" messages over 4 hours was cured by the Pi reboot (40 minutes and updates without a burp). If I'm ambitious enough, I may allow for some number of these in a row before I indicate that a reboot is needed. From what I read here, it seems there may be cases where it fixes itself.

Cheers,
Bob

User avatar
ConligWX
Posts: 734
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

Re: WU update: The Task was canceled

Post by ConligWX » Mon 22 Jan 2018 3:48 pm

for the last 2-3 months WU had been affected by outages to the extent their fire extinguishers are empty. The Support team had no idea how to fix issues. they have now drafted in a team to try to fix all outstanding issues (there is tons of them

listed here: https://trello.com/b/hqC0tb0u/weather-underground

dont expect a quick fix by WU, they are also planning on upgrading their systems which no doubt will provide more bugs than features.

more discussion on WU drama over here: https://www.wxforum.net/index.php?topic=33651.0

make sure you have time to read it...
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
radilly
Posts: 62
Joined: Fri 17 Jul 2015 11:01 am
Weather Station: Ambient WS-2080
Operating System: Raspian Jessie
Location: McMurray, PA, US
Contact:

Re: WU update: The Task was canceled

Post by radilly » Mon 22 Jan 2018 7:44 pm

Yeah Simon - I have read some of it, but hadn't seen the WU Trello board. I actually started digging into wxforum when I realized my webcam wasn't updating (and I posted a little to https://www.wxforum.net/index.php?topic=33258). I was looking for WU alternatives. From the Trello board, webcams continue to be an issue.

I dug though some diags logs looking for other, untrapped (by my code) messages and found a few of these...

Code: Select all

WeatherCloud update: The Task was canceled
A little more than 1 / day on average. This appears to have the same timeout (1:40), and is similar in that regard. What is different is that the 15 of these I've accumulated over the past few weeks didn't stop WeatherCloud from carrying on. (As I result I hadn't noticed them.) I do see gaps in the plots when this occurs. Far less concerning than WU.

Cheers,
Bob

I found 2 other threads when looking about for messages like these... But not clear a new WeatherCloud thread would be helpful.
Interruption of data feed to Awekas
Website not updated

But I'll note that I found these unique WeatherCloud messages in my log since I started posting there (for completeness).

Code: Select all

WeatherCloud Response: InternalServerError: <h1>CException</h1>
WeatherCloud Response: OK: 200
WeatherCloud Response: OK: 429
WeatherCloud update: The Task was canceled

User avatar
ConligWX
Posts: 734
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

Re: WU update: The Task was canceled

Post by ConligWX » Tue 23 Jan 2018 8:29 am

what version of mono are you using?
Regards Simon

https://www.conligwx.org
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - Meteobrige Nano SD + Saratoga/PWS Templates

User avatar
radilly
Posts: 62
Joined: Fri 17 Jul 2015 11:01 am
Weather Station: Ambient WS-2080
Operating System: Raspian Jessie
Location: McMurray, PA, US
Contact:

Re: WU update: The Task was canceled

Post by radilly » Tue 23 Jan 2018 9:03 pm

From the diags log...

Code: Select all

2018-01-22 09:54:24.456 Cumulus MX v.3.0.0 build 3043
2018-01-22 09:54:24.466 OS version: Unix 4.9.35.7
2018-01-22 09:54:24.467 Mono version: 3.2.8 (Debian 3.2.8+dfsg-10)
I think that's the recommended version (for Jessie). I've not tried Stretch yet

I may start a WeatherCloud thread for this, though this looks a lot like what I saw for WU. For the better part of 4 hours I haven't seen a "WeatherCloud Response: OK: 200" in my log. I've seen 1 "Response: OK: 429" and the other attempts are "The Task was canceled." So it will be interesting to see what effect a reboot/restart will have. ....

Well, next 3 attempts after reboot also failed according to the log - different from the WU issue (though it could be coincidence). (I did do a full Pi reboot.)

Interestingly, in spite of the logged cancelations, there are only small gaps in the WeatherCloud site.
20180123_Weathercloud_burps.jpg
That different than the effect on WU data. Not sure what to make of it. One gap corresponds to the 429 in the log.
You do not have the required permissions to view the files attached to this post.

User avatar
radilly
Posts: 62
Joined: Fri 17 Jul 2015 11:01 am
Weather Station: Ambient WS-2080
Operating System: Raspian Jessie
Location: McMurray, PA, US
Contact:

Re: WU update: The Task was canceled

Post by radilly » Wed 24 Jan 2018 3:58 pm

OK ... I started a new thread, WeatherCloud update: The Task was canceled because I had some more observations I wanted to share.

Spoiler ... the timing seems to have changed a little as of this morning.

Post Reply