Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#679 closed Bug/Something is broken (fixed)

stallman out of disk space on root partition

Reported by: Jamie McClelland Owned by: Jamie McClelland
Priority: Urgent Component: Tech
Keywords: stallman.mayfirst.org filesystemfull Cc:
Sensitive: no

Description

This came in via email:

Subject: error in webmail

Warning: file_put_contents() [function.file-put-contents]: Only 0 of
6461552 bytes written, possibly out of free disk space in
/usr/local/share/horde-live/lib/Horde/Cache/file.php on line 127

Change History (2)

comment:1 Changed 11 years ago by Jamie McClelland

Resolution: fixed
Status: newclosed

Looks like stallman is out of space on the root partition:

df shows:

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1              1032088    973844      5816 100% /
tmpfs                   384072         0    384072   0% /lib/init/rw
udev                     10240        32     10208   1% /dev
/dev/mapper/crypt_var
                       5160060   1020480   3877464  21% /var
/dev/sda4              3096336    731904   2207148  25% /usr

The culprit seems to be the tmp directory, which is full of horde generated files with names like cache_ca1edf7ba3d6fc5fd6bb75bc3513f3ad.

I deleted all the matching files older than 2 days with:

find . -name 'cache_*' -mtime +2 -exec rm '{}' \;

Then, I looked in the horde configuration.

We had the temp directory set with:

$conf['tmpdir'] = '/var/lib/horde-live'

And the cache directory set with:

$conf['cache']['params']['dir'] = Horde::getTempDir();

I would have thought that would mean that the tmp directory is used, but apparently not. I just manually set the cache directory to be the same as the temp directory, and now the cache files are being created under /var.

I also put the find command in a daily cron job to avoid the build up of cache files.

comment:2 Changed 11 years ago by Daniel Kahn Gillmor

Keywords: stallman.mayfirst.org filesystemfull added

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.