dovecot-2.2.18 / net_listen_unix(...) failed: Value too large for defined data type

Christophe Bricout christophebricout at yahoo.fr
Sun Sep 25 13:54:45 UTC 2016


Dear All,

SUMMARY: 
Dovecot shows an issue when "localstatedir" path is too long
The issue exists also with dovecot-2.2.25

CONFIGURATION:
The configure options are:

./configure --prefix=${TARGET_DIR} \
--sysconfdir=${TARGET_DIR}/cfg \
--localstatedir=${TARGET_DIR}/var \
--with-ssl=openssl \
--with-sqlite \
--disable-shared

RESULTS:
When executing dovecot (as root), the followin message appears:

Error: service(dict): net_listen_unix(/<user>/localbin/minnowboard-turbot-applications/1.0/linux/x86_64-linux/localbin/dovecot/2.2.18/linux/x86_64-linux/var/run/dovecot/dict) failed: Value too large for defined data type
Error: service(config): net_listen_unix(<user>/localbin/minnowboard-turbot-applications/1.0/linux/x86_64-linux/localbin/dovecot/2.2.18/linux/x86_64-linux/var/run/dovecot/config) failed: Value too large for defined data type
---

WORKAROUND:
The problem is solved by defining shorten localstatedir or using base_dir = /var/run/dovecot.

It seems the path lengh causing a such issue. Path Lengh > 127

Available for additional experiments
Best Regards


More information about the dovecot mailing list