READ THIS!

447 views
Skip to first unread message

Tom Keffer

unread,
Jan 17, 2024, 1:30:24 PM1/17/24
to weewx-user, weewx-development
We have discovered a potentially serious bug. The specific situation is as follows:
  • A V4.x configuration file;
  • Package installer;
  • Install an extension;
  • Uninstall the extension.
Under these circumstances, the extension uninstaller could remove system files!

If you are using a V4.x configuration file, please do not install any extensions until we get a fix out.

Apologies.

-tk

Andrew Cornwall

unread,
Jan 27, 2024, 1:09:06 AM1/27/24
to weewx-user
I'm using weewx 5.0.0-1 (which I upgraded through Debian apt) and the GW1000 driver. Does that mean I should not install the driver via wee_extension until a new version comes out?

Thanks...

    Andrew

gjr80

unread,
Jan 27, 2024, 1:26:01 AM1/27/24
to weewx-user
The problem is encountered when using the extension installer/uninstaller weectl extension. If you install WeeWX v5 via a package install and then use weectl extension install to install an extension, some or all of the extension files may be installed in an incorrect location. At this stage nothing destructive has occurred to your system other than the extension files perhaps being in the wrong location (and almost certainly the extension itself will not work with WeeWX - though WeeWX functions normally). If you then happen to uninstall the extension (perhaps because it seemingly does not work) with weectl extension uninstall that is when the uninstaller might delete system files.

So in these circumstances we recommend against installing or uninstalling extensions with weectl extension. Manual installs/uninstalls of extensions will be fine, it is just weectl extension that experiences problems. Also, if you have upgraded from an earlier WeeWX package install and the extension concerned was already installed (ie it was not installed using weectl extension) then you will be fine.

This issue will be fixed in v5.0.1 which should be released real soon.

Gary 

Owen

unread,
Feb 5, 2024, 7:37:30 PM2/5/24
to weewx-user
As always.....another good reminder to NOT run things as 'root', if you don't have to.
Reply all
Reply to author
Forward
0 new messages