*Weewx timeout in 5 minutes and the Pi needed more than 5 minutes to get 
the time sync.*

-we have made some changes to the system so weewx must wait until the clock 
time get sync to the correct time but unfortunately we can not recall these 
changes we made.
-weewx seems to work just fine and updating the webpage and its database.
-in the past when we stop weewx it does take some time (around 10 to 15 
seconds) but now it is instant (1 second).
-sudo /etc/init.d/weewx status will show failed (Result: timeout) since ***

-stopping weewx and restarting it will fix this issue but we believe this 
is not the right solution to the problem.


log file:

Sep 15 02:20:33 raspberrypi weewx[961] INFO weewx.reportengine: Copied 0 
files to /var/www/html/weewx

**power outage*

Feb 14 13:12:03 raspberrypi kernel: [    0.000000] Booting Linux on 
physical CPU 0x0

-******

Feb 14 13:12:03 raspberrypi systemd[1]: Starting LSB: weewx weather 
system...
-
Feb 14 13:12:04 raspberrypi weewx[423] INFO __main__: Initializing weewx 
version 4.5.1
Feb 14 13:12:04 raspberrypi weewx[423] INFO __main__: Using Python 3.7.3 
(default, Jan 22 2021, 20:04:44) #012[GCC 8.3.0]
Feb 14 13:12:04 raspberrypi weewx[423] INFO __main__: Platform 
Linux-5.10.60-v7l+-armv7l-with-debian-10.10
Feb 14 13:12:04 raspberrypi weewx[423] INFO __main__: Locale is 
'en_GB.UTF-8'
Feb 14 13:12:04 raspberrypi weewx[423] INFO __main__: Waiting for sane 
time. Current time is 2019-02-14 13:12:04 +03 (1550139124)

-******

Feb 14 13:13:04 raspberrypi weewx[423] INFO __main__: Waiting for sane 
time. Current time is 2019-02-14 13:13:04 +03 (1550139184)

-******

Feb 14 13:14:04 raspberrypi weewx[423] INFO __main__: Waiting for sane 
time. Current time is 2019-02-14 13:14:04 +03 (1550139244)
Feb 14 13:15:04 raspberrypi weewx[423] INFO __main__: Waiting for sane 
time. Current time is 2019-02-14 13:15:04 +03 (1550139304)
Feb 14 13:16:05 raspberrypi weewx[423] INFO __main__: Waiting for sane 
time. Current time is 2019-02-14 13:16:05 +03 (1550139365)
Feb 14 13:17:01 raspberrypi CRON[845]: (root) CMD (   cd / && run-parts 
--report /etc/cron.hourly)
Feb 14 13:17:03 raspberrypi systemd[1]: weewx.service: Start operation 
timed out. Terminating.
Feb 14 13:17:03 raspberrypi systemd[1]: weewx.service: Control process 
exited, code=killed, status=15/TERM
Feb 14 13:17:03 raspberrypi systemd[1]: weewx.service: Failed with result 
'timeout'.
Feb 14 13:17:03 raspberrypi systemd[1]: Failed to start LSB: weewx weather 
system.

-******

Feb 14 13:17:05 raspberrypi weewx[423] INFO __main__: Waiting for sane 
time. Current time is 2019-02-14 13:17:05 +03 (1550139425)
Sep 15 02:50:57 raspberrypi weewx[423] INFO __main__: PID file is 
/var/run/weewx.pid
Sep 15 02:50:57 raspberrypi weewx[857] INFO __main__: Using configuration 
file /etc/weewx/weewx.conf
Sep 15 02:50:57 raspberrypi weewx[857] INFO __main__: Debug is 0
Sep 15 02:50:57 raspberrypi weewx[857] INFO weewx.engine: Loading station 
type SDR (user.sdr)
Sep 15 02:50:57 raspberrypi weewx[317]: Starting weewx weather system: weewx
Sep 15 02:50:57 raspberrypi weewx[857] INFO user.sdr: driver version is 0.80
Sep 15 02:50:57 raspberrypi weewx[857] INFO user.sdr: sensor map is *******
Sep 15 02:50:57 raspberrypi weewx[857] INFO user.sdr: deltas is ***********
Sep 15 02:50:57 raspberrypi weewx[857] INFO user.sdr: startup process 
'rtl_433 -M utc -F json -R *
Sep 15 02:50:57 raspberrypi weewx[857] INFO weewx.engine: StdConvert target 
unit is 0x1
Sep 15 02:50:57 raspberrypi weewx[857] INFO weewx.engine: Archive will use 
data binding wx_binding
Sep 15 02:50:57 raspberrypi weewx[857] INFO weewx.engine: Record generation 
will be attempted in 'hardware'
Sep 15 02:50:57 raspberrypi weewx[857] INFO weewx.engine: Using archive 
interval of 300 seconds (specified in weewx configuration)
Sep 15 02:50:58 raspberrypi weewx[857] INFO weewx.restx: StationRegistry: 
Registration not requested.
Sep 15 02:50:58 raspberrypi weewx[857] INFO weewx.restx: Wunderground: 
Posting not enabled.
Sep 15 02:50:58 raspberrypi weewx[857] INFO weewx.restx: PWSweather: 
Posting not enabled.
Sep 15 02:50:58 raspberrypi weewx[857] INFO weewx.restx: CWOP: Posting not 
enabled.
Sep 15 02:50:58 raspberrypi weewx[857] INFO weewx.restx: WOW: Posting not 
enabled.
Sep 15 02:50:58 raspberrypi weewx[857] INFO weewx.restx: AWEKAS: Posting 
not enabled.
Sep 15 02:50:58 raspberrypi weewx[857] INFO __main__: Starting up weewx 
version 4.5.1
Sep 15 02:50:58 raspberrypi weewx[857] INFO weewx.engine: Using binding 
'wx_binding' to database 'weewx.sdb'
Sep 15 02:50:58 raspberrypi weewx[857] INFO weewx.manager: Starting 
backfill of daily summaries
Sep 15 02:50:58 raspberrypi weewx[857] INFO weewx.manager: Daily summaries 
up to date
Sep 15 02:50:58 raspberrypi weewx[857] INFO weewx.engine: Starting main 
packet loop.
Sep 15 02:50:58 raspberrypi systemd[1]: man-db.service: Succeeded.
Sep 15 02:50:58 raspberrypi systemd[1]: Started Daily man-db regeneration.
Sep 15 02:55:24 raspberrypi weewx[857] INFO weewx.manager: Added record 
2021-09-15 02:55:00 +03 (1631663700) to database 'weewx.sdb'
Sep 15 02:55:24 raspberrypi weewx[857] INFO weewx.manager: Added record 
2021-09-15 02:55:00 +03 (1631663700) to daily summary in 'weewx.sdb'
Sep 15 02:55:27 raspberrypi weewx[857] INFO weewx.cheetahgenerator: 
Generated 8 files for report SeasonsReport in 2.53 seconds
Sep 15 02:55:28 raspberrypi weewx[857] INFO weewx.imagegenerator: Generated 
17 images for report SeasonsReport in 0.75 seconds
Sep 15 02:55:28 raspberrypi weewx[857] INFO weewx.reportengine: Copied 5 
files to /var/www/html/weewx

On Wednesday, September 15, 2021 at 3:35:07 AM UTC+3 gjr80 wrote:

> What does the log show? systemd output can be useful for seeing the state 
> of a service but when troubleshooting WeeWX it is hit and miss as to 
> whether it provides anything else of use; the log is far better. Have a 
> look at the log after the power returned, did WeeWX start? Were there any 
> errors during WeeWX startup? Did WeeWX have a time issue? Did some error 
> occur later that caused WeeWX to fail? There have been various changes to 
> the WeeWX code base over the years to try to mitigate time issues due to 
> power outages/restarts etc, so it is possible you may not need to do 
> anything in this regard. Again the log will tell you.
>
> Gary
>
> On Tuesday, 14 September 2021 at 16:59:24 UTC+10 [email protected] wrote:
>
>> today another power outage and weewx status is showing failed , We really 
>> not sure why it is doing that or the operating system reporting this status 
>> of weewx while it is running just fine.
>>
>> systemctl list-units --type=service
>>           *UNIT                                                        
>>  LOAD    ACTIVE  SUB     DESCRIPTION*
>> ● weewx.service                                               loaded  
>> failed     failed  LSB: weewx weather system
>>
>> added  loop_on_init = true to weewx configuration file but it did not 
>> make any different.
>>
>> any idea if this is weewx issue or operating system issue !, we have 2  
>> Raspberry Pi 4  Debian Buster with the same issue.
>> On Sunday, September 5, 2021 at 8:24:39 PM UTC+3 vince wrote:
>>
>>> First - you should never need a fewest install.
>>>
>>> I'm not seeing any problem.   As long as it's saving records and 
>>> generating your web pages you're good.
>>>
>>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/e6a5061e-bd59-4ba5-8c11-dfd117ee0fd8n%40googlegroups.com.

Reply via email to