Cannot allocate tty, pty and /dev/ issues Print

  • 1

What causes this?
--------------------

OpenVZ is incompatible with the Udevd daemon which populates the "special files" in /dev/. If you install udev either on purpose or by accident as part of an upgrade, you might be unable to SSH in or have a number of strange issues.

How can I fix this?
---------------------

Login to your VPS via console access, and run the following to recreate null, random, tty and pty devices:

/bin/rm -rf /dev/null
/bin/rm -rf /dev/random
/bin/rm -rf /dev/tty*
/bin/rm -rf /dev/pty*
/bin/mknod /dev/null c 1 3
/bin/mknod /dev/random c 1 8
/sbin/MAKEDEV tty
/sbin/MAKEDEV pty

If this still hasn't fixed your issue, please open a support ticket.


Was this answer helpful?

« Back

Powered by WHMCompleteSolution