Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-2000: "addebug on" command fails with syslog ng installed

Centrify DirectControl ,  

12 April,16 at 10:57 AM

Applies to: All versions of Centrify DirectControl on all platforms.

Problem:
Getting error when trying to turn on debug log with addebug on.

Cause:
syslog-ng is a syslogd replacement.  By default when starting up, just like syslogd writes pid to /var/run/syslogd.pid, syslog-ng writes pid to /var/run/syslog-ng.pid but can be started with -p to specify an alternate pid file.  You would see from "ps -ef |grep syslog" if alternate pid file used.

[root@testsystem bin]# ps -ef | grep syslog
root     13790     1  0 Feb06 ?        00:00:36 /sbin/syslog-ng -p /var/run/syslogd.pid
root     24659 21131  0 13:02 pts/2    00:00:00 grep syslog

addebug script checks for the existence of a syslog pid file in the /var/run directory. The script then checks for /etc/syslog.conf, or /etc/syslog-ng.conf depending on which pid file found in /var/run directory.  In situation where syslog-ng started with -p to an alternate pid file, search for matching conf file failed, an error message will display and addebug script exit without starting debug trace.

Workaround:
Use either one of the following as a workaround.
1) rename /var/run/syslogd.pid to /var/run/syslog-ng.pid
2) start /sbin/syslog-ng without "-p /var/run/syslogd.pid" option

Resolution:
This is due to command line option and will not be fixed in CentrifyDC

 

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.