[weewx-user] SOLVED: WeeWX startup on Debian 12 Bookworm with Vantage Pro console using ethernet

2024-02-21 Thread Neil B
This may not be an issue you have encountered yet, but as it affected me, 
this post is for others who may have the same problem.

*Situation*: WeeWX 5.0.2 installed on vanilla Debian 12 (bookwork) with 
*fixed* IP address. Weatherstation hardware is Vantage Pro with an 
*ethernet* interface.

*Issue*: WeeWX fails to start and reports:

*Feb 21 13:53:05 SCADA weewxd[522]: INFO weewx.engine: Loading station type* 


























*Vantage (weewx.drivers.vantage)Feb 21 13:53:05 SCADA weewxd[522]: ERROR 
weewx.drivers.vantage: Socket error while opening port 2 to ethernet 
host >Feb 21 13:53:05 SCADA weewxd[522]: ERROR weewx.engine: Import of 
driver failed: [Errno 101] Network is unreachable (Feb 21 13:53:05 
SCADA weewxd[522]: CRITICAL weewx.engine:   Traceback (most recent 
call last):Feb 21 13:53:05 SCADA weewxd[522]: CRITICAL weewx.engine: 
File "/usr/share/weewx/weewx/drivers/vantage.py",>Feb 21 13:53:05 
SCADA weewxd[522]: CRITICAL weewx.engine:  
 self.socket.connect((self.host, self.port))Feb 21 13:53:05 SCADA 
weewxd[522]: CRITICAL weewx.engine:   OSError: [Errno 101] Network 
is unreachableFeb 21 13:53:05 SCADA weewxd[522]: CRITICAL weewx.engine: 
Feb 21 13:53:05 SCADA weewxd[522]: CRITICAL weewx.engine:  
 During handling of the above exception, another exc>Feb 21 13:53:05 SCADA 
weewxd[522]: CRITICAL weewx.engine: Feb 21 13:53:05 SCADA 
weewxd[522]: CRITICAL weewx.engine:   Traceback (most recent call 
last):Feb 21 13:53:05 SCADA weewxd[522]: CRITICAL weewx.engine:    
 File "/usr/share/weewx/weewx/engine.py", line 115>Feb 21 13:53:05 SCADA 
weewxd[522]: CRITICAL weewx.engine:   self.console = 
loader_function(config_dict, sel>Feb 21 13:53:05 SCADA weewxd[522]: 
CRITICAL weewx.engine:  
>Feb 21 13:53:05 SCADA weewxd[522]: 
CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>Feb 21 13:53:05 SCADA 
weewxd[522]: CRITICAL weewx.engine:   return 
VantageService(engine, config_dict)Feb 21 13:53:05 SCADA weewxd[522]: 
CRITICAL weewx.engine:  
^^^Feb 21 13:53:05 SCADA weewxd[522]: 
CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>Feb 21 13:53:05 SCADA 
weewxd[522]: CRITICAL weewx.engine:   Vantage.__init__(self, 
**config_dict[DRIVER_NAM>Feb 21 13:53:05 SCADA weewxd[522]: CRITICAL 
weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>Feb 21 13:53:05 SCADA 
weewxd[522]: CRITICAL weewx.engine:   self.port.openPort()Feb 
21 13:53:05 SCADA weewxd[522]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>Feb 21 13:53:05 SCADA 
weewxd[522]: CRITICAL weewx.engine:   raise 
weewx.WeeWxIOError(ex)Feb 21 13:53:05 SCADA weewxd[522]: CRITICAL 
weewx.engine:   weewx.WeeWxIOError: [Errno 101] Network is 
unreacha>Feb 21 13:53:05 SCADA weewxd[522]: CRITICAL __main__: Unable to 
load driver: [Errno 101] Network is unreachableFeb 21 13:53:05 SCADA 
weewxd[522]: CRITICAL __main__:   Exiting...Feb 21 13:53:05 SCADA 
systemd[1]: weewx.service: Main process exited, code=exited, 
status=4/NOPERMISSIONFeb 21 13:53:05 SCADA systemd[1]: weewx.service: 
Failed with result 'exit-code'.*

*Resolution*:

Even though the correct dependencies were set in the 'weewx.service' file, 
the network was not available in time.  I'd set a static IP address in the '
*/etc/network/interfaces*' file using the standard commands for this.

Solution involved adding an *UP SLEEP *command. Here is the example that 
works for me:

iface enp1s0 inet static
address 192.168.1.242/24
gateway 192.168.1.254
*up sleep 5*

Note: ENP1S0 is my LAN interface name.

Hope this helps any others who come across this.

Neil

-- 
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/46307069-8c55-4e58-a768-32e227290cb7n%40googlegroups.com.


[weewx-user] Re: Install of WeeWX 5.0.2 on RPI 5 Failed

2024-02-21 Thread Neil B
I've just had a similar issue with the VANTAGE on Ethernet. All was fine 
with me on a Raspberry Pi 4, but I updated to a full Debian Bookwork mini 
PC over the weekend and now Weewx won't start. In a previous post Tom and 
others helped by putting in a file to allow the network to start before 
Weewx kicked in. However, on a fresh install on vanilla Debian, the 
directories/files don't exist as they did on the PI. This is my error log:

Feb 21 12:40:25 SCADA systemd[1]: Started weewx.service - WeeWX.
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Initializing weewxd 
version 5.0.2
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Command line: 
/usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Using Python 3.11.2 
(main, Mar 13 2023, 12:18:29) [GCC 12.2.0]
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Located at 
/usr/bin/python3
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Platform 
Linux-6.1.0-18-amd64-x86_64-with-glibc2.36
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Locale: 'en_GB.UTF-8'
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Entry path: 
/usr/share/weewx/weewxd.py
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: WEEWX_ROOT: /etc/weewx
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Configuration file: 
/etc/weewx/weewx.conf
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: User module: 
/etc/weewx/bin/user
Feb 21 12:40:26 SCADA weewxd[520]: INFO __main__: Debug: 1
Feb 21 12:40:26 SCADA weewxd[520]: DEBUG __main__: Initializing engine
Feb 21 12:40:26 SCADA weewxd[520]: INFO weewx.engine: Loading station type 
Vantage (weewx.drivers.vantage)
Feb 21 12:40:26 SCADA weewxd[520]: DEBUG weewx.drivers.vantage: Driver 
version is 3.6.2
Feb 21 12:40:26 SCADA weewxd[520]: DEBUG weewx.drivers.vantage: Option 
loop_request=1
Feb 21 12:40:26 SCADA weewxd[520]: ERROR weewx.drivers.vantage: Socket 
error while opening port 2 to ethernet host >
Feb 21 12:40:26 SCADA weewxd[520]: ERROR weewx.engine: Import of driver 
failed: [Errno 101] Network is unreachable (
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 Traceback (most recent call last):
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 self.socket.connect((self.host, self.port))
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 OSError: [Errno 101] Network is unreachable
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: 
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:   During 
handling of the above exception, another exc>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: 
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 Traceback (most recent call last):
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/engine.py", line 115>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 self.console = loader_function(config_dict, sel>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 return VantageService(engine, config_dict)
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
^^^
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 Vantage.__init__(self, **config_dict[DRIVER_NAM>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 self.port.openPort()
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py",>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 raise weewx.WeeWxIOError(ex)
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL weewx.engine:  
 weewx.WeeWxIOError: [Errno 101] Network is unreacha>
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL __main__: Unable to load 
driver: [Errno 101] Network is unreachable
Feb 21 12:40:26 SCADA weewxd[520]: CRITICAL __main__:   Exiting...
Feb 21 12:40:26 SCADA systemd[1]: weewx.service: Main process exited, 
code=exited, status=4/NOPERMISSION
Feb 21 12:40:26 SCADA systemd[1]: weewx.service: Failed with result 
'exit-code'.

On Wednesday 21 February 2024 at 12:38:36 UTC Dave McCreath wrote:

> Recently acquired an RPi 5 and decided this morning to migrate WeeWX over 
> to it from an up to date RPi 4.
>
> Three attempts, all failed 

Re: [weewx-user] Re: Another Davis Vantage unable to start concern - SOLVED

2024-02-07 Thread Neil B
Evening all.

Firstly apologies for my delay in replying, I have been away from home on 
business for two days.

Thanks to you all for your suggestions. Here is what I found on testing 
these tonight:

1. The solution noted by Tom, Michael and also one of those noted by 
Matthew (editing weewx.service) didn't work for me. On a reboot the start 
up still exited with the same error.
2. The slightly different solution (using the same file parameters) noted 
by Matthew did work on my setup.

So, in summary I used the following:

1. Created the *weewx.service.d* directory in /etc/systemd/system
2. Created a new *waitfornetwork.conf *file in the new directory
3. Added in the following configuration:




*[Unit]Wants=network-online.targetAfter=network-online.target*

Now when I reboot the Raspberry Pi the start up progresses normally, indeed 
by the time I get to check the log file it is well into updating data.

*Thank you ALL *for your help and excellent suggestions. If anyone fancies 
helping me with my other issue of recovering lost data after it was "lost" 
during the upgrade, please let me know and I will start a new conversation. 
I won't go anywhere near mention how my neowx-material skin is now throwing 
up warnings as that seems less important. :-)

Thanks
Neil


On Wednesday 7 February 2024 at 20:38:56 UTC Tom Keffer wrote:

> Thanks, Michael. This is good to know. 
>
> There may be standalone installations where there is no network 
> connection, but in general, it's probably a good idea for us to add this to 
> the default unit file.
>
> On Wed, Feb 7, 2024 at 12:06 PM Michael Swain  wrote:
>
>> I was having a similar issue with my weewx 5.0.0 fresh install on a 
>> Raspberry PI 4 running Version 12 (bookworm)  trying to connect to a wifi 
>> logger 2 on a Vantage Pro 2 console.  On startup it would exit with a 
>> network unreachable error.  Running the start command right after it would 
>> start just fine.
>>
>> Adding 
>>
>> *Wants=network-online.targetAfter=network-online.target*
>>
>> into the weewx.service file in /lib/systemd/system 
>>
>> fixed my issue.  Weewx now loads and connects on a system reboot.
>>
>> On Monday, February 5, 2024 at 3:22:28 PM UTC-5 Neil B wrote:
>>
>>> Hi
>>>
>>> I performed an upgrade to 5.0.0 at the weekend and have had two main 
>>> issues. I'm putting to one side for now that the upgrade seemed to correct 
>>> the database and I needed to create a new one. The main issue is similar to 
>>> other Davis Vantage Pro users. Before the upgrade all worked fine, WEEWX 
>>> started every time without issue. Now if I boot from cold (or a reboot) I 
>>> get a critical error. My Vantage Pro is connected via ethernet using the IP 
>>> adaptor. The error below is what I receive. Ironically as my device is 
>>> remotely housed, I use SSH to connect to it (it's on a Raspberry Pi running 
>>> debian bookworm). Therefore the network must be working. I wondering if it 
>>> needs a delay or a dependency when starting WEEWX. Performing a manual 
>>> start after this error works every time. Also after failing to start if i 
>>> run 'weectl device --info' it correctly reports the Vantage weather 
>>> station. Any help would be appreciated (I see others are having a similar 
>>> issue with USB connected Davis Vantage Pros). Here is the error:
>>>
>>> Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:  
>>>  Vantage.__init__(self, **config_dict[DRIVER_NAME])
>>> Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:    
>>>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
>>> Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:  
>>>  self.port.openPort()
>>> Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:    
>>>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 359, in openPort
>>> Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:  
>>>  raise weewx.WeeWxIOError(ex)
>>> Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:  
>>>  weewx.WeeWxIOError: [Errno 101] Network is unreachable
>>> Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL __main__: Unable to load 
>>> driver: [Errno 101] Network is unreachable
>>> Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL __main__:  
>>>  Exiting...
>>> Feb 05 19:15:56 WEATHER systemd[1]: weewx.service: Main process exited, 
>>> code=exited, status=4/NOPERMISSION
>>> Feb 05 19:15:56 WEATHER systemd[1]: weewx.service: Failed with result 
>

Re: [weewx-user] Another Davis Vantage unable to start concern

2024-02-06 Thread Neil B
Morning.

Good suggestion on "loop on init", however I already have this setting 
enabled (and have for a long time). I believe this setting applies once the 
main loop starts, which is much later in the process.

The idea of delaying the start up of WEEWX is good, and I am in favour of 
this approach. Question is (for the Linux novice) - how can you implement 
this? Any thoughts?

Thanks
Neil

On Tuesday 6 February 2024 at 00:13:55 UTC Tom Keffer wrote:

> All good suggestions.
>
> For *loop_on_init*, see this link 
> <https://www.weewx.com/docs/5.0/reference/weewx-options/general/#loop_on_init>
> .
>
> On Mon, Feb 5, 2024 at 3:29 PM Graham Eddy  wrote:
>
>> vantage device is on LAN. wireless interface normally not ready until 
>> long after weewx tries to start, unusual (but not impossible) for ethernet 
>> interface to be so late. try the ‘loop-on-init = 1’ in weewx.conf, or 
>> insert a delay in the startup file
>> *⊣GE⊢*
>>
>> On 6 Feb 2024, at 8:08 am, Neil B  wrote:
>>
>> Feb 05 20:54:10 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: Opened 
>> up ethernet host 192.168.1.249 on port 2. timeout=4.0, 
>> tcp_send_delay=0.5
>>
>>
>> -- 
>> 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/F018B0FD-2319-41C3-88B1-10EC577E47FB%40geddy.au
>>  
>> <https://groups.google.com/d/msgid/weewx-user/F018B0FD-2319-41C3-88B1-10EC577E47FB%40geddy.au?utm_medium=email_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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b223aeb6-4150-4644-9d41-bc39bbed268en%40googlegroups.com.


Re: [weewx-user] Another Davis Vantage unable to start concern

2024-02-05 Thread Neil B
Hi Tom.

Perhaps I wasn't clear with what I meant. Let me try this

When I do a reboot WEEWX does not run. It always STOPS with the critical 
error (the 10 lines) and I have to manually START the service myself. It is 
very consistent - reboot and service does not start, issue the manual 
command to start and it works. This has only happened since going to v5. 
All was fine on v.4. Is there any more data I can provide you with?

Thanks
Neil

On Monday 5 February 2024 at 21:04:02 UTC Tom Keffer wrote:

> That's better.
>
> Looks to me like everything is working as it should. Perhaps it only 
> needed a reboot?
>
> On Mon, Feb 5, 2024 at 1:00 PM Neil B  wrote:
>
>> Me again!!  Just thought I would add some more info.
>>
>> I terms of your last reply to me, yes I only get the 10 lines before all 
>> grinds to a halt. I am showing below what I get after a reboot and then 
>> immediately after I manually start the software running.
>>
>> ==
>>
>> Once I reboot the box the only WEEWX messages I get are (no change):
>>
>> Feb 05 20:53:10 WEATHER weewxd[523]: CRITICAL weewx.engine:  
>>  Vantage.__init__(self, **config_dict[DRIVER_NAME])
>> Feb 05 20:53:10 WEATHER weewxd[523]: CRITICAL weewx.engine:    
>>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
>> Feb 05 20:53:10 WEATHER weewxd[523]: CRITICAL weewx.engine:  
>>  self.port.openPort()
>> Feb 05 20:53:10 WEATHER weewxd[523]: CRITICAL weewx.engine:    
>>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 359, in openPort
>> Feb 05 20:53:10 WEATHER weewxd[523]: CRITICAL weewx.engine:  
>>  raise weewx.WeeWxIOError(ex)
>> Feb 05 20:53:10 WEATHER weewxd[523]: CRITICAL weewx.engine:  
>>  weewx.WeeWxIOError: [Errno 101] Network is unreachable
>> Feb 05 20:53:10 WEATHER weewxd[523]: CRITICAL __main__: Unable to load 
>> driver: [Errno 101] Network is unreachable
>> Feb 05 20:53:10 WEATHER weewxd[523]: CRITICAL __main__:  
>>  Exiting...
>> Feb 05 20:53:10 WEATHER systemd[1]: weewx.service: Main process exited, 
>> code=exited, status=4/NOPERMISSION
>> Feb 05 20:53:10 WEATHER systemd[1]: weewx.service: Failed with result 
>> 'exit-code'.
>>
>> If I then manually start WEEWX (sudo systemctl start weewx), there is 
>> more of a detailed log (I know the WOW errors are not important and I 
>> stopped the log as it was about to do the webpage processing):
>>
>> Feb 05 20:54:10 WEATHER weewxd[877]: INFO __main__: Entry path: 
>> /usr/share/weewx/weewxd.py
>> Feb 05 20:54:10 WEATHER weewxd[877]: INFO __main__: WEEWX_ROOT: /etc/weewx
>> Feb 05 20:54:10 WEATHER weewxd[877]: INFO __main__: Configuration file: 
>> /etc/weewx/weewx.conf
>> Feb 05 20:54:10 WEATHER weewxd[877]: INFO __main__: User module: 
>> /etc/weewx/bin/user
>> Feb 05 20:54:10 WEATHER weewxd[877]: INFO __main__: Debug: 1
>> Feb 05 20:54:10 WEATHER weewxd[877]: DEBUG __main__: Initializing engine
>> Feb 05 20:54:10 WEATHER weewxd[877]: INFO weewx.engine: Loading station 
>> type Vantage (weewx.drivers.vantage)
>> Feb 05 20:54:10 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: Driver 
>> version is 3.6.2
>> Feb 05 20:54:10 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: Option 
>> loop_request=1
>> Feb 05 20:54:10 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: Opened 
>> up ethernet host 192.168.1.249 on port 2. timeout=4.0, 
>> tcp_send_delay=0.5
>> Feb 05 20:54:11 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: 
>> Successfully woke up Vantage console
>> Feb 05 20:54:12 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: 
>> Hardware type is 16
>> Feb 05 20:54:16 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: ISS ID 
>> is 1
>> Feb 05 20:54:16 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: 
>> Hardware name: Vantage Pro2
>> Feb 05 20:54:16 WEATHER weewxd[877]: DEBUG weewx.engine: Loading service 
>> weewx.engine.StdTimeSynch
>> Feb 05 20:54:16 WEATHER weewxd[877]: DEBUG weewx.engine: Finished loading 
>> service weewx.engine.StdTimeSynch
>> Feb 05 20:54:16 WEATHER weewxd[877]: DEBUG weewx.engine: Loading service 
>> weewx.engine.StdConvert
>> Feb 05 20:54:16 WEATHER weewxd[877]: INFO weewx.engine: StdConvert target 
>> unit is 0x1
>> Feb 05 20:54:16 WEATHER weewxd[877]: DEBUG weewx.engine: Finished loading 
>> service weewx.engine.StdConvert
>> Feb 05 20:54:16 WEATHER weewxd[877]: DEBUG weewx.engine: Loading service 
>> weewx.engine.StdCalibrate
>> Feb 05 20:54:16 WEATHER weewxd[877]: DEBUG weewx.

Re: [weewx-user] Another Davis Vantage unable to start concern

2024-02-05 Thread Neil B
GMT (1707166440)
Feb 05 20:54:22 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: Catch up 
complete.
Feb 05 20:54:22 WEATHER weewxd[877]: INFO weewx.engine: Starting main 
packet loop.
Feb 05 20:54:22 WEATHER weewxd[877]: DEBUG weewx.restx: WOW: Failed upload 
attempt 1: HTTP Error 429: Too frequent observations.
Feb 05 20:54:24 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: 
Successfully woke up Vantage console
Feb 05 20:54:24 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: 
Requesting 200 LOOP packets.
Feb 05 20:54:26 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: 
Successfully woke up Vantage console
Feb 05 20:54:28 WEATHER weewxd[877]: DEBUG weewx.restx: WOW: Failed upload 
attempt 2: HTTP Error 429: Too frequent observations.
Feb 05 20:54:33 WEATHER weewxd[877]: DEBUG weewx.restx: WOW: Failed upload 
attempt 3: HTTP Error 429: Too frequent observations.
Feb 05 20:54:33 WEATHER weewxd[877]: ERROR weewx.restx: WOW: Failed to 
publish record 2024-02-05 20:53:00 GMT (1707166380): Failed upload after 3 
tries
Feb 05 20:54:33 WEATHER weewxd[877]: DEBUG weewx.restx: WOW: wait interval 
(60 < 300) has not passed for record 2024-02-05 20:54:00 GMT (1707166440)
Feb 05 20:55:15 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: Getting 
archive packets since 2024-02-05 20:54:00 GMT (1707166440)
Feb 05 20:55:16 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: 
Successfully woke up Vantage console
Feb 05 20:55:18 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: 
Retrieving 1 page(s); starting index= 3
Feb 05 20:55:18 WEATHER weewxd[877]: INFO weewx.manager: Added record 
2024-02-05 20:55:00 GMT (1707166500) to database 'weewx.sdb'
Feb 05 20:55:18 WEATHER weewxd[877]: INFO weewx.manager: Added record 
2024-02-05 20:55:00 GMT (1707166500) to daily summary in 'weewx.sdb'
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: DMPAFT 
complete: page timestamp 2024-02-04 02:16:00 GMT (1707012960) less than 
final timestamp 2024-02-05 20:55:00 GMT (1707166500)
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.restx: WOW: wait interval 
(120 < 300) has not passed for record 2024-02-05 20:55:00 GMT (1707166500)
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: Catch up 
complete.
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.reportengine: Running 
reports for latest time in the database.
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.drivers.vantage: 
Requesting 200 LOOP packets.
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.reportengine: Report 
'SeasonsReport' not enabled. Skipping.
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.reportengine: Report 
'SmartphoneReport' not enabled. Skipping.
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.reportengine: Report 
'MobileReport' not enabled. Skipping.
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.reportengine: Running 
report 'StandardReport'
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.reportengine: Found 
configuration file /etc/weewx/skins/neowx-material/skin.conf for report 
'StandardReport'
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.reportengine: Cannot read 
localization file /etc/weewx/skins/neowx-material/lang/en.conf for report 
'StandardReport': Config file not found: 
"/etc/weewx/skins/neowx-material/lang/en.conf".
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.reportengine:  Using 
defaults instead.
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.reportengine: Running 
generators for report 'StandardReport' in directory 
'/etc/weewx/skins/neowx-material'
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.cheetahgenerator: Using 
search list ['weewx.cheetahgenerator.Almanac', 
'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.DisplayOptions', 
'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 
'weewx.cheetahgenerator.JSONHelpers', 'weewx.cheetahgenerator.PlotInfo', 
'weewx.cheetahgenerator.SkinInfo', 'weewx.cheetahgenerator.Station', 
'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
Feb 05 20:55:19 WEATHER weewxd[877]: DEBUG weewx.manager: Daily summary 
version is 4.0

On Monday 5 February 2024 at 20:55:31 UTC Tom Keffer wrote:

> Are you saying that if you use the command "*journalctl -u weewx*", you 
> get only the 10 lines you included in the original post? 
>
> NB: you want
>
> *journalctl -u weewx*
>
>
> NOT
>
> *journalctl -u weewx -f*
>
>
>
>
> On Mon, Feb 5, 2024 at 12:43 PM Neil B  wrote:
>
>> Hi Tom  
>>
>> Many thanks for the prompt reply. I should have mentioned that I upgraded 
>> to v.5.0.1 early today, that made no difference. I've just set 'debug = 1' 
>> and restarted. The "weewx" log looks exactly the same (no additional info). 
>> Therefore, I haven't repeated it. I'm finding the only log I can see is 
>> when using:
>>
>> *sudo journalctl -u weewx -f*
>>
>> If I try the log I us

Re: [weewx-user] Another Davis Vantage unable to start concern

2024-02-05 Thread Neil B
Hi Tom  

Many thanks for the prompt reply. I should have mentioned that I upgraded 
to v.5.0.1 early today, that made no difference. I've just set 'debug = 1' 
and restarted. The "weewx" log looks exactly the same (no additional info). 
Therefore, I haven't repeated it. I'm finding the only log I can see is 
when using:

*sudo journalctl -u weewx -f*

If I try the log I used to use on v.4 (i.e. sudo tail -f /var/log/syslog) 
it just says 'No such file or directory'. Ditto if I replace syslog with 
messages.

Here is the log without specifically specifying 'weewx' (not sure if this 
is helpful):

Feb 05 20:40:28 WEATHER ntpd[658]: DNS: dns_take_status: 
2.debian.pool.ntp.org=>good, 8
Feb 05 20:40:29 WEATHER ntpd[658]: DNS: dns_probe: 1.debian.pool.ntp.org, 
cast_flags:8, flags:101
Feb 05 20:40:29 WEATHER ntpd[658]: DNS: dns_check: processing 
1.debian.pool.ntp.org, 8, 101
Feb 05 20:40:29 WEATHER ntpd[658]: DNS: Pool skipping: 104.238.174.158
Feb 05 20:40:29 WEATHER ntpd[658]: DNS: Pool skipping: 185.103.119.60
Feb 05 20:40:29 WEATHER ntpd[658]: DNS: Pool skipping: 77.68.81.77
Feb 05 20:40:29 WEATHER ntpd[658]: DNS: Pool skipping: 188.114.116.1
Feb 05 20:40:29 WEATHER ntpd[658]: DNS: dns_take_status: 
1.debian.pool.ntp.org=>good, 8
Feb 05 20:40:29 WEATHER sudo[864]:   pi : TTY=pts/0 ; PWD=/home/pi ; 
USER=root ; COMMAND=/usr/bin/journalctl -f
Feb 05 20:40:29 WEATHER sudo[864]: pam_unix(sudo:session): session opened 
for user root(uid=0) by pi(uid=1000)
Feb 05 20:40:30 WEATHER ntpd[658]: DNS: dns_probe: 0.debian.pool.ntp.org, 
cast_flags:8, flags:101
Feb 05 20:40:30 WEATHER ntpd[658]: DNS: dns_check: processing 
0.debian.pool.ntp.org, 8, 101
Feb 05 20:40:30 WEATHER ntpd[658]: DNS: Pool skipping: 81.128.218.110
Feb 05 20:40:30 WEATHER ntpd[658]: DNS: Pool skipping: 109.74.206.120
Feb 05 20:40:30 WEATHER ntpd[658]: DNS: Pool skipping: 217.114.59.3
Feb 05 20:40:30 WEATHER ntpd[658]: DNS: Pool skipping: 162.159.200.123
Feb 05 20:40:30 WEATHER ntpd[658]: DNS: dns_take_status: 
0.debian.pool.ntp.org=>good, 8
Feb 05 20:40:44 WEATHER ntpd[658]: CLOCK: time stepped by 14.228062
Feb 05 20:40:44 WEATHER ntpd[658]: INIT: MRU 10922 entries, 13 hash bits, 
65536 bytes
Feb 05 20:40:46 WEATHER systemd[1]: NetworkManager-dispatcher.service: 
Deactivated successfully.
Feb 05 20:40:47 WEATHER dhcpcd[554]: eth0: no IPv6 Routers available
Feb 05 20:40:50 WEATHER dhcpcd[554]: wlan0: no IPv6 Routers available
Feb 05 20:40:57 WEATHER systemd[1]: systemd-fsckd.service: Deactivated 
successfully.
Feb 05 20:41:00 WEATHER systemd[1]: systemd-hostnamed.service: Deactivated 
successfully.

I don't use DHCP - I have a static IP address assigned to the Pi and am 
using the LAN port, connected to a gigabit ethernet switch. I also prefer 
IPv4.

I should point out that I have a very basic knowledge of Linux, hence my 
posting to the group.

Thanks
Neil

On Monday 5 February 2024 at 20:27:06 UTC Tom Keffer wrote:

> Two things:
>
> 1. Try upgrading to v5.0.1. It fixes some permission issues for Debian 
> installs. It's remotely possible that's what you're experiencing.
>
> 2. Please set debug=1, then restart. Post from the restart.
>
> We'll figure this out.
>
> -tk
>
> On Mon, Feb 5, 2024 at 12:22 PM Neil B  wrote:
>
>> Hi
>>
>> I performed an upgrade to 5.0.0 at the weekend and have had two main 
>> issues. I'm putting to one side for now that the upgrade seemed to correct 
>> the database and I needed to create a new one. The main issue is similar to 
>> other Davis Vantage Pro users. Before the upgrade all worked fine, WEEWX 
>> started every time without issue. Now if I boot from cold (or a reboot) I 
>> get a critical error. My Vantage Pro is connected via ethernet using the IP 
>> adaptor. The error below is what I receive. Ironically as my device is 
>> remotely housed, I use SSH to connect to it (it's on a Raspberry Pi running 
>> debian bookworm). Therefore the network must be working. I wondering if it 
>> needs a delay or a dependency when starting WEEWX. Performing a manual 
>> start after this error works every time. Also after failing to start if i 
>> run 'weectl device --info' it correctly reports the Vantage weather 
>> station. Any help would be appreciated (I see others are having a similar 
>> issue with USB connected Davis Vantage Pros). Here is the error:
>>
>> Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:  
>>  Vantage.__init__(self, **config_dict[DRIVER_NAME])
>> Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:    
>>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
>> Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:  
>>  self.port.openPort()
>> Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine: 

[weewx-user] Another Davis Vantage unable to start concern

2024-02-05 Thread Neil B
Hi

I performed an upgrade to 5.0.0 at the weekend and have had two main 
issues. I'm putting to one side for now that the upgrade seemed to correct 
the database and I needed to create a new one. The main issue is similar to 
other Davis Vantage Pro users. Before the upgrade all worked fine, WEEWX 
started every time without issue. Now if I boot from cold (or a reboot) I 
get a critical error. My Vantage Pro is connected via ethernet using the IP 
adaptor. The error below is what I receive. Ironically as my device is 
remotely housed, I use SSH to connect to it (it's on a Raspberry Pi running 
debian bookworm). Therefore the network must be working. I wondering if it 
needs a delay or a dependency when starting WEEWX. Performing a manual 
start after this error works every time. Also after failing to start if i 
run 'weectl device --info' it correctly reports the Vantage weather 
station. Any help would be appreciated (I see others are having a similar 
issue with USB connected Davis Vantage Pros). Here is the error:

Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:  
 Vantage.__init__(self, **config_dict[DRIVER_NAME])
Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:    
 File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:  
 self.port.openPort()
Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:    
 File "/usr/share/weewx/weewx/drivers/vantage.py", line 359, in openPort
Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:  
 raise weewx.WeeWxIOError(ex)
Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL weewx.engine:  
 weewx.WeeWxIOError: [Errno 101] Network is unreachable
Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL __main__: Unable to load 
driver: [Errno 101] Network is unreachable
Feb 05 19:15:56 WEATHER weewxd[473]: CRITICAL __main__:   Exiting...
Feb 05 19:15:56 WEATHER systemd[1]: weewx.service: Main process exited, 
code=exited, status=4/NOPERMISSION
Feb 05 19:15:56 WEATHER systemd[1]: weewx.service: Failed with result 
'exit-code'.

Thanks
Neil

-- 
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/b3211a86-cd93-4761-a7ee-08f104614c9en%40googlegroups.com.