OpenVZ Forum


Home » General » Support » syslog-ng is not working (/dev/tty12: permission denied)
syslog-ng is not working (/dev/tty12: permission denied) [message #34850] Fri, 06 February 2009 14:36 Go to next message
ro-wa is currently offline  ro-wa
Messages: 3
Registered: February 2009
Junior Member
hi
i can't bring syslog-ng to work.
when i start the syslog-ng daemon within the container, /var/log/messages gets filled with the same error message

Feb 6 15:25:32 test1 syslog-ng[5957]: Error opening file for writing; filename='/dev/tty12', error='Permission denied (13)'

root is unable to write to this device node

$ ls -la /dev/tty12
crw------- 1 root tty 4, 12 Jun 17 2008 /dev/tty12

$ echo "test" > /dev/tty12
-bash: /dev/tty12: Permission denied

any clue?
thanks! r.

i run gentoo host and containers on kernel 2.6.24-ovz006 and vzctl version 3.0.23
Re: syslog-ng is not working (/dev/tty12: permission denied) [message #34852 is a reply to message #34850] Fri, 06 February 2009 15:01 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

could please strace syslog-ng?
http://wiki.openvz.org/Stracing_a_program

Re: syslog-ng is not working (/dev/tty12: permission denied) [message #34854 is a reply to message #34852] Fri, 06 February 2009 16:15 Go to previous messageGo to next message
ro-wa is currently offline  ro-wa
Messages: 3
Registered: February 2009
Junior Member
i cut the strace output where syslog-ng runs amok and repeatedly tries to access /dev/tty12 without success.

[Updated on: Fri, 06 February 2009 16:16]

Report message to a moderator

Re: syslog-ng is not working (/dev/tty12: permission denied) [message #34857 is a reply to message #34854] Fri, 06 February 2009 19:05 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

try the following:

(from inside the VE)
# rm /dev/tty12
(from HN)
# vzctl set $VEID --devnodes tty12:rw --save
Re: syslog-ng is not working (/dev/tty12: permission denied) (SOLVED) [message #34859 is a reply to message #34857] Fri, 06 February 2009 22:00 Go to previous message
ro-wa is currently offline  ro-wa
Messages: 3
Registered: February 2009
Junior Member
thank you!
that helped Smile
best regards r.
Previous Topic: [answered] Conflicts with VMWare and VirtualBox
Next Topic: Broken /etc/interfaces in http://download.openvz.org/template/precreated/debian-4.0-x86.tar.gz
Goto Forum:
  


Current Time: Sat Sep 28 09:28:19 GMT 2024

Total time taken to generate the page: 0.04060 seconds