Univention Bugzilla – Full Text Bug Listing |
Summary: | Errors during dovercot listener init | ||
---|---|---|---|
Product: | UCS | Reporter: | Sönke Schwardt-Krummrich <schwardt> |
Component: | Mail - Dovecot | Assignee: | Daniel Tröder <troeder> |
Status: | CLOSED FIXED | QA Contact: | Sönke Schwardt-Krummrich <schwardt> |
Severity: | normal | ||
Priority: | P5 | CC: | walkenhorst |
Version: | UCS 4.0 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | --- | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | ||
Max CVSS v3 score: | |||
Bug Depends on: | |||
Bug Blocks: | 34839 |
Description
Sönke Schwardt-Krummrich
2015-07-01 17:24:17 CEST
This was fixed by changing two things: * waiting for ssl-parameters generation before restarting listener in postinst: 61648 & 61651 * ignoring users without mail address during listener init: 61663 univention-mail-dovecot/debian/univention-mail-dovecot.postinst: +if [ -e /var/lib/dovecot/ssl-parameters.dat.tmp ]; then + echo -n "Waiting for Dovecot ssl-parameters generation (this can take a long time)." + while [ -e /var/lib/dovecot/ssl-parameters.dat.tmp ]; do + echo -n "." + sleep 1 + done +echo → please add a timeout; otherwise if the generation failed and the file is not removed, the installation process will never end. → how long does the regeneration take on low-entropy system? Is 120 seconds as timeout enough? (In reply to Daniel Tröder from comment #1) > * ignoring users without mail address during listener init: 61663 → OK, this fixed the previously reported error messages (In reply to Sönke Schwardt-Krummrich from comment #2) > univention-mail-dovecot/debian/univention-mail-dovecot.postinst: > +if [ -e /var/lib/dovecot/ssl-parameters.dat.tmp ]; then > + echo -n "Waiting for Dovecot ssl-parameters generation (this can > take a long time)." > + while [ -e /var/lib/dovecot/ssl-parameters.dat.tmp ]; do > + echo -n "." > + sleep 1 > + done > +echo > → please add a timeout; otherwise if the generation failed and the file is > not removed, the installation process will never end. A timeout of 180s was added to the loop in revision 61834. > → how long does the regeneration take on low-entropy system? > Is 120 seconds as timeout enough? The process is single-threaded. The longest time I have seen was in a VM of a 2 GHz Opteron with 2:30 min. (In reply to Daniel Tröder from comment #3) > A timeout of 180s was added to the loop in revision 61834. → OK > > → how long does the regeneration take on low-entropy system? > > Is 120 seconds as timeout enough? > The process is single-threaded. The longest time I have seen was in a VM of > a 2 GHz Opteron with 2:30 min. VM on spoka took 109 seconds. → VERIFIED |