SSH results in "There was an error creating the child process for this terminal"

Bug #332517 reported by Piotr Szczepanik
Affects Status Importance Assigned to Milestone
GNOME Terminal

Bug Description

Jaunty alpha with Do and plugins

When I try to connect to ssh servers using mentioned above version of Gnome Do it opens terminal, but terminal shows a message "There was an error creating the child process for this terminal" and stays blank.

It was working properly in Intrepid.

Revision history for this message
MichaelM (michael-the-drummer) wrote :

I have a similar problem after doing an upgrade from 8.10 to 9.04 beta.

Attempting to start gnome-terminal results in an error message saying "There was an error creating the child process for this terminal". And I'm left with an unusable window where my bash shell should be.

SSH'ing into the box results in an error:

PTY allocation request failed on channel 0

Dropping into a console and attempting to run an xterm results in a similar problem:

michael@desktop:~$ export DISPLAY=:0.0
michael@desktop:~$ xterm
xterm: Error 32, errno 2: No such file or directory
Readon: get_pty: not enough ptys

or starting a gnome-terminal from the console:

michael@desktop:~$ gnome-terminal
Failed to contact the GConf daemon; exiting.

This is the second machine I upgraded to the beta. My laptop (the first machine) does not have this problem, so I am not sure what is different that would cause this problem to occur now.

Revision history for this message
MichaelM (michael-the-drummer) wrote :

This is not a Gnome Do Plugins issue, it is a problem with ptys in Ubuntu. I have marked this as affecting gnome-terminal (which it does), but I believe it is a bigger issue than that. I am not sure what project this should be set to, but gnome-terminal is a better option than Gnome Do Plugins

Revision history for this message
MichaelM (michael-the-drummer) wrote :

I thought this may have been caused by the maximum number of ptys set incorrectly, however:

$michael@desktop:~$ cat /proc/sys/kernel/pty/max

$michael@desktop:~$ cat /proc/sys/kernel/pty/nr

So, 4096 available, with 3 in use, and xterm complaining that there are not enough. I'm not sure where to go from here.

Revision history for this message
MichaelM (michael-the-drummer) wrote :

OK, I have figured this out.

It is caused by the fact that /dev/pts is not mounted at boot. I can mount it with the following command:

sudo mount -t devpts -o gid=5,mode=620 devpts /dev/pts

However, I will either need to do this at each boot, or add it to fstab. My laptop doesn't have an entry in fstab, which leads me to think this is not the correct solution. I am assuming that udev should be mounting /dev/pts. Can anyone direct me to the rule that is responsible for this?

Revision history for this message
Piotr Szczepanik (piter75) wrote :

what version of gnome-do-plugins have you got installed?

In the "bug" is fixed and SSH plugin works like a charm. And devpts is not mounted anyway.

Even with I have managed to find a workaround for this by changing "/desktop/gnome/applications/terminal/exec_arg" GConf's value to "-e" instead of "-x" I've had before.

I think we can close this bug.

Revision history for this message
Andreas Moog (ampelbein) wrote :

Thanks for reporting, I think this is a dupe of 321927

Changed in gnome-terminal:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers