Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664988 - net-mail/dovecot-2.3.2.1 doveconf: Error: t_readlink(/run/dovecot/dovecot.conf) failed: readlink() failed: No such file or director
Summary: net-mail/dovecot-2.3.2.1 doveconf: Error: t_readlink(/run/dovecot/dovecot.con...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-31 19:14 UTC by Sven E.
Modified: 2019-04-26 02:48 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven E. 2018-08-31 19:14:21 UTC
During startup, the init script produces an error msg, as far as I can tell, it is not fatal.

doveconf: Error: t_readlink(/run/dovecot/dovecot.conf) failed: readlink() failed: No such file or director

The message is produced by doveconf and indeed the link in run is not present, when dovecot is not running.

Reproducible: Always

Steps to Reproduce:
1. emerge dovecot-2.3.2.1
2. see said error during startup

Actual Results:  
error msg

Expected Results:  
no error msg

Since doveconf behaves the way it does, either check the existance of the link and create it (if not present yet) during startup or suppress the error msg, which might make diagnostics tricky, when something else goes wrong.
Comment 1 Gerald Raaf 2018-09-07 12:11:16 UTC
the problem is this line #25 in init script

when you change 
DOVECOT_BASEDIR=$(/usr/sbin/dovecot -c ${DOVECOT_CONF} -a | grep '^base_dir = ' | sed 's/^base_dir = //')

to 

DOVECOT_BASEDIR=$(/usr/sbin/dovecot -c ${DOVECOT_CONF} config -h base_dir)

you don't get an error message an DOVECOT_BASEDIR is set correctly.
Comment 2 Tomáš Mózes 2018-09-19 12:22:43 UTC
Got the same error after upgrading today, seems like it's not fatal and happened after system reboot.
Comment 3 Larry the Git Cow gentoo-dev 2018-10-05 11:08:18 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38b1b5ecb1cc03000e3e9db61cb6537a7b252106

commit 38b1b5ecb1cc03000e3e9db61cb6537a7b252106
Author:     Eray Aslan <eras@gentoo.org>
AuthorDate: 2018-10-05 11:03:52 +0000
Commit:     Eray Aslan <eras@gentoo.org>
CommitDate: 2018-10-05 11:03:52 +0000

    net-mail/dovecot: bump to 2.3.3
    
    Closes: https://bugs.gentoo.org/666202
    Closes: https://bugs.gentoo.org/667118
    Closes: https://bugs.gentoo.org/664988
    Signed-off-by: Eray Aslan <eras@gentoo.org>
    Package-Manager: Portage-2.3.50, Repoman-2.3.11

 net-mail/dovecot/Manifest                     |   2 +
 net-mail/dovecot/dovecot-2.3.3.ebuild         | 291 ++++++++++++++++++++++++++
 net-mail/dovecot/files/dovecot-glibc228.patch |  44 ++++
 net-mail/dovecot/files/dovecot.init-r5        |  57 +++++
 4 files changed, 394 insertions(+)