Oh, oh, it's an error! possibly I die!

proxmix

New Member
Nov 23, 2023
19
4
3
No, it's not me! It's just vim, that seems to die. ;-) Details:

Here runs latest proxmox (no-subscription, last updates/upgrades applied today).

I created an lxc (proxmox standard template: debian-12.7...), started the container, and installed the package 'vim'.

When ever I run, eg. 'vi /etc/passwd' the lxc's journal get's spamed with:

Code:
Nov 28 21:43:50 test-lxc login[364]: pam_systemd(login:session): Failed to create session: Seat has no VTs but VT number not 0
Nov 28 21:43:50 test-lxc login[2830]: ROOT LOGIN  on '/dev/tty1'
Nov 28 21:58:14 test-lxc vi[2910]: *** err
Nov 28 21:58:14 test-lxc vi[2910]: unable to open gpm console, check your /dev filesystem!
Nov 28 21:58:14 test-lxc vi[2910]: *** err
Nov 28 21:58:14 test-lxc vi[2910]: Oh, oh, it's an error! possibly I die!
Nov 28 21:58:14 test-lxc vi[2910]: *** err
Nov 28 21:58:14 test-lxc vi[2910]: unable to open gpm console, check your /dev filesystem!
Nov 28 21:58:14 test-lxc vi[2910]: *** err
Nov 28 21:58:14 test-lxc vi[2910]: Oh, oh, it's an error! possibly I die!
Nov 28 21:58:14 test-lxc vi[2910]: *** err
Nov 28 21:58:14 test-lxc vi[2910]: unable to open gpm console, check your /dev filesystem!
Nov 28 21:58:14 test-lxc vi[2910]: *** err
Nov 28 21:58:14 test-lxc vi[2910]: Oh, oh, it's an error! possibly I die!
Nov 28 21:58:40 test-lxc vi[2910]: *** err
Nov 28 21:58:40 test-lxc vi[2910]: unable to open gpm console, check your /dev filesystem!
Nov 28 21:58:40 test-lxc vi[2910]: *** err
Nov 28 21:58:40 test-lxc vi[2910]: Oh, oh, it's an error! possibly I die!

BTW:
- When I uninstall the vim package, calling for example vi /etc/passwd works fine (journal stays clean)
- When I use ssh instead of proxmox' console, both, vi and vim run fine, too.

I cannot explain exactly what causes the above mess. My guess is that it is probably caused by vim's mouse support requiring some /dev/<file> which isn't available/accessible ...

Is this a known limitation when connected via console?

Thanks for your support!
 
Try uninstalling the gpm package in-LXC

FYI, if you run GNU ' screen ' you can copypasta without a mouse. Read the man page ' man screen '
tmux can also do this but the key sequence is different.
 
thanks @Kingneutron for your suggestion, but gpm wasn't installed:
Code:
root@test-lxc:~# apt-get remove gpm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'gpm' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
Thanks again. Using another editor is a no-go for me.
As vim works well via ssh, I don't care about a fix for now. After reading the linked bug report, I think it's just a matter of vim's configuration - I'll have a look into it as soon as I have [a lot of spare] time. ;-)
 
  • Like
Reactions: waltar