Re: SuSE 9.2 Login terminates immediately

From: Bernd Rieke (bernd_at_rhm.de)
Date: 02/17/05


Date: Thu, 17 Feb 2005 23:08:26 +0100

Daniel Delin schrieb:
> Hi!
>
> No solution, but I am seeing the same problem here.
> I am using Gridengine to submit jobs in a cluster, it sometimes fails
> because it canīt make a rsh connection. Also a "manual" rsh or rlogin
> connection like you describe show the same symptoms.
> No problem with Suse 9.0, 9.1 and SLES 9.
>
> Any tips would be useful.
>
> regards
> Daniel
>
Hi Daniel,

meanwhile I debugged the program login. As a result of this I posted
a thread to the linux=kernel mailing list (see below) Had no answer
til now. I found two other postings from poeple having same problems.
There seems to be a bigger problem behind this behaviour. The device
file, in our case a /dev/pts/nn disappers after a cleanup call to the
kernel function vhangup(), so login fails in reopening it.

We have a similar problem when we are hot replacing a SCSI disk. Then
at one point of the replacement procedur the device file, lets assume
/dev/sda disappers and never comes back. It's something in kernel 2.6.x
related to the devicefile handling. I'm not clear at this point, I have
to learn more about this handling.

Better to use ssh but some old UNIXes don't have it. And telnet, in
general let's say remote login, should work!

Bernd
--------------- to linux-kernel@vger.kernel.org ------------
Hi all, hope I'm not of topic here but had no response elsewhere...

we observe a problem with login starting with kernel 2.6. Actually
the problem still exists in 2.6.11-rc3-bk3-20050206171922-bigsmp
which we loaded from SuSE. We never saw this problem before and
we used nearly every release in the past. The problem:

When we try to login to a remote machine with telnet or rsh we
sometimes fall back immediately with the message 'connection closed'.
When we try again the login mostly succeeds. The ratio of bad/good
attempts over all is 1/10. It doesn't depend on the state of the
machines e.g. type if hardware or load. It happens on laptops as
well as smp-machines. In messages we see:

  "login[xxx]: FATAL: can't reopen tty: No such file or directory"

We debugged login and tracked the problem down to the fopen of
/dev/pts/nn in function opentty() just after a call to the kernel
function vhangup().

The questions:

    - why does /dev/pts/nn disappear (and never comes back)?
    - is this a kernel bug? is there something wrong in vhangup()?
    - is anybody else aware of this problem?
      (there's only one additional posting from Yehavi Bourvine)
    - is there a solution (pending)?

Thanks in advance for any hint, we are pretty losts...
-----------------------------------------------------------------
>
> Bernd Rieke <bernd@rhm.de> wrote in message news:<cuqmbi$jci$1@euler.space.net>...
>
>>Hi all,
>>
>>when we have to work on a remote machine we make the connection
>>for some historical reasons with rsh or telnet (we are comming
>>from old HPUX machines). Starting with SuSE 9.2 we sometimes have
>>a strange behaviour. The login takes place but immediately falls
>>back displaying the message 'connection closed'. Then when we
>>try again the login succeeds in most cases. The ration is 1 to 10,
>>one failure on ten successes. We trapped the problem down and saw
>>that the startup scripts (/etc/profile) are not called, the problem
>>comes out of program login or before. It doesn't depend on the load
>>of the remote machine. It takes place independently of the state of
>>the remote machine.
>>
>>It's quiet dangerious because people think they are remote but
>>still stay on the outgoing machine. Anybody observed this
>>problem, too?
>>
>>Here is what it looks:
>>
>> # rsh node456
>> Connection Closed
>> # rsh node456
>> Last login: Sat Feb......
>> Have a lot of fun
>> fritz@node456:~>
>>
>>Thanks in advance for any hint.
>>B. Rieke



Relevant Pages

  • XDMCP Capable Login Managers
    ... Other than GDM and KDM, are there any other graphical login managers ... that allow a client to login to a remote machine via XDMCP? ... seen any option on the login screen to connect to a remote machine. ...
    (Debian-User)
  • Re: How to specify credientials when publishing to a remote URL?
    ... and navigating to the folder on the remote machine. ... I've installed the FP Extentions on the webserver, ... The webserver has no relation to our own network so my local login is ...
    (microsoft.public.dotnet.framework.webservices)
  • HELP Cyrus Imap
    ... cannot retrieve my email using a remote machine. ... Cyrus-imap is running, but ... I can't login. ...
    (Fedora)
  • Re: open remote terminal
    ... remote machine using rsh or ssh. ... This could be done using 'xterm -e ssh ... but after the login I would like to jump to a given directory. ...
    (comp.lang.python)
  • Re: New Kernel Image
    ... is causing problems with gdm. ... the kernel is running, but gdm has crashed at the point where a user ... It is possible to login to this machine, from another desktop, using ... ainit: Memory: Failed to release Semaphore ...
    (Fedora)