LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Xsession:warning:unable to write to /tmp;X session may exit with an error (https://www.linuxquestions.org/questions/linux-desktop-74/xsession-warning-unable-to-write-to-tmp%3Bx-session-may-exit-with-an-error-552620/)

gabsik 05-09-2007 10:21 AM

Xsession:warning:unable to write to /tmp;X session may exit with an error
 
I have a debian etch and X.org running .As user startx gives me this error
Code:

Xsession:warning:unable to write to /tmp;X session may exit with an error
This is a desktop error it isn't from shell xorg starts a bit and after i pressed "okey" it goes back to shell.Permissions on "/tmp" are
Code:

drwxrwxrwx  9 root root  4096 2007-05-09 17:04 tmp
This is all i have mounted :
Code:

/dev/hdb5 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/hdb7 on /home type ext3 (rw)
/dev/hdb6 on /usr type ext3 (rw)
/dev/hdb8 on /var type ext3 (rw)

and that's my /etc/fstab :
Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
/dev/hdb5      /              ext3    defaults,errors=remount-ro 0      1
/dev/hdb7      /home          ext3    defaults        0      2
/dev/hdb6      /usr            ext3    defaults        0      2
/dev/hdb8      /var            ext3    defaults        0      2
#/dev/hdb9      /tmp            ext3    defaults        0      2
/dev/hdb10      none            swap    sw              0      0
/dev/hdd        /media/cdrom0  udf,iso9660 user,noauto    0      0
/dev/hdc        /media/cdrom1  udf,iso9660 user,noauto    0      0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0      0

The desktop starts as root any idea ????

Gethyn 05-09-2007 10:42 AM

Why is /tmp commented out in your fstab? Try uncommenting it (the line that begins "#/dev/hdb9", remove the # symbol).

gabsik 05-09-2007 02:57 PM

During install partitioning i haven't made a partition for /tmp , that /dev/hdb9 is an encrypted partition that i didn't configured yet , /tmp is just a directory on the /var partition ... don't mind about that !!!

jiml8 05-09-2007 05:09 PM

If the partition is full you'll get that error. If that is the case, you are sitting on the verge of having a really hosed up system...better look at it.

Gethyn 05-10-2007 06:14 AM

Fwiw, the permissions on /tmp should be drwxrwxrwt, not drwxrwxrwx. The 't' means the "Sticky bit" is set - see this Wikipedia page for info on it.

jiml8 makes a good suggestion though, it would be a good idea to check that you aren't running out of space (e.g. with df -h).

gabsik 05-11-2007 06:34 AM

Quote:

root@www:/root# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hdb5 3023576 250272 2619716 9% /
tmpfs 128476 0 128476 0% /lib/init/rw
udev 10240 72 10168 1% /dev
tmpfs 128476 0 128476 0% /dev/shm
/dev/hdb7 15118600 3234108 11116500 23% /home
/dev/hdb6 4031656 1989316 1837544 52% /usr
/dev/hdb8 8567296 856496 7275600 11% /var
No! i'm not running out of space !
For permissions on "/tmp" i have tried both with without sticky bit set and desktop doesn't start ....

gabsik 05-14-2007 05:32 PM

Quote:

drwxrwxrwt 9 root root 4096 2007-05-15 00:24 tmp
startx as user doesn't work
Quote:

drwsrwsrwt 9 root root 4096 2007-05-15 00:25 tmp
Quote:

root@www:~# di
Filesystem Mount Megs Used Avail %Used fs Type
/dev/hdb5 / 2952.7 331.4 2471.3 16% ext3
//192.168.1.3/GABR /SMBfs 97838.0 94430.0 3408.0 97% smbfs
udev /dev 10.0 0.1 9.9 1% tmpfs
tmpfs /dev/shm 125.5 0.0 125.5 0% tmpfs
/dev/hdb7 /home 14764.3 3162.3 10852.0 26% ext3
tmpfs /lib/init/rw 125.5 0.0 125.5 0% tmpfs
/dev/hdb9 /tmp 7874.4 145.7 7328.7 7% ext3
/dev/hdb6 /usr 3937.2 2017.4 1719.8 56% ext3
/dev/hdb8 /var 8366.5 883.4 7058.1 16% ext3
my /etc/fstab has default options ...
my partition scheme is:
Quote:

root@www:~# fdisk -l

Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 4998 40146403+ f W95 Ext'd (LBA)
/dev/hdb5 1 383 3071817 83 Linux
/dev/hdb6 383 893 4095976+ 83 Linux
/dev/hdb7 893 2805 15359872+ 83 Linux
/dev/hdb8 2805 3889 8704048+ 83 Linux
/dev/hdb9 3889 4909 8191984+ 83 Linux
/dev/hdb10 4909 4998 722200+ 82 Linux swap / Solaris
... it's bad time help !!!

gabsik 05-14-2007 05:34 PM

Quote:

drwxrwxrwt 9 root root 4096 2007-05-15 00:24 tmp
startx as user doesn't work
Quote:

drwsrwsrwt 9 root root 4096 2007-05-15 00:25 tmp
Quote:

root@www:~# di
Filesystem Mount Megs Used Avail %Used fs Type
/dev/hdb5 / 2952.7 331.4 2471.3 16% ext3
//192.168.1.3/GABR /SMBfs 97838.0 94430.0 3408.0 97% smbfs
udev /dev 10.0 0.1 9.9 1% tmpfs
tmpfs /dev/shm 125.5 0.0 125.5 0% tmpfs
/dev/hdb7 /home 14764.3 3162.3 10852.0 26% ext3
tmpfs /lib/init/rw 125.5 0.0 125.5 0% tmpfs
/dev/hdb9 /tmp 7874.4 145.7 7328.7 7% ext3
/dev/hdb6 /usr 3937.2 2017.4 1719.8 56% ext3
/dev/hdb8 /var 8366.5 883.4 7058.1 16% ext3
my /etc/fstab has default options ...
my partition scheme is:
Quote:

root@www:~# fdisk -l

Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 4998 40146403+ f W95 Ext'd (LBA)
/dev/hdb5 1 383 3071817 83 Linux
/dev/hdb6 383 893 4095976+ 83 Linux
/dev/hdb7 893 2805 15359872+ 83 Linux
/dev/hdb8 2805 3889 8704048+ 83 Linux
/dev/hdb9 3889 4909 8191984+ 83 Linux
/dev/hdb10 4909 4998 722200+ 82 Linux swap / Solaris
... it's bad time help !!!

Gethyn 05-15-2007 12:10 PM

Sorry for not replying, I'm afraid I really don't know what's causing this problem. You could try looking in the X log after a failed startx attempt, to see if there's any more information there. It's probably at /var/log/Xorg.0.log. Look for error lines beginning (EE).

You could also try reconfiguring X. On Ubuntu (Debian derivative) the command for this is 'dkpg-reconfigure xserver-xorg', I guess it's similar in Debian but I don't know for sure as I've never used it.

gabsik 05-31-2007 09:51 PM

Permissions on /tmp are properly set as they are on a newly installed debian:
Quote:

drwxrwxrwt 5 root root 4096 2007-06-01 03:02 tmp
and these are xorg's logs :
Quote:

AUDIT: Fri Jun 1 04:31:39 2007: 6409 X: client 1 rejected from local host
FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.
The desktop starts without the warning message and stays grey for 1 minute and after it crashes the debugging message on the terminal is:
Quote:

AUDIT: Fri Jun 1 04:31:39 2007: 6409 X: client 1 rejected from local host
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
giving up.
xinit: unable to connect to X server
FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.
Heeeeeeeeeeeeeeelp !!!


All times are GMT -5. The time now is 08:12 AM.