Got one last night....
Feb 25 22:29:41 server weewx[7721]: wmr200: MainThread: I Driver gracefully
exiting
Feb 25 22:29:41 server weewx[7721]: engine: Caught unrecoverable exception
in engine:
Feb 25 22:29:41 server weewx[7721]: **** Non-positive value for record
field 'interval': 0
Feb 25 22:29:41 server weewx[7721]: **** Traceback (most recent call last):
Feb 25 22:29:41 server weewx[7721]: **** File
"/home/weewx/bin/weewx/engine.py", line 890, in main
Feb 25 22:29:41 server weewx[7721]: **** engine.run()
Feb 25 22:29:41 server weewx[7721]: **** File
"/home/weewx/bin/weewx/engine.py", line 160, in run
Feb 25 22:29:41 server weewx[7721]: ****
self.dispatchEvent(weewx.Event(weewx.STARTUP))
Feb 25 22:29:41 server weewx[7721]: **** File
"/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent
Feb 25 22:29:41 server weewx[7721]: **** callback(event)
Feb 25 22:29:41 server weewx[7721]: **** File
"/home/weewx/bin/weewx/engine.py", line 520, in startup
Feb 25 22:29:41 server weewx[7721]: ****
self._catchup(self.engine.console.genStartupRecords)
Feb 25 22:29:41 server weewx[7721]: **** File
"/home/weewx/bin/weewx/engine.py", line 635, in _catchup
Feb 25 22:29:41 server weewx[7721]: **** origin='hardware'))
Feb 25 22:29:41 server weewx[7721]: **** File
"/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent
Feb 25 22:29:41 server weewx[7721]: **** callback(event)
Feb 25 22:29:41 server weewx[7721]: **** File
"/home/weewx/bin/weewx/engine.py", line 601, in new_archive_record
Feb 25 22:29:41 server weewx[7721]: ****
dbmanager.addRecord(event.record, accumulator=self.old_accumulator)
Feb 25 22:29:41 server weewx[7721]: **** File
"/home/weewx/bin/weewx/manager.py", line 246, in addRecord
Feb 25 22:29:41 server weewx[7721]: **** self._addSingleRecord(record,
cursor, log_level)
Feb 25 22:29:41 server weewx[7721]: **** File
"/home/weewx/bin/weewx/manager.py", line 1212, in _addSingleRecord
Feb 25 22:29:41 server weewx[7721]: **** _weight =
self._calc_weight(record)
Feb 25 22:29:41 server weewx[7721]: **** File
"/home/weewx/bin/weewx/manager.py", line 1582, in _calc_weight
Feb 25 22:29:41 server weewx[7721]: **** raise
ValueError("Non-positive value for record field 'interval': %s" %
(record['interval'], ))
Feb 25 22:29:41 server weewx[7721]: **** ValueError: Non-positive value
for record field 'interval': 0
Feb 25 22:29:41 server weewx[7721]: **** Exiting.
On Saturday, February 23, 2019 at 4:34:06 PM UTC-6, mwall wrote:
>
> On Saturday, February 23, 2019 at 10:36:45 AM UTC-5, Mark Jenks wrote:
>>
>> I've been running this for a few years now, and once and awhile weewx
>> just falls over for no good reason. To deal with this, I wrote a script
>> that I run in cron to check to make sure it's running, and if not, start it
>> over again.
>>
>
> mark,
>
> systemctl is supposed to do that for you.
>
> in fact, this thread shows that it does, at least in one case:
>
> https://groups.google.com/forum/#!topic/weewx-user/bspZEoGqpyY
>
> but as tom points out, we really want to know when weewx stops running so
> that we can fix it.
>
> if you need to use a script (or systemctl) to ensure that weewx is
> automatically restarted, perhaps you could figure out some way to capture
> and report the log leading up to the crash?
>
> m
>
>
--
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].
For more options, visit https://groups.google.com/d/optout.