Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun May 02, 2010 2:17 pm 
Offline
Senior Newbie

Joined: Tue Oct 20, 2009 11:20 am
Posts: 5
Hi all,

I'm running the new Ubuntu 10.04 on a Linode, and noticed theis message in the logs (kern.log and syslog):
Code:
kernel: imklog: Cannot read proc file system, 1.

Anyone has any idea if that's harmless, or if it may indicate some incompatibility between Ubuntu 10.04 and the Linode Paravirt kernel?

It seems to happen only a few times a day, I think it's when rsyslog restarts. Here's some more context:
Code:
May  2 17:54:27 app3 kernel: imklog: Cannot read proc file system, 1.
May  2 17:54:27 app3 rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="2020" x-info="http://www.rsyslog.com"] (re)start
May  2 17:54:27 app3 rsyslogd: rsyslogd's groupid changed to 103
May  2 17:54:27 app3 rsyslogd: rsyslogd's userid changed to 101
May  2 17:54:27 app3 rsyslogd-2039: Could no open output file '/dev/xconsole' [try http://www.rsyslog.com/e/2039 ]

Thanks

Mirko


Top
   
 Post subject:
PostPosted: Sun May 02, 2010 2:51 pm 
Offline
Senior Newbie

Joined: Tue Oct 20, 2009 11:20 am
Posts: 5
Running the Ubuntu 10.04 linux-image-server with pv-grub instead of the Linode Paravirt kernel, the same line now looks healthier:
Code:
May  2 18:42:26 app3 kernel: imklog 4.2.0, log source = /proc/kmsg started.
May  2 18:42:26 app3 rsyslogd: [origin software="rsyslogd" swVersion="4.2.0" x-pid="392" x-info="http://www.rsyslog.com"] (r
e)start
May  2 18:42:26 app3 rsyslogd: rsyslogd's groupid changed to 103
May  2 18:42:26 app3 rsyslogd: rsyslogd's userid changed to 101
May  2 18:42:26 app3 rsyslogd-2039: Could no open output file '/dev/xconsole' [try http://www.rsyslog.com/e/2039 ]


Top
   
 Post subject:
PostPosted: Sun May 02, 2010 4:05 pm 
Offline
Senior Newbie

Joined: Tue Oct 20, 2009 11:20 am
Posts: 5
As for the missing /dev/xconsole line that's Ubuntu bug #459730 apparently.


Top
   
 Post subject:
PostPosted: Mon May 03, 2010 9:02 am 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573980

Michael Biebl wrote:
Reading from /proc/kmsg requires root privileges. [...] What Ubuntu does, it create a socket in /var/run, where the rsyslog process can read with unpriviledgeg rights, and they have a separate dd process (with root priviledges) that shovels the data from /dev/kmsg to /var/run/kmsg.

Stefan K. wrote:
I was confused because lucid lynx uses "/proc/kmsg" as path and no "dd proxy" anymore. As of 4.2.0-2ubuntu6 they changed the kernel interface to read the file directly (deroot.patch).


Not specific to our latest paravirt, it would appear -- it happens to anybody running a non-Ubuntu-specific kernel (which latest paravirt is). They've apparently patched the kernel to work around the "dd running as root" problem.

Under Karmic, I remember a dd with root privileges running at all times. I do not see the same under Lucid.

If I read between the lines of the bug report, it sounds like there might be a knob to twiddle in the init scripts, and you can put their workaround back -- fire off a dd from /proc/kmsg to /var/run/rsyslog/kmsg as root, then point rsyslog at /var/run/rsyslog/kmsg using the twiddling knob. Or, give rsyslog root (might not be the most ideal solution).

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Last edited by jed on Mon May 03, 2010 9:08 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Mon May 03, 2010 9:04 am 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
Aha, bullseye: https://bugs.launchpad.net/ubuntu/lucid ... bug/523610

and: https://bugs.launchpad.net/ubuntu/+sour ... bug/565288

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Mon May 03, 2010 12:46 pm 
Offline
Senior Newbie

Joined: Tue Oct 20, 2009 11:20 am
Posts: 5
jed wrote:
https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/565288

Yep that's the one. Fairly annoying because logs don't include kernel messages. Makes things difficult to debug if something goes wrong.


Top
   
 Post subject:
PostPosted: Sat May 15, 2010 1:05 am 
Offline
Junior Member

Joined: Tue Jun 29, 2004 2:27 pm
Posts: 34
jed wrote:
Not specific to our latest paravirt, it would appear -- it happens to anybody running a non-Ubuntu-specific kernel (which latest paravirt is). They've apparently patched the kernel to work around the "dd running as root" problem.

Under Karmic, I remember a dd with root privileges running at all times. I do not see the same under Lucid.

If I read between the lines of the bug report, it sounds like there might be a knob to twiddle in the init scripts, and you can put their workaround back -- fire off a dd from /proc/kmsg to /var/run/rsyslog/kmsg as root, then point rsyslog at /var/run/rsyslog/kmsg using the twiddling knob. Or, give rsyslog root (might not be the most ideal solution).


Maybe I'm missing something but I don't see a flag that puts the "dd proxy" back in place. I think the workaround is to run rsyslogd as root (not ideal).

Having this broken is a little frustrating because it's not very clear what's going on - I was installing a new Linode and iptables logging just wasn't working.

Can you guys consider putting the patch in the default Linode paravirt kernel? Or perhaps include the "dd proxy" in the default image?

--John


Top
   
 Post subject:
PostPosted: Sat May 15, 2010 9:25 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
You know... people have been running syslogds as root for decades... this wole deal seems to me like yet another case of "fixing what's not broken", introducing a ton of unnecessary complication by that.
<rant> Seriously... udev, X11R7, all the WhateverKit things, KDE4... this system is becoming more and more like Windows. That is, full of hard to understand, heavyweight, and downright annoying junk. </rant>


Top
   
 Post subject:
PostPosted: Sat May 15, 2010 10:40 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
rsk wrote:
<rant> Seriously... udev, X11R7, all the WhateverKit things, KDE4... this system is becoming more and more like Windows. That is, full of hard to understand, heavyweight, and downright annoying junk. </rant>


I'm looking for this KDE4 stuff using:

dpkg -l | grep kde

and don't get any results. Is this the correct command to find it on an Ubuntu Server install? How can I remove it from my Linode if I can't find it - is it hidden somehow? You would think Canonical would let you know about these things.

James


Top
   
 Post subject:
PostPosted: Sat May 15, 2010 11:48 am 
Offline
Junior Member

Joined: Tue Jun 29, 2004 2:27 pm
Posts: 34
rsk wrote:
You know... people have been running syslogds as root for decades... this wole deal seems to me like yet another case of "fixing what's not broken", introducing a ton of unnecessary complication by that.


Perhaps, but I can understand reducing the risk. Just because it's always run as root doesn't mean that's the best security posture.

rsk wrote:
<rant> Seriously... udev, X11R7, all the WhateverKit things, KDE4... this system is becoming more and more like Windows. That is, full of hard to understand, heavyweight, and downright annoying junk. </rant>


Yeah. Every time I install a new release there's something new that I have to learn. Maybe I'm just getting old. :-)

--John


Top
   
 Post subject:
PostPosted: Mon May 17, 2010 1:17 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
zunzun wrote:
rsk wrote:
<rant> Seriously... udev, X11R7, all the WhateverKit things, KDE4... this system is becoming more and more like Windows. That is, full of hard to understand, heavyweight, and downright annoying junk. </rant>


I'm looking for this KDE4 stuff using:

dpkg -l | grep kde

and don't get any results. Is this the correct command to find it on an Ubuntu Server install? How can I remove it from my Linode if I can't find it - is it hidden somehow? You would think Canonical would let you know about these things.

James


If you never installed KDE, then you're not going to have any KDE packages installed...


Top
   
 Post subject:
PostPosted: Mon May 17, 2010 4:46 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
Guspaz wrote:
zunzun wrote:
rsk wrote:
<rant> Seriously... udev, X11R7, all the WhateverKit things, KDE4... this system is becoming more and more like Windows. That is, full of hard to understand, heavyweight, and downright annoying junk. </rant>


I'm looking for this KDE4 stuff using:

dpkg -l | grep kde

and don't get any results. Is this the correct command to find it on an Ubuntu Server install? How can I remove it from my Linode if I can't find it - is it hidden somehow? You would think Canonical would let you know about these things.

James


If you never installed KDE, then you're not going to have any KDE packages installed...


/me beats Guspaz with the satire wand

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Tue May 18, 2010 11:29 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
jed wrote:
Guspaz wrote:
zunzun wrote:
rsk wrote:
<rant> Seriously... udev, X11R7, all the WhateverKit things, KDE4... this system is becoming more and more like Windows. That is, full of hard to understand, heavyweight, and downright annoying junk. </rant>


I'm looking for this KDE4 stuff using:

dpkg -l | grep kde

and don't get any results. Is this the correct command to find it on an Ubuntu Server install? How can I remove it from my Linode if I can't find it - is it hidden somehow? You would think Canonical would let you know about these things.

James


If you never installed KDE, then you're not going to have any KDE packages installed...


/me beats Guspaz with the satire wand


/me defends with his bacon shield


Top
   
 Post subject:
PostPosted: Fri May 21, 2010 7:10 pm 
Offline
Senior Newbie

Joined: Thu Feb 04, 2010 8:49 pm
Posts: 19
Anyway, returning to the topic, I came across this error trying to figure out why my psad is not doing anything. It's because rsyslog is not logging any message from iptables. I tried sending the log to a new location based on the log-prefix but it's not working. The only way I managed to make rsyslog listen to iptables was by installing a debian newer version 4.6.2 (http://ftp.us.debian.org/debian/pool/ma ... 1_i386.deb). But this is not the elegant way of doing this. I was wondering how can I install the newer version of rsyslog from sources (5.4 stable) from rsyslog.com and removing the original way from Ubuntu Lucid.


Top
   
 Post subject:
PostPosted: Fri May 21, 2010 8:00 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
To avoid the problem, you can use the linux-image-ec2 kernel (which really means "Xen domU") kernel that Lucid ships, and boot it with PV-Grub instead of using one of our kernels. Danny Ariti, a fine specimen of an individual, has written a guide about exactly that.

Be advised that once you go that route, kernel maintenance is up to you (and not us); however, if you're using Lucid's kernel in the repositories, then you just follow them as if you were using a computer you had installed Lucid on yourself.

I'd be hesitant to merge a distribution-specific patch into a kernel that we try to divulge from vanilla as little as possible. We have to support more than just Ubuntu, remember.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group