Re: [weewx-user] weewx 4.1.1-1 on rasp pi

2020-07-03 Thread Star Gazer
Tom,

I turned on debug and got a little more output:
Jul  3 15:45:12 obs weewx[26304] INFO weewx.engine: Loading station type 
Vantage (weewx.drivers.vantage)
Jul  3 15:45:12 obs weewx[26304] DEBUG weewx.drivers.vantage: Driver 
version is 3.2.0
Jul  3 15:45:12 obs weewx[26304] DEBUG weewx.drivers.vantage: Opened up 
serial port /dev/ttyUSB0; baud 19200; timeout 4.00
Jul  3 15:45:16 obs weewx[26304] DEBUG weewx.drivers.vantage: Retry #0 
failed
Jul  3 15:45:20 obs weewx[26304] DEBUG weewx.drivers.vantage: Retry #1 
failed
..
Jul  3 15:46:08 obs weewx[26304] DEBUG weewx.drivers.vantage: Retry #13 
failed
Jul  3 15:46:08 obs weewx[26304] ERROR weewx.drivers.vantage: Unable to 
wake up console
Jul  3 15:46:08 obs weewx[26304] ERROR weewx.engine: Import of driver 
failed: Unable to wake up Vantage console ()

lsof /dev/ttyUSB0 does not list anything with the serial port open.  The 
lines in the log seem to indicate the port is getting opened ok.

There are no other instances of weewx running.

There is nothing else that I'm aware of that would be using the serial 
port.  
This is a plain NOOBs install of raspbian jessie 4.9.35-v7+ (with with 
recent patches) weewx/squeeze 4.1.1-1 installed via apt install.  
weewx is all this pi does, nothing else has been installed.

There doesn't appear to be anything going into dmesg except for right 
around boot time.  Nothing suspicious jumps out at me.
I'm not seeing any issues in syslog with the USB/Serial port.

python miniterm opens the port without complaint, but I don't see any 
data.  I don't know how to get the Davis Vantage Pro to talk to me.  I can 
talk to a device on the other USB port fine.  

A reboot will always clear the problem, and then weewx will run for 
anywhere between hours to days, and then it will stop again.  
Sometimes a service stop/start will work, usually it won't.

This was mostly working for many months, but every few weeks it would quit 
like this, and a restart wouldn't work, so I'd reboot it.  But now, it is 
failing several times per day.
The only thing that changes on the pi is periodic patching.

This pi is in an unattended location, so I can't reseat the logger until 
the next time I go up there.  But since a pi reboot always fixes the 
problem, it would seem unlikely to be in the Davis, right?
I'd be curious to see if there's any serial data coming out of the pi when 
it is hung up like this.

Thanks,

SG


On Thursday, July 2, 2020 at 9:57:54 PM UTC-4, Tom Keffer wrote:
>
> That's not much of a log excerpt to go by, but here are a few things to 
> check:
>
> 1. Are there other entries in the system log? For example, is there an 
> instance of modemmanager that is competing for the same port? Or, some 
> other process? You can list what processes are using a port with the 'lsof' 
> command. For example,
>
> *lsof /dev/ttyUSB0*
>
>
> 2. Do you have a second instance of weewx running?
>
> 3. Try the command 'dmesg'. It will tell you what the kernel has been up 
> to. Any clues there?
>
> 4. Try removing your logger from the console and reseating it.
>
> -tk
>
>
>
>
> On Thu, Jul 2, 2020 at 6:18 PM Star Gazer  > wrote:
>
>> I can't keep weewx running on my raspberry pi.  It keeps failing with:
>>
>> Jul  2 21:13:10 obs weewx[18459] ERROR weewx.drivers.vantage: Unable to 
>> wake up console
>> Jul  2 21:13:10 obs weewx[18459] ERROR weewx.engine: Import of driver 
>> failed: Unable to wake up Vantage console ()
>> Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine:   
>> Traceback (most recent call last):
>> Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine: File 
>> "/usr/share/weewx/weewx/engine.py", line 103, in setupStation
>> Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine:   
>> self.console = loader_function(config_dict, self)
>> Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine: File 
>> "/usr/share/weewx/weewx/drivers/vantage.py", line 39, in loader
>> Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine:   
>> return VantageService(engine, config_dict)
>> Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine: File 
>> "/usr/share/weewx/weewx/drivers/vantage.py", line 1897, in __init__
>> Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine:   
>> Vantage.__init__(self, **config_dict[DRIVER_NAME])
>> Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine: File 
>> "/usr/share/weewx/weewx/drivers/vantage.py", line 514, in __init__
>> Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine:   
>> self._setup()
>> Jul  2 21:13:10 obs weewx[

[weewx-user] weewx 4.1.1-1 on rasp pi

2020-07-02 Thread Star Gazer
I can't keep weewx running on my raspberry pi.  It keeps failing with:

Jul  2 21:13:10 obs weewx[18459] ERROR weewx.drivers.vantage: Unable to 
wake up console
Jul  2 21:13:10 obs weewx[18459] ERROR weewx.engine: Import of driver 
failed: Unable to wake up Vantage console ()
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine:   Traceback 
(most recent call last):
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/engine.py", line 103, in setupStation
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine:   
self.console = loader_function(config_dict, self)
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 39, in loader
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine:   
return VantageService(engine, config_dict)
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 1897, in __init__
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine:   
Vantage.__init__(self, **config_dict[DRIVER_NAME])
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 514, in __init__
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine:   
self._setup()
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 1317, in _setup
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine:   
self.port.wakeup_console(max_tries=self.max_tries)
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 118, in wakeup_console
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine:   raise 
weewx.WakeupError("Unable to wake up Vantage console")
Jul  2 21:13:10 obs weewx[18459] CRITICAL weewx.engine:   
WakeupError: Unable to wake up Vantage console
Jul  2 21:13:10 obs weewx[18459] CRITICAL __main__: Unable to load driver: 
Unable to wake up Vantage console
Jul  2 21:13:10 obs weewx[18459] CRITICAL __main__:   Exiting...

A restart doesn't usually work, but a reboot does.  But only for a little 
while.


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/cd763a70-1c9f-4ab0-bd95-9aa5fbaa7a3do%40googlegroups.com.