Bug 1209006
Summary: | Possibly dovecot.socket systemd unit needs network.target requirement | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | George Notaras <gnot> |
Component: | dovecot | Assignee: | Michal Hlavinka <mhlavink> |
Status: | CLOSED ERRATA | QA Contact: | Frantisek Sumsal <fsumsal> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.1 | CC: | fsumsal, jscotka, ovasik |
Target Milestone: | rc | Keywords: | EasyFix |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | dovecot-2.2.10-7.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-04 07:22:18 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
George Notaras
2015-04-05 04:11:31 UTC
Please close this bug report. See: 1309946 which contains more up to date information. (In reply to George Notaras from comment #2) > Please close this bug report. See: 1309946 which contains more up to date > information. If there is an existing bug, always add information there, it's not necessary to file new bug reports *** Bug 1309946 has been marked as a duplicate of this bug. *** Hi Michal,
> If there is an existing bug, always add information there, it's not necessary to file new bug reports
Please, as mentioned above, I'd greatly appreciate if you kept 1309946 open, as it contains more up to date feedback and information about how to work around the issue in 7.2. This bugtracker does not let assigning multiple product versions to the report. Besides the resolution is different in 7.1 and 7.2. I have not tested if the workaround of 1309946 works in this case.
May I ask why aren't you fixing the problem? It's clearly a problem of the default systemd configuration files that ship with the RPM package. Moreover, it's surprising that you have responded after 10 months for an organizational matter instead of the actual issue.
Kind Regards,
George
Hello, I've got some more feedback about this issue. All readers should bare in mind that the following info is about *7.2*. Dovecot failed to start with the messages posted at : https://bugzilla.redhat.com/show_bug.cgi?id=1309946 Workaround: 1. Create a file at /etc/systemd/system/dovecot.service with the following contents: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .include /usr/lib/systemd/system/dovecot.service [Unit] After=network-online.target ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2. In case your dovecot instance is also configured for access over the POP3/POP3S protocol (quite common), create a file at /etc/systemd/system/dovecot.socket with the following contents: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .include /usr/lib/systemd/system/dovecot.socket [Socket] ListenStream=0.0.0.0:110 ListenStream=[::]:110 ListenStream=0.0.0.0:995 ListenStream=[::]:995 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3. Issue the command: ~]# systemctl daemon-reload 4. Make sure both dovecot.service and dovecot.socket unit files are enabled: ~]# systemctl enable dovecot.service ~]# systemctl enable dovecot.socket 5. Reboot and check the status of the dovecot service. Suggestions: 1. Add ListenStream directives about the POP3/POP3S service in the dovecot.socket unit file. 2. Also add support for sieve service (port 4190 IIRC). Questions: 1. Why is hard-coding the ports in dovecot.socket file necessary? Maybe this file is not needed at all and all that is required is the addition of 'After=network-online.target' in dovecot.service. Kind Regards, George BTW, I haven't tested removing the dovecot.socket unit file. (In reply to George Notaras from comment #5) > I'd greatly appreciate if you kept 1309946 open, there's no reason to have two bugs opened for the same issue, when closing duplicates 99% of time we close the new one, as the old one is usually already in trackers, have customer cases assigned, knowledge base articles assigned, we can see how long has it been opened,... > as it contains more up to date feedback and information about how to work > around the issue in 7.2. if there is an issue reported in 7.1, it is not fixed and the same is in 7.2, they are probably the same > This bugtracker does not let assigning multiple product versions to the report. not necessary, as explained above > May I ask why aren't you fixing the problem? It's clearly a problem of the > default systemd configuration files that ship with the RPM package. > Moreover, it's surprising that you have responded after 10 months for an > organizational matter instead of the actual issue. We can't fix everything immediately, resources are always limited. We have to prioritize, to fix important issues with big impact first. Fixing a bug is a quite complex process which includes QA, writing automated regression tests so it does not change in future, etc. Priority is usually based on how critical issue something is. This is a configuration issue, not a crash or a data corruption. Also not everyone needs this (in fact most users don't) and it causes slower startup for them. This bugs was reported just by one person, there are no related customer reports and no other people in the cc list which also indicates that it does not bother many people thus this bug has lower priority. Oh, I see, Michal. Thanks for the insight! Also, I'm sorry for any misconception. With the above workaround I haven't re-encountered the problem when rebooting. changed: do a proper waitonline with after:network-online.target this needs fixes for bug #1243958 and bug #1245951 to work properly, especially in ipv6 environment Michal, thank you for posting these pointers. Much appreciated. There have been some times that every solution gave inconsistent results, so I gave up and just made sure the service was auto restarted on failure. I'll soon try to test it again more thoroughly and report back if I have more feedback. Thanks again. Verified on RHEL 7.3 Beta with dovecot-2.2.10-7.el7. File /usr/lib/systemd/system/dovecot.service contains lines After=local-fs.target network.target network-online.target and ExecStartPre=/usr/libexec/dovecot/prestartscript which should ensure correct dovecot's functionality after system reboot. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2477.html |