It doesn’t look like you are losing the connection to your Vantage Pro2.  
Rather, the kernel is killing WeeWX because you’re running of of memory.

You could write -1000 to the /proc/<pid-of-weewx-process>/oom-kill-adj file to 
keep it from killing WeeWX, but then something else will be killed to free up 
memory.

What are you running WeeWX on?  How much memory?  What else is running?

> On Sep 19, 2022, at 6:10 PM, Johnnie Walker <john...@kd2gyo.com> wrote:
> 
> Hi,
> I'd had a recurring issue for some months that the weewx service loses 
> connection to my Davis Vantage Pro2 / WeatherLink. Basic solution has been to 
> reboot which brings things back into action, although I lose the data for the 
> period during which the problem occurred. Shows up as breaks in the charts 
> (for example):
> 
> I have some breaks that are 1-2 days or more if I was on travel and didn't 
> realize until I returned.
> I just took time to search /var/log/syslog for the instance that happened 
> today - log is copied in below. And it looks like an out of memory error, so 
> the process is killed. (Log is grep'd for "weewx" , I copied in the log info 
> grep'd "oom" further below). The log entries around 16:12 and after are when 
> I rebooted the server.
> I installed weewx well over 2 years ago so can't recollect how I installed. I 
> can post the weewx.conf file if needed.
> Could anyone give me a pointer on how to fix, and is there a way to patch up 
> the missing data sections?
> Thanks very much - JW
> 
> "weewx"
> 
> Sep 19 15:38:31 sparta weewx[1081] INFO user.weatherlink_live: Emitting poll 
> packet
> Sep 19 15:38:31 sparta weewx[1081] INFO user.weatherlink_live: Emitting push 
> (broadcast) packet
> Sep 19 15:38:38 sparta weewx[1081] message repeated 4 times: [ INFO 
> user.weatherlink_live: Emitting push (broadcast) packet]
> Sep 19 15:38:41 sparta weewx[1081] INFO user.weatherlink_live: Emitting poll 
> packet
> Sep 19 15:38:41 sparta weewx[1081] INFO user.weatherlink_live: Emitting push 
> (broadcast) packet
> Sep 19 15:38:51 sparta weewx[1081] message repeated 4 times: [ INFO 
> user.weatherlink_live: Emitting push (broadcast) packet]
> Sep 19 15:38:51 sparta weewx[1081] INFO user.weatherlink_live: Emitting poll 
> packet
> Sep 19 15:38:53 sparta weewx[1081] INFO user.weatherlink_live: Emitting push 
> (broadcast) packet
> Sep 19 15:39:01 sparta weewx[1081] message repeated 3 times: [ INFO 
> user.weatherlink_live: Emitting push (broadcast) packet]
> Sep 19 15:39:01 sparta weewx[1081] INFO user.weatherlink_live: Emitting poll 
> packet
> Sep 19 15:39:02 sparta kernel: [1192066.955832] 
> oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=23c2c8bc241e51af783d9abaf3b8008403f4099db600e63a6284359bda22502e,mems_allowed=0,global_oom,task_memcg=/system.slice/weewx.service,task=python3,pid=1081,uid=0
> Sep 19 16:12:45 sparta systemd[1]: Starting LSB: weewx weather system...
> Sep 19 16:12:45 sparta weewx[907]:  * Starting weewx weather system weewx
> Sep 19 16:12:46 sparta weewx[1003] INFO __main__: Initializing weewx version 
> 4.8.0
> Sep 19 16:12:46 sparta weewx[1003] INFO __main__: Using Python 3.8.10 
> (default, Jun 22 2022, 20:18:18) #012[GCC 9.4.0]
> Sep 19 16:12:46 sparta weewx[1003] INFO __main__: Platform 
> Linux-5.4.0-125-generic-x86_64-with-glibc2.29
> Sep 19 16:12:46 sparta weewx[1003] INFO __main__: Locale is 'C.UTF-8'
> Sep 19 16:12:46 sparta weewx[1003] INFO __main__: Using configuration file 
> /etc/weewx/weewx.conf
> Sep 19 16:12:46 sparta weewx[1003] INFO __main__: Debug is 0
> Sep 19 16:12:46 sparta weewx[1003] INFO __main__: PID file is 
> /var/run/weewx.pid
> Sep 19 16:12:46 sparta weewx[1090] INFO weewx.engine: Loading station type 
> WeatherLinkLive (user.weatherlink_live)
> Sep 19 16:12:46 sparta weewx[907]:    ...done.
> Sep 19 16:12:46 sparta systemd[1]: Started LSB: weewx weather system.
> 
> "oom"
> 
> Sep 19 15:39:02 sparta kernel: [1192066.955659] python3 invoked oom-killer: 
> gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
> Sep 19 15:39:02 sparta kernel: [1192066.955672]  
> oom_kill_process.cold+0xb/0x10
> Sep 19 15:39:02 sparta kernel: [1192066.955745] [  pid  ]   uid  tgid 
> total_vm      rss pgtables_bytes swapents oom_score_adj name
> Sep 19 15:39:02 sparta kernel: [1192066.955832] 
> oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=23c2c8bc241e51af783d9abaf3b8008403f4099db600e63a6284359bda22502e,mems_allowed=0,global_oom,task_memcg=/system.slice/weewx.service,task=python3,pid=1081,uid=0
> Sep 19 15:39:02 sparta kernel: [1192066.955996] Out of memory: Killed process 
> 1081 (python3) total-vm:21086716kB, anon-rss:14282388kB, file-rss:0kB, 
> shmem-rss:0kB, UID:0 pgtables:36056kB oom_score_adj:0
> 
> -- 
> 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/6300dba8-2595-45db-b386-465345ef89e2n%40googlegroups.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/DE1C3F36-CBFD-472C-83D6-293B604F28E4%40johnkline.com.

Reply via email to