Availability of v5.0.0rc3

291 views
Skip to first unread message

Tom Keffer

unread,
Jan 8, 2024, 7:06:17 PMJan 8
to weewx-user, weewx-development
One last look at V5 before it goes out the door!

V5 can be installed using either pip, or the usual package installers.

Pip

For pip installs, please delete your old virtual environment, then install from scratch by following the pip install instructions. While upgrading should work, we are particularly interested in the experience of a new install, including setting up a daemon and udev files. Make sure to follow the new instructions that use a daemon setup script.


Debian

For Debian package installs, modify /etc/apt/sources.list as follows:
echo "deb [arch=all] https://weewx.com/apt-test/python3 buster main" | sudo tee /etc/apt/sources.list.d/weewx.list
Note the "apt-test". This tells apt to look there for the beta release, instead of the normal repository. You may want to change it back when you're done.

Otherwise, follow the Debian install instructions.


Red Hat

For Red Hat package installs, put this in /etc/yum.repos.d/weewx.repo
[weewx]
name=weewx
baseurl=http://weewx.com/yum-test/weewx/el9
enabled=1
Note the "yum-test". This tells yum to look there for the beta release, instead of the normal repository. Again, you may want to change things back when you're done.

Otherwise, follow the Redhat install instructions.

What we're looking for

1. We are interested in your upgrade experience. Did the installers get your configuration file right? Skins? Is the daemon configured correctly?

2. With this release, we have included udev rules to set the correct permissions for devices. Did it work? If not, did unplugging then replugging the device work?

3. How about logging? Is it going to your system logger? Do the labels look reasonable?

Thanks!

-Tom & Matt


rcst...@gmail.com

unread,
Jan 9, 2024, 12:40:59 PMJan 9
to Tom Keffer, weewx-user, weewx-development

Hey Tom,

 

Just tried to upgrade from rc1 to rc3-2, and get

 

Get:1 https://weewx.com/apt-test/python3 buster/main all weewx all 5.0.0rc3-2 [1,556 kB]

Fetched 1,556 kB in 0s (3,314 kB/s)

Reading changelogs... Done

Preconfiguring packages ...

(Reading database ... 74780 files and directories currently installed.)

Preparing to unpack .../weewx_5.0.0rc3-2_all.deb ...

Removed /etc/systemd/system/multi-user.target.wants/weewx.service.

Unpacking weewx (5.0.0rc3-2) over (5.0.0rc1-2) ...

dpkg: warning: unable to delete old directory '/var/www/html/weewx': Directory not empty

dpkg: warning: unable to delete old directory '/var/lib/weewx': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard/smartphone/icons': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard/smartphone': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard/lang': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard/font': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard/backgrounds': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard/RSS': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard/NOAA': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Standard': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Smartphone/lang': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Smartphone/icons': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Smartphone': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Seasons/lang': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Seasons/font': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Seasons/NOAA': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Seasons': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Rsync': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Mobile/lang': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Mobile': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins/Ftp': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/skins': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/bin/user': Directory not empty

dpkg: warning: unable to delete old directory '/etc/weewx/bin': Directory not empty

Setting up weewx (5.0.0rc3-2) ...

Installing new version of config file /etc/weewx/examples/alarm.py ...

Installing new version of config file /etc/weewx/examples/basic/install.py ...

Installing new version of config file /etc/weewx/examples/basic/readme.md ...

Installing new version of config file /etc/weewx/examples/fileparse/readme.md ...

Installing new version of config file /etc/weewx/examples/lowBattery.py ...

Installing new version of config file /etc/weewx/examples/pmon/install.py ...

Installing new version of config file /etc/weewx/examples/pmon/readme.md ...

Installing new version of config file /etc/weewx/examples/tests/test_vaporpressure.py ...

Installing new version of config file /etc/weewx/examples/xstats/readme.txt ...

Installing new version of config file /etc/weewx/examples/xstats/skins/xstats/index.html.tmpl ...

Installing new version of config file /etc/weewx/examples/xstats/skins/xstats/skin.conf ...

Installing new version of config file /etc/weewx/import/csv-example.conf ...

Installing new version of config file /etc/weewx/import/cumulus-example.conf ...

