mellon85 / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

login: FATAL: can't reopen tty: No such file or directory #222

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run shellinabox -t
2. browse http://localhost:4200/

What is the expected output? What do you see instead?
Most of the time I just get a Session closed, but about 1 in 5 times i 
acctually get to the login prompt.

What version of the product are you using? On what operating system?
2.14 on archlinux.

Please provide any additional information below.
Feb 21 23:44:33 define login[19710]: FATAL: can't reopen tty: No such file or 
directory
Feb 21 23:44:35 define login[19711]: FATAL: can't reopen tty: No such file or 
directory
Feb 21 23:44:35 define login[19712]: FATAL: can't reopen tty: No such file or 
directory
Feb 21 23:44:36 define login[19713]: FATAL: can't reopen tty: Input/output error
Feb 21 23:44:36 define login[19714]: FATAL: can't reopen tty: Input/output error
Feb 21 23:44:37 define login[19716]: FATAL: can't reopen tty: No such file or 
directory
Feb 21 23:44:38 define login[19718]: FATAL: can't reopen tty: Input/output error
Feb 21 23:44:39 define login[19719]: FATAL: can't reopen tty: No such file or 
directory

Original issue reported on code.google.com by mikael.m...@gmail.com on 21 Feb 2013 at 10:53

GoogleCodeExporter commented 8 years ago
I was able to recreate this on my arch desktop. Perhaps this is caused by the 
arch /bin/login binary which changes permissions on /dev/pts/[session] 
immediately upon launch? The Debian version does not change the permissions 
until after the user logs in. When I change the login program from "/bin/login" 
to "/bin/bash" the shell pops up every time and I never see this error.

Original comment by Sean....@gmail.com on 5 Mar 2013 at 3:17

GoogleCodeExporter commented 8 years ago
I'm seeing this as well using Fedora 20.  Anyone know how to resolve this?

Original comment by bryan.n...@gmail.com on 28 Jan 2015 at 7:07