Proxmox 4 / LXC / Multitail

risturiz

Renowned Member
Feb 19, 2009
17
0
66
pelox.gusl.org.ve
Hi, i dont know where to search about this issue... But with LXC multitail dont work anymore:

----------------------------------------------
root@mail:~# multitail /var/log/syslog
--*- multitail 6.2.1 (C) 2003-2014 by folkert@vanheusden.com -*--

The following problem occured:
-----------------------------
ttyname(0) failed.
If this is a bug, please report the following information:
The last system call returned: 2 which means "No such file or directory"
----------------------------------------------

This with any LXC container... Thanks for any help.
 
Use `pct console` or login via ssh instead of using `pct enter`.
The latter only enters the namespace and its console file descriptor will point to a file that might not exist in the container's /dev/pts so ttyname() will fail trying to match /proc/self/fd/0 to a device node.
I wonder why multitail doesn't just warn instead of bailing out...
 
  • Like
Reactions: risturiz
I recently saw some activity on lxc that might make this work in the future with `pct enter`, too. Just to let you know.
 
If you like your pct enter, I just wanted to mention that you just have to reopen stdin to make fussy programs like multitail and GNU screen work:
Code:
# exec </dev/tty
# multitail ...
 
  • Like
Reactions: luison and risturiz