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

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

Open
dtrckd opened this issue Jan 30, 2021 · 1 comment
Open

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

dtrckd opened this issue Jan 30, 2021 · 1 comment

Comments

@dtrckd
Copy link

dtrckd commented Jan 30, 2021

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 ?

@dtrckd
Copy link
Author

dtrckd commented Jan 30, 2021

I precise that running sa-update inside the postal-spamassassin-app container gives me the following error:

bash-5.0# sa-update
config: no configuration text or files found! do you need to run 'sa-update'?
Timeout::_run: check: no loaded plugin implements 'check_main': cannot scan!
Check that the necessary '.pre' files are in the config directory.
At a minimum, v320.pre loads the Check plugin which is required.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant