Skip to content

$HOME/.symfony5/tmp is 18 GB, contains 4.272.171 files (folders?) and it's depleting the ext4 filesystem inodes (Linux) #553

@ZaneCEO

Description

@ZaneCEO

I'm running Symfony CLI version 5.10.4 (2024-10-11T14:05:11Z - stable) on a pre-production env. I use it to run custom Symfony 6.3.12 commands and for composer.

The server runs Ubuntu 22.04.5 LTS, the filesystem is ext4 and the site is on NGINX and PHP-FPM, so the issue is not related to #383.

Today I got a "low inodes" alert, and it is due to the folder $HOME/.symfony5/tmp: it contains 4.272.171 files, for a total of 18 GB (the huge number of files is more important than the total size). ls -la takes a lot of time to compute, but then report something like this:

....
drwxr-xr-x 2 <username> www-data 4.0K Jun 24  2024 cpsdnr46fqoqma0f9c90/
drwxr-xr-x 2 <username> www-data 4.0K Jun 24  2024 cpsdntk6fqoqlsva0240/
drwxr-xr-x 2 <username> www-data 4.0K Jun 24  2024 cpsdo046fqoqkia7fv8g/
...

This is just a part of the list, and those folders were created Jun 24 2024 (today is 29 Dec 2024, so those folders are 6 months old).

I tried to ls a few folders, but they all look empty:

$ ls -la cpsdnr46fqoqma0f9c90
total 170448
drwxr-xr-x 2 <username> www-data      4096 Jun 24  2024 .
drwxr-xr-x 1 <username> www-data 174489600 Dec 29 09:51 ..

I run about a dozen of Symfony projects, all on different versions (from 4.4 to 7.2) and this is the first time I get this issue.

I'm glad to provide additional info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy