OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: karlson2k on August 18, 2023, 12:53:07 PM

Title: Errors in log and in console each boot after upgrade to 23.7.x
Post by: karlson2k on August 18, 2023, 12:53:07 PM
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.
Title: Re: Errors in log and in console each boot after upgrade to 23.7.x
Post by: franco on August 18, 2023, 12:55:20 PM
It's for Syslog-ng to repair this in another release, but so far nobody had any operational issue due to this.


Cheers,
Franco
Title: Re: Errors in log and in console each boot after upgrade to 23.7.x
Post by: karlson2k on August 18, 2023, 01:16:37 PM
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
Title: Re: Errors in log and in console each boot after upgrade to 23.7.x
Post by: franco on August 18, 2023, 02:09:43 PM
> 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
Title: Re: Errors in log and in console each boot after upgrade to 23.7.x
Post by: karlson2k on August 18, 2023, 02:26:38 PM
While waiting for the upstream, it could be disabled by very simple local patch for port/package;)
Title: Re: Errors in log and in console each boot after upgrade to 23.7.x
Post by: franco on August 18, 2023, 02:33:27 PM
Which costs half a day of work for a single cosmetic error. I'm not going to get that approved...


Cheers,
Franco
Title: Re: Errors in log and in console each boot after upgrade to 23.7.x
Post by: karlson2k on August 18, 2023, 02:51:12 PM
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.
Title: Re: Errors in log and in console each boot after upgrade to 23.7.x
Post by: franco on August 18, 2023, 02:52:28 PM
Rebuild packages, redo QA on release, distribute to package mirrors, retest updates? :)
Title: Re: Errors in log and in console each boot after upgrade to 23.7.x
Post by: karlson2k on August 18, 2023, 02:59:59 PM
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).