Weather applet not updating, entire dock crashes on uninstall

Bug #1968797 reported by jose pedro
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Cairo-Dock Core
New
Undecided
Unassigned

Bug Description

Weather applet is correctly configured but does not show any updates and of course, shows no data.

When I try to remove applet from menu:
Remove methods- right click over applet, weather, remove or using cairo dock configuration screen, suddenly cairo dock shuts off.

I'm unable to remove weather applet.

Neofetch output:

       _,met$$$$$gg. root@lenovo
    ,g$$$$$$$$$$$$$$$P. -----------
  ,g$$P" """Y$$.". OS: Debian GNU/Linux 11 (bullseye) x86_64
 ,$$P' `$$$. Host: 80S2 Lenovo B50-50
',$$P ,ggs. `$$b: Kernel: 5.10.0-13-amd64
`d$$' ,$P"' . $$$ Uptime: 3 hours, 28 mins
 $$P d$' , $$P Packages: 3441 (dpkg)
 $$: $$. - ,d$$' Shell: bash 5.1.4
 $$; Y$b._ _,d$P' Resolution: 1366x768
 Y$$. `.`"Y$$$$P"' WM: Xfwm4
 `$$b "-.__ Theme: Adwaita [GTK3]
  `Y$$ Icons: Adwaita [GTK3]
   `Y$$. Terminal: x-terminal-emul
     `$$b. CPU: Intel i3-5005U (4) @ 1.900GHz
       `Y$$b. GPU: Intel HD Graphics 5500
          `"Y$b._ Memory: 2640MiB / 7869MiB
              `"""

Desktop XFCE.

Cairo dock version: 3.4.1

Output calling cairo from terminal:
Doing update:

warning : (/build/cairo-dock-plug-ins-ypV697/cairo-dock-plug-ins-3.4.1+git20201022.a0d3415c/weather/src/applet-read-data.c:cd_weather_get_distant_data:253)
  while downloading current conditions data:
https://weather-ydn-yql.media.yahoo.com/forecastrss?location=SPXX0769&format=xml&u=f -> Couldn't download file 'https://weather-ydn-yql.media.yahoo.com/forecastrss?location=SPXX0769&format=xml&u=f' (Couldn't resolve host name)

Removing weather widget:

cairo-dock: symbol lookup error: /usr/lib/x86_64-linux-gnu/cairo-dock/libcd-weather.so: undefined symbol: cd_weather_free_location_list

Debug file attached.

Revision history for this message
jose pedro (aradielsabathius) wrote :
Revision history for this message
Norman Prather (wanderingcleric) wrote :

I've encountered the same issue using Mint 21.

Revision history for this message
johanna hadam (joanna42) wrote :

I have the same problem.
I just tried to remove the applet from the dock to test if it behaves the same and it did.

debian 11
mate desktop

This seems to be the main problem why the applet does not work:
 while downloading current conditions data:
https://weather-ydn-yql.media.yahoo.com/forecastrss?location=GMXX6175&format=xml&u=c -> Couldn't download file 'https://weather-ydn-yql.media.yahoo.com/forecastrss?location=GMXX6175&format=xml&u=c' (Couldn't resolve host name)

The URL is not working because the DNS is not working:
 <<>> DiG 9.16.33-Debian <<>> weather-ydn-yql.media.yahoo.com ns
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 36998
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: c8de8225cd7ec6b70100000063baedff84263fc5fb3c052e (good)
;; QUESTION SECTION:
;weather-ydn-yql.media.yahoo.com. IN NS

;; AUTHORITY SECTION:
yahoo.com. 241 IN SOA ns1.yahoo.com. hostmaster.yahoo-inc.com. 2023010702 3600 300 1814400 600

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Jan 08 17:23:27 CET 2023

Revision history for this message
Alfredo (notlurking) wrote :

This for Debian but it may work for other sudo...

Uninstall "cairo-dock-weather-plug-in" package

Learn how to uninstall cairo-dock-weather-plug-in package:
$ sudo apt remove cairo-dock-weather-plug-in
$ sudo apt autoclean && sudo apt autoremove

Revision history for this message
johanna hadam (joanna42) wrote :

That command will deinstall cairo-dock on my system.
$ sudo apt remove cairo-dock-weather-plug-in

The following packages will be REMOVED:
  cairo-dock cairo-dock-plug-ins cairo-dock-weather-plug-in

-----
For Debian, I found a workaround for getting rid of the plugin but I found no solution to get it to work.

Stop Cairo-dock or crash it by removing the weather applett. ;)
mv /usr/share/cairo-dock/plug-ins/weather/weather.conf /usr/share/cairo-dock/plug-ins/weather/weather.conf.old
touch /usr/share/cairo-dock/plug-ins/weather/weather.conf

Start Cairo-dock, it will start in maintenance mode.
Now you can remove the weather applett.
After that Cairo-dock will start in normal mode.

Revision history for this message
johanna hadam (joanna42) wrote :

My fix was not reproduceable.

You can also try to delete any configfile.

In your home: .config/cairo-dock/current_theme/plug-ins/weather/weather.conf
And generall: rm /usr/share/cairo-dock/plug-ins/weather/weather.conf

After that the applett was no longer configured.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.