Still getting "Assertion `i == nfds' failed." error
Still getting this error: syslog-ng: io.c:270: io_iter: Assertion `i == nfds' failed. syslog-ng version 1.6.0rc3 libol 0.3.10 RedHat 9 I only have 3 sources: internal and 2 udp sources (no /proc/kmsg or /dev/log). It runs fine for a short while and then dies with the above error. Sometimes it runs for a minute or so and sometimes for 15-20 mins without a problem before it dies (logging properly from the various servers while it runs). I had setup the local syslogd to pass its messages to syslog-ng via udp. I stopped syslogd (and klogd) and getting same problem. Tried running both using chroot option and not, same thing. Seems to run forever in debug mode. I can see it does garbage collection every now and then. If it tells you anything, this is what it does during gc: io.c: Preparing fd 9 for writing gc_mark: Marking object of class 'syslog_backend' (0) gc_mark: Marking object of class 'syslog_config' (1) gc_mark: Marking object of class 'resource_list' (2) gc_mark: Marking object of class 'io_fd' (3) gc_mark: Marking object of class 'pkt_buffer' (4) gc_mark: Marking object of class 'io_fd' (4) gc_mark: Marking object of class 'pkt_buffer' (5) gc_mark: Marking object of class 'io_fd' (5) gc_mark: Marking object of class 'pkt_buffer' (6) gc_mark: Marking object of class 'io_fd' (6) gc_mark: Marking object of class 'pkt_buffer' (7) gc_mark: Marking object of class 'io_fd' (7) gc_mark: Marking object of class 'pkt_buffer' (8) gc_mark: Marking object of class 'io_fd' (8) gc_mark: Marking object of class 'pkt_buffer' (9) gc_mark: Marking object of class 'io_fd' (9) gc_mark: Marking object of class 'pkt_buffer' (10) gc_mark: Marking object of class 'io_fd' (10) gc_mark: Marking object of class 'pkt_buffer' (11) gc_mark: Marking object of class 'io_fd' (11) gc_mark: Marking object of class 'log_reader' (12) gc_mark: Marking object of class 'afsocket_source_connection' (13) gc_mark: Marking object of class 'afinet_source' (14) gc_mark: Marking object of class 'inet_address_info' (15) gc_mark: Marking object of class 'object_queue' (15) gc_mark: Marking object of class 'log_source_group' (15) gc_mark: Marking object of class 'log_source_group' (16) gc_mark: Marking object of class 'log_source_driver' (17) gc_mark: Marking object of class 'log_center' (17) gc_mark: Marking object of class 'log_connection' (18) gc_mark: Marking object of class 'log_endpoint_info' (19) gc_mark: Marking object of class 'log_endpoint_info' (20) gc_mark: Marking object of class 'log_endpoint_info' (19) gc_mark: Marking object of class 'log_dest_group' (20) gc_mark: Marking object of class 'affile_dest' (21) gc_mark: Marking object of class 'affile_dest_writer' (22) gc_mark: Marking object of class 'affile_dest_writer' (23) gc_mark: Marking object of class 'affile_dest_writer' (24) gc_mark: Marking object of class 'affile_dest_writer' (25) gc_mark: Marking object of class 'affile_dest_writer' (26) gc_mark: Marking object of class 'affile_dest_writer' (27) gc_mark: Marking object of class 'affile_dest_writer' (28) gc_mark: Marking object of class 'affile_dest_writer' (29) gc_mark: Marking object of class 'log_connection' (19) gc_mark: Marking object of class 'log_endpoint_info' (20) gc_mark: Marking object of class 'log_source_group' (21) gc_mark: Marking object of class 'afinet_source' (22) gc_mark: Marking object of class 'inet_address_info' (23) gc_mark: Marking object of class 'object_queue' (23) gc_mark: Marking object of class 'afsocket_source_connection' (24) gc_mark: Marking object of class 'io_fd' (25) gc_mark: Marking object of class 'log_reader' (26) gc_mark: Marking object of class 'afsocket_source_close_callback' (26) gc_mark: Marking object of class 'log_endpoint_info' (20) gc_mark: Marking object of class 'log_dest_group' (21) gc_mark: Marking object of class 'affile_dest' (22) gc_mark: Marking object of class 'afsocket_source_close_callback' (12) gc_mark: Marking object of class 'UNKNOWN' (1) gc_mark: Marking object of class 'affile_dest_reaper' (1) gc_mark: Marking object of class 'affile_dest_reaper' (1) gc_mark: Marking object of class 'affile_dest_reaper' (1) gc_mark: Marking object of class 'affile_dest_reaper' (1) gc_mark: Marking object of class 'affile_dest_reaper' (1) gc_mark: Marking object of class 'affile_dest_reaper' (1) gc_mark: Marking object of class 'affile_dest_reaper' (1) gc_mark: Marking object of class 'affile_dest_reaper' (1) io.c: Preparing fd 10 for writing Marking fd 12 for closing. Any other ideas? -- Dennis Skinner Systems Administrator BlueFrog Internet http://www.bluefrog.com
On Thu, Sep 18, 2003 at 03:34:19PM -0400, Dennis Skinner wrote:
Still getting this error:
syslog-ng: io.c:270: io_iter: Assertion `i == nfds' failed.
syslog-ng version 1.6.0rc3 libol 0.3.10 RedHat 9
I only have 3 sources: internal and 2 udp sources (no /proc/kmsg or /dev/log). It runs fine for a short while and then dies with the above error. Sometimes it runs for a minute or so and sometimes for 15-20 mins without a problem before it dies (logging properly from the various servers while it runs).
So you have three sources and a single file destination? Or you also log to remote hosts uding TCP or UDP? -- Bazsi
On Sun, 2003-09-21 at 03:50, Balazs Scheidler wrote:
I only have 3 sources: internal and 2 udp sources (no /proc/kmsg or /dev/log). It runs fine for a short while and then dies with the above error. Sometimes it runs for a minute or so and sometimes for 15-20 mins without a problem before it dies (logging properly from the various servers while it runs).
So you have three sources and a single file destination? Or you also log to remote hosts uding TCP or UDP?
No, I have 2 destinations....other servers are sending logs here. source s_local { internal(); }; source s_int1_udp { udp(ip("10.0.1.123") port(514)); }; source s_int2_udp { udp(ip("192.168.1.123") port(514)); }; destination d_sort_program_host { file("/export/syslog-ng/var/log/$HOST/$PROGRAM.$MONTH$DAY$YEAR" group("logs") perm(0640) create_dirs(yes) dir_perm(0750) ); }; destination d_sort_host { file("/export/syslog-ng/var/log/$HOST/$MONTH$DAY$YEAR" group("logs") perm(0640) create_dirs(yes) dir_perm(0750) ); }; log { source(s_local); source(s_int1_udp); destination(d_sort_program_host); }; log { source(s_int2_udp); destination(d_sort_host); }; -- Dennis Skinner Systems Administrator BlueFrog Internet http://www.bluefrog.com
participants (2)
-
Balazs Scheidler
-
Dennis Skinner