/var/run/dovecot/stats-writer) failed: No such file or directory

Aki Tuomi aki.tuomi at open-xchange.com
Wed Dec 1 07:25:38 UTC 2021


> On 22/11/2021 12:11 Brent Clark <brentgclarklist at gmail.com> wrote:
> 
>  
> Good day Guys
> 
> I am getting this error message in the logs.
> 
> dovecot: imap-login: Error: 
> net_connect_unix(/var/run/dovecot/stats-writer) failed: No such file or 
> directory
> 
> Running Debian Buster.
> 
> With a bit of googling, I tried the suggestions of:
> https://forum.iredmail.org/post67042.html#p67042
> https://git.ispconfig.org/ispconfig/ispconfig3/-/issues/5343
> 
> But still this problem is  persisting.
> 
> Here is the config.
> ~ # cat /etc/dovecot/conf.d/20-dovecot-stats.conf
> service stats {
>      unix_listener stats-writer {
>          user = dovecot
>          group = mail
>          mode = 0660
>      }
> }
> 
> ~ # ls -la /var/run/dovecot/stats-writer
> srw-rw---- 1 dovecot mail 0 Nov 21 17:00 /var/run/dovecot/stats-writer
> 
> Could anyone please shed an idea or tip of where more too can I look.
> 
> Many thanks
> Regards
> Brent Clark

Hi!

Can you try if adding

service stats {
  unix_listener login/stats-writer {
    user = $default_login_user
    mode = 0600
  }
}

fixes this?

This is default in stats service, I just wonder if there is a version where it was not yet default...

Aki


More information about the dovecot mailing list