Hello list, I got a problem with starting syslog-ng on my Debian Etch Vserver. When I try to start it, it give me the following Error-Message: lutz@31:~$ sudo /etc/init.d/syslog-ng start Password: Starting system logging: syslog-ngError opening file for reading; filename='/proc/kmsg', error='Operation not permitted (1)' Error initializing source driver; source='s_all' start failed. I checked the file-permissions from /proc/kmsg: lutz@31:~$ ls -al /proc | grep kmsg -r-------- 1 root root 0 May 8 18:08 kmsg I installed syslog-ng with apt-get install syslog-ng, but I couldn't start it correctly, yet. I posted my config here: http://nopaste.com/p/aVl1HOXXj It is the Standard syslog-ng config the old syslog daemon i stopped by renaming in /etc/rc2.d - /etc/rc5.d I ask Google now for 2 Days, but I can't locate the Problem I hope you can help me ? sorry, my English is not the best thanks, Patrick
Hi,
Hello list,
I got a problem with starting syslog-ng on my Debian Etch Vserver. When I try to start it, it give me the following Error-Message:
lutz@31:~$ sudo /etc/init.d/syslog-ng start Password: Starting system logging: syslog-ngError opening file for reading; filename='/proc/kmsg', error='Operation not permitted (1)' Error initializing source driver; source='s_all' start failed.
I checked the file-permissions from /proc/kmsg:
lutz@31:~$ ls -al /proc | grep kmsg -r-------- 1 root root 0 May 8 18:08 kmsg
There is the chance that another syslog daemon already opened the file, so simply remove this from your syslog-ng config. /proc/kmsg should be read by only one syslog daemon at a time.
the old syslog daemon i stopped by renaming in /etc/rc2.d - /etc/rc5.d
stopped by renaming? Sounds problematic, stop it explicitly, and make sure it won't get restarted. Renaming/ removing symlinks under /etc/rc*.d on Debian is strongly discouraged. use update-rc.d for this task, first remove the existing links, and then recreate them as K... ones. Otherwise the next package upgrade might reenable the daemon. Regards, Sandor -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
On Tue, 2007-07-17 at 14:56 +0100, Geller, Sandor (IT) wrote:
Hi,
Hello list,
I got a problem with starting syslog-ng on my Debian Etch Vserver. When I try to start it, it give me the following Error-Message:
lutz@31:~$ sudo /etc/init.d/syslog-ng start Password: Starting system logging: syslog-ngError opening file for reading; filename='/proc/kmsg', error='Operation not permitted (1)' Error initializing source driver; source='s_all' start failed.
I checked the file-permissions from /proc/kmsg:
lutz@31:~$ ls -al /proc | grep kmsg -r-------- 1 root root 0 May 8 18:08 kmsg
There is the chance that another syslog daemon already opened the file, so simply remove this from your syslog-ng config. /proc/kmsg should be read by only one syslog daemon at a time.
the old syslog daemon i stopped by renaming in /etc/rc2.d - /etc/rc5.d
stopped by renaming? Sounds problematic, stop it explicitly, and make sure it won't get restarted. Renaming/ removing symlinks under /etc/rc*.d on Debian is strongly discouraged. use update-rc.d for this task, first remove the existing links, and then recreate them as K... ones. Otherwise the next package upgrade might reenable the daemon.
You might also want to try removing the default syslog package. On Ubuntu this is done with: sudo apt-get remove sysklogd I don't know if Debian's is named the same or not. After that, restart syslog-ng and hopefully it will start. -- Daniel Bartholomew
participants (3)
-
Daniel Bartholomew
-
Geller, Sandor (IT)
-
patrick simon