On Thursday, February 15, 2024 at 4:43:37 PM UTC-5 dave.m...@gmail.com wrote:
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? 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 please let us know what works for you. there are *so* many variations when it comes to permissions, and many different ways to make things work. we're still trying to simplify the documentation to make permissions easier to understand and deal with. m -- 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c49a74bd-fc40-4019-af02-9b48b3573b58n%40googlegroups.com.