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

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!