On Friday, February 16, 2024 at 7:43:26 AM UTC-5 [email protected] wrote:
After the restore a new attempt, what is missing?
-- Journal begins at Fri 2024-02-02 10:19:01 CET. --
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:
**** self.port.openPort()
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:
**** File "/usr/share/weewx/weewx/drivers/vantage.py", line 319, in
openPort
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:
**** self.serial_port = serial.Serial(self.port, self.baudrate,
timeout=self.timeout)
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:
**** File "/usr/lib/python3/dist-packages/serial/serialutil.py", line
244, in __init__
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:
**** self.open()
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:
**** File "/usr/lib/python3/dist-packages/serial/serialposix.py", line
325, in open
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:
**** raise SerialException(msg.errno, "could not open port {}:
{}".format(self._port, msg))
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL weewx.engine:
**** serial.serialutil.SerialException: [Errno 13] could not open port
/dev/ttyUSB0: [Errno 13] Keine Berechtigung: '/dev/ttyUSB0'
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL __main__: Unable to
load driver: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Keine
Berechtigung: '/dev/ttyUSB0'
Feb 16 13:18:47 Wetter-Raspi4 weewxd[416320]: CRITICAL __main__: ****
Exiting...
the error indicates that the weewxd process does not have permission to
read/write the USB-to-serial device. make sure that the user running
weewxd has read/write permission to /dev/ttyUSB0 (which is probably a
USB-to-serial adapter).
for example, if user 'weewx' is running weewxd, then put the weewx user
into the dialout group then restart weewxd:
sudo usermod -aG dialout weewx
sudo systemctl restart weewx
see the section about reading/writing to devices in the wiki article "what
you need to know about permissions":
https://github.com/weewx/weewx/wiki/Understanding-permissions#readingwriting-data-to-a-device
--
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/77a3041b-1e87-4883-ae1e-943c74f90c1an%40googlegroups.com.