Mario Many thanks for the heads-up.
I used the WeeWX 5 guide to reinstall the key: wget -qO - https://weewx.com/keys.html | \ sudo gpg --dearmor --output /etc/apt/trusted.gpg.d/weewx.gpg I then initiated the upgrade which seemed to go well until the end! Feb 15 21:36:54 weewx weewxd[481]: INFO __main__: Received signal TERM (15). Feb 15 21:36:54 weewx weewxd[481]: INFO weewx.engine: Main loop exiting. Shutting engine down. Feb 15 21:36:54 weewx weewxd[481]: INFO weewx.engine: Shutting down StdReport thread Feb 15 21:36:54 weewx systemd[1]: Stopping WeeWX... Feb 15 21:36:54 weewx weewxd[481]: INFO __main__: Terminating weewx version 5.0.1 Feb 15 21:36:54 weewx systemd[1]: weewx.service: Succeeded. Feb 15 21:36:54 weewx systemd[1]: Stopped WeeWX. Feb 15 21:36:54 weewx systemd[1]: weewx.service: Consumed 10min 33.062s CPU time. Feb 15 21:37:10 weewx weectl[103216]: INFO weectllib: Initializing weectl version 5.0.2 Feb 15 21:37:10 weewx weectl[103216]: INFO weectllib: Command line: /usr/share/weewx/weectl.py station upgrade --config=/etc/weewx/weewx.conf-4.10.2-5.0.2 --dist-config=/etc/weewx/weewx.conf-5.0.2 --what=config --no-backup --yes Feb 15 21:37:10 weewx systemd[1]: Reloading. Feb 15 21:37:10 weewx systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed. Feb 15 21:37:13 weewx systemd[1]: Reloading. Feb 15 21:37:13 weewx systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed. Feb 15 21:37:14 weewx systemd[1]: Reloading. Feb 15 21:37:14 weewx systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed. Feb 15 21:37:14 weewx systemd[1]: Reloading. Feb 15 21:37:14 weewx systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed. Feb 15 21:37:15 weewx systemd[1]: Started WeeWX. Feb 15 21:37:15 weewx weewxd[103822]: INFO __main__: Initializing weewxd version 5.0.2 Feb 15 21:37:15 weewx weewxd[103822]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf Feb 15 21:37:15 weewx weewxd[103822]: INFO __main__: Using Python 3.9.2 (default, Feb 28 2021, 17:03:44) #012[GCC 10.2.1 20210110] Feb 15 21:37:15 weewx weewxd[103822]: INFO __main__: Located at /usr/bin/python3 Feb 15 21:37:15 weewx weewxd[103822]: INFO __main__: Platform Linux-6.1.53-v8+-aarch64-with-glibc2.31 Feb 15 21:37:15 weewx weewxd[103822]: INFO __main__: Locale: 'en_US.UTF-8' Feb 15 21:37:15 weewx weewxd[103822]: INFO __main__: Entry path: /usr/share/weewx/weewxd.py Feb 15 21:37:15 weewx weewxd[103822]: INFO __main__: WEEWX_ROOT: /etc/weewx Feb 15 21:37:15 weewx weewxd[103822]: INFO __main__: Configuration file: /etc/weewx/weewx.conf Feb 15 21:37:15 weewx weewxd[103822]: INFO __main__: User module: /etc/weewx/bin/user Feb 15 21:37:15 weewx weewxd[103822]: INFO __main__: Debug: 0 Feb 15 21:37:15 weewx weewxd[103822]: INFO weewx.engine: Loading station type Vantage (weewx.drivers.vantage) Feb 15 21:37:15 weewx weewxd[103822]: ERROR weewx.engine: Import of driver failed: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0' (<class 'serial.serialutil.SerialException'>) Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** Traceback (most recent call last): Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 322, in open Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK) Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** PermissionError: [Errno 13] Permission denied: '/dev/ttyUSB0' Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** During handling of the above exception, another exception occurred: Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** Traceback (most recent call last): Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/engine.py", line 115, in setupStation Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** self.console = loader_function(config_dict, self) Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 32, in loader Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** return VantageService(engine, config_dict) Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 2046, in __init__ Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** Vantage.__init__(self, **config_dict[DRIVER_NAME]) Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__ Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** self.port.openPort() Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 319, in openPort Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** self.serial_port = serial.Serial(self.port, self.baudrate, timeout=self.timeout) Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 244, in __init__ Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** self.open() Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in open Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg)) Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL weewx.engine: **** serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0' Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL __main__: Unable to load driver: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0' Feb 15 21:37:15 weewx weewxd[103822]: CRITICAL __main__: **** Exiting... Feb 15 21:37:15 weewx systemd[1]: weewx.service: Main process exited, code=exited, status=4/NOPERMISSION Feb 15 21:37:15 weewx systemd[1]: weewx.service: Failed with result 'exit-code'. Now unable to restart WeeWX and have rolled back to the previous version. Any idea what the issue is? Regards On Thursday 15 February 2024 at 21:21:37 UTC Mario Wesolek wrote: > https://weewx.com/docs/4.10/debian.htm > > Reimport the Key > Dave McCreath schrieb am Donnerstag, 15. Februar 2024 um 22:16:53 UTC+1: > >> Hi >> >> Weewx installed on a RPI 4 (Debian - Bullseye), version 5.0.1, working >> fine, no issues. >> >> Just tried to update to version 5.0.2 via sudo apt update && sudo apt >> full-upgrade and received the following error: >> >> $ sudo apt update && sudo apt full-upgrade >> Hit:1 http://security.debian.org/debian-security bullseye-security >> InRelease >> Hit:2 http://deb.debian.org/debian bullseye InRelease >> Hit:3 http://deb.debian.org/debian bullseye-updates InRelease >> Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease >> Hit:5 http://repository.picockpit.com/raspbian bullseye InRelease >> Get:6 http://weewx.com/apt/python3 buster InRelease [4,252 B] >> >> Err:6 http://weewx.com/apt/python3 buster InRelease >> The following signatures couldn't be verified because the public key is >> not available: NO_PUBKEY E788768B9CB16E10 >> Fetched 4,252 B in 2s (1,789 B/s) >> Reading package lists... Done >> Building dependency tree... Done >> Reading state information... Done >> All packages are up to date. >> W: An error occurred during the signature verification. The repository is >> not updated and the previous index files will be used. GPG error: >> http://weewx.com/apt/python3 buster InRelease: The following signatures >> couldn't be verified because the public key is not available: NO_PUBKEY >> E788768B9CB16E10 >> W: Failed to fetch http://weewx.com/apt/python3/dists/buster/InRelease >> The following signatures couldn't be verified because the public key is >> not available: NO_PUBKEY E788768B9CB16E10 >> W: Some index files failed to download. They have been ignored, or old >> ones used instead. >> Reading package lists... Done >> Building dependency tree... Done >> Reading state information... Done >> Calculating upgrade... Done >> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. >> >> I've read through the WeeWX 5 help guide and, even though I'm on >> Bullseye, it does state that the repository should point to Buster (which >> it does). >> >> Any help for noob much appreciated. >> >> Many thanks. >> > -- You received this message because you are subscribed to the Google Groups "weewx-user" 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-user/38bb7af4-8a56-4049-b99c-9e92f99ff87fn%40googlegroups.com.
