Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 489528

Summary: app-admin/rsyslog-7.2.7 - rsyslogd fails to write log entries?
Product: Gentoo Linux Reporter: kbaegis
Component: [OLD] ServerAssignee: Ultrabug <ultrabug>
Status: RESOLVED OBSOLETE    
Severity: normal CC: whissi
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info for rsyslog
rsyslogd -n -d 2>&1 >rsyslogd.log

Description kbaegis 2013-10-27 02:00:33 UTC
rsyslogd 7.2.7, compiled with:
        FEATURE_REGEXP:                         Yes
        FEATURE_LARGEFILE:                      No
        GSSAPI Kerberos 5 support:              No
        FEATURE_DEBUG (debug build, slow code): No
        32bit Atomic operations supported:      Yes
        64bit Atomic operations supported:      Yes
        Runtime Instrumentation (slow code):    No
        uuid support:                           Yes

And postgresql support.  

Issue is that when run via cli database inserts work flawlessly.  When run from the init script updates do not make it into the database and silently fail.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-10-28 02:50:09 UTC
1) Please post your `emerge --info' output in a comment.
2) Does rsyslogd actually start properly?
Comment 2 kbaegis 2013-10-28 16:10:24 UTC
Created attachment 362136 [details]
emerge --info for rsyslog

Here's the requested emerge log.
Comment 3 kbaegis 2013-10-28 16:21:06 UTC
Created attachment 362140 [details]
rsyslogd -n -d 2>&1 >rsyslogd.log

Here's the output from rsyslogd without running it through the /etc/init.d script.
Comment 4 Ultrabug gentoo-dev 2013-11-06 13:39:38 UTC
Hi,

Maybe you should compare the command line ran by the init script and use the same with the -d and -n options to debug this issue.

I have never used rsyslog with pgsql so I'm a bit clueless.

Also, did you try with latest rsyslog ?
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2014-02-21 11:01:29 UTC
Hi,

there was recently a bug report for the ompgsql module in the rsyslog mailing list: http://thread.gmane.org/gmane.comp.sysutils.rsyslog/12959

Sounds like that could be the same bug you experienced because when using "-n" rsyslog won't fork so this error won't be triggered (the same thing you noticed).

This was fixed in v7.4.10 - not yet in tree. See bug 501978.
Comment 6 Ultrabug gentoo-dev 2014-05-20 13:16:11 UTC
Thx @Thomas D.

Please reopen if you still have the problem with newer rsyslog >=7.4.10