Mario
Many thanks for the heads-up.
I used the WeeWX 5 guide to reinstall the key:
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