Page MenuHomePhabricator

URGENT: unable to pull updated page - no more inodes free on intreccio
Closed, ResolvedPublic

Description

I'm trying to update the 5x1000 landing page using git.

But trying to update it, I get back this error:

root@intreccio:/var/www/cinquex1000/wmit-cinquepermille# git pull
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
error: unable to create temporary file: No space left on device
fatal: failed to write object
fatal: unpack-objects failed

BUT thereis left space on lessema

root@intreccio:/var/www/cinquex1000/wmit-cinquepermille# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.4G     0  3.4G   0% /dev
tmpfs           681M   73M  608M  11% /run
/dev/sda1        50G   41G  6.3G  87% /
tmpfs           3.4G     0  3.4G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           3.4G     0  3.4G   0% /sys/fs/cgroup
tmpfs           681M     0  681M   0% /run/user/1002

the problem is on inodes!

Filesystem      Inodes   IUsed IFree IUse% Mounted on
/dev/sda1      3276800 3276800     0  100% /

Details

Other Assignee
valerio.bozzolan

Event Timeline

stefano.cannillo renamed this task from URGENT: unable to pull updated page to URGENT: unable to pull updated page - no more inodes free on intreccio.
stefano.cannillo changed the task status from Open to In Progress.
stefano.cannillo assigned this task to valerio.bozzolan.
stefano.cannillo triaged this task as High priority.

What i've done:

  1. Random delete on /tmp
  2. apt-get clean

The problem is here:

/var/www/wmi/wordpress/wp-content/cache/object/

If possible let's disable "Object Cache" in W3C

(I see that you are removing stuff. Nice. Thanks)

Things to evaluate:

  • 1. disable "Object Cache" in W3C (?)
  • 2. a scheduler to drop old files there? (probably no: I'm not able to find filters older than 60 days there)
    • 2.1. but it may be useful for /var/www/wmi/wordpress/wp-content/cache/page_enhanced since it contains pages since 2016 (!)
  • 3. exclude that stuff from backups, so, a symlink to /var/<something> or similar

Also I don't know the difference between cache and _cache under wp-content 🤔

Solved

root@intreccio:/var/www/cinquex1000/wmit-cinquepermille# df -i
Filesystem      Inodes  IUsed   IFree IUse% Mounted on
udev            869181    298  868883    1% /dev
tmpfs           871323    476  870847    1% /run
/dev/sda1      3276800 351624 2925176   11% /
tmpfs           871323      1  871322    1% /dev/shm
tmpfs           871323      3  871320    1% /run/lock
tmpfs           871323     17  871306    1% /sys/fs/cgroup
tmpfs           871323     10  871313    1% /run/user/1002
tmpfs           871323     10  871313    1% /run/user/1001

W3 total cache was already disabled in WP plugins.
BUT there were a residual condifuration "WP_CACHE = enable" in wp-config.php

I commented the line.
I'll take a look tomorrow.

/var/www/wmi/wordpress/wp-content/cache/

is again full of small files.

solved by enabling again W3 total cache and disabling "Object Cache"