Bug 387601 - No location search results from Environment Canada in openSUSE Leap 42.3
Summary: No location search results from Environment Canada in openSUSE Leap 42.3
Status: RESOLVED FIXED
Alias: None
Product: kdeplasma-addons
Classification: Plasma
Component: Weather (show other bugs)
Version: 5.8.7
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Friedrich W. H. Kossebau
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-12-04 20:12 UTC by Roman Bysh
Modified: 2018-09-29 22:32 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of prroviders (66.97 KB, image/png)
2017-12-04 20:15 UTC, Roman Bysh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Bysh 2017-12-04 20:12:30 UTC
Looks like a recent update to openSUSE Leap 42.3 broke the Weather Plasmoid so that it no longer provides Environment Canada as a source for Toronto, ON.

At this time wettercom and bbcukmet are only provide
Comment 1 Roman Bysh 2017-12-04 20:15:33 UTC
Created attachment 109212 [details]
Screenshot of prroviders
Comment 2 Friedrich W. H. Kossebau 2017-12-04 20:21:15 UTC
In the screenshot there is still the spinner visible.
So any chance that the envcan service has not yet responded?

On my openSUSE TW there still is the provider plugin coming with latest Plasma 5.11, as part of plasma5-workspace package.

What does this show for you? (assuming 64bit system)

zypper wp /usr/lib64/qt5/plugins/plasma/dataengine/ion_envcan.so
Comment 3 Friedrich W. H. Kossebau 2017-12-04 20:23:38 UTC
And when querying for "Toronto", I also get locations from envcan ("Toronto Island, ON", "Toronto, ON").
Comment 4 Roman Bysh 2017-12-05 21:17:45 UTC
The envcan does not respond on Leap 42.3 anymore. Last night I had it running for an hour as the spinner kept spinning. 

I checked on TW and it receives envcan.

I have the same entry:  /usr/lib64/qt5/plugins/plasma/dataengine/ion_envcan.so

Can you install Leap 42.3 in Virtualbox and see if you can replicate this problem?
Comment 5 Friedrich W. H. Kossebau 2017-12-11 13:59:24 UTC
Don't have the bandwidth and time currently to try leap myself.

Did a "git diff origin/Plasma/5.8 origin/Plasma/5.11 -- dataengines/weather" on plasma-workspace repo, but there is nothing in the small diff which would explain why it behaves differently (actually no change for envcan plugin itself).

Any chance it is not some random hick-up of the envcan server, which just accidentally correlated with you trying the different OS versions?
Comment 6 Roman Bysh 2017-12-15 02:51:28 UTC
It can't be a random hick up if it's consistently not working on Leap 42.3.
However, it is working on Tumbleweed and Leap 15.

I'll reinstall Leap 42.3 and see if the "envcan" servers start sending me data.
Comment 7 Roman Bysh 2017-12-24 22:07:50 UTC
The Environment Canada or envcan uses xml files rather than rss files.
Here's the link: 

Toronto, ON

https://weather.gc.ca/rss/city/on-143_e.xml
Comment 8 Christoph Feck 2018-01-10 14:56:33 UTC
Thanks for the update; changing status for inspection.
Comment 9 Friedrich W. H. Kossebau 2018-01-10 15:42:56 UTC
I am not sure what you mean by "The Environment Canada or envcan uses xml files rather than rss files.". Where do you see the relationship to Leap vs. TW?

The envcan plugin fetches its data from another source than the RSS, one which serves some xml file suited for automated processing, while the RSS variant is more for human consumption.

For Toronto that would be
http://dd.weatheroffice.ec.gc.ca/citypage_weather/xml/ON/s0000458_e.xml

Though querying the available weather stations is done by fetching the file
http://dd.weatheroffice.ec.gc.ca/citypage_weather/xml/siteList.xml and looking up the location query string in that data. So if Toronto is no longer shown with envcan when searching weather stations, possibly something fails with the download of that file.

See EnvCanadaIon::getXMLSetup() (https://cgit.kde.org/plasma-workspace.git/tree/dataengines/weather/ions/envcan/ion_envcan.cpp?h=Plasma%2F5.8#n510 )

Perhaps you can try to simluate that download with some simple app which does just that KIO::get call and the data processing in some respective slots for &KIO::TransferJob::data & &KJob::result. And then see where this fails. Perhaps some KIO/Qt network settings block the download with the library versions of what is in Leap?
Comment 10 Christoph Feck 2018-01-31 01:38:13 UTC
If you can provide the information requested in comment #9, please add it.
Comment 11 Christoph Feck 2018-02-14 22:17:05 UTC
Roman, could you please check comment #9? Developers still need some information to be able to resolve this issue.
Comment 12 Roman Bysh 2018-02-14 23:00:17 UTC
Which simple app can you suggest I try?
Comment 13 Friedrich W. H. Kossebau 2018-02-19 20:37:55 UTC
(In reply to Roman Bysh from comment #12)
> Which simple app can you suggest I try?

No idea/suggestion myself. Ideally you (or someone else bugged by this on Leap 42.3) would write a simple test app yourself, so you have tight control and debug possibilities.
Given this bug seems so far Leap 42.3 setup only and not easily testable by myself due to limited resources, myself I sadly cannot give it enough priority over the other things on my TODO list, so it needs someone else to investigate more here.
Comment 14 Roman Bysh 2018-02-20 16:48:16 UTC
Please pass it on to another person if you have a full plate.

Leap 15 Beta has a working copy that provides envcan already. Should be out in two or three months.
Comment 15 Friedrich W. H. Kossebau 2018-02-20 17:06:02 UTC
(In reply to Roman Bysh from comment #14)
> Please pass it on to another person if you have a full plate.

I wish I knew someone to pass this to :) Hope you did not get me wrong before, I just wanted to make clear that no-one should put bets on me here to fix this, as I am, sadly for the others, mainly scratching my own itches (e.g. that's why I have ported the weather applet at all to Plasma5 because I missed it, otherwise it might be still dead). 

And the amount of work/my own resources I would have to put into fixing this very bug, that sees lots of other attractors with much higher anticipated ROI (and not only for myself).

> Leap 15 Beta has a working copy that provides envcan already. Should be out
> in two or three months.

Sad thing is that Leap 42.3 is supposed to be supported until 2019 IIRC. So that will not help those who decided to stay on Leap 42.3, or? Sorry, myself on Tumbleweed, do not follow Leap plans, so clueless.
Comment 16 Andrew Crouthamel 2018-09-28 03:24:38 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 17 Roman Bysh 2018-09-29 22:32:57 UTC
This bug has been fixed withe last update.