Make sure there isn't another process claiming /dev/ttyUSB0. The process "modemmanager" is a common one.
To see what processes are using /dev/ttyUSB0 try *sudo lsof /dev/ttyUSB0* -tk On Sun, Feb 4, 2024 at 11:40 PM [email protected] <[email protected]> wrote: > I get a permission error for /dev/ttyUSB0 > However, there should be no problem accessing ttyUSB0 (Vantage driver) > weectl device --info runs just fine: > ----------------------------------------------- > # weectl device --info > Using configuration file /etc/weewx/weewx.conf > Using driver weewx.drivers.vantage. > Using Vantage driver version 3.6.2 (weewx.drivers.vantage) > Querying... > Davis Vantage EEPROM settings: > > CONSOLE TYPE: Vantage Vue > (etc.) > ----------------------------------------------- > > > × weewx.service - WeeWX > Loaded: loaded (/lib/systemd/system/weewx.service; enabled; preset: > enabled) > Active: failed (Result: exit-code) since Mon 2024-02-05 08:31:01 CET; > 2s ago > Duration: 100ms > Docs: https://weewx.com/docs > Process: 2627140 ExecStart=weewxd /etc/weewx/weewx.conf (code=exited, > status=4) > Main PID: 2627140 (code=exited, status=4) > CPU: 89ms > > Feb 05 08:31:01 weewxd[2627140]: CRITICAL weewx.engine: **** > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Feb 05 08:31:01 weewxd[2627140]: CRITICAL weewx.engine: **** File > "/usr/lib/python3/dist-packages/serial/serialutil.py", line 244, in __init__ > Feb 05 08:31:01 weewxd[2627140]: CRITICAL weewx.engine: **** > self.open() > Feb 05 08:31:01 weewxd[2627140]: CRITICAL weewx.engine: **** File > "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in open > Feb 05 08:31:01 weewxd[2627140]: CRITICAL weewx.engine: **** > raise SerialException(msg.errno, "could not open port {}: > {}".format(self._port, msg)) > Feb 05 08:31:01 weewxd[2627140]: CRITICAL weewx.engine: **** > serial.serialutil.SerialException: [Errno 16] could not open port > /dev/ttyUSB0: [Errno 16] Device or resource busy: '/dev/ttyUSB0' > Feb 05 08:31:01 weewxd[2627140]: CRITICAL __main__: Unable to load driver: > [Errno 16] could not open port /dev/ttyUSB0: [Errno 16] Device or resource > busy: '/dev/ttyUSB0' > Feb 05 08:31:01 weewxd[2627140]: CRITICAL __main__: **** Exiting... > Feb 05 08:31:01 systemd[1]: weewx.service: Main process exited, > code=exited, status=4/NOPERMISSION > Feb 05 08:31:01 systemd[1]: weewx.service: Failed with result 'exit-code'. > > -- > 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/8fc2aaad-705d-45ff-9e1b-f2a80b84d48dn%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/8fc2aaad-705d-45ff-9e1b-f2a80b84d48dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zECCDCBKWWqKNUxTiX-86AmhZ%3Da2KMVxbYg-b0x9W%2BSxaA%40mail.gmail.com.
