From 1957b788a4593d9a75ceca8262c3f3e7c69553ba Mon Sep 17 00:00:00 2001 From: Matevz Erzen <matevz.erzen@xlab.si> Date: Tue, 26 Oct 2021 15:32:15 +0200 Subject: [PATCH] Resolved ClamAV restart timeouts --- README.md | 2 +- environments/full-setup/Vagrantfile | 4 ++-- environments/no-collector/Vagrantfile | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 95981f7..a588564 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ $ docker logs -ft evidence-collector ### ClamAV (re)start failed/timed out -Try re-running `make provision` one more time. If this doesn't help, comment out the last task in `/ansible/clamav/tasks/install-clamav.yml` & try restarting ClamAV manually. +ClamAV restart can time-out due to slow disk read/write speeds (if using HDD) and lack of memory. To resolve this, provide the machine with more RAM. Current implementation has it set to `1024` MB (which should suffice for the majoirty of host machine configurations). If you're using SSD, you can lower it to `512` MB. ### Vagrant issue: diff --git a/environments/full-setup/Vagrantfile b/environments/full-setup/Vagrantfile index 2d669df..2b311d4 100644 --- a/environments/full-setup/Vagrantfile +++ b/environments/full-setup/Vagrantfile @@ -13,14 +13,14 @@ servers=[ :hostname => "agent1", :ip => "192.168.33.11", :box => "centos/8", - :ram => 512, + :ram => 1024, :cpu => 1 }, { :hostname => "agent2", :ip => "192.168.33.12", :box => "centos/8", - :ram => 512, + :ram => 1024, :cpu => 1 }, { diff --git a/environments/no-collector/Vagrantfile b/environments/no-collector/Vagrantfile index 504035a..33cc1da 100644 --- a/environments/no-collector/Vagrantfile +++ b/environments/no-collector/Vagrantfile @@ -13,14 +13,14 @@ servers=[ :hostname => "agent1", :ip => "192.168.33.11", :box => "centos/8", - :ram => 512, + :ram => 1024, :cpu => 1 }, { :hostname => "agent2", :ip => "192.168.33.12", :box => "centos/8", - :ram => 512, + :ram => 1024, :cpu => 1 } ] -- GitLab