Re: [weewx-user] Weewx doesn't start anymore after update from 5.0.0 to 5.0.1-3

156 views
Skip to first unread message

Tom Keffer

unread,
Feb 5, 2024, 8:03:18 AMFeb 5
to weewx...@googlegroups.com
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 hb9...@gmail.com <hb9...@gmail.com> 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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8fc2aaad-705d-45ff-9e1b-f2a80b84d48dn%40googlegroups.com.

David Hathaway

unread,
Feb 5, 2024, 12:46:19 PMFeb 5
to weewx-user
I had this same issue immediately after updating from 5.0.0 to 5.0.1, the exact same error.

sudo lsof /dev/ttyUSB0

threw an error.

I rebooted the machine and now weewx is running normally again.
Reply all
Reply to author
Forward
0 new messages