<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Philips,</p>
<p>I have the same error after upgrade from dovecot 2.2 to dovecot
2.3, could be related to "service stats",</p>
<p>try to grep in the dovecot.log for "reached" and look for an
error like:</p>
<p>dovecot: master: Warning: service(stats): client_limit (1000)
reached, client connections are being dropped<br>
</p>
<p>If you find it add to 10-master.conf:<br>
</p>
<p>service stats {<br>
client_limit = 10240<br>
unix_listener stats-writer {<br>
mode = 0660<br>
#user = vmail<br>
#group = vmail<br>
}<br>
}<br>
</p>
<p>then restart dovecot.</p>
<p>Let me know if you solve or find others limit reached in the log.<br>
</p>
<p>Ciao<br>
</p>
<div class="moz-cite-prefix">Il 31/03/20 18:22, Philipp Ewald ha
scritto:<br>
</div>
<blockquote type="cite"
cite="mid:2d545891-532f-9f6b-5cab-9b8bf73a7eae@digionline.de">Hello
everyone,
<br>
<br>
we have a huge problem with dovecot and IMAP connections.
<br>
<br>
we got the following errors: 39665 today
<br>
<br>
dovecot: imap-login: Error: master(imap): net_connect_unix(imap)
failed: Resource temporarily unavailable -
<a class="moz-txt-link-freetext" href="http://wiki2.dovecot.org/SocketUnavailable">http://wiki2.dovecot.org/SocketUnavailable</a> (client-pid=29066,
client-id=1755, rip=IP, created 562 msecs ago, received 0/4 bytes)
<br>
<br>
we thinks this may be a problem with authorization take too long?
Authorization is not local and with SQL.
<br>
<br>
i found the following in source code of Dovecot:
<br>
#define SOCKET_CONNECT_RETRY_MSECS 500
<br>
#define SOCKET_CONNECT_RETRY_WARNING_INTERVAL_SECS 2
<br>
[...]
<br>
i_error("master(%s): %s (client-pid=%u, client-id=%u, rip=%s,
created %u msecs ago, received %u/%zu bytes)",
<br>
<br>
This is no process limit problem:
<br>
<br>
ps auxf | grep -c "[d]ovecot/imap$"
<br>
688
<br>
<br>
ps auxf | grep -c "[d]ovecot/imap-login$"
<br>
100
<br>
<br>
<br>
cat /proc/`pidof dovecot`/limits
<br>
Limit Soft Limit Hard
Limit Units
<br>
Max cpu time unlimited
unlimited seconds
<br>
Max file size unlimited
unlimited bytes
<br>
Max data size unlimited
unlimited bytes
<br>
Max stack size 8388608
unlimited bytes
<br>
Max core file size 0
unlimited bytes
<br>
Max resident set unlimited
unlimited bytes
<br>
Max processes 64053
64053 processes
<br>
Max open files 65535
65535 files
<br>
Max locked memory 65536
65536 bytes
<br>
Max address space unlimited
unlimited bytes
<br>
Max file locks unlimited
unlimited locks
<br>
Max pending signals 64053
64053 signals
<br>
Max msgqueue size 819200
819200 bytes
<br>
Max nice priority 0 0
<br>
Max realtime priority 0 0
<br>
Max realtime timeout unlimited
unlimited us
<br>
<br>
ulimit -n
<br>
1024
<br>
<br>
<br>
dovecot --version
<br>
2.3.4.1 (f79e8e7e4)
<br>
<br>
<br>
protocols = imap pop3
<br>
service imap-login {
<br>
process_min_avail = 4
<br>
service_count = 0
<br>
}
<br>
service imap {
<br>
process_limit = 4096
<br>
}
<br>
service pop3-login {
<br>
process_min_avail = 4
<br>
service_count = 0
<br>
}
<br>
service pop3 {
<br>
process_limit = 4096
<br>
}
<br>
<br>
<br>
<br>
Can someone explain why we got this error and how to fix? If you
need another information please tell me.
<br>
<br>
<br>
</blockquote>
<pre class="moz-signature" cols="72">--
Alessio Cecchi
Postmaster @ <a class="moz-txt-link-freetext" href="http://www.qboxmail.it">http://www.qboxmail.it</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/alessice">https://www.linkedin.com/in/alessice</a></pre>
</body>
</html>