Out of memory -- can only log in on root?

Hi – total newbie here.

I get a “mkdtemp: private socket dir: no space left on drive” error when I try to log in as any user but root.

So I figure that this is pretty straightforward. I’ve run out of memory and need to clean out stuff. If I type in “df” under root, I get this:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 9850384 9472456 0 100% /
udev 1016840 152 1016688 1% /dev
/dev/sda3 63242208 17561736 42467876 30% /home

But when I delete stuff, nothing changes. I have cleaned out about over 2 GB of memory in the user account where I took up memory, to no effect. What could I be doing wrong?

(Additionally, if I click on “Computer” and look at status (while root), it says:

Hard Drive
43G Free / 69G Total

Any thoughts? This all happened when I tried to store several million fields into a mysql database last night.

/dev/sda2 9850384 9472456 0 100% /

That suggests its in / where were you storing the mysql data in / or under /home?

If the first then you have to find the space on the / not from user acc

/tmp is a good place to start.

forexjunkmailgoeshere wrote:
> Hi – total newbie here.
>
> I get a “mkdtemp: private socket dir: no space left on drive” error
> when I try to log in as any user but root.
>
> So I figure that this is pretty straightforward. I’ve run out of
> memory and need to clean out stuff. If I type in “df” under root, I get
> this:
>
>> Filesystem 1K-blocks Used Available Use% Mounted on
>> /dev/sda2 9850384 9472456 0 100% /
>> udev 1016840 152 1016688 1% /dev
>> /dev/sda3 63242208 17561736 42467876 30% /home
>>
>
> But when I delete stuff, nothing changes. I have cleaned out about
> over 2 GB of memory in the user account where I took up memory, to no
> effect. What could I be doing wrong?
>
> (Additionally, if I click on “Computer” and look at status (while
> root), it says:
>
>> Hard Drive
>> 43G Free / 69G Total
>>
>
> Any thoughts? This all happened when I tried to store several million
> fields into a mysql database last night.

The user stuff is stored on /home, which has over 42 GB free. The partition that
is full is /. You can remove all the stuff in /tmp, and the old logs in
/var/log, but you will likely have to move that mysql database to /home if at
all possible.

FWIW, 10 GB is probably a little small for /. I set mine at 20.

Cleaning out /tmp really helped. Thanks so much!

After I got back in, I cleaned out the mysql database.

10 GB for / is small? How can I change it?

Depends on what you are doing with the system.

Perhaps you should change something else:

Clear Temp Files at Boot - openSUSE Forums