Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: syslog-ng not starting

  1. #1

    Default syslog-ng not starting

    Hi,
    I've tried to install syslog-ng, but it does not start for me:

    Code:
    # you
    # cat /etc/SuSE-release
    openSUSE 11.3 (x86_64)
    VERSION = 11.3
    
    # uname -r
    2.6.34.7-0.5-desktop
    Installed via zypper, there are few custom startup scripts which give me some warnings but they should not interfere.:

    Code:
    # zypper in syslog-ng
    Loading repository data...
    Reading installed packages...
    Resolving package dependencies...
    
    The following NEW package is going to be installed:
      syslog-ng
    
    1 new package to install.
    Overall download size: 420.0 KiB. After the operation, additional 1.7 MiB will
    be used.
    Continue? [y/n/?] (y): y
    Retrieving package syslog-ng-3.1.1-4.1.1.x86_64 (1/1), 420.0 KiB (1.7 MiB unpacked)
    Retrieving: syslog-ng-3.1.1-4.1.1.x86_64.rpm [done (610.5 KiB/s)]
    Installing: syslog-ng-3.1.1-4.1.1 [done]
    Additional rpm output:
    Updating etc/sysconfig/syslog...
    insserv: warning: script 'S01rtorrent' missing LSB tags and overrides
    insserv: warning: current start runlevel(s) (1 2 3 4 5) of script `syslog' overwrites defaults (2 3 5).
    insserv: warning: current stop runlevel(s) (2 3 4 5) of script `syslog' overwrites defaults (2 3 5).
    insserv: warning: script 'rtorrent' missing LSB tags and overrides
    insserv: warning: script 'bridge' missing LSB tags and overrides
    insserv: Default-Start undefined, assuming default start runlevel(s) for script `bridge'
    Updating etc/sysconfig/syslog...
    insserv: warning: script 'S01rtorrent' missing LSB tags and overrides
    insserv: warning: script 'rtorrent' missing LSB tags and overrides
    insserv: warning: script 'bridge' missing LSB tags and overrides
    insserv: Default-Start undefined, assuming default start runlevel(s) for script `bridge'
    Updating etc/sysconfig/syslog...
    Did nothing to /ets/syslog-ng/syslog-ng.conf

    Logged to webmin, refreshed modules and tried to start syslog-ng but got an error:

    Failed to start Syslog-NG server :

    Include file/directory not found; filename='/var/run/syslog-ng/additional-log-sockets.conf', error='No such file or directory (2)'

    Also noted that there's no /var/run/syslog-ng/ directory at all. But
    Code:
    # rmp -ql syslog-ng
    says...
    ....
    /var/run/syslog-ng
    Is this something wrong with a what I'm doing, packaging error, apparmor rules or something else.

    Any assistance would be appreciated.
    Thank you.

  2. #2
    Join Date
    Jul 2008
    Location
    Hungary
    Posts
    8

    Default Re: syslog-ng not starting

    Did you start syslog-ng by /etc/init.d/syslog? That should make sure, that the /var/run/syslog-ng directory is there together with the named file. This functionality is there to add log sources from chroots. If you don't use bind, you can safely comment out the include line in syslog-ng.conf.

    CzP

  3. #3

    Default Re: syslog-ng not starting

    Hi, thank you for reply,

    I've just tried
    Code:
    # /etc/init.d/syslog restart
    It did restart syslog daemon, but there's still no syslog-ng directory
    and
    Code:
    # ps ax | grep syslog
    10658 ?        Sl     0:00 /sbin/rsyslogd -c 5 -f /etc/rsyslog.conf
    Well, I do use bind, so I'm afraid to remove this line.

  4. #4
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: syslog-ng not starting

    You'll have to disable rsyslogd to use syslog-ng. They serve the same function and both listen on the same ports and sockets.

  5. #5

    Default Re: syslog-ng not starting

    Sorry but I'm completely clueless how to do that, chkconfig has only syslog entry, should'nt have syslog-ng modified syslog daemon scripts to launch syslog-ng, or do I have to do that by hand in some config file? I've tried restarting the whole thing, all the same. If I do remove rsyslog via zypper, not sure my system will even start after that.

  6. #6
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: syslog-ng not starting

    I don't know how either, but I suppose I could figure it out if I had to. But why do you need syslog-ng? rsyslog works fine.

  7. #7
    Join Date
    Jul 2008
    Location
    Hungary
    Posts
    8

    Default Re: syslog-ng not starting

    Oh, I see. I was just planing to write a bug report about this: the installation of rsyslogd is hardcoded into base patterns :-( If rsyslogd is present, then it is preferred by the startup scipt.
    - remove rsyslogd and lock/taboo it
    - or you can edit /etc/sysconfig/syslog and set SYSLOG_DAEMON to "syslog-ng". But if rsyslogd is still on the system, it might be set back to an empty value or to rsyslogd, in which case rsyslogd starts.

    I'll check, but if you use bind, you might need to add its /dev/log socket to /etc/apparmor.d/sbin.syslog-ng or disable AppArmor.

    CzP

  8. #8

    Default Re: syslog-ng not starting

    Ok,

    Thanks for all replies, I just thought to use syslog-ng and webmin (to configure syslog-ng) to store logs from my cisco router, it seems not as easy as "zypper in", I'll try to configure normal syslog to do what I want.

    Thanks again

  9. #9
    Join Date
    Jul 2008
    Location
    Hungary
    Posts
    8

    Default Re: syslog-ng not starting

    Please try to go on with the syslog-ng package, that would help me to fix it for the next release!
    CzP

  10. #10
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: syslog-ng not starting

    rsyslog has routing rules also, but the language is different. There was another thread on the forum asking about the syntax. I used to have a syslog-ng rule for my router, but since I changed to using a dd-wrt based router, and since the logs are always boring, I haven't bothered to make it work with rsyslog.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •