1

Topic: timeout clamd

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? download
- Linux/BSD distribution name and version: openbsd 6.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mariadb
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro?no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Goodmorning everyone.
I updated iredadmin to the latest version and upon restarting the machine I encountered a "timeout" to the clamd service.
I ran /etc/rc.d/clamd restart and I still have timeouts.
The dirs / var / log / clamav are empty.
idea? thank you in advance

2

Re: timeout clamd

- How much memory does this server have? Possible to add more memory?
- How many concurrently processed emails is the server configured? Try to reduce it by following this tutorial: https://docs.iredmail.org/concurrent.processing.html

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3

Re: timeout clamd

- How much memory does this server have? Possible to add more memory?  is a VM with 8gb of ram

- How many concurrently processed emails is the server configured?  3 (i think the default)

4

Re: timeout clamd

Default value might be 8 on your server because you have 8 GB memory. (4 for 4 GB memory, etc)
You can try to reduce the concurrently processed mails.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

5

Re: timeout clamd

I followed the guide first increasing to 8 (equal to the ram) and then downing to 2 the parameters but at the restart of the service I always timeout

6

Re: timeout clamd

Please try the steps in this post also:
https://forum.iredmail.org/post70589.html#p70589

It increase the timeout for clamav service to start. This should fix the issue.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

7 (edited by fr 2019-09-23 18:22:09)

Re: timeout clamd

Hello
excuse the insistence but in openbsd I don't have systemd folder,  so I don't think that creating those folders will solve something. Is Correct?
I tried to change the timeout directly in /etc/clamd.conf but it still gives error.
very strange


ZhangHuangbin wrote:

Please try the steps in this post also:
https://forum.iredmail.org/post70589.html#p70589

It increase the timeout for clamav service to start. This should fix the issue.

8

Re: timeout clamd

Sorry I forgot that you’re running OpenBSD. sad

You can try to run clamd with the —debug argument, see how it goes.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

9

Re: timeout clamd

clamd --debug

Running on 32-bit system, and RLIMIT_DATA > 2GB, lowering to 2GB!
ERROR: LOCAL: Socket file /tmp/clamd.sock is in use by antoher process.

if the clamd service is stopped, the file /tmp/clamd.sock obviously does not exist.
if I start or restart the service gives me the timeout.

10

Re: timeout clamd

That's weird. With 8 GB server memory, this is not expected.

Any related log on console or its log file?

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

11 (edited by fr 2019-09-25 23:15:45)

Re: timeout clamd

There is no log file (it is disabled by default).
if I try to enable it from the file /etc/clamd.conf when I restart the service it gives me an error.


is it impossible, but could it be due to the update made by iredadmin to 0.9.8?


strange strange strange

12

Re: timeout clamd

There's nothing to do with iRedAdmin. ClamAV is a standalone software, it doesn't rely on iRedAdmin.

I'm clueless right now, you don't even paste any console output, i have no idea what clamav logs.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

13

Re: timeout clamd

ZhangHuangbin wrote:

There's nothing to do with iRedAdmin. ClamAV is a standalone software, it doesn't rely on iRedAdmin.

I imagined. it was just a silly hypothesis...  tongue



-I'm clueless right now, you don't even paste any console output, i have no idea what clamav logs.

unfortunately I have no log.
I hope to have some clamav backups somewhere ...
thanks

14

Re: timeout clamd

I had similar problem yesterday. Clamav failed to start. Maybe it's related to latest clamav update. I finally found sollution-  I needed to increase timeout in systemd for clamav service from 30s to 5min. I'm running CentOS 7.

15

Re: timeout clamd

fr wrote:

unfortunately I have no log.
I hope to have some clamav backups somewhere ...

Try this:

- remove files under /var/lib/clamav/
- run "freshclam --debug" to update the virus signature database
- run "clamd --debug" again

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee