Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 21545  / 2 Years ago, sun, july 31, 2022, 1:16:48

I was hoping someone could help me understand what happened with my Ubuntu server.



I had an issue with it acting odd, I won't go into detail but I restarted the server with this command:



shutdown -r now



When it came back up, I attempted to use screen and was given this error:



No more PTYs.
Sorry, could not find a PTY.
[screen is terminating]



I found this website which told me this:



http://en.positon.org/post/%5BScreen%5D-No-more-PTYs-Sorry-could-not-find-a-PTY



You have to change /dev/ptmx file permissions:



# ls -l /dev/ptmx 
crw-r--r-- 1 root root 5, 2 nov 18 23:28 /dev/ptmx
# chmod a+w /dev/ptmx
# ls -l /dev/ptmx
crw-rw-rw- 1 root root 5, 2 nov 18 23:34 /dev/ptmx


This didn't resolve my issue since I was already at:



crw-rw-rw- 1 root root 5, 2 nov 18 23:34 /dev/ptmx


Same problem.



So I found this post:



https://superuser.com/questions/302235/no-more-ptys-when-trying-to-start-screen



So, I did what the answer suggested, which was:



# mount devpts /dev/pts -t devpts -o mode=620


And it worked fine.



Anyone know what happened, why, and what the devpts did to fix it? I'm completely lost on this one.



Thank you!


More From » server

 Answers
4

As far as I can tell, /dev/pts needs to be mounted for screen to work.


[#39680] Monday, August 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fishutt

Total Points: 391
Total Questions: 137
Total Answers: 106

Location: Mexico
Member since Tue, Aug 11, 2020
4 Years ago
;