Author Topic: Xsession: warning: unable to write to /tmp  (Read 6496 times)

zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Xsession: warning: unable to write to /tmp
« on: January 30, 2011, 10:38:44 am »

hello there,

i am unable to log into the zentyal 2.02. i get this error Xsession: warning: unable to write to /tmp.
basically the zentyal has crashed.please help

cheers
zolf

zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #1 on: January 31, 2011, 06:58:46 am »

please help

zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #2 on: January 31, 2011, 11:34:14 am »

df -h returns

/dev/mapper/ubuntu-root   6.5G   6.5G   0     100%      /

what is this folder used for and why did it get filled

peso7

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #3 on: January 31, 2011, 10:01:00 pm »
Hi zolf

I know, it doesn't help but I'm going to have the same problem. My /dev/mapper/ubuntu-root is filling up slowly. It's only a matter of time until it's full and things won't work anylonger.

To everybody: What's going on here?

zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #4 on: February 01, 2011, 07:17:24 am »

this is very bad,specially when you have the machine in production environment. so every once in a while we have to reinstall zentyal and config the machine from new. very disappointed

zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #5 on: February 05, 2011, 07:08:25 am »

somebody please help to get over this issue

zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #6 on: February 07, 2011, 06:46:09 am »

please help.

i did the following

cd /var/log

rm -rf *

and then ran df,so now my /dev/mapper/ubuntu-home has changed from 100% to 63% of used space.but i dont get the zentyal interface to login,i get the terminal window to work with only.
please help

zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #7 on: February 09, 2011, 10:07:12 am »

please helppppp

peso7

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #8 on: February 09, 2011, 09:40:40 pm »
Hi zolf

That
Quote
cd /var/log
rm -rf *
was probabely not a very good idea. You lost all your log files.

But I'm "a bit confused" too, that this problem occurs at all and that no Zentyal staff helps.

peso7

zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #9 on: February 12, 2011, 07:57:02 am »

yes you were correct.

it is so weird issue with Zentyal. it is like a timebomb we are sitting on. i hope somebody cares to solve this issue we have.

cheers
Zolf


zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #10 on: February 13, 2011, 06:49:16 pm »

somebody please help to solve this issue.

jheinrichs79

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #11 on: February 15, 2011, 06:00:46 am »
I'm getting the same issue. Anyone find a work around? Any help from Zentyal?

zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #12 on: February 15, 2011, 06:27:10 am »

somebody please help,i am loosing faith in Zentyal.

Escorpiom

  • Zen Hero
  • *****
  • Posts: 897
  • Karma: +25/-1
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #13 on: February 15, 2011, 07:42:31 am »
I can't post a quick solution to the problem, but I can give some tips to prevent it.
My root was full a few days ago. It was mainly because of Squid, but logfiles also can cause the problem. My server did not start anymore.

If you are going to install Zentyall, DO NOT use the automated harddisk setup. You'll end up with a very small root (in my case 7GB) that fills up in no-time and the home gets all the space you'll likely never use.
One day your server will freeze, and at reboot it just won't start.
Zentyal is using lvm2 (Logical Volume Manager 2) for the automated hd setup.
If you see /dev/mapper/ it means that your setup uses the LVM2 scheme.

In that case what you can do is resize the root volume, that's where all the important stuff is.
Zentyal LVM2 setup only uses 3 volumes:
- root = all the important stuff
- swap = only used as a kind of swap memory, not for storage
- home = for user files and samba stuff
The /boot volume is NOT part of the LVM2 scheme, you can see it like /dev/sda1.
Don't be confused about hda and sda, it just IDE harddisk or SATA / SCSI harddisk.

Leave swap alone.
Check how much space is used for /home. You have to take some space from /home  and give it to /root.
You'll have to shrink /home, after that expand /root to use that free space.

Now the bad news:
1. You will have to learn the LVM2 partitioning scheme. Search on the web.
2. Resizing is done from the Ubuntu live CD WITHOUT mounting the volumes.
3. Each resize operation has two steps, resizing the volume AND the file system. If you do it wrong, you will LOOSE your /home volume and will have to recreate it (I screwed it).
4. Do NOT use Gparted. It doesn't support LVM2 yet.
5. Do not use the graphical interface "system-config-lvm" as it will wipe out the whole VG.

In some cases you might just start over all again and choose manual hd setup.
I find it a mayor flaw that Zentyal/Ubuntu automatic setup uses such a smal root.  

Some commands you can use from commandline:
df lists the filesystems and used/available space. Start here to see what is full.
pvdisplay lists the physical volume, you can see this as a partition
vgdisplay lists details about the volume group like name, allocated/available space. A volume group can hold one or more partitions, they can sit on different hd's.
lvdisplay lists the logical volumes inside the volume group. On a default install, /root, /swap and /home will be listed.

What can you do to avoid filling your /root?
1. Relocate the Squid cache. I had the cache set to 6GB while my /root was 7GB. Stupid but I learned.
2. Logfiles are being renamed first, then compressed. You might try and delete the gzipped log files, but Zentyal itself has an option to purge logs. Anyway, it has been recommended to rotate logs more aggressively.  

Should we better not use LVM2 partitioning scheme but the normal one instead?
No. I do think that LVM2, once mastered, will be way more easier to manage volumes. It has a learning curve but in the long run it makes adding hd's a snap. Imagine just adding a new harddisk to your system and extending your root volume to use that space?
 
I'm surprised that there is so little input from Zentyal staff on these kind of problems. Sometimes we need just a little guidance, it's hard enough already coming from Windows.

Cheers.
« Last Edit: February 15, 2011, 08:00:35 am by Escorpiom »
Marcus' Rule:
Blanks & capitals = avoid it and you'll avoid problems...

zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Xsession: warning: unable to write to /tmp
« Reply #14 on: February 15, 2011, 03:53:51 pm »

thanks a lot for your feedbacks. i am new to linux and i think i might find it difficult to setup LVM.....lets see what i can do.