Errors in log and in console each boot after upgrade to 23.7.x

Started by karlson2k, August 18, 2023, 12:53:07 PM

Previous topic - Next topic
I recently upgraded my router to  23.7.1_3 from 23.1.11.

After upgrade I noticed error message in console during each boot:
Configuring system logging...Error opening plugin module; module='examples', error='/usr/local/lib/syslog-ng/libexamples.so: Undefined symbol "random_choice_generator_parser"'

The same message could be found in system log.

I solved it by renaming libexamples.so to libexamples.so.bak, as this module probably was built by mistake, but I'm not sure whether this is correct fix or not.

It's for Syslog-ng to repair this in another release, but so far nobody had any operational issue due to this.


Cheers,
Franco
"AI has absolutely reduced the cost of creating technical debt." -- ChatGPT

Should we just ignore this error or disable the module?

Looks like "examples" module must not be used in production as it is a set of samples only.
https://github.com/syslog-ng/syslog-ng/tree/master/modules/examples

> disable the module?

The truth is we never enabled it. The first time we saw the error was Syslog 4.3.1 which came with 23.7.2. Evidence suggests 4.3.1 is to blame. ;)


Cheers,
Franco
"AI has absolutely reduced the cost of creating technical debt." -- ChatGPT

While waiting for the upstream, it could be disabled by very simple local patch for port/package;)

Which costs half a day of work for a single cosmetic error. I'm not going to get that approved...


Cheers,
Franco
"AI has absolutely reduced the cost of creating technical debt." -- ChatGPT

I'm not aware of the procedures and they can be complicated, but the patch itself should be one line removal (for CMake).

Hopefully this module does not expose some unexpected external APIs.

Rebuild packages, redo QA on release, distribute to package mirrors, retest updates? :)
"AI has absolutely reduced the cost of creating technical debt." -- ChatGPT

No need for the hotfix. Just fix for the next minor release update. ;)

FreeBSD uses autoreconf instead of CMake, but it is still one line removal (in Makefile.am).