Did you catch the end of my reply? Have you looked to see if your log is being written to /var/log/weewx.log (rather than /var/log/syslog)?
> On Jul 12, 2020, at 12:54 PM, Andre <[email protected]> wrote: > > > Thanks for your reply, John. > I'll compare and test it tomorrow. > Real life is calling... > > Am Sonntag, 12. Juli 2020 21:27:24 UTC+2 schrieb John Kline: >> >> These files haven’t changed in a long time. You can compare them to these: >> >> https://github.com/weewx/weewx/blob/master/util/rsyslog.d/weewx.conf >> >> https://github.com/weewx/weewx/blob/master/util/logrotate.d/weewx >> >> That said, if you have these files in place, they will cause WeeWX log >> output to go to /var/log/weewx.log, but you are showing tail output for >> /var/log/syslog! >> >> Are you sure the output isn’t being written to /var/log/weewx.log? >> >>>> On Jul 12, 2020, at 10:28 AM, Andre <[email protected]> wrote: >>>> >>> >>> I screwed up. >>> I tried to "Minimize writes on SD cards" and had to undo it because I got >>> problems. And now I can't create weewx log files anymore. And of course I >>> did not make any backups before. Like a professional. ;) >>> Can anyone help me to restore the original state? Step-by-step if possible. >>> >>> pi@weewx:/etc $ sudo tail -f /var/log/syslog >>> Jul 12 18:39:59 weewx rngd[417]: stats: HRNG source speed: (min=129.625; >>> avg=333.380; max=530.870)Kibits/s >>> Jul 12 18:39:59 weewx rngd[417]: stats: FIPS tests speed: (min=11.847; >>> avg=14.746; max=30.372)Mibits/s >>> Jul 12 18:39:59 weewx rngd[417]: stats: Lowest ready-buffers level: 2 >>> Jul 12 18:39:59 weewx rngd[417]: stats: Entropy starvations: 0 >>> Jul 12 18:39:59 weewx rngd[417]: stats: Time spent starving for entropy: >>> (min=0; avg=0.000; max=0)us >>> Jul 12 18:41:31 weewx systemd[1]: Starting Daily apt download activities... >>> Jul 12 18:41:32 weewx systemd[1]: apt-daily.service: Succeeded. >>> Jul 12 18:41:32 weewx systemd[1]: Started Daily apt download activities. >>> Jul 12 18:51:09 weewx rngd[417]: block failed FIPS test: 0x02 >>> Jul 12 19:17:01 weewx CRON[8598]: (root) CMD ( cd / && run-parts --report >>> /etc/cron.hourly) >>> >>> /etc/weewx/rsyslog.d/weewx.conf >>> :programname,isequal, "weewx" /var/log/weewx.log >>> :programname, isequal, "weewx" >>> :programname,startswith, "wee_" /var/log/weewx.log >>> :programname,startswith, "wee_" >>> >>> >>> #if $programname == 'weewx' then /var/log/weewx.log >>> #if $programname == 'weewx' then >>> >>> >>> # older versions of rsyslog use this syntax >>> #:programname,isequal, "weewx" /var/log/weewx.log >>> #:programname,isequal, "weewx" # >>> #:programname,startswith, "wee_" /var/log/weewx.log >>> #:programname,startswith, "wee_" # >>> >>> >>> # some prefer this dialect of rsyslog >>> #if $programname == 'weewx' then /var/log/weewx.log >>> #if $programname == 'weewx' then >>> >>> >>> /etc/weewx/logrotate.d/weewx >>> /var/log/weewx.log { >>> weekly >>> missingok >>> rotates 52 >>> compress >>> delaycompress >>> notifempty >>> >>> >>> # on some older systems the permissions do not propagate, so force them >>> # debian uses root:adm >>> # create 644 root adm >>> # ubuntu uses syslog:adm >>> # create 644 syslog adm >>> >>> >>> # on some older systems rsyslog must be restarted to send output to right >>> file >>> # sharedscripts >>> # postrotate >>> # standard way of invoking rc scripts >>> # /etc/init.d/rsyslog stop >>> # /etc/init.d/rsyslog start >>> # on some systems a reload will work >>> # /etc/init.d/rsyslog reload > /dev/null >>> # some ubuntu systems use upstart >>> # service rsyslog restart > /dev/null >>> # some redhat/fedora systems have their own way >>> # reload rsyslog > /dev/null 2>&1 >>> # some debian systems do it this way >>> # invoke-rc.d rsyslog reload > /dev/null >>> # endscript >>> } >>> >>> >>> >>> >>> -- >>> 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/ea7ab1f2-7e10-4865-a3cf-80db26e78266o%40googlegroups.com. > > -- > 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/5b10f7f4-ac8f-4672-b9a5-6a55186cbd73o%40googlegroups.com. -- 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/E4BAC42F-BE74-4327-8324-E186D931BC4F%40johnkline.com.
