SSH - -bash: cannot create temp file for here-document:
I'm having a problem with my SSH server where after a few days on it becomes unable to perform TAB-completion. It still accepts connections and allows me to do anything except use the TAB-completion. So, every time I press TAB to complete a file name or path it fails with the message "-bash: cannot create temp file for here-document: No space left on device". My client is PuTTY in Windows.
I executed "df -h" with the following results:
Filesystem Size Used Avail Use% Mounted on
rootfs 15G 2.9G 11G 21% /
/dev/root 15G 2.9G 11G 21% /
tmpfs 19M 216K 19M 2% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 37M 37M 0 100% /tmp
tmpfs 10M 0 10M 0% /dev
tmpfs 37M 4.0K 37M 1% /run/shm
/dev/mmcblk0p1 56M 34M 23M 61% /boot
/dev/sda1 459G 121G 315G 28% /media/RPIDISK
So it seems “tempfs” at “/tmp” is full. But why? Who created it? And why is it filling up? Rebooting empties it, but I want to be able to run the PI for at least a month without rebooting it.
pi@raspberrypi /media/RPIDISK/app $ ls /tmp
pi@raspberrypi /media/RPIDISK/app $ ls /tmp/ssh-pHfXcEjtkFzS
Guessing that "agent.1588" might relate to PID 1588:
pi@raspberrypi /media/RPIDISK/app $ ps auxww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
pi 1588 0.0 0.3 12752 664 ? Ssl 04:17 0:00 /usr/bin/lxsession -s LXDE -e LXDE
Any ideas on how I can solve this? I thought of increasing the size of the “/tmp” (to last at least a month) but I don’t know where it is being mounted (it is not in “fstab”).