Something is causing the usb adapter to release /dev/ttyUSB0. Try the
kernel message "dmesg". It may give you some information.

Also you should update to v5.0.2

*sudo apt update*
*sudo apt upgrade*

-tk

On Sat, Feb 10, 2024 at 5:47 AM Joe <[email protected]> wrote:

> Back with the USB error again now..
>
> Feb 10 07:45:51 raspberrypi systemd[1]: Started WeeWX.
> Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Initializing
> weewxd version 5.0.0
> Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Command line:
> /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
> Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Using Python 3.9.2
> (default, Mar 12 2021, 04:06:34) #012[GCC 10.2.1 20210110]
> Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Located at
> /usr/bin/python3
> Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Platform
> Linux-6.1.21-v8+-aarch64-with-glibc2.31
> Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Locale:
> 'en_US.UTF-8'
> Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Entry path:
> /usr/share/weewx/weewxd.py
> Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: WEEWX_ROOT: /
> Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Configuration
> file: /etc/weewx/weewx.conf
> Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: User module:
> /etc/weewx/bin/user
> Feb 10 07:45:51 raspberrypi weewxd[797]: INFO __main__: Debug: 0
> Feb 10 07:45:51 raspberrypi weewxd[797]: INFO weewx.engine: Loading
> station type Vantage (weewx.drivers.vantage)
> Feb 10 07:45:51 raspberrypi weewxd[797]: ERROR weewx.engine: Import of
> driver failed: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No
> such file or directory: '/dev/ttyUSB0' (<class
> 'serial.serialutil.SerialException'>)
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>  Traceback (most recent call last):
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 322, in
> open
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>  FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyUSB0'
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>  During handling of the above exception, another exception occurred:
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>  Traceback (most recent call last):
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>  File "/usr/share/weewx/weewx/engine.py", line 115, in setupStation
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>    self.console = loader_function(config_dict, self)
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 32, in loader
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>    return VantageService(engine, config_dict)
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 2046, in __init__
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>    Vantage.__init__(self, **config_dict[DRIVER_NAME])
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>    self.port.openPort()
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 319, in openPort
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>    self.serial_port = serial.Serial(self.port, self.baudrate,
> timeout=self.timeout)
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 244, in
> __init__
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>    self.open()
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in
> open
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>    raise SerialException(msg.errno, "could not open port {}:
> {}".format(self._port, msg))
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL weewx.engine:     ****
>  serial.serialutil.SerialException: [Errno 2] could not open port
> /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL __main__: Unable to load
> driver: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file
> or directory: '/dev/ttyUSB0'
> Feb 10 07:45:51 raspberrypi weewxd[797]: CRITICAL __main__:     ****
>  Exiting...
> Feb 10 07:45:52 raspberrypi systemd[1]: weewx.service: Main process
> exited, code=exited, status=4/NOPERMISSION
> Feb 10 07:45:52 raspberrypi systemd[1]: weewx.service: Failed with result
> 'exit-code'.
>
> On Friday, February 9, 2024 at 4:29:22 PM UTC-6 Joe wrote:
>
>> Well, it failed with a USB error is the problem. I put the ferrite core
>> on the cable and plugged it back in and it started normally.
>> Didnt see there was an update, I will do that, and remove the modemmanger
>>
>>
>> On Friday, February 9, 2024 at 3:58:05 PM UTC-6 Tom Keffer wrote:
>>
>>> The log in that last email looked pretty normal. Is there a problem?
>>>
>>> You should upgrade to v5.0.1.
>>>
>>> Be sure to get rid of ModemManager. It competes with weewxd for the port.
>>>
>>> *sudo apt purge modemmanager*
>>>
>>>
>>> -tk
>>>
>>>
>>> On Fri, Feb 9, 2024 at 11:12 AM Joe <[email protected]> wrote:
>>>
>>>> Feb  9 13:07:55 raspberrypi systemd[1]: Started WeeWX.
>>>> Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Initializing
>>>> weewxd version 5.0.0
>>>> Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Command line:
>>>> /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
>>>> Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Using Python
>>>> 3.9.2 (default, Mar 12 2021, 04:06:34) #012[GCC 10.2.1 20210110]
>>>> Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Located at
>>>> /usr/bin/python3
>>>> Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Platform
>>>> Linux-6.1.21-v8+-aarch64-with-glibc2.31
>>>> Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Locale:
>>>> 'en_US.UTF-8'
>>>> Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Entry path:
>>>> /usr/share/weewx/weewxd.py
>>>> Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: WEEWX_ROOT: /
>>>> Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Configuration
>>>> file: /etc/weewx/weewx.conf
>>>> Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: User module:
>>>> /etc/weewx/bin/user
>>>> Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO __main__: Debug: 0
>>>> Feb  9 13:07:56 raspberrypi weewxd[12185]: INFO weewx.engine: Loading
>>>> station type Vantage (weewx.drivers.vantage)
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine:
>>>> StdConvert target unit is 0x1
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.wxservices:
>>>> StdWXCalculate will use data binding wx_binding
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine: Archive
>>>> will use data binding wx_binding
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine: Record
>>>> generation will be attempted in 'hardware'
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine: Using
>>>> archive interval of 300 seconds (specified by hardware)
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.restx:
>>>> StationRegistry: Station will not be registered: no station_url specified.
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.restx:
>>>> Wunderground: Posting not enabled.
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.restx:
>>>> PWSWeather: Data for station JTX99 will be posted
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.restx: CWOP:
>>>> Posting not enabled.
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.restx: WOW:
>>>> Posting not enabled.
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.restx: AWEKAS:
>>>> Posting not enabled.
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine: 'pyephem'
>>>> detected, extended almanac data is available
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO __main__: Starting up
>>>> weewx version 5.0.0
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine: Clock
>>>> error is 4.14 seconds (positive is fast)
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.engine: Using
>>>> binding 'wx_binding' to database 'weewx.sdb'
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.manager: Starting
>>>> backfill of daily summaries
>>>> Feb  9 13:07:57 raspberrypi weewxd[12185]: INFO weewx.manager: Daily
>>>> summaries up to date
>>>>
>>>> On Friday, February 9, 2024 at 1:08:35 PM UTC-6 Joe wrote:
>>>>
>>>>>
>>>>> START weewx, and it begins publishing records again from the
>>>>> console.............................
>>>>
>>>> --
>>>>
>>> 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/d79d92ab-01cd-41b6-bd88-f2b540f6724fn%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/weewx-user/d79d92ab-01cd-41b6-bd88-f2b540f6724fn%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/6ca2b53a-4ea5-4a2a-97fa-bae86a214690n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/6ca2b53a-4ea5-4a2a-97fa-bae86a214690n%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/CAPq0zEAEWCyvcTpCvW7fqj%2ByKhpPa2crvhEGmTuEQQRG%2Bs05KQ%40mail.gmail.com.

Reply via email to