my system logs show this error and nothing else. Can someone help me out? What does this mean? I have a Gli Brume MV1000.
Sat Jul 24 22:03:33 2021 daemon.info procd: Instance collectd::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
logread | grep -B12 'crash loop'
2 Likes
hnyman
July 25, 2021, 7:01am
3
Likely something wrong in LuCI statistics / collectd config (e.g. you enabled a collectd plugin that is not installed)
2 Likes
You are correct. I removed both collectd and Luci statistics packages, and all collectd-mods*. I also remove the Luci statistics config. I reinstalled only the basic mods and I no longer see the crash in the system logs, but where can I find the collectd logs? Also does network output not work? I don't see data in my influxdb v1.8. I did enable collectd in the influx.conf. I'm at a loss.
Thanks for the help.
hnyman
July 25, 2021, 5:17pm
6
The logging output of collectd is normally done to the normal system log.
@hnyman Any way to turn on debug? I feel like collectd is not sending anything to influxdb.v.1.8
I want to see if collectd is is even active. Any way to run a service collectd status?
I installed mod-logfile, but I dont see how to enable it in Luci?
EDIT::
Alright, @hnyman , bug discovered. collectd-mod-logfile does not work when enabled via the luci_statistics.conf file. It was causing my error. Here is what I had it set too::
config statistics 'collectd_logfile'
option enable '1'
option LogLevel 'debug'
option File '/var/log/collectd.log'
option Timestamp '1'
After restarting collectd, it errors out with the error::
"Sun Jul 25 11:41:25 2021 daemon.info procd: Instance collectd::instance1 s in a crash loop 6 crashes, 0 seconds since last crash"
hnyman
July 25, 2021, 9:09pm
8
Well, if you just "enable" a plugin in the config file without actually installing the collectd-mod-plugin, there will be errors.
I got the same error when I just enabled it in config. Pretty clear message in the system log.
After installing collectd-mod-logfile, no more errors.
But after enabling your (apparently invalid) loglevel option, there is a warning in the system log...
Mon Jul 26 00:02:23 2021 daemon.err collectd[8718]: configfile: stat (/etc/collectd/conf.d) failed: No such file or directory
Mon Jul 26 00:02:23 2021 daemon.err collectd[8718]: plugin_load: Could not find plugin "logfile" in /usr/lib/collectd
Mon Jul 26 00:02:23 2021 daemon.err collectd[8718]: There is configuration for the `logfile' plugin, but the plugin isn't loaded. Please check your configuration.
Mon Jul 26 00:02:23 2021 daemon.err collectd[8718]: plugin_load: plugin "entropy" successfully loaded.
Mon Jul 26 00:02:23 2021 daemon.err collectd[8718]: plugin_load: plugin "conntrack" successfully loaded.
...
Mon Jul 26 00:02:23 2021 daemon.err collectd[8718]: plugin_load: plugin "cpufreq" successfully loaded.
Mon Jul 26 00:02:23 2021 daemon.err collectd[8718]: Error: Parsing the config file failed!
Mon Jul 26 00:02:23 2021 daemon.info procd: Instance collectd::instance1 s in a crash loop 6 crashes, 0 seconds since last crash
Mon Jul 26 00:04:17 2021 user.notice koe: test - installed collectd-mod-logfile
Mon Jul 26 00:04:23 2021 daemon.err collectd[9228]: configfile: stat (/etc/collectd/conf.d) failed: No such file or directory
Mon Jul 26 00:04:23 2021 daemon.err collectd[9228]: [2021-07-26 00:04:24] plugin_load: plugin "logfile" successfully loaded.
Mon Jul 26 00:05:34 2021 user.notice koe: test - modify loglevel
Mon Jul 26 00:05:37 2021 daemon.err collectd[9360]: configfile: stat (/etc/collectd/conf.d) failed: No such file or directory
Mon Jul 26 00:05:37 2021 daemon.err collectd[9360]: [2021-07-26 00:05:38] plugin_load: plugin "logfile" successfully loaded.
Mon Jul 26 00:05:37 2021 daemon.err collectd[9360]: [2021-07-26 00:05:38] logfile: invalid loglevel [debug] defaulting to 'info'
hnyman
July 25, 2021, 9:17pm
9
Beniamin:
option LogLevel 'debug'
Based on upstream source code, apparently the "debug" level only works if you have compiled collectd with the debug options on collectd compile-time config.
int parse_log_severity(const char *severity) {
int log_level = -1;
if ((0 == strcasecmp(severity, "emerg")) ||
(0 == strcasecmp(severity, "alert")) ||
(0 == strcasecmp(severity, "crit")) || (0 == strcasecmp(severity, "err")))
log_level = LOG_ERR;
else if (0 == strcasecmp(severity, "warning"))
log_level = LOG_WARNING;
else if (0 == strcasecmp(severity, "notice"))
log_level = LOG_NOTICE;
else if (0 == strcasecmp(severity, "info"))
log_level = LOG_INFO;
#if COLLECT_DEBUG
else if (0 == strcasecmp(severity, "debug"))
log_level = LOG_DEBUG;
#endif /* COLLECT_DEBUG */
2 Likes
That's the thing. I did install the mod-logfile first and then modified the statistics conf file. I will try without debug.
That fixed it. Uninstalling everything and not doing the logfile worked. Logfile is broken tho. Oh well
system
Closed
August 12, 2021, 10:06pm
12
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.