Tom - just replying on the topic of connection: I can't see how to
connect to the Vantage Pro 2 directly, my head unit is remote (300ft) and
the console only has an RJ-11 - I had purchased the WLL to give me direct
connectivity over Ethernet, which has been working with weewx (although
acknowledging the issues discussed on this thread). Am I missing something
very obvious? (ugh)

On Mon, Sep 19, 2022 at 9:38 PM Tom Keffer <tkef...@gmail.com> wrote:

> I agree with John that this is an out-of-memory problem, but I wonder why
> you are getting the offset in humidity during the down time. Is this an
> artifact of using WeatherLinkLive? Indeed, why are you using WLL? Why not
> just go to the VP2 directly?
>
> On Mon, Sep 19, 2022 at 6:25 PM 'John Kline' via weewx-user <
> weewx-user@googlegroups.com> wrote:
>
>> Correction, the file is /proc/<pid-of-weewx-process>/oom-score-adj
>>
>> On Sep 19, 2022, at 6:23 PM, John Kline <j...@johnkline.com> wrote:
>>
>> 
>> 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):
>> [image: dayhum.png]
>> 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
>> <https://groups.google.com/d/msgid/weewx-user/6300dba8-2595-45db-b386-465345ef89e2n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> [image: dayhum.png]
>>
>> --
>> 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/7F064749-72E2-4343-B079-3D2B980E075A%40johnkline.com
>> <https://groups.google.com/d/msgid/weewx-user/7F064749-72E2-4343-B079-3D2B980E075A%40johnkline.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/yJNYSpx-ihI/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAPq0zEBDRB7h1QBVOvVFe9Qj_k7WyZDPrqn4Oweix-pqBQ%3DUkA%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEBDRB7h1QBVOvVFe9Qj_k7WyZDPrqn4Oweix-pqBQ%3DUkA%40mail.gmail.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAM4CCC%2B95-ZVCOL3ZyWfEPhQznWWEp2e7_xUJO0LjBfWDyJH4g%40mail.gmail.com.

Reply via email to