I went through and completely removed all the weewx leftovers from /etc/init.d, /etc/systemd etc. and restarted rsyslog. I now have *four* logs - both of the "correct" weewx-vp2 and weewx-tempest, plus weewxd.log and weewxd.py.log... weewxd-vp2.log and weexd-tempest.log appear to be the normal log messages. Weewxd.log contains an error (apparently from the weewx-sftp extension - it's from pysftp) about being unable to load keys from /var/lib/weewx/.ssh/known-hosts.
The host key error: Feb 6 12:20:17 tagon weewxd[1093044]: /usr/local/lib/python3.10/dist-packages/pysftp/__init__.py:61: UserWarning: Failed to load HostKeys from /var/lib/weewx/.ssh/known_hosts. You will need to explicitly load HostKeys (cnopts.hostkeys.load(filename)) or disableHostKey checking (cnopts.hostkeys = None). So, looks like weewx is logging correctly now - apparently the renamed entries (or a leftover in etc/init.d) were causing the original issue. I'm not using key pairs for SFTP - it uses a name/password. I created /var/lib/weewx/.ssh and copied the v4 known_hosts that I was using earlier for testing, but I can't imagine that's the right way to fix this... Also, the SFTP"report" is correctly uploading data, ad has been. weewxd.py.log contains output from the weatherflowudp extension - the initial field maps, then "listening" lines. Looks like that's the only Tempest driver, and it's 4+ years old. Anyone familiar with this driver that might have an idea why it's not logging as part of weewx? On Tuesday, February 6, 2024 at 11:32:34 AM UTC-9 matthew wall wrote: > please take a look at the wiki page "How to configure logging" > > https://github.com/weewx/weewx/wiki/logging > > the "weewxd.py.log" smells like a mixed up systemd configuration. be sure > that you are using the units installed by weewx (in /usr/lib/systemd) and > that there are not any units in /etc/systemd leftover from v4 or > inadvertently deployed somehow. also, be sure to remove anything related to > weewx from /etc/init.d and the corresponding /etc/rcN.d (those will be > symlinks). systemd silently ignores sysv links and files if they overlap > with definitions in the unit files, but you might have something leftover > from the weewx-multi script. > > 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/83e74e4c-0e8b-4fbd-acde-9ed8d34dd085n%40googlegroups.com.