Installing new version of config file /etc/weewx/import/wd-example.conf ...

Installing new version of config file /etc/weewx/import/weathercat-example.conf ...

Installing new version of config file /etc/weewx/import/wu-example.conf ...

 

Configuration file '/etc/weewx/weewx.conf'

==> Modified (by you or by a script) since installation.

==> Package distributor has shipped an updated version.

   What would you like to do about it ?  Your options are:

    Y or I  : install the package maintainer's version

    N or O  : keep your currently-installed version

      D     : show the differences between the versions

      Z     : start a shell to examine the situation

The default action is to keep your current version.

*** weewx.conf (Y/I/N/O/D/Z) [default=N] ?

Creating maintainer config file as /etc/weewx/weewx.conf-5.0.0rc1-5.0.0rc3

Using configuration file /etc/weewx/weewx.conf-5.0.0rc1-5.0.0rc3

Finished upgrading configuration file /etc/weewx/weewx.conf-5.0.0rc1-5.0.0rc3

Saving configuration file /etc/weewx/weewx.conf-5.0.0rc1-5.0.0rc3

dpkg: error processing package weewx (--configure):

installed weewx package post-installation script subprocess returned error exit status 1

Errors were encountered while processing:

weewx

E: Sub-process /usr/bin/dpkg returned an error code (1)

 

Not sure if it’s erroring due to not being able to swap out the skins directories, or something else…

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/CAPq0zECPG4PmhBH0RKYOULr8RdSrwMZ-sM%3DURzbtqUmEvC1Uug%40mail.gmail.com.

matthew wall

unread,
Jan 9, 2024, 1:59:17 PMJan 9
to weewx-development
the error is coming from the postinst script, probably where we set permissions.  it has been working smoothly on clean installs and clean upgrades, but there have been some upgrade configurations where it fails.  i'd like to eliminate those.

could you post the output from the following:

cat /etc/default/weewx
ls -la /var/lib/weewx
ls -la /usr/share/weewx
ls -la /etc/weewx
ls -la /var/www/html/weewx

rcst...@gmail.com

unread,
Jan 9, 2024, 2:00:56 PMJan 9
to matthew wall, weewx-development

root@raspi-server-misc:/etc/systemd/system# cat /etc/default/weewx

WEEWX_PYTHON=python3

WEEWX_PYTHON_ARGS=

WEEWX_BINDIR=/usr/share/weewx

WEEWX_CFG=/etc/weewx/weewx.conf

root@raspi-server-misc:/etc/systemd/system# ls -la /var/lib/weewx

total 673176

drwxrwsr-x  2 weewx weewx      4096 Jan  9 09:53 .

drwxr-xr-x 31 root  root       4096 Jan 15  2022 ..

-rw-r--r--  1 weewx weewx 689319936 Jan  9 09:35 weewx.sdb

root@raspi-server-misc:/etc/systemd/system# ls -la /usr/share/weewx

total 68

drwxr-xr-x  13 root root  4096 Jan  9 09:38 .

drwxr-xr-x 138 root root  4096 May 12  2023 ..

drwxr-xr-x   2 root root  4096 Jan  9 09:38 __pycache__

drwxr-xr-x   3 root root  4096 Jan  9 09:38 schemas

drwxr-xr-x   4 root root  4096 Jan  9 09:38 user-20231226170742

drwxr-xr-x   4 root root  4096 Jan  9 09:38 weecfg

drwxr-xr-x   4 root root  4096 Jan  9 09:38 weectllib

-rw-r--r--   1 root root  2488 Jan  8 11:41 weectl.py

drwxr-xr-x   4 root root  4096 Jan  9 09:38 weedb

drwxr-xr-x   3 root root  4096 Jan  9 09:38 weeimport

drwxr-xr-x   4 root root  4096 Jan  9 09:38 weeplot

drwxr-xr-x   4 root root  4096 Jan  9 09:38 weeutil

drwxr-xr-x   5 root root  4096 Jan  9 09:38 weewx

drwxr-xr-x   8 root root  4096 Jan  9 09:38 weewx_data

-rw-r--r--   1 root root 10425 Jan  8 11:41 weewxd.py

root@raspi-server-misc:/etc/systemd/system# ls -la /etc/weewx

total 928

drwxrwsr-x 14 weewx weewx  4096 Jan  9 09:38 .

drwxr-xr-x 99 root  root   4096 Jan  6 20:41 ..

drwxr-xr-x  4 weewx weewx  4096 Feb  5  2022 apache

drwxr-xr-x  3 weewx weewx  4096 Dec 26 17:06 bin

drwxr-xr-x  8 weewx weewx  4096 Jan  9 09:38 examples

drwxr-xr-x  2 weewx weewx  4096 Jan  9 09:38 import

drwxr-xr-x  2 root  root   4096 Jan  9 09:38 init.d

drwxr-xr-x  2 weewx weewx  4096 Jan  9 09:38 logrotate.d

drwxr-xr-x  4 weewx weewx  4096 May  6  2020 logwatch

drwxr-xr-x  2 weewx weewx  4096 Jan  9 09:38 rsyslog.d

drwxr-xr-x  2 weewx weewx  4096 Mar 26  2023 scripts

drwxr-xr-x  9 weewx weewx  4096 Jan  1 10:28 skins

drwxr-xr-x  2 root  root   4096 Jan  9 09:38 systemd

drwxr-xr-x  3 weewx weewx  4096 Jan  9 09:38 udev

-rw-r--r--  1 weewx weewx 24719 Jan  1 10:48 weewx.conf

-rw-r--r--  1 weewx weewx 22962 May  6  2020 weewx.conf.20200506134418

-rw-r--r--  1 weewx weewx 23171 May  6  2020 weewx.conf.20200506134500

-rw-r--r--  1 weewx weewx 23145 May  8  2020 weewx.conf.20200512203812

-rw-r--r--  1 weewx weewx 24877 Jun 25  2020 weewx.conf.20200625

-rw-r--r--  1 weewx weewx 24877 May 13  2020 weewx.conf.20200625182555

-rw-r--r--  1 weewx weewx 28017 May 16  2022 weewx.conf.20220924092452

-rw-r--r--  1 weewx weewx 28140 Dec 26 17:08 weewx.conf.20231227160035

-rw-r--r--  1 weewx weewx 25351 Dec 31 21:15 weewx.conf.20231231212939

-rw-r--r--  1 weewx weewx 26757 Jun 25  2020 weewx.conf-4.0.0

-rw-r--r--  1 weewx weewx 28131 Feb 10  2023 weewx.conf-4.10.1

-rw-r--r--  1 weewx weewx 18483 Feb 22  2023 weewx.conf-4.10.2

-rw-r--r--  1 weewx weewx 28142 Dec 26 17:07 weewx.conf-4.10.2-5.0.0rc1

-rw-r--r--  1 weewx weewx 27881 Aug  5  2020 weewx.conf-4.1.1

-rw-r--r--  1 weewx weewx 27890 Dec  2  2020 weewx.conf-4.2.0

-rw-r--r--  1 weewx weewx 27889 Jan  4  2021 weewx.conf-4.3.0

-rw-r--r--  1 weewx weewx 27996 Mar  8  2021 weewx.conf-4.4.0

-rw-r--r--  1 weewx weewx 28000 Apr 25  2021 weewx.conf-4.5.1

-rw-r--r--  1 weewx weewx 27986 Feb  6  2022 weewx.conf-4.6.0

-rw-r--r--  1 weewx weewx 28000 Feb 10  2022 weewx.conf-4.6.1

-rw-r--r--  1 weewx weewx 28000 Feb 12  2022 weewx.conf-4.6.2

-rw-r--r--  1 weewx weewx 28000 Mar  1  2022 weewx.conf-4.7.0

-rw-r--r--  1 weewx weewx 28130 Sep 24  2022 weewx.conf-4.8.0

-rw-r--r--  1 weewx weewx 28213 Oct 24  2022 weewx.conf-4.9.0

-rw-r--r--  1 weewx weewx 28213 Oct 25  2022 weewx.conf-4.9.1

-rw-r--r--  1 weewx weewx 19492 Dec 26 14:05 weewx.conf-5.0.0rc1

-rw-r--r--  1 weewx weewx 24723 Jan  9 09:38 weewx.conf-5.0.0rc1-5.0.0rc3

-rw-r--r--  1 root  root  19466 Jan  8 11:41 weewx.conf-5.0.0rc3

-rw-r--r--  1 root  weewx 24719 Jan  9 09:38 weewx.conf.bak

-rw-r--r--  1 weewx weewx 19492 Dec 26 14:05 weewx.conf.dist

-rw-r--r--  1 weewx weewx 19466 Jan  8 11:41 weewx.conf.dpkg-dist

-rw-r--r--  1 weewx weewx 27984 May 16  2022 weewx.conf.test

-rw-r--r--  1 weewx weewx 27991 May 16  2022 weewx.conf.test2

root@raspi-server-misc:/etc/systemd/system# ls -la /var/www/html/weewx

total 796

drwxrwsr-x 5 weewx    weewx     4096 Jan  9 09:35  .

drwxrwxr-x 5 www-data www-data  4096 Jan  1 10:29  ..

-rw-r--r-- 1 weewx    weewx    14539 Jan  9 09:35  celestial.html

-rw-r--r-- 1 weewx    weewx     8095 Jan  9 09:35  daybarometer.png

-rw-r--r-- 1 weewx    weewx     7125 Dec 31 21:20  dayET.png

-rw-r--r-- 1 weewx    weewx     8099 Jan  9 09:35  dayhumin.png

-rw-r--r-- 1 weewx    weewx     6998 Jan  9 09:35  dayhum.png

-rw-r--r-- 1 weewx    weewx     6165 Feb  5  2022  dayradiation.png

-rw-r--r-- 1 weewx    weewx     6875 Jan  9 09:35  dayrain.png

-rw-r--r-- 1 weewx    weewx     7077 Jan  9 09:35  dayrx.png

-rw-r--r-- 1 weewx    weewx    10559 Jan  9 09:35  daytempdew.png

-rw-r--r-- 1 weewx    weewx     9798 Jan  9 09:35  daytempfeel.png

-rw-r--r-- 1 weewx    weewx     8831 Jan  9 09:35  daytempin.png

-rw-r--r-- 1 weewx    weewx     8351 Feb  5  2022  daytemp.png

-rw-r--r-- 1 weewx    weewx     5499 Feb  5  2022  dayuv.png

-rw-r--r-- 1 weewx    weewx     7526 Jan  9 09:35  dayvolt.png

-rw-r--r-- 1 weewx    weewx     7910 Jan  9 09:35  daywinddir.png

-rw-r--r-- 1 weewx    weewx    11593 Jan  9 09:35  daywind.png

-rw-r--r-- 1 weewx    weewx     8428 Jan  9 09:35  daywindvec.png

drwxr-xr-x 3 weewx    weewx     4096 Sep 24  2022  emkubed

-rw-r--r-- 1 weewx    weewx     1150 Jan  9 02:05  favicon.ico

drwxr-xr-x 2 weewx    weewx     4096 Aug  4  2020  font

-rw-r--r-- 1 weewx    weewx    10449 Mar  8  2021 '#FTP.last'

-rw-r--r-- 1 weewx    weewx    31308 Jan  9 09:35  index.html

-rw-r--r-- 1 weewx    weewx     8318 Jan  9 09:00  monthbarometer.png

-rw-r--r-- 1 weewx    weewx     6711 Dec 31 21:20  monthET.png

-rw-r--r-- 1 weewx    weewx     8554 Jan  9 09:00  monthhumin.png

-rw-r--r-- 1 weewx    weewx     7242 Jan  9 09:00  monthhum.png

-rw-r--r-- 1 weewx    weewx     5294 Feb  5  2022  monthradiation.png

-rw-r--r-- 1 weewx    weewx     7239 Jan  9 09:00  monthrain.png

-rw-r--r-- 1 weewx    weewx     6591 Jan  9 09:00  monthrx.png

-rw-r--r-- 1 weewx    weewx    11112 Jan  9 09:00  monthtempdew.png

-rw-r--r-- 1 weewx    weewx    10936 Jan  9 09:00  monthtempfeel.png

-rw-r--r-- 1 weewx    weewx     9808 Jan  9 09:00  monthtempin.png

-rw-r--r-- 1 weewx    weewx     7944 Feb  5  2022  monthtemp.png

-rw-r--r-- 1 weewx    weewx     5270 Feb  5  2022  monthuv.png

-rw-r--r-- 1 weewx    weewx     8229 Jan  9 09:00  monthvolt.png

-rw-r--r-- 1 weewx    weewx     7597 Jan  9 09:00  monthwinddir.png

-rw-r--r-- 1 weewx    weewx    10720 Jan  9 09:00  monthwind.png

-rw-r--r-- 1 weewx    weewx     9260 Jan  9 09:00  monthwindvec.png

drwxr-xr-x 2 weewx    weewx    12288 Jan  9 09:35  NOAA

-rw-r--r-- 1 weewx    weewx     9804 Jan  9 09:35  rss.xml

-rw-r--r-- 1 weewx    weewx     5406 Jan  9 02:05  seasons.css

-rw-r--r-- 1 weewx    weewx     6404 Jan  9 02:05  seasons.js

-rw-r--r-- 1 weewx    weewx    25116 Jan  9 09:35  statistics.html

-rw-r--r-- 1 weewx    weewx    10433 Jan  9 09:35  tabular.html

-rw-r--r-- 1 weewx    weewx    13125 Jan  9 09:35  telemetry.html

-rw-r--r-- 1 weewx    weewx     8559 Jan  9 09:00  weekbarometer.png

-rw-r--r-- 1 weewx    weewx     7301 Dec 31 21:20  weekET.png

-rw-r--r-- 1 weewx    weewx     7714 Jan  9 09:00  weekhumin.png

-rw-r--r-- 1 weewx    weewx     6878 Jan  9 09:00  weekhum.png

-rw-r--r-- 1 weewx    weewx     5876 Feb  5  2022  weekradiation.png

-rw-r--r-- 1 weewx    weewx     6889 Jan  9 09:00  weekrain.png

-rw-r--r-- 1 weewx    weewx     6404 Jan  9 09:00  weekrx.png

-rw-r--r-- 1 weewx    weewx    12044 Jan  9 09:00  weektempdew.png

-rw-r--r-- 1 weewx    weewx    10574 Jan  9 09:00  weektempfeel.png

-rw-r--r-- 1 weewx    weewx     9827 Jan  9 09:00  weektempin.png

-rw-r--r-- 1 weewx    weewx     8516 Feb  5  2022  weektemp.png

-rw-r--r-- 1 weewx    weewx     5852 Feb  5  2022  weekuv.png

-rw-r--r-- 1 weewx    weewx     7623 Jan  9 09:00  weekvolt.png

-rw-r--r-- 1 weewx    weewx     6327 Jan  9 09:00  weekwinddir.png

-rw-r--r-- 1 weewx    weewx    10114 Jan  9 09:00  weekwind.png

-rw-r--r-- 1 weewx    weewx     7474 Jan  9 09:00  weekwindvec.png

-rw-r--r-- 1 weewx    weewx     8823 Jan  9 00:00  yearbarometer.png

-rw-r--r-- 1 weewx    weewx     6784 Dec 31 00:00  yearET.png

-rw-r--r-- 1 weewx    weewx     8823 Jan  9 00:00  yearhumin.png

-rw-r--r-- 1 weewx    weewx     7525 Jan  9 00:00  yearhum.png

-rw-r--r-- 1 weewx    weewx     5658 Feb  5  2022  yearradiation.png

-rw-r--r-- 1 weewx    weewx     6922 Jan  9 00:00  yearrain.png

-rw-r--r-- 1 weewx    weewx     6067 Jan  9 00:00  yearrx.png

-rw-r--r-- 1 weewx    weewx    10929 Jan  9 00:00  yeartempdew.png

-rw-r--r-- 1 weewx    weewx     9342 Jan  9 00:00  yeartempfeel.png

-rw-r--r-- 1 weewx    weewx     8225 Jan  9 00:00  yeartempin.png

-rw-r--r-- 1 weewx    weewx     7860 Feb  5  2022  yeartemp.png

-rw-r--r-- 1 weewx    weewx     4994 Feb  5  2022  yearuv.png

-rw-r--r-- 1 weewx    weewx     7354 Jan  9 00:00  yearvolt.png

-rw-r--r-- 1 weewx    weewx     7847 Jan  9 00:00  yearwinddir.png

-rw-r--r-- 1 weewx    weewx    10141 Jan  9 00:00  yearwind.png

-rw-r--r-- 1 weewx    weewx     8501 Jan  9 00:00  yearwindvec.png

--

You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.

rcst...@gmail.com

unread,
Jan 9, 2024, 7:20:36 PMJan 9
to matthew wall, weewx-development

I haven’t tried to re-start weewx since it failed. Should I be good to do so? Everything looks like it’s owned by the weewx user now.

Vince Skahan

unread,
Jan 9, 2024, 8:23:30 PMJan 9
to weewx-development
What version is currently running ?

Check your logs and see if the dpkg upgrade started the new version up.

rcst...@gmail.com

unread,
Jan 9, 2024, 8:35:58 PMJan 9
to Vince Skahan, weewx-development

As mentioned, I think, I am currently on rc1. It did not start the new version up, it’s still stopped (I stopped it and backed up weewx.sdb and my conf prior to running the upgrade).

 

From: weewx-de...@googlegroups.com <weewx-de...@googlegroups.com> On Behalf Of Vince Skahan
Sent: Tuesday, January 9, 2024 5:24 PM
To: weewx-development <weewx-de...@googlegroups.com>
Subject: Re: [weewx-development] Availability of v5.0.0rc3

 

What version is currently running ?

--

You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.

Vince Skahan

unread,
Jan 9, 2024, 8:37:49 PMJan 9
to weewx-development
No you didn’t mention it. Go for it. You can’t break it.

Ryan Stasel

unread,
Jan 9, 2024, 8:54:29 PMJan 9
to Vince Skahan, weewx-development
I did mention it in original email responding to RC3 announcement this morning... 


"Hey Tom,

 

Just tried to upgrade from rc1 to rc3-2, and get

 

Get:1 https://weewx.com/apt-test/python3 buster/main all weewx all 5.0.0rc3-2 [1,556 kB]"


My interest is does it help in figuring out the issue if I leave it as is for now to try resolving... 


Thanks. 




--
-Ryan Stasel

Greg

unread,
Jan 13, 2024, 9:43:14 PMJan 13
to weewx-development
I am using the pip install and my config files in /opt/weex/weewx-data
I am running v5.0.0.0rc3 but in the weewx.conf it says:

# Do not modify this. It is used when installing and updating weewx.
version = 5.0.0b6

Does this change when upgrading like the comment says?

Tom Keffer

unread,
Jan 14, 2024, 7:57:17 AMJan 14
to Greg, weewx-development
On Sat, Jan 13, 2024 at 6:43 PM Greg <ubea...@gmail.com> wrote:
I am using the pip install and my config files in /opt/weex/weewx-data
I am running v5.0.0.0rc3 but in the weewx.conf it says:

# Do not modify this. It is used when installing and updating weewx.
version = 5.0.0b6

Does this change when upgrading like the comment says?

Yes, but you must explicitly upgrade the config file. It does not happen automatically. See weectl station upgrade.

For V5, there were no significant changes to the configuration file, so there's no need to upgrade.

-tk
Message has been deleted

G Hammer

