Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Spamassassin infinitely eats server disk space (in overlay2) #5

@dtrckd

Description

@dtrckd

Hi,

Using docker-postal in a VPS I have encountered a "no space left on device". After having investigated, I figured out that the issue comes from the spamassasin container.

I turns out that there is an infinitely number of empty folders created within postal-spamassasin-app container, inside the /tmp folder, here's an example (I verifierd that the sise in /var/lib/docker/overlay2 growth as well because of those folders) :

bash-5.0# ls -A  /tmp | head |  xargs du -sh
8.0K    .spamassassin10001DGbDLFtmp
8.0K    .spamassassin10001UD2WI8tmp
8.0K    .spamassassin1000243lK31tmp
8.0K    .spamassassin100026eeizUtmp
8.0K    .spamassassin10002JhfDx4tmp
8.0K    .spamassassin10002s1rxFetmp
8.0K    .spamassassin10002xi6f1Ntmp
8.0K    .spamassassin10004VepMcItmp
8.0K    .spamassassin10005NLVJRhtmp
8.0K    .spamassassin10005TAVulwtmp

After running the container for ~1days, I got more than 70k folder here

bash-5.0# ls -A  /tmp | wc -l
71776

Finally here is a sample of this container logs which may help understanding why all those folder are created

$ docker logs postal-spamassassin-app 2>&1 | tail -n20
config: no rules were found!  Do you need to run 'sa-update'?
[INFO] ** [spamassassin] Starting spamassassin
Jan 30 15:20:25.815 [9416] error: config: no rules were found! Do you need to run 'sa-update'?
config: no rules were found!  Do you need to run 'sa-update'?
[INFO] ** [spamassassin] Starting spamassassin
Jan 30 15:20:26.876 [9440] error: config: no rules were found! Do you need to run 'sa-update'?
config: no rules were found!  Do you need to run 'sa-update'?
[INFO] ** [spamassassin] Starting spamassassin
Jan 30 15:20:27.918 [9464] error: config: no rules were found! Do you need to run 'sa-update'?
config: no rules were found!  Do you need to run 'sa-update'?
[INFO] ** [spamassassin] Starting spamassassin
[and so on...]
docker logs postal-spamassassin-app 2>&1 | wc -l
215939

Any idea how we can solve this issue ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions