Hi All I installed syslog-ng3-3.0.3_3 in a jail, when I start the service, I get this error below Starting syslog_ng. Error binding socket; addr='AF_UNIX(/var/run/log)', error='Permission denied (13)' Error initializing source driver; source='src', id='src#0' Error initializing message pipeline; /usr/local/etc/rc.d/syslog-ng: WARNING: failed to start syslog_ng Does anyone have any ideas on what I could do to troubleshoot or resolve this problem? Thanks for any help.
Peter Fraser wrote:
Hi All I installed syslog-ng3-3.0.3_3 in a jail, when I start the service, I get this error below
Starting syslog_ng. Error binding socket; addr='AF_UNIX(/var/run/log)', error='Permission denied (13)' Error initializing source driver; source='src', id='src#0' Error initializing message pipeline; /usr/local/etc/rc.d/syslog-ng: WARNING: failed to start syslog_ng
Does anyone have any ideas on what I could do to troubleshoot or resolve this problem?
Thanks for any help. ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
Could you provide the snippets of the config file that reference /var/run/log? -- Sean McAfee Senior Systems Engineer
Yes, thanks for replying, here it is. # source src { unix-dgram("/var/run/log"); unix-dgram("/var/run/logpriv" perm(0600)); udp(); internal(); file("/dev/klog"); }; On Thu, Dec 17, 2009 at 10:12 AM, Sean McAfee <smcafee@collaborativefusion.com> wrote:
Peter Fraser wrote:
Hi All I installed syslog-ng3-3.0.3_3 in a jail, when I start the service, I get this error below
Starting syslog_ng. Error binding socket; addr='AF_UNIX(/var/run/log)', error='Permission denied (13)' Error initializing source driver; source='src', id='src#0' Error initializing message pipeline; /usr/local/etc/rc.d/syslog-ng: WARNING: failed to start syslog_ng
Does anyone have any ideas on what I could do to troubleshoot or resolve this problem?
Thanks for any help. ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
Could you provide the snippets of the config file that reference /var/run/log?
-- Sean McAfee Senior Systems Engineer ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
Peter Fraser wrote:
Yes, thanks for replying, here it is.
# source src { unix-dgram("/var/run/log"); unix-dgram("/var/run/logpriv" perm(0600)); udp(); internal(); file("/dev/klog"); };
I know this doesn't match the error message you're seeing, but /dev/klog doesn't exist in jails. This is my src config for a 6.3-based jail: source src { unix-dgram("/var/run/log"); unix-dgram("/var/run/logpriv" perm(0600)); internal(); }; If that doesn't get it, are you using ezjail to start and stop the jails? -- Sean McAfee Senior Systems Engineer
Made that change but I still get the same error. Error binding socket; addr='AF_UNIX(/var/run/log)', error='Permission denied (13)' Error initializing source driver; source='src', id='src#0' Error initializing message pipeline; /usr/local/etc/rc.d/syslog-ng: WARNING: failed to start syslog_ng I am starting the jail out of the rc.d directory. I do /etc/rc.d/jail start logging On Thu, Dec 17, 2009 at 12:06 PM, Sean McAfee <smcafee@collaborativefusion.com> wrote:
Peter Fraser wrote:
Yes, thanks for replying, here it is.
# source src { unix-dgram("/var/run/log"); unix-dgram("/var/run/logpriv" perm(0600)); udp(); internal(); file("/dev/klog"); };
I know this doesn't match the error message you're seeing, but /dev/klog doesn't exist in jails.
This is my src config for a 6.3-based jail:
source src { unix-dgram("/var/run/log"); unix-dgram("/var/run/logpriv" perm(0600)); internal(); };
If that doesn't get it, are you using ezjail to start and stop the jails?
-- Sean McAfee Senior Systems Engineer ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
Peter Fraser wrote:
Made that change but I still get the same error.
Well, I'm sure you would've hit the klog error once this was resolved, so I'd hold on to that change.
Error binding socket; addr='AF_UNIX(/var/run/log)', error='Permission denied (13)' Error initializing source driver; source='src', id='src#0' Error initializing message pipeline; /usr/local/etc/rc.d/syslog-ng: WARNING: failed to start syslog_ng
I am starting the jail out of the rc.d directory. I do /etc/rc.d/jail start logging
My experience with jails is limited to using ezjail-admin. I know that /var/run/log and /var/run/logpriv are both created by ezjail-admin when jails are started. Have you verified it exists on your system? If it does, what are the perms (from the jail's perspective)? I have the following in a 6.3 jail: [root@host ~]# ls -la /var/run/log* srw-rw-rw- 1 root wheel 0 Aug 21 12:31 /var/run/log srw------- 1 root wheel 0 Aug 21 12:31 /var/run/logpriv -- Sean McAfee Senior Systems Engineer
participants (2)
-
Peter Fraser
-
Sean McAfee