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] 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/70418392-a4ee-406c-a281-ae48cdcec0d9n%40googlegroups.com.
