Thanks.

Normally, when a persistent error occurs in the driver, WeeWX restarts from
the top. The exception is that restart itself --- if the WeeWX engine
cannot load the driver at all, it exits, the theory being that there is a
configuration problem.

If you are confident that the driver has been configured correctly (in this
case, that you have the correct IP address), then you can set a flag to
have the engine try to reload the driver indefinitely. Add the following to
the top of the configuration file weewx.conf.

Change this

# This section is for general configuration information.

# Set to 1 for extra debug info, otherwise comment it out or set to zero
debug = 0


to this

# This section is for general configuration information.

loop_on_init = True

# Set to 1 for extra debug info, otherwise comment it out or set to zero
debug = 0



This will not fix the problem --- it merely tells WeeWX to keep trying. To
fix the problem, you're going to have to figure out why your WLIP logger
keeps losing connectivity.

-tk


On Wed, Mar 13, 2019 at 5:29 AM jmviper <[email protected]> wrote:

>
> Mar 13 06:25:15 localhost weewx[29634]: cheetahgenerator: Generated 9
> files for report StandardReport in 2.67 seconds
> Mar 13 06:25:17 localhost weewx[29634]: imagegenerator: Generated 12
> images for StandardReport in 2.02 seconds
> Mar 13 06:25:17 localhost weewx[29634]: copygenerator: copied 0 files to
> /var/www/weewx
> Mar 13 06:25:19 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:26:01 localhost CRON[29943]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:26:01 localhost weewx[29634]: manager: Added record 2019-03-13
> 06:26:00 CET (1552454760) to database 'weewx.sdb'
> Mar 13 06:26:01 localhost weewx[29634]: manager: Added record 2019-03-13
> 06:26:00 CET (1552454760) to daily summary in 'weewx.sdb'
> Mar 13 06:26:04 localhost weewx[29634]: cheetahgenerator: Generated 9
> files for report StandardReport in 1.71 seconds
> Mar 13 06:26:06 localhost weewx[29634]: imagegenerator: Generated 12
> images for StandardReport in 2.08 seconds
> Mar 13 06:26:06 localhost weewx[29634]: copygenerator: copied 0 files to
> /var/www/weewx
> Mar 13 06:26:08 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:27:01 localhost weewx[29634]: manager: Added record 2019-03-13
> 06:27:00 CET (1552454820) to database 'weewx.sdb'
> Mar 13 06:27:01 localhost rsyslogd0: action 'action 17' resumed (module
> 'builtin:ompipe') [try http://www.rsyslog.com/e/0 ]
> Mar 13 06:27:01 localhost rsyslogd-2359: action 'action 17' resumed
> (module 'builtin:ompipe') [try http://www.rsyslog.com/e/2359 ]
> Mar 13 06:27:01 localhost weewx[29634]: manager: Added record 2019-03-13
> 06:27:00 CET (1552454820) to daily summary in 'weewx.sdb'
> Mar 13 06:27:03 localhost weewx[29634]: cheetahgenerator: Generated 9
> files for report StandardReport in 1.69 seconds
> Mar 13 06:27:05 localhost weewx[29634]: imagegenerator: Generated 12
> images for StandardReport in 2.01 seconds
> Mar 13 06:27:05 localhost weewx[29634]: copygenerator: copied 0 files to
> /var/www/weewx
> Mar 13 06:27:07 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:27:13 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:27:19 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:27:25 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:27:25 localhost weewx[29634]: vantage: Unable to wake up console
> Mar 13 06:27:25 localhost weewx[29634]: vantage: LOOP try #1; error:
> Unable to wake up Vantage console
> Mar 13 06:27:31 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:27:37 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:27:43 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:27:49 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:27:49 localhost weewx[29634]: vantage: Unable to wake up console
> Mar 13 06:27:49 localhost weewx[29634]: vantage: LOOP try #2; error:
> Unable to wake up Vantage console
> Mar 13 06:27:55 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:28:01 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:28:01 localhost CRON[29949]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:28:07 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:28:11 localhost weewx[29634]: vantage: ip-read error: [Errno
> 104] Connection reset by peer
> Mar 13 06:28:11 localhost weewx[29634]: vantage: Unable to wake up console
> Mar 13 06:28:11 localhost weewx[29634]: vantage: LOOP try #3; error:
> Unable to wake up Vantage console
> Mar 13 06:28:11 localhost weewx[29634]: vantage: ip-write error: [Errno
> 32] Broken pipe
> Mar 13 06:28:11 localhost weewx[29634]: vantage: ip-write error: [Errno
> 32] Broken pipe
> Mar 13 06:28:11 localhost weewx[29634]: vantage: ip-write error: [Errno
> 32] Broken pipe
> Mar 13 06:28:11 localhost weewx[29634]: vantage: ip-write error: [Errno
> 32] Broken pipe
> Mar 13 06:28:11 localhost weewx[29634]: vantage: Unable to wake up console
> Mar 13 06:28:11 localhost weewx[29634]: vantage: LOOP try #4; error:
> Unable to wake up Vantage console
> Mar 13 06:28:11 localhost weewx[29634]: vantage: LOOP max tries (4)
> exceeded.
> Mar 13 06:28:11 localhost weewx[29634]: engine: Main loop exiting.
> Shutting engine down.
> Mar 13 06:28:11 localhost weewx[29634]: engine: Shutting down StdReport
> thread
> Mar 13 06:28:11 localhost weewx[29634]: vantage: ip-write error: [Errno
> 32] Broken pipe
> Mar 13 06:28:11 localhost weewx[29634]: engine: Caught WeeWxIOError: Max
> tries exceeded while getting LOOP data.
> Mar 13 06:28:11 localhost weewx[29634]:     ****  Waiting 60 seconds then
> retrying...
> Mar 13 06:29:11 localhost weewx[29634]: engine: retrying...
> Mar 13 06:29:11 localhost weewx[29634]: engine: Using configuration file
> /etc/weewx/weewx.conf
> Mar 13 06:29:11 localhost weewx[29634]: engine: Loading station type
> Vantage (weewx.drivers.vantage)
> Mar 13 06:29:17 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:29:23 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:29:29 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:29:35 localhost weewx[29634]: vantage: ip-read error: timed out
> Mar 13 06:29:35 localhost weewx[29634]: vantage: Unable to wake up console
> Mar 13 06:29:35 localhost weewx[29634]: import of driver failed: Unable to
> wake up Vantage console (<class 'weewx.WakeupError'>)
> Mar 13 06:29:35 localhost weewx[29634]: engine: Unable to load driver:
> Unable to wake up Vantage console
> Mar 13 06:29:35 localhost weewx[29634]:     ****  Exiting...
> Mar 13 06:30:01 localhost CRON[29954]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:30:01 localhost CRON[29955]: (root) CMD
> (/usr/lib/armbian/armbian-truncate-logs)
> Mar 13 06:32:01 localhost CRON[29964]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:34:02 localhost CRON[29968]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:35:01 localhost CRON[29972]: (root) CMD (command -v debian-sa1 >
> /dev/null && debian-sa1 1 1)
> Mar 13 06:36:01 localhost CRON[29975]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:38:01 localhost CRON[29979]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:39:01 localhost CRON[29984]: (root) CMD (  [ -x
> /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then
> /usr/lib/php/sessionclean; fi)
> Mar 13 06:39:01 localhost CRON[29985]: (root) CMD (  [ -x
> /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
> Mar 13 06:39:01 localhost systemd[1]: Starting Clean php session files...
> Mar 13 06:39:01 localhost systemd[1]: Started Clean php session files.
> Mar 13 06:40:01 localhost CRON[30035]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:42:01 localhost CRON[30039]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:44:01 localhost CRON[30043]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:45:01 localhost CRON[30048]: (root) CMD (command -v debian-sa1 >
> /dev/null && debian-sa1 1 1)
> Mar 13 06:45:01 localhost CRON[30049]: (root) CMD
> (/usr/lib/armbian/armbian-truncate-logs)
> Mar 13 06:46:01 localhost CRON[30057]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:48:01 localhost CRON[30061]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:50:01 localhost CRON[30065]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:52:01 localhost CRON[30069]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:54:01 localhost CRON[30073]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:55:01 localhost CRON[30077]: (root) CMD (command -v debian-sa1 >
> /dev/null && debian-sa1 1 1)
> Mar 13 06:56:01 localhost CRON[30080]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 06:57:55 localhost kernel: [642493.559909] RTL871X: send eapol
> packet
> Mar 13 06:57:55 localhost wpa_supplicant[1260]: wlan1: WPA: Group rekeying
> completed with 40:7d:0f:7e:ad:80 [GTK=TKIP]
> Mar 13 06:57:55 localhost kernel: [642493.562499] RTL871X: set group key
> camid:6, addr:40:7d:0f:7e:ad:80, kid:2, type:TKIP
> Mar 13 06:58:01 localhost CRON[30084]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:00:01 localhost CRON[30090]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:00:02 localhost CRON[30089]: (root) CMD
> (/usr/lib/armbian/armbian-truncate-logs)
> Mar 13 07:02:01 localhost CRON[30099]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:04:01 localhost CRON[30103]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:05:01 localhost CRON[30107]: (root) CMD (command -v debian-sa1 >
> /dev/null && debian-sa1 1 1)
> Mar 13 07:06:01 localhost CRON[30110]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:08:01 localhost CRON[30114]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:09:01 localhost CRON[30119]: (root) CMD (  [ -x
> /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
> Mar 13 07:09:01 localhost CRON[30120]: (root) CMD (  [ -x
> /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then
> /usr/lib/php/sessionclean; fi)
> Mar 13 07:09:01 localhost systemd[1]: Starting Clean php session files...
> Mar 13 07:09:02 localhost systemd[1]: Started Clean php session files.
> Mar 13 07:10:01 localhost CRON[30170]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:12:01 localhost CRON[30174]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:14:01 localhost CRON[30178]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:15:01 localhost CRON[30183]: (root) CMD (command -v debian-sa1 >
> /dev/null && debian-sa1 1 1)
> Mar 13 07:15:01 localhost CRON[30184]: (root) CMD
> (/usr/lib/armbian/armbian-truncate-logs)
> Mar 13 07:16:01 localhost CRON[30192]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:17:01 localhost CRON[30196]: (root) CMD (   cd / && run-parts
> --report /etc/cron.hourly)
> Mar 13 07:18:01 localhost CRON[30206]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:20:01 localhost CRON[30210]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:22:01 localhost CRON[30214]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:24:01 localhost CRON[30218]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:25:01 localhost CRON[30222]: (root) CMD (command -v debian-sa1 >
> /dev/null && debian-sa1 1 1)
> Mar 13 07:26:01 localhost CRON[30225]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:28:01 localhost CRON[30229]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:30:01 localhost CRON[30234]: (root) CMD
> (/usr/lib/armbian/armbian-truncate-logs)
> Mar 13 07:30:01 localhost CRON[30235]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:32:01 localhost CRON[30244]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:34:01 localhost CRON[30248]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:35:01 localhost CRON[30252]: (root) CMD (command -v debian-sa1 >
> /dev/null && debian-sa1 1 1)
> Mar 13 07:36:01 localhost CRON[30255]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:38:01 localhost CRON[30260]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:39:01 localhost CRON[30267]: (root) CMD (  [ -x
> /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
> Mar 13 07:39:02 localhost CRON[30266]: (root) CMD (  [ -x
> /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then
> /usr/lib/php/sessionclean; fi)
> Mar 13 07:39:02 localhost systemd[1]: Starting Clean php session files...
> Mar 13 07:39:02 localhost systemd[1]: Started Clean php session files.
> Mar 13 07:40:01 localhost CRON[30318]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:42:01 localhost CRON[30322]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:44:01 localhost CRON[30326]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:45:01 localhost CRON[30332]: (root) CMD
> (/usr/lib/armbian/armbian-truncate-logs)
> Mar 13 07:45:01 localhost CRON[30331]: (root) CMD (command -v debian-sa1 >
> /dev/null && debian-sa1 1 1)
> Mar 13 07:46:01 localhost CRON[30340]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:48:01 localhost CRON[30344]: (root) CMD
> (/home/jmviper/compsht35.sh)
> Mar 13 07:48:55 localhost systemd[1]: Starting user-0.slice.
> Mar 13 07:48:55 localhost systemd[1]: Created slice user-0.slice.
> Mar 13 07:48:55 localhost systemd[1]: Starting User Manager for UID 0...
> Mar 13 07:48:55 localhost systemd[1]: Starting Session 8165 of user root.
> Mar 13 07:48:55 localhost systemd[1]: Started Session 8165 of user root.
> Mar 13 07:48:55 localhost systemd[30354]: Starting Paths.
> Mar 13 07:48:55 localhost systemd[30354]: Reached target Paths.
> Mar 13 07:48:55 localhost systemd[30354]: Starting Timers.
> Mar 13 07:48:55 localhost systemd[30354]: Reached target Timers.
> Mar 13 07:48:55 localhost systemd[30354]: Starting Sockets.
> Mar 13 07:48:55 localhost systemd[30354]: Reached target Sockets.
> Mar 13 07:48:55 localhost systemd[30354]: Starting Basic System.
> Mar 13 07:48:55 localhost systemd[30354]: Reached target Basic System.
> Mar 13 07:48:55 localhost systemd[30354]: Starting Default.
> Mar 13 07:48:55 localhost systemd[30354]: Reached target Default.
> Mar 13 07:48:55 localhost systemd[30354]: Startup finished in 126ms.
> Mar 13 07:48:55 localhost systemd[1]: Started User Manager for UID 0.
> Mar 13 07:49:36 localhost systemd[1]: Stopping LSB: weewx weather system...
> Mar 13 07:49:36 localhost weewx[30459]: Stopping weewx weather system:
> weewx not running....
> Mar 13 07:49:36 localhost systemd[1]: Starting LSB: weewx weather system...
> Mar 13 07:49:36 localhost weewx[30478]: engine: Initializing weewx version
> 3.9.1
> Mar 13 07:49:36 localhost weewx[30478]: engine: Using Python 2.7.9
> (default, Sep 26 2018, 00:51:08) #012[GCC 4.9.2]
> Mar 13 07:49:36 localhost weewx[30478]: engine: Platform
> Linux-3.4.113-sun8i-armv7l-with-debian-8.11
> Mar 13 07:49:36 localhost weewx[30478]: engine: Locale is
> 'LC_CTYPE=es_ES.UTF-8;LC_NUMERIC=es_ES.UTF-8;LC_TIME=es_ES.UTF-8;LC_COLLATE=es_ES.UTF-8;LC_MONETARY=es_ES.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=es_ES.UTF-8;LC_NAME=es_ES.UTF-8;LC_ADDRESS=es_ES.UTF-8;LC_TELEPHONE=es_ES.UTF-8;LC_MEASUREMENT=es_ES.UTF-8;LC_IDENTIFICATION=es_ES.UTF-8'
> Mar 13 07:49:36 localhost weewx[30478]: engine: pid file is
> /var/run/weewx.pid
> Mar 13 07:49:37 localhost weewx[30482]: engine: Using configuration file
> /etc/weewx/weewx.conf
> Mar 13 07:49:37 localhost weewx[30482]: engine: Loading station type
> Vantage (weewx.drivers.vantage)
> Mar 13 07:49:37 localhost systemd[1]: Started LSB: weewx weather system.
> Mar 13 07:49:37 localhost weewx[30469]: Starting weewx weather system:
> weewx.
> Mar 13 07:49:43 localhost weewx[30482]: vantage: ip-read error: timed out
> Mar 13 07:49:49 localhost weewx[30482]: vantage: ip-read error: timed out
> Mar 13 07:49:55 localhost weewx[30482]: vantage: ip-read error: timed out
> Mar 13 07:50:01 localhost weewx[30482]: vantage: ip-read error: timed out
> Mar 13 07:50:01 localhost weewx[30482]: vantage: Unable to wake up console
> Mar 13 07:50:01 localhost weewx[30482]: import of driver failed: Unable to
> wake up Vantage console (<class 'weewx.WakeupError'>)
> Mar 13 07:50:01 localhost weewx[30482]: engine: Unable to load driver:
> Unable to wake up Vantage console
> Mar 13 07:50:01 localhost weewx[30482]:     ****  Exiting...
>
> Here is the log when error happens. If you need something else just let me
> know it
>
> Thanks
>
> --
> 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.
>

-- 
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.

Reply via email to