WeeWX 5 error

229 views
Skip to first unread message

Megatin

unread,
Mar 20, 2024, 1:28:36 PM3/20/24
to weewx-user
Hi, I just did a clean install of WeeWX 5.0.2 on a Raspberry PI 4 and Davis Vantage Pro station and I get the following error message.  Please can someone help me?  Thank you very much.


× weewx.service - WeeWX

     Loaded: loaded (/lib/systemd/system/weewx.service; enabled; preset: enabled)

     Active: failed (Result: exit-code) since Wed 2024-03-20 15:23:28 UTC; 1h 19min ago

   Duration: 506ms

       Docs: https://weewx.com/docs

    Process: 1269 ExecStart=weewxd /etc/weewx/weewx.conf (code=exited, status=4)

   Main PID: 1269 (code=exited, status=4)

        CPU: 427ms


Mar 20 15:23:28 Raspi400 weewxd[1269]: CRITICAL weewx.engine:     ****                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Mar 20 15:23:28 Raspi400 weewxd[1269]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 244, in __init__

Mar 20 15:23:28 Raspi400 weewxd[1269]: CRITICAL weewx.engine:     ****      self.open()

Mar 20 15:23:28 Raspi400 weewxd[1269]: CRITICAL weewx.engine:     ****    File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in open

Mar 20 15:23:28 Raspi400 weewxd[1269]: CRITICAL weewx.engine:     ****      raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))

Mar 20 15:23:28 Raspi400 weewxd[1269]: CRITICAL weewx.engine:     ****  serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'

Mar 20 15:23:28 Raspi400 weewxd[1269]: CRITICAL __main__: Unable to load driver: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'

Mar 20 15:23:28 Raspi400 weewxd[1269]: CRITICAL __main__:     ****  Exiting...

Mar 20 15:23:28 Raspi400 systemd[1]: weewx.service: Main process exited, code=exited, status=4/NOPERMISSION

Mar 20 15:23:28 Raspi400 systemd[1]: weewx.service: Failed with result 'exit-code'.

p

vince

unread,
Mar 20, 2024, 1:35:09 PM3/20/24
to weewx-user

From the FAQ - https://github.com/weewx/weewx/wiki/WeeWX-Frequently-Asked-Questions#why-do-i-get-permission-denied

and always google for your exact error message....google for "serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'" and look at the hits it returns.

In your case I'd start by unplugging/re-plugging your station into the pi and running "sudo dmesg" to see it detected the station at the hardware level.   If it did then you have a permission issue the links above will point you to how to work that....

Reply all
Reply to author
Forward
0 new messages