As the message says, do you have a competing process running?

Try running the command

*lsof /dev/ttyUSB0*

to identify all programs claiming your serial interface.



On Tue, Jul 14, 2020 at 6:54 AM J.L. Blom <[email protected]> wrote:

> I upgrade yesterday finally to version 4.1.1 coming from 3.8.2 and ended
> in total disaster. Weewx doesn't work anymore (after > 5 years working
> flawlessly).
> The log (rather long says:
> _________________________________________________________________
> Jul 14 14:01:00 kangoo weewx[417] INFO __main__: Initializing weewx
> version 4.1.1
> Jul 14 14:01:00 kangoo weewx[417] INFO __main__: Using Python 3.5.3
> (default, Sep 27 2018, 17:25:39) #012[GCC 6.3.0 20170516]
> Jul 14 14:01:00 kangoo weewx[417] INFO __main__: Platform
> Linux-4.19.66-v7+-armv7l-with-debian-9.11
> Jul 14 14:01:00 kangoo weewx[417] INFO __main__: Locale is 'en_GB.UTF-8'
> Jul 14 14:01:00 kangoo weewx[417] INFO __main__: PID file is
> /var/run/weewx.pid
> Jul 14 14:01:01 kangoo weewx[423] INFO __main__: Using configuration
> file /home/weewx/weewx.conf
> Jul 14 14:01:01 kangoo weewx[423] INFO __main__: Debug is 1
> Jul 14 14:01:01 kangoo weewx[303]: Starting weewx weather system: weewx.
> Jul 14 14:01:01 kangoo weewx[423] DEBUG __main__: Initializing engine
> Jul 14 14:01:01 kangoo weewx[423] INFO weewx.engine: Loading station
> type Vantage (weewx.drivers.vantage)
> Jul 14 14:01:01 kangoo weewx[423] DEBUG weewx.drivers.vantage: Driver
> version is 3.2.1
> Jul 14 14:01:01 kangoo weewx[423] DEBUG weewx.drivers.vantage: Opened up
> serial port /dev/ttyUSB0; baud 19200; timeout 4.00
> Jul 14 14:01:03 kangoo weewx[423] ERROR weewx.drivers.vantage:
> SerialException on read.
> Jul 14 14:01:03 kangoo weewx[423] ERROR weewx.drivers.vantage:    ****
> read failed: device reports readiness to read but returned no data
> (device disconnected or multiple access on port?)
> Jul 14 14:01:03 kangoo weewx[423] ERROR weewx.drivers.vantage:    ****
> Is there a competing process running??
> Jul 14 14:01:03 kangoo weewx[423] DEBUG weewx.drivers.vantage: Retry #0
> failed
> Jul 14 14:01:03 kangoo weewx[423] ERROR weewx.drivers.vantage:
> SerialException on read.
> Jul 14 14:01:03 kangoo weewx[423] ERROR weewx.drivers.vantage:    ****
> read failed: device reports readiness to read but returned no data
> (device disconnected or multiple access on port?)
> Jul 14 14:01:03 kangoo weewx[423] ERROR weewx.drivers.vantage:    ****
> Is there a competing process running??
> Jul 14 14:01:03 kangoo weewx[423] DEBUG weewx.drivers.vantage: Retry #1
> failed
> Jul 14 14:01:03 kangoo weewx[423] DEBUG weewx.drivers.vantage: Gentle
> wake up of console successful
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
> SerialException on read.
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:    ****
> read failed: device reports readiness to read but returned no data
> (device disconnected or multiple access on port?)
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:    ****
> Is there a competing process running??
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
> _determine_hardware; retry #0: 'read failed: device reports readiness to
> read but returned no data (device disconnected or multiple access on
> port?)'
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
> SerialException on read.
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:    ****
> read failed: device reports readiness to read but returned no data
> (device disconnected or multiple access on port?)
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:    ****
> Is there a competing process running??
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
> _determine_hardware; retry #1: 'read failed: device reports readiness to
> read but returned no data (device disconnected or multiple access on
> port?)'
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
> SerialException on read.
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:    ****
> read failed: device reports readiness to read but returned no data
> (device disconnected or multiple access on port?)
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:    ****
> Is there a competing process running??
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
> _determine_hardware; retry #2: 'read failed: device reports readiness to
> read but returned no data (device disconnected or multiple access on
> port?)'
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
> SerialException on read.
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:    ****
> read failed: device reports readiness to read but returned no data
> (device disconnected or multiple access on port?)
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:    ****
> Is there a competing process running??
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage:
> _determine_hardware; retry #3: 'read failed: device reports readiness to
> read but returned no data (device disconnected or multiple access on
> port?)'
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.drivers.vantage: Unable to
> read hardware type; raise WeeWxIOError
> Jul 14 14:01:07 kangoo weewx[423] ERROR weewx.engine: Import of driver
> failed: Unable to read hardware type (<class 'weewx.WeeWxIOError'>)
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> Traceback (most recent call last):
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> File "/home/weewx/bin/weewx/engine.py", line 103, in setupStation
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> self.console = loader_function(config_dict, self)
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> return VantageService(engine, config_dict)
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 1897, in __init__
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> Vantage.__init__(self, **config_dict[DRIVER_NAME])
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 514, in __init__
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> self._setup()
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 1320, in _setup
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> self.hardware_type = self._determine_hardware()
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> File "/home/weewx/bin/weewx/drivers/vantage.py", line 1311, in
> _determine_hardware
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> raise weewx.WeeWxIOError("Unable to read hardware type")
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL weewx.engine:     ****
> weewx.WeeWxIOError: Unable to read hardware type
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL __main__: Unable to load
> driver: Unable to read hardware type
> Jul 14 14:01:07 kangoo weewx[423] CRITICAL __main__:     ****  Exiting...
> Jul 14 14:05:54 kangoo weewx[1081]: Stopping weewx weather system: weewx
> not running....
> Jul 14 14:06:05 kangoo weewx[1139] INFO __main__: Initializing weewx
> version 4.1.1
> Jul 14 14:06:05 kangoo weewx[1139] INFO __main__: Using Python 3.5.3
> (default, Sep 27 2018, 17:25:39) #012[GCC 6.3.0 20170516]
> Jul 14 14:06:05 kangoo weewx[1139] INFO __main__: Platform
> Linux-4.19.66-v7+-armv7l-with-debian-9.11
> Jul 14 14:06:05 kangoo weewx[1139] INFO __main__: Locale is 'en_GB.UTF-8'
> Jul 14 14:06:05 kangoo weewx[1139] INFO __main__: PID file is
> /var/run/weewx.pid
> Jul 14 14:06:05 kangoo weewx[1144] INFO __main__: Using configuration
> file /home/weewx/weewx.conf
> Jul 14 14:06:05 kangoo weewx[1144] INFO __main__: Debug is 1
> ______________________________________________________________________
> I haven't programmed in the last 3 years and most of my programming
> skills are with FORTRAN an PASCAL ( so you see I'm a rather old user &
> programmer). But weewx is used 24/7 and indispensable for me and several
> other users therefore I hope somebody can help me out.
> One question is do I have to remove all old weewx files except the ,sdb
> files and reload the version of weewx also or can I reinstall using the
> recently loaded installation file.
> Technical background:
> Weewx runs on an old raspberry pi, the weather-station is a Vantage Pro
> and the network and all systems are Linux (Ubuntu).
>
> --
> 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/79461f0e-b1c5-61a7-631d-d0e6bef20cb5%40gmail.com
> .
>

-- 
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/CAPq0zEBcc0LbJaEVBZWuJG6C0S3gXrg8-v6D990wfYfG5w%3DUSQ%40mail.gmail.com.

Reply via email to