#668 Kernel Logging Stopping abruptly 1.4.16 ipcop-Bugs-1801396

1.4.21
closed-out-of-date
nobody
None
5
2014-02-14
2007-09-26
Bill K
No

Thanks for the Quick Repsonse that was super.

Now the conundrum grows.

I have looked for 'Allocation Failed' /var/log/messages and did not find any.

ps -ax showed the syslog was running pid 81. Greping the log file for syslog showed that on the 23 and the 29 which it today, that it was restarted but no error message

The webui on IPCOP still shows kernel logging in the stopped or not running. I still have browsing working so that is different that what I had seen earlier.

Did not add any memory to the box. The swapfile which is currently sized at 32meg has not had any use when I checked vmstat.

Current memory allocation is sitting at 97 percent which is about 13% higher after doing a restartsyslog.

The only difference in this location is that I have the IPSEC VPN running in combination with Openvpn and zerina. With Ipsec I am running full logging because I had a net-net reconnection fail on restart of this box and I had to restart IPCOP at the remote end to get the connection to resume. It is hot and active now so I cannot bring down the network at this time to turn back logging to normal.

Will kick the box tonight.

Could this maybe a just a webui Issue. Since the server is resported as red.

Thanks I really apprecate the great product.

Discussion

  • Tim King

    Tim King - 2007-10-17

    Logged In: YES
    user_id=1915296
    Originator: NO

    This is a protection issue when you are running off flash.

    When IPCop boots the log file /ram/var/log/messages is create world rw.

    When logrotate runs it changes the log file to root writeable only.
    syslog runs as user syslogd and so can't write to the log file.

    Not sure how this should be fixed properly. Quick kludge is to add w to the chown entry in /etc/logrotate.conf.

    Not sure why it works for everyone else.

     
  • Olaf Westrik

    Olaf Westrik - 2007-10-22

    Logged In: YES
    user_id=1120714
    Originator: NO

    My /etc/logrotate.conf (as does anyone elses I presume) has this entry for /var/log/messages:

    /var/log/messages /var/log/boot.log {
    create 664 root syslogd
    sharedscripts
    ifempty
    postrotate
    /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
    }

    My /ram/var/log/messages (I do run on CF) is created exactly like that 644 root.syslogd

     
  • Tim King

    Tim King - 2007-10-22

    Logged In: YES
    user_id=1915296
    Originator: NO

    Well mine reads

    /var/log/messages /var/log/boot.log {
    sharedscripts
    ifempty
    postrotate
    /bin/chmod ugo+rX /var/log/messages
    /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
    }

    I think I started with 1.4.12 and upgraded through - it's been a while. I have recently built 1.4.16 from scratch and it's OK in there (like yours). I suspect that a replacement file was not included in an upgrade somewhere along the way. Probably needs to be re-released.

     
  • Olaf Westrik

    Olaf Westrik - 2007-10-22

    Logged In: YES
    user_id=1120714
    Originator: NO

    > I suspect that a replacement file was not included in an upgrade somewhere
    > along the way. Probably needs to be re-released.

    That's definitely not the case. That section from /etc/logrotate.conf has not changed since 1.4.0 (and even before that).

    FWIW my box is an upgraded 1.4.11

     
  • Tim King

    Tim King - 2007-10-22

    Logged In: YES
    user_id=1915296
    Originator: NO

    Some addon may have regressed this then? I have added openssh 45p1, addons 2.3 & BOT 2.3.2-b2.
    I certainly haven't edited logrotate.conf it must have looked like this sometime.

    Anyone else have this issue? Can we confirm this is the problem that Bill K was having?

     
  • Olaf Westrik

    Olaf Westrik - 2014-02-14
    • status: open --> closed-out-of-date
    • Group: --> 1.4.21
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks