Konsole hangs when opening a new window.

Hi,

I just updated my openSUSE laptop and I noticed that, after a while, I cannot open new terminals either with Yakuake or Konsole. Both just hang forever. I also notice that some of my python scripts that return the following error:

“OSError: out of pty devices”

However the max pty is:
> cat /proc/sys/kernel/pty/max
4096

and the current running:
> cat /proc/sys/kernel/pty/nr
4

I do not understand what is going on. Here is some of my system info:

> cat /etc/SuSE-release
openSUSE 12.3 (x86_64)
VERSION = 12.3
CODENAME = Dartmouth
KDE Version: 4.10.5 "release 1:

Thanks,

-Filipe

ps: I just tried to open a Konsole windows from a previously open Konsole and here is the error message:

konsole(26076)/kdecore (KPty/K3Process) KPty::open: Can’t open a pseudo teletype
konsole(26076) Konsole::Pty::flowControlEnabled: Unable to get flow control status, terminal not connected.

Try Ctrl-Alt-F1 and see if that gets a terminal session. Use Ctrl-Alt-F7 to get back. I would like to see these terminal commands posted here:


df

free

cat /etc/fstab

Thank You,

Thanks for your help.

Here are the results from those commands:

> df
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 2.9G 8.0K 2.9G 1% /dev
tmpfs tmpfs 2.9G 400K 2.9G 1% /dev/shm
tmpfs tmpfs 2.9G 7.1M 2.9G 1% /run
/dev/sda6 ext4 20G 15G 4.1G 79% /
tmpfs tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup
tmpfs tmpfs 2.9G 7.1M 2.9G 1% /var/lock
tmpfs tmpfs 2.9G 7.1M 2.9G 1% /var/run
/dev/sda7 ext4 406G 397G 9.1G 98% /home

> free
total used free shared buffers cached
Mem: 6028032 5489156 538876 0 342924 2664940
-/+ buffers/cache: 2481292 3546740
Swap: 2107388 2528 2104860

> cat /etc/fstab
/dev/disk/by-id/ata-TOSHIBA_MK7575GSX_51KNC05NT-part5 swap swap defaults 0 0
/dev/disk/by-id/ata-TOSHIBA_MK7575GSX_51KNC05NT-part6 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-TOSHIBA_MK7575GSX_51KNC05NT-part7 /home ext4 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

The problem does not happen right away, sometimes it takes a while (after I opened a few terminals) to happen. However, when it did happened I was able to “Ctrl-Alt-F1” and open a new terminal session without any problem.

I did read about this bug:

https://bugzilla.redhat.com/show_bug.cgi?id=128154

but I do not think it is related to my problem since it is an old bug.

Thanks again,

-Filipe

> df
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 2.9G 8.0K 2.9G 1% /dev
tmpfs tmpfs 2.9G 400K 2.9G 1% /dev/shm
tmpfs tmpfs 2.9G 7.1M 2.9G 1% /run
/dev/sda6 ext4 20G 15G 4.1G 79% /
tmpfs tmpfs 2.9G 0 2.9G 0% /sys/fs/cgroup
tmpfs tmpfs 2.9G 7.1M 2.9G 1% /var/lock
tmpfs tmpfs 2.9G 7.1M 2.9G 1% /var/run
/dev/sda7 ext4 406G 397G 9.1G 98% /home


> free
total used free shared buffers cached
Mem: 6028032 5489156 538876 0 342924 2664940
-/+ buffers/cache: 2481292 3546740
Swap: 2107388 2528 2104860


> cat /etc/fstab
/dev/disk/by-id/ata-TOSHIBA_MK7575GSX_51KNC05NT-part5 swap swap defaults 0 0
/dev/disk/by-id/ata-TOSHIBA_MK7575GSX_51KNC05NT-part6 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-TOSHIBA_MK7575GSX_51KNC05NT-part7 /home ext4 acl,user_xattr 1 2
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

In the future, lets use code # tags for such terminal output. Once the format is lost, it does not return though.

Off hand, your /home partition is running out of room and you are starting to use swap space which means you are running out of memory. I would delete some personnel files from /home reboot and post the same results again, in a code # tag.

Thank You,

Thanks, here are the result of same commands:

I did freed some space, but the weird things is that since I used the CTRL+ALT+F1, the problem stopped. Even before deleting some files.


> free
             total       used       free     shared    buffers     cached
Mem:       6028032    5895192     132840          0     535364    2288232
-/+ buffers/cache:    3071596    2956436
Swap:      2107388       2540    2104848


> df
Filesystem     Type      Size  Used Avail Use% Mounted on
devtmpfs       devtmpfs  2.9G   16K  2.9G   1% /dev
tmpfs          tmpfs     2.9G  3.4M  2.9G   1% /dev/shm
tmpfs          tmpfs     2.9G  7.3M  2.9G   1% /run
/dev/sda6      ext4       20G   15G  4.1G  79% /
tmpfs          tmpfs     2.9G     0  2.9G   0% /sys/fs/cgroup
tmpfs          tmpfs     2.9G  7.3M  2.9G   1% /var/lock
tmpfs          tmpfs     2.9G  7.3M  2.9G   1% /var/run
/dev/sda7      ext4      406G  363G   43G  90% /home


Thanks again for the help.

-Filipe

Spoke too soon, the problem persists, it just took longer to manifest itself. I’m not sure what is triggering it, but after it happens for the first time it keeps happening “faster” after a reboot.

-Filipe

For a normal user the system will stop allocating disk space when it gets about 90% full. You are there.

Is there a way to configure that limit? I have been at it for months, but the problem just start last week…

I’ll try to free more space to see what happens.

Thanks,

-Filipe.

When you look at some values, they are padded for root and you may not be there yet as you think. No matter what, its time to remove something from /home.

Thank You,

I freed more space and so far so good. What puzzles me is that I have being on the “limit” with my disc for a while, but the problem just manifest itself recently. Anyways, freeing space was something I had to.

Thanks for all the help.

-Filipe

Happy to hear of your success. Running out of disk space can happen when you are given so many install options and less time to understand how it ll gets to be used.

Thank You,