[syslog-ng] syslog-ng 3.3.1 quits at reload

Michael Hocke michael.hocke at nyu.edu
Mon Nov 28 21:48:42 CET 2011


-----BEGIN PGP SIGNED MESSAGE-----


On Nov 9, 2011, at 3:52 PM, Balazs Scheidler wrote:

> On Tue, 2011-11-08 at 16:08 -0500, Michael Hocke wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> 
>> 
>> Hi there,
>> 
>> I am having a problem with syslog-ng 3.3.1. Once in a while syslog-ng quits with a QUIT signal after it was asked to reload the configuration through a HUP signal. I have two instances of it running in separate Solaris 10 zones. Both are extremely busy and both crashed once within the last two weeks. By looking at the code in lib/mainloop.c I found the place where syslog-ng quits. It is within main_loop_reload_config_apply caused by a corrupt old configuration. [ ... ]

> [ ... ]
> The issue is worse as it has no place to write this information as a
> troubleshooting aid if running in the background, as it has no console
> at this point. Perhaps you could run syslog-ng in the foreground,
> redirect all internal logs to stderr using the -e switch and see what
> causes trouble?

I figured out how to reproduce this error. It happens after sending 16 HUPs to the process. This seems to be the magic number. This is the error output I am getting:

- ------> SNIP <------
Internal error, duplicate configuration elements refer to the same persistent config; name='dd_queue(d_rad_ap,d_rad_ap#0)'
Internal error, duplicate configuration elements refer to the same persistent config; name='dd_queue(d_dhcpd,d_dhcpd#0)'
Internal error, duplicate configuration elements refer to the same persistent config; name='dd_queue(d_dhcpd,d_dhcpd#0)'
Internal error, duplicate configuration elements refer to the same persistent config; name='dd_queue(d_dhcpd,d_dhcpd#0)'
Internal error, duplicate configuration elements refer to the same persistent config; name='dd_queue(d_dhcpd,d_dhcpd#0)'
Internal error, duplicate configuration elements refer to the same persistent config; name='dd_queue(d_dhcpd,d_dhcpd#0)'
Internal error, duplicate configuration elements refer to the same persistent config; name='dd_queue(d_dhcpd,d_dhcpd#0)'
Internal error, duplicate configuration elements refer to the same persistent config; name='dd_queue(d_rad_proxy,d_rad_proxy#0)'
Internal error, duplicate configuration elements refer to the same persistent config; name='dd_queue(d_radius,d_radius#0)'
Error opening syslog device; filename='/dev/log', error='No such device or address (6)'
Error initializing source driver; source='s_sys', id='s_sys#0'
Error initializing message pipeline;
Error initializing new configuration, reverting to old config;
Multiple internal() sources were detected, this is not possible;
Error initializing source driver; source='s_local', id='s_local#0'
Error initializing message pipeline;
- -------> SNIP <-------

Could this be a side effect of the (now fixed) bug concerning the "duplicate configuration elements"?

- - Michael


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 10.0.3 (Build 1)
Charset: us-ascii

wsBVAwUBTtPzq5bfnpCg64TVAQHdLgf/Qbg9xNp8/n53ro46R5a0yiAnErOEtC6n
9EpWUSqxP1kfQmwQezQrboJkWJRjz90x4Z4S01uAJlZM8XXJY1EstlzR1xHHoLSc
db8waq+khj11frERvM75DY5Yj/sXRhSCjL7Vzpe4CBSpwg9RI9nkw0tjJ2AXWbOJ
S8YDk90iffWt5u0D9vSYOFnMxYe8DmKCpyMi6zQ13pPtj4hNFE38JSCuDBsDONZm
+z2N9eaoIX68EsZeFeTEXnJNRLlOES8FX88lSIFpi5LORkshlZbOGsGxbflAWew5
mWfcGJ1XATlNvpYlC7f1ewGQx3WFm3tfQU7ryT5LCNik9H+fKFRBuQ==
=P6UJ
-----END PGP SIGNATURE-----


More information about the syslog-ng mailing list