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 From: [email protected] <[email protected]> On Behalf Of matthew wall Sent: Tuesday, January 9, 2024 10:59 AM To: weewx-development <[email protected]> Subject: Re: [weewx-development] Availability of v5.0.0rc3 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 On Tuesday, January 9, 2024 at 12:40:59 PM UTC-5 [email protected] <mailto:[email protected]> wrote: 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 [email protected] <mailto:[email protected]> . To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/70418392-a4ee-406c-a281-ae48cdcec0d9n%40googlegroups.com <https://groups.google.com/d/msgid/weewx-development/70418392-a4ee-406c-a281-ae48cdcec0d9n%40googlegroups.com?utm_medium=email&utm_source=footer> . -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/049001da432e%242aa11f90%247fe35eb0%24%40gmail.com.
