Check the value of option "station_type" and make sure it says
"Interceptor".

If there's no obvious problem, then use the utility "weectl debug" to
create a sanitized version of weewx.conf. Post it.

-tk

On Sun, Feb 18, 2024 at 4:34 AM Redanman <mike59...@gmail.com> wrote:

> Hi.  I decided to upgrade to Weewx 5.0.2 this morning.    The upgrade
> itself seemingly ran without errors.  My system is a virtual machine
> running Debian 11 - Bullseye.
>
> However, on checking Weewx status, the program has exited with this error
> sequence in the syslog file
>
> Feb 18 12:16:08 debian weewxd[323]: INFO __main__: WEEWX_ROOT: /etc/weewx
> Feb 18 12:16:08 debian weewxd[323]: INFO __main__: Configuration file:
> /etc/weewx/weewx.conf
> Feb 18 12:16:08 debian weewxd[323]: INFO __main__: User module:
> /etc/weewx/bin/user
> Feb 18 12:16:08 debian weewxd[323]: INFO __main__: Debug: 1
> Feb 18 12:16:08 debian weewxd[323]: DEBUG __main__: Initializing engine
> Feb 18 12:16:08 debian weewxd[323]: CRITICAL __main__: Caught
> unrecoverable exception:
> Feb 18 12:16:08 debian weewxd[323]: CRITICAL __main__:     ****  'driver'
> Feb 18 12:16:08 debian weewxd[323]: CRITICAL __main__:     ****  Traceback
> (most recent call last):
> Feb 18 12:16:08 debian weewxd[323]: CRITICAL __main__:     ****    File
> "/usr/share/weewx/weewxd.py", line 160, in main
> Feb 18 12:16:08 debian weewxd[323]: CRITICAL __main__:     ****
>  engine = weewx.engine.StdEngine(config_dict)
> Feb 18 12:16:08 debian weewxd[323]: CRITICAL __main__:     ****    File
> "/usr/share/weewx/weewx/engine.py", line 77, in __init__
> Feb 18 12:16:08 debian weewxd[323]: CRITICAL __main__:     ****
>  self.setupStation(config_dict)
> Feb 18 12:16:08 debian weewxd[323]: CRITICAL __main__:     ****    File
> "/usr/share/weewx/weewx/engine.py", line 99, in setupStation
> Feb 18 12:16:08 debian weewxd[323]: CRITICAL __main__:     ****
>  driver = config_dict[station_type]['driver']
> Feb 18 12:16:08 debian weewxd[323]: CRITICAL __main__:     ****    File
> "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__
> Feb 18 12:16:08 debian weewxd[323]: CRITICAL __main__:     ****      val =
> dict.__getitem__(self, key)
> Feb 18 12:16:08 debian weewxd[323]: CRITICAL __main__:     ****  KeyError:
> 'driver'
> Feb 18 12:16:08 debian weewxd[323]: CRITICAL __main__:     ****  Exiting.
> Feb 18 12:16:08 debian weewxd[323]: Traceback (most recent call last):
> Feb 18 12:16:08 debian weewxd[323]:   File "/usr/share/weewx/weewxd.py",
> line 265, in <module>
> Feb 18 12:16:08 debian weewxd[323]:     main()
> Feb 18 12:16:08 debian weewxd[323]:   File "/usr/share/weewx/weewxd.py",
> line 160, in main
> Feb 18 12:16:08 debian weewxd[323]:     engine =
> weewx.engine.StdEngine(config_dict)
> Feb 18 12:16:08 debian weewxd[323]:   File
> "/usr/share/weewx/weewx/engine.py", line 77, in __init__
> Feb 18 12:16:08 debian weewxd[323]:     self.setupStation(config_dict)
> Feb 18 12:16:08 debian weewxd[323]:   File
> "/usr/share/weewx/weewx/engine.py", line 99, in setupStation
> Feb 18 12:16:08 debian weewxd[323]:     driver =
> config_dict[station_type]['driver']
> Feb 18 12:16:08 debian weewxd[323]:   File
> "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__
> Feb 18 12:16:08 debian weewxd[323]:     val = dict.__getitem__(self, key)
> Feb 18 12:16:08 debian weewxd[323]: KeyError: 'driver'
> Feb 18 12:16:08 debian systemd[1]: weewx.service: Main process exited,
> code=exited, status=1/FAILURE
> Feb 18 12:16:08 debian systemd[1]: weewx.service: Failed with result
> 'exit-code'.
>
> I am using the Interceptor driver, listening on port 55, so I shouldn't
> have to run Weewx as root?
> [Interceptor]
>     # This section is for the network traffic interceptor driver.
>
>     # The driver to use:
>     driver = user.interceptor
>     port = 55
>     device_type = observer
>
> I can run 5.0.2 if I use the simulator, so it just seems to be the issue
> with the Interceptor driver.  Any ideas, what might have gone wrong?
> Mike
>
> --
> 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/73c36018-632f-479b-8dd2-95eb01e94eban%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/73c36018-632f-479b-8dd2-95eb01e94eban%40googlegroups.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/CAPq0zEDqM10vL7VA6ngCHsTKKQE-V87D91ETsGg%2BR8pToYH86w%40mail.gmail.com.

Reply via email to