unread,
Jan 14, 2024, 11:11:04 AMJan 14
to weewx-development
Installed using pip method on a Debian 12 container running on Proxmox.
All was well, except there is no 'sudo' command in the OS (not certain if Debian was installed to bare metal as I don't run that way), so to follow the install instructions, I simply added sudo to the OS.
Everything flowed well after that including 3rd party drivers and skins.

John Smith

unread,
Jan 14, 2024, 11:18:33 AMJan 14
to G Hammer, weewx-development


On Mon, 15 Jan 2024 at 03:10, G Hammer <gary....@gmail.com> wrote:
Installed on a Debian 12 container running on Proxmox.
All was well, except there is no 'sudo' command in the OS (not certain if Debian was installed to bare metal as I d

debian doesn't install sudo by default, although you can install it with apt 

Greg

unread,
Jan 14, 2024, 2:27:49 PMJan 14
to weewx-development
Maybe put see https://weewx.com/docs/5.0/utilities/weectl-station/#upgrade-an-existing-station in the weewx.conf file under this section as an information comment?
# Do not modify this. It is used when installing and updating weewx.
version = 5.0.0b6

If something like that was there I would have read it 😁 to me I would think it's would mirror the version I am running.
Keep up the good work.

John Smith

unread,
Jan 14, 2024, 6:36:43 PMJan 14
to Greg, weewx-development
On Mon, 15 Jan 2024 at 06:27, Greg <ubea...@gmail.com> wrote:
Maybe put see https://weewx.com/docs/5.0/utilities/weectl-station/#upgrade-an-existing-station in the weewx.conf file under this section as an information comment?
# Do not modify this. It is used when installing and updating weewx.
version = 5.0.0b6

If something like that was there I would have read it 😁 to me I would think it's would mirror the version I am running.
Keep up the good work.

I was testing rc2, and weectl station upgrade didn't update the weewx.conf file to the new version number, and you might want to bump the version number because apt install weewx doesn't work, similar reason it thinks 5.0.0 is less than rc2

Tom Keffer

unread,
Jan 14, 2024, 6:56:28 PMJan 14
to John Smith, Greg, weewx-development
The action weectl station upgrade does not upgrade the configuration file unless you tell it to. See the docs.

For apt upgrade, make sure you replace the apt repository. In particular, use "apt" instead of "apt-test". 

echo "deb [arch=all] https://weewx.com/apt/python3 buster main" | sudo tee /etc/apt/sources.list.d/weewx.list


--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.

John Smith

unread,
Jan 14, 2024, 7:30:49 PMJan 14
to weewx-development
On Mon, 15 Jan 2024 at 10:56, Tom Keffer <tke...@gmail.com> wrote:
The action weectl station upgrade does not upgrade the configuration file unless you tell it to. See the docs.

Which is why I said:

weectl station upgrade didn't update the weewx.conf file
 
For apt upgrade, make sure you replace the apt repository. In particular, use "apt" instead of "apt-test". 

echo "deb [arch=all] https://weewx.com/apt/python3 buster main" | sudo tee /etc/apt/sources.list.d/weewx.list

Yup, but apt thinks 5.0.0rc2 is greater than 5.0.0 I had to remove weewx and then install it to get the new version.

G Hammer

unread,
Jan 15, 2024, 9:52:56 AMJan 15
to weewx-development
Indeed. The pip quick start install calls for sudo use without indicating 'sudo' is a prereq though.
sudo apt update sudo apt install python3-pip -y sudo apt install python3-venv -y

John Smith

unread,
Jan 16, 2024, 12:51:29 AMJan 16
to G Hammer, weewx-development
You can run those commands without sudo


--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.

G Hammer

unread,
Jan 16, 2024, 9:44:43 AMJan 16
to weewx-development
Hmmm, yeah.
Shades of a 1990s bsd support forum.

The point isn't if you can change what's written in a guide, the point is if the guide works as written.
It does not. Later in the quick start there are commands that DO require sudo.

Paul R Anderson

unread,
Jan 16, 2024, 10:16:40 AMJan 16
to weewx-development
Agree sudo should be a prerequisite.
Whether or not sudo is installed in Debian can be a bit confusing however. It is a side-effect of how you install Debian. If you specify a root password during installation sudo is not installed. If you do not specify a root password, sudo is installed , and the user you set up during installation is granted sudo privileges.
So if someone always installs Debian without specifying a root password , It's easy to see why they would think that sudo is always installed by default.

Paul   

matthew wall

unread,
Jan 16, 2024, 10:27:09 AMJan 16
to weewx-development

On Tuesday, January 16, 2024 at 10:16:40 AM UTC-5 Paul R Anderson wrote:
Agree sudo should be a prerequisite.

i know!  we will add a line to the instructions:

sudo apt install sudo

oh, wait... ;)

in the case of the debian (or redhat or suse) installers, it is not as easy as just add 'sudo' to the weewx package dependency, since you not only have to install sudo, but also make the appropriate non-root user a sudoer.

we end up with yet another fork in the installation instructions.  the forks for systemd/sysv/launchd and pre-requisites already complicate things.

but perhaps we can just add a note, with reference to wiki page with complete details about what sudo is and how to configure sudoers.

m

Paul R Anderson

unread,
Jan 16, 2024, 10:34:13 AMJan 16
to weewx-development
Note sounds like a plausible idea.
Debian Wiki has a good explanation at :

Paul

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.

matthew wall

unread,
Jan 16, 2024, 11:05:14 AMJan 16
to weewx-development
On Tuesday, January 16, 2024 at 10:34:13 AM UTC-5 Paul R Anderson wrote:
Note sounds like a plausible idea.
Debian Wiki has a good explanation at :

paul, thank you for that.  i added it to the wiki page about permissions.


Vince Skahan

unread,
Jan 16, 2024, 1:24:24 PMJan 16
to weewx-development
On Tuesday, January 16, 2024 at 6:44:43 AM UTC-8 G Hammer wrote:
The point isn't if you can change what's written in a guide, the point is if the guide works as written.
It does not. Later in the quick start there are commands that DO require sudo.

This is not complicated.
  • If you are root and want to run as root  you do not need to use sudo. 
  • If you are a non-privileged user you do need to use sudo for ‘some’ commands typically
  • If you are root and ‘want’ to use sudo you of course can…if your system is configured accordingly.
  • If you are a non-privileged user and need to use sudo, your system must be configured to permit that as well
But…there are edge cases for a install and run non-privileged setup where sudo would not be required either if you go outside typical installations. I can think of a couple ways it would work on a typical pi but I won’t mention them here.

There are always edge cases where any docs written for the 98% will be incorrect for those in the 2% who do uncommon things. You always need to understand your system well enough to know if you need to salt to taste a little, so to speak.

Installing into Docker is in that 2% that need to do more things or slightly different things in most cases, depending on how you want things to run privileged or non-privileged. 

No docs can be 100% perfect for an infinitely variable desired end state. Once you go Docker the onus is on the integrator to up their techie-fu and think more rather than blindly following a recipe intended for the other 98% of configs.

Chuck Rhode

unread,
Jan 17, 2024, 5:03:36 PMJan 17
to weewx-development
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 16 Jan 2024 07:27:09 -0800 (PST)
matthew wall <mwall...@gmail.com> wrote:

> On Tuesday, January 16, 2024 at 10:16:40 AM UTC-5 Paul R Anderson
> wrote:

> Agree sudo should be a prerequisite.

> i know! we will add a line to the instructions:

> sudo apt install sudo

> oh, wait... ;)

> in the case of the debian (or redhat or suse) installers, it is not
> as easy as just add 'sudo' to the weewx package dependency, since you
> not only have to install sudo, but also make the appropriate non-root
> user a sudoer.

... and reboot naturally.

> but perhaps we can just add a note, with reference to wiki page with
> complete details about what sudo is and how to configure sudoers.

As a Debian user without *sudo*, I have always run *su* from the
*util-linux* package (which is deemed "essential") in a terminal
session to push to a new shell with root authority, which seems simpler
to me because I have a root password that I can use.

Perhaps it is insufficient in documentation targeted at all comers to
say, "Push to a shell with root authority," and leave it at that.
Apparently it is fashionable to show the *sudo* form in code examples
for those who may have *sudo* authority but still not know their root
password.

You could — instead — I suppose, show a stanza of the form:

> $ sudo --shell
> $ ... commands requiring root authority
> $ exit

... which would be analogous to:

> $ su
> $ passwd
> $ ... commands requiring root authority
> $ exit

... and leave the choice about the kind of "push" stanza to the user.

You could even document

> $ su -c cmd
> $ passwd

as an alternative to

> $ sudo cmd

... but seerwiously "Everybody" should understand what is going on
with *sudo* whether they install it or not ... I think.


- --
.. Be Seeing You,
.. Chuck Rhode, Sheboygan, WI, USA
.. Weather: http://LacusVeris.com/WX
.. 8° — Wind W 15 mph

-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCZahOjgAKCRBg2/xipKOW
UpeYAJ4qvPiQ88/+gVcYWoVz8y1P/ES8kwCeNcvBCmxnGU72Ahvu3tMtPFmIabk=
=1pkv
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages