LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Your session only lasted less than 10 seconds. (https://www.linuxquestions.org/questions/linux-newbie-8/your-session-only-lasted-less-than-10-seconds-636963/)

Atif Khan 04-22-2008 02:06 AM

Your session only lasted less than 10 seconds.
 
hi,

this problem is occurring at times when i try to login to server
with root user or another user its giving me the message

"Your session only lasted less than 10 seconds. If you have not logged out yourself, this could mean there is some installation problem or that you may be out of diskspace. Try logging in with one of the failsafe sessions to see if you can fix this problem."

i connected through SSH to the server and checked the space in /tmp its 876m free.

Filesystem Size Used Avail Use% Mounted on
/dev/sda7 2.9G 499M 2.3G 18% /
/dev/sda1 494M 34M 435M 8% /boot
none 2.0G 0 2.0G 0% /dev/shm
/dev/sda3 94G 29G 61G 32% /home
/dev/sda9 981M 18M 914M 2% /opt
/dev/sda10 258G 132G 114G 54% /oraapps
/dev/sda8 2.0G 993M 876M 54% /tmp
/dev/sda2 185G 78G 98G 45% /usr
/dev/sda6 2.9G 300M 2.5G 11% /var

i cant figure out whats the reason for this...!!
will be thankful if any1 can give solution for this.

lomix 04-22-2008 07:42 AM

try failsafe login
 
hello,

"Try logging in with one of the failsafe sessions to see if you can fix this problem." --> did you already tried that?
(if youre using a graphical login manager there should be an option "failsafe")
if yes, what happened then?

there could be a mistake in the configuration, i had this problem when i tried to login without having any home directory.
check your home direcory on the server ( echo ~ or something like that when being logged in trough ssh)

maybe it could be useful to know what software you're using.
HOW exactly you tried to login on that server?
it's gdm that's printing that message, right?
did you used something like gnome?

Atif Khan 04-22-2008 10:33 AM

hi,

yes there is a failsafe option.....how can i fix it after logging
into the failsafe session.??

I did
[root@ebs ~]# echo ~
/root -------> the home directory is correct.

Its not the gdm thats printing the error.the only error is

"Your session only lasted less than 10 seconds. If you have not logged out yourself, this could mean there is some installation problem or that you may be out of diskspace. Try logging in with one of the failsafe sessions to see if you can fix this problem."

gnome,kde,system default, every session is giving the same error..!!

plz let me know how can it be fixed by logging in the failsafe session.

thanks.

Atif Khan 04-22-2008 11:42 PM

i did df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda7 384000 16060 367940 5% /
/dev/sda1 130560 72 130488 1% /boot
none 218164 1 218163 1% /dev/shm
/dev/sda3 12451840 7163 12444677 1% /home
/dev/sda9 127744 11 127733 1% /opt
/dev/sda10 34291712 853649 33438063 3% /oraapps
/dev/sda8 256512 256512 0 100% /tmp
/dev/sda2 24526848 305471 24221377 2% /usr
/dev/sda6 384000 7361 376639 2% /var

the culprit is /tmp partition.
what are the files i can remove from the /tmp partiotn..??
Any thoughts.

Atif Khan 04-23-2008 03:35 AM

i ran out of inodes even there is plenty of disk space in /tmp.

df -i shows /tmp 100% used
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda7 384000 16060 367940 5% /
/dev/sda1 130560 72 130488 1% /boot
none 218164 1 218163 1% /dev/shm
/dev/sda3 12451840 7163 12444677 1% /home
/dev/sda9 127744 11 127733 1% /opt
/dev/sda10 34291712 853649 33438063 3% /oraapps
/dev/sda8 256512 256512 0 100% /tmp
/dev/sda2 24526848 305471 24221377 2% /usr
/dev/sda6 384000 7361 376639 2% /var

df -h shows /tmp 54% used
[root@ebs ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 2.9G 499M 2.3G 18% /
/dev/sda1 494M 34M 435M 8% /boot
none 2.0G 0 2.0G 0% /dev/shm
/dev/sda3 94G 29G 61G 32% /home
/dev/sda9 981M 18M 914M 2% /opt
/dev/sda10 258G 132G 114G 54% /oraapps
/dev/sda8 2.0G 993M 876M 54% /tmp
/dev/sda2 185G 78G 98G 45% /usr
/dev/sda6 2.9G 302M 2.5G 11% /var

If all these inodes become used, a file system cannot store any more files even though there may be free disk space.
whats the fix..

lomix 04-23-2008 06:53 AM

clean tmp
 
how a 2GB partition can run out of inodes?
never heard of that. must have done somthing unusual...

watched BIG zips on th fly (extract to /tmp) or something like tat

This could help you:
--> see http://www.linuxquestions.org/questi...003#post459003

delete?
if your have permissions to, delete everything while not running any bif application. I do this every time i log out, that won't hurt your system normally.

Atif Khan 04-23-2008 07:20 AM

thanks lonix for ur suggetions

i found the /tmp dir is full with files having format list_wxyz.(wxyz is no.)

[oracle@ebs tmp]$ls -al
-rw-rw-rw- 1 root root 83 Apr 21 13:05 list_347331
-rw-rw-rw- 1 root root 233 Apr 21 13:05 list_347332
-rw-rw-rw- 1 root root 4567 Apr 21 13:05 list_347333 so on...

i checked all these files are having paths of Oracle files which it is acessing.
[oracle@ebs tmp]$ cat /tmp/list_347333
/oraapps/proddb/9.2.0/......
/oraapps/prodappl/eam/11.5.0/...

I am having Oracle EBS 11i.
can i proceed with the deletion.!!

lomix 04-25-2008 12:46 AM

hmmm...
 
hmm...
i dont know oracle.
but a program wouldnt be a good program if it needs files in /tmp more than 1 session. Maybe it expects old files to be deleted. but i dont know.

this coputer is shutting down sometimes? if not, /tmp-clean scripts wont run.... could be the reason.


All times are GMT -5. The time now is 02:53 PM.