Loop error

Post Reply
User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Loop error

Post by jay_hoehn » Fri Dec 15, 2017 9:51 pm

I have just set up my vantage pro2 to work with weewx when i first started weewx all the archive data downloaded as expected. but then loop errors. Here is what I see
Dec 15 14:38:24 Weather weewx[521]: vantage: LOOP try #1; error: Expected to read 99 chars; got 0 instead
Dec 15 14:38:29 Weather weewx[521]: vantage: LOOP try #2; error: Expected to read 99 chars; got 0 instead
Dec 15 14:38:53 Weather systemd[1]: Time has been changed
Dec 15 14:38:53 Weather systemd[540]: Time has been changed
Dec 15 14:38:53 Weather systemd-timesyncd[306]: Synchronized to time server 129.6.15.29:123 (2.debian.pool.ntp.org).
Dec 15 14:38:53 Weather systemd[1]: apt-daily-upgrade.timer: Adding 3min 22.994817s random time.
Dec 15 14:38:53 Weather systemd[1]: apt-daily.timer: Adding 1h 17min 5.833866s random time.
Dec 15 14:38:56 Weather weewx[521]: vantage: LOOP try #3; error: Expected to read 99 chars; got 1 instead
Dec 15 14:39:12 Weather weewx[521]: vantage: LOOP try #4; error: Expected to read 99 chars; got 0 instead
Dec 15 14:39:12 Weather weewx[521]: vantage: LOOP max tries (4) exceeded.
Dec 15 14:39:12 Weather weewx[521]: engine: Caught WeeWxIOError: Max tries exceeded while getting LOOP data.
Dec 15 14:39:12 Weather weewx[521]: **** Waiting 60 seconds then retrying..
Any help would be appreciated.

Jay

wx_jon
Advisor
Advisor
Posts: 52
Joined: Tue Aug 29, 2017 8:54 pm
Location: Seattle, WA, USA
Station model: Davis Vantage Pro 2 Plus
Software: weeWX
Contact:

Re: Loop error

Post by wx_jon » Fri Dec 15, 2017 10:05 pm

There's obviously a communication error. Someone else could probably figure it out, but a few thoughts I have from things I've experienced before:
  • Is Weather Display still running on the same computer at the same time?
  • Is your VP2 console actively receiving packets (for a wireless model)? When the archive is read, it usually causes the console to lose connection to the wireless instruments, so it has to resume showing the flashing X in the bottom right of the screen before any more loop data is created.

User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Re: Loop error

Post by jay_hoehn » Fri Dec 15, 2017 10:29 pm

Thanks for the post, Jon. The computer is not the same. I am trying to switch to a Raspberry Pi. The X is still showing on the console. Perhaps someone else will have other ideas.
Jay

wx_jon
Advisor
Advisor
Posts: 52
Joined: Tue Aug 29, 2017 8:54 pm
Location: Seattle, WA, USA
Station model: Davis Vantage Pro 2 Plus
Software: weeWX
Contact:

Re: Loop error

Post by wx_jon » Fri Dec 15, 2017 11:01 pm

You could try resetting the logger with

Code: Select all

wee_device /home/weewx/weewx.conf --clear-memory
The documentation for wee_device is here. Otherwise there may also be an issue if a parameter in your weewx.conf does not match the parameter of the logger (like archive interval) or the clock is wrong. It may also be useful to look at the --info and --debug output.

User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Re: Loop error

Post by jay_hoehn » Sat Dec 16, 2017 8:49 pm

Well, not sure how it was fixed but all seems to be working as it should now. MeteoTemplate is being fed by the Raspberry Pi3 without issue Will now get CWOP and the other services set up to take the data. Thanks for the help, Jon. Thanks also to Luc for his help.

Jay

Post Reply