Bug#770695: Dovecot-core unable to finish its installation

2014-12-14 Thread Bob Proulx
I just tested the latest 1:2.2.13-11 and all went perfectly.  No
hangs.  No file conflicts.  All good!

Thank you and everyone for persevering on this problem!

Bob

  # apt-get upgrade
  Reading package lists... Done
  Building dependency tree   
  Reading state information... Done
  Calculating upgrade... Done
  The following packages will be upgraded:
dovecot-core dovecot-gssapi dovecot-imapd dovecot-ldap
dovecot-mysql dovecot-pgsql dovecot-sieve dovecot-sqlite
  9 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
  Need to get 6857 kB of archives.
  After this operation, 1024 B of additional disk space will be used.
  Do you want to continue? [Y/n] 
  Get:1 http://ftp.us.debian.org/debian/ sid/main dovecot-sqlite amd64 
1:2.2.13-11 [529 kB]
  Get:2 http://ftp.us.debian.org/debian/ sid/main dovecot-imapd amd64 
1:2.2.13-11 [646 kB]
  Get:3 http://ftp.us.debian.org/debian/ sid/main dovecot-pgsql amd64 
1:2.2.13-11 [533 kB]
  Get:4 http://ftp.us.debian.org/debian/ sid/main dovecot-sieve amd64 
1:2.2.13-11 [766 kB]
  Get:5 http://ftp.us.debian.org/debian/ sid/main dovecot-ldap amd64 
1:2.2.13-11 [544 kB]
  Get:6 http://ftp.us.debian.org/debian/ sid/main dovecot-gssapi amd64 
1:2.2.13-11 [530 kB]
  Get:7 http://ftp.us.debian.org/debian/ sid/main dovecot-mysql amd64 
1:2.2.13-11 [531 kB]
  Get:8 http://ftp.us.debian.org/debian/ sid/main dovecot-core amd64 
1:2.2.13-11 [2654 kB]
  Fetched 6857 kB in 54s (125 kB/s) 
 
  (Reading database ... 606280 files and directories currently installed.)
  Preparing to unpack .../dovecot-sqlite_1%3a2.2.13-11_amd64.deb ...
  Unpacking dovecot-sqlite (1:2.2.13-11) over (1:2.2.13-10) ...
  Preparing to unpack .../dovecot-imapd_1%3a2.2.13-11_amd64.deb ...
  Stopping IMAP/POP3 mail server: dovecot.
  Unpacking dovecot-imapd (1:2.2.13-11) over (1:2.2.13-10) ...
  Preparing to unpack .../dovecot-pgsql_1%3a2.2.13-11_amd64.deb ...
  Unpacking dovecot-pgsql (1:2.2.13-11) over (1:2.2.13-10) ...
  Preparing to unpack .../dovecot-sieve_1%3a2.2.13-11_amd64.deb ...
  Unpacking dovecot-sieve (1:2.2.13-11) over (1:2.2.13-10) ...
  Preparing to unpack .../dovecot-ldap_1%3a2.2.13-11_amd64.deb ...
  Unpacking dovecot-ldap (1:2.2.13-11) over (1:2.2.13-10) ...
  Preparing to unpack .../dovecot-gssapi_1%3a2.2.13-11_amd64.deb ...
  Unpacking dovecot-gssapi (1:2.2.13-11) over (1:2.2.13-10) ...
  Preparing to unpack .../dovecot-mysql_1%3a2.2.13-11_amd64.deb ...
  Unpacking dovecot-mysql (1:2.2.13-11) over (1:2.2.13-10) ...
  Preparing to unpack .../dovecot-core_1%3a2.2.13-11_amd64.deb ...
  Stopping IMAP/POP3 mail server: dovecot.
  Unpacking dovecot-core (1:2.2.13-11) over (1:2.2.13-10) ...
  Processing triggers for mime-support (3.57) ...
  Processing triggers for desktop-file-utils (0.22-1) ...
  Processing triggers for menu (2.1.47) ...
  Processing triggers for man-db (2.7.0.2-4) ...
  Setting up dovecot-core (1:2.2.13-11) ...
  Starting IMAP/POP3 mail server: dovecot.
  Setting up dovecot-sqlite (1:2.2.13-11) ...
  Setting up dovecot-imapd (1:2.2.13-11) ...
  Setting up dovecot-pgsql (1:2.2.13-11) ...
  Setting up dovecot-sieve (1:2.2.13-11) ...
  Setting up dovecot-ldap (1:2.2.13-11) ...
  Setting up dovecot-gssapi (1:2.2.13-11) ...
  Setting up dovecot-mysql (1:2.2.13-11) ...
  Processing triggers for menu (2.1.47) ...
  Processing triggers for dovecot-core (1:2.2.13-11) ...
  Restarting IMAP/POP3 mail server: dovecot.
  Starting IMAP/POP3 mail server: dovecot.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-11 Thread Bob Proulx
I just upgraded dovecot 1:2.2.13-10.  I also tested --reinstall.
There were no hangs.  The upgrade completed without the previous hang
problem.

I did however run into a file conflict which I reported as
  https://bugs.debian.org/772885
I think that might simply be a bad -8 and will test and followup for
that issue in that report.

In the meantime I didn't have any hang problems with -10.  Yay!

Thanks for giving this problem all of your efforts.

Bob


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-10 Thread Michael Hatzold

Am 10.12.2014, 02:26 Uhr, schrieb Jaldhar H. Vyas jald...@debian.org:

LANG=C DEBCONF_DEBUG=.* dpkg -i  
/var/cache/apt/archives/dovecot-core_1%3a2.2.13-9_amd64.deb 21   
debconf.log


I tried this before. This does not pipe the output to debconf.log but  
causes an error (see end of output). If the console output is what you  
need, here it is:


***
~# LANG=C DEBCONF_DEBUG=.* dpkg -i  
/var/cache/apt/archives/dovecot-core_1%3a2.2.13-9_amd64.deb 21   
debconf.log

(Reading database ... 213349 files and directories currently installed.)
Preparing to unpack .../dovecot-core_1%3a2.2.13-9_amd64.deb ...
[ ok ] Stopping IMAP/POP3 mail server: dovecot.
Unpacking dovecot-core (1:2.2.13-9) over (1:2.2.13-9) ...
dpkg-deb: error: `debconf.log' is not a debian format archive
dpkg: error processing archive debconf.log (--install):
 subprocess dpkg-deb --control returned error exit status 2
Setting up dovecot-core (1:2.2.13-9) ...
debconf (db): making DbDriver of type File
debconf (db config): started; filename is /var/cache/debconf/config.dat
debconf (db config): loading database
debconf (db): making DbDriver of type File
debconf (db passwords): started; filename is  
/var/cache/debconf/passwords.dat

debconf (db passwords): loading database
debconf (db): making DbDriver of type Stack
debconf (db): making DbDriver of type File
debconf (db templatedb): started; filename is  
/var/cache/debconf/templates.dat

debconf (db templatedb): loading database
debconf (developer): frontend started
debconf (db configdb): trying to getfield(debconf/frontend value) ..
debconf (db configdb): getfield done by config
debconf (user): trying frontend Dialog
debconf (developer): frontend running, package name is dovecot-core
debconf (developer): starting /var/lib/dpkg/info/dovecot-core.postinst  
configure 1:2.2.13-9
debconf (developer): -- X_LOADTEMPLATEFILE  
/var/lib/dpkg/info/ucf.templates ucf

debconf (db configdb): trying to addowner(ucf/title ucf title) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt_threeway ucf  
select) ..

debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt ucf select) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/show_diff ucf note) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/conflicts_found ucf error) ..
debconf (db configdb): passing to config ..
debconf (developer): -- 0
debconf (developer): -- X_LOADTEMPLATEFILE  
/var/lib/dpkg/info/ucf.templates ucf

debconf (db configdb): trying to addowner(ucf/title ucf title) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt_threeway ucf  
select) ..

debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt ucf select) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/show_diff ucf note) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/conflicts_found ucf error) ..
debconf (db configdb): passing to config ..
debconf (developer): -- 0
debconf (developer): -- X_LOADTEMPLATEFILE  
/var/lib/dpkg/info/ucf.templates ucf

debconf (db configdb): trying to addowner(ucf/title ucf title) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt_threeway ucf  
select) ..

debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt ucf select) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/show_diff ucf note) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/conflicts_found ucf error) ..
debconf (db configdb): passing to config ..
debconf (developer): -- 0
debconf (developer): -- X_LOADTEMPLATEFILE  
/var/lib/dpkg/info/ucf.templates ucf

debconf (db configdb): trying to addowner(ucf/title ucf title) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt_threeway ucf  
select) ..

debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt ucf select) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/show_diff ucf note) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/conflicts_found ucf error) ..
debconf (db configdb): passing to config ..
debconf (developer): -- 0
debconf (developer): -- X_LOADTEMPLATEFILE  
/var/lib/dpkg/info/ucf.templates ucf

debconf (db configdb): trying to addowner(ucf/title ucf title) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt_threeway ucf  
select) ..

debconf (db configdb): 

Bug#770695: Dovecot-core unable to finish its installation

2014-12-10 Thread Michael Hatzold

Am 10.12.2014, 02:26 Uhr, schrieb Jaldhar H. Vyas jald...@debian.org:

LANG=C DEBCONF_DEBUG=.* dpkg -i  
/var/cache/apt/archives/dovecot-core_1%3a2.2.13-9_amd64.deb 21   
debconf.log


I assume this won't get you any valuable info as here the install did  
*not* hang.


So after some further testing I think your latest version somehow did  
solve the problem without me noticing it because it *did* hang during the  
very first upgrade from 2.2.13-8 to 2.2.13-9 but did not hang reinstalling  
it.


As I still have older versions in my archives (2.2.13-6 to  2.2.13-9) I  
downgraded to the oldest version,

***
dpkg -i /var/cache/apt/archives/dovecot-core_1%3a2.2.13-6_amd64.deb
***
which was hanging during downgrade at the point it ever hangs, after  
restart of the IMAP server:


**
[ ok ] Starting IMAP/POP3 mail server: dovecot.
**

htop always showed dovecot-core.po in it's list doing nothing, all values  
being 0 except in column S where it was marked Z.
This time I didn't kill dpkg (pkill dpkg in a new console) but simply run  
ctrl-C. Afterwards I could run dpkg --configure -a which apparently  
did what had to be done and finished with showing me the prompt. This  
happened with all versions from *13-6 to *13-8 . Same goes for  
dovecot-core.po . Only exception: your latest version where there was a  
problem only with the *very first* upgrade. Now during my tests I could  
upgrade this version without problems. Maybe todays dist-upgrade changed  
something in some somehow related package, I don't know.



FYI in case you still need to see what happens when the install hangs here  
the output from when I installed v2.2.13-6 :


**
~# LANG=C DEBCONF_DEBUG=.* dpkg -i  
/var/cache/apt/archives/dovecot-core_1%3a2.2.13-6_amd64.deb 21   
debconf.log

(Reading database ... 231388 files and directories currently installed.)
Preparing to unpack .../dovecot-core_1%3a2.2.13-6_amd64.deb ...
[ ok ] Stopping IMAP/POP3 mail server: dovecot.
Unpacking dovecot-core (1:2.2.13-6) over (1:2.2.13-6) ...
dpkg-deb: error: `debconf.log' is not a debian format archive
dpkg: error processing archive debconf.log (--install):
 subprocess dpkg-deb --control returned error exit status 2
Setting up dovecot-core (1:2.2.13-6) ...
debconf (db): making DbDriver of type File
debconf (db config): started; filename is /var/cache/debconf/config.dat
debconf (db config): loading database
debconf (db): making DbDriver of type File
debconf (db passwords): started; filename is  
/var/cache/debconf/passwords.dat

debconf (db passwords): loading database
debconf (db): making DbDriver of type Stack
debconf (db): making DbDriver of type File
debconf (db templatedb): started; filename is  
/var/cache/debconf/templates.dat

debconf (db templatedb): loading database
debconf (developer): frontend started
debconf (db configdb): trying to getfield(debconf/frontend value) ..
debconf (db configdb): getfield done by config
debconf (user): trying frontend Dialog
debconf (developer): frontend running, package name is dovecot-core
debconf (developer): starting /var/lib/dpkg/info/dovecot-core.postinst  
configure 1:2.2.13-6
debconf (developer): -- X_LOADTEMPLATEFILE  
/var/lib/dpkg/info/ucf.templates ucf

debconf (db configdb): trying to addowner(ucf/title ucf title) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt_threeway ucf  
select) ..

debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt ucf select) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/show_diff ucf note) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/conflicts_found ucf error) ..
debconf (db configdb): passing to config ..
debconf (developer): -- 0
debconf (developer): -- X_LOADTEMPLATEFILE  
/var/lib/dpkg/info/ucf.templates ucf

debconf (db configdb): trying to addowner(ucf/title ucf title) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt_threeway ucf  
select) ..

debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt ucf select) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/show_diff ucf note) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/conflicts_found ucf error) ..
debconf (db configdb): passing to config ..
debconf (developer): -- 0
debconf (developer): -- X_LOADTEMPLATEFILE  
/var/lib/dpkg/info/ucf.templates ucf

debconf (db configdb): trying to addowner(ucf/title ucf title) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt_threeway ucf  
select) ..

debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt ucf 

Bug#770695: Dovecot-core unable to finish its installation

2014-12-10 Thread Michael Hatzold
I now found out how to trigger the bug even with your latest version. This  
explains why I saw the installation hanging the first time I installed  
v2.2.13-9 because I installed dovecot-core AND dovecot-imapd:


***
dpkg -i /var/cache/apt/archives/dovecot-core_1%3a2.2.13-9_amd64.deb
***

does not cause a problem,

***
dpkg -i /var/cache/apt/archives/dovecot-core_1%3a2.2.13-9_amd64.deb  
/var/cache/apt/archives/dovecot-imapd_1%3a2.2.13-9_amd64.deb

***

does cause the upgrade/installation to hang after the restart of the IMAP  
server.


I can finish the installation by running ctrl-C followed by dpkg  
--configure -a.



It seems dovecot-imapd must be tweeked, too. Here the output from its  
installation:


***
~# LANG=C DEBCONF_DEBUG=.* dpkg -i  
/var/cache/apt/archives/dovecot-imapd_1%3a2.2.13-9_amd64.deb 21   
debconf.log

(Reading database ... 231349 files and directories currently installed.)
Preparing to unpack .../dovecot-imapd_1%3a2.2.13-9_amd64.deb ...
[ ok ] Stopping IMAP/POP3 mail server: dovecot.
Unpacking dovecot-imapd (1:2.2.13-9) over (1:2.2.13-9) ...
dpkg-deb: error: `debconf.log' is not a debian format archive
dpkg: error processing archive debconf.log (--install):
 subprocess dpkg-deb --control returned error exit status 2
Setting up dovecot-imapd (1:2.2.13-9) ...
debconf (db): making DbDriver of type File
debconf (db config): started; filename is /var/cache/debconf/config.dat
debconf (db config): loading database
debconf (db): making DbDriver of type File
debconf (db passwords): started; filename is  
/var/cache/debconf/passwords.dat

debconf (db passwords): loading database
debconf (db): making DbDriver of type Stack
debconf (db): making DbDriver of type File
debconf (db templatedb): started; filename is  
/var/cache/debconf/templates.dat

debconf (db templatedb): loading database
debconf (developer): frontend started
debconf (db configdb): trying to getfield(debconf/frontend value) ..
debconf (db configdb): getfield done by config
debconf (user): trying frontend Dialog
debconf (developer): Trying to find a templates file..
debconf (developer): Trying /usr/bin/ucf.templates
debconf (developer): Trying /usr/share/debconf/templates/ucf.templates
debconf (developer): Couldn't find a templates file.
debconf (developer): frontend running, package name is
debconf (developer): starting /usr/bin/ucf --three-way --debconf-ok  
/usr/share/dovecot/conf.d/20-imap.conf /etc/dovecot/conf.d/20-imap.conf
debconf (developer): -- X_LOADTEMPLATEFILE  
/var/lib/dpkg/info/ucf.templates ucf

debconf (db configdb): trying to addowner(ucf/title ucf title) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt_threeway ucf  
select) ..

debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/changeprompt ucf select) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/show_diff ucf note) ..
debconf (db configdb): passing to config ..
debconf (db configdb): trying to addowner(ucf/conflicts_found ucf error) ..
debconf (db configdb): passing to config ..
debconf (developer): -- 0
debconf (developer): -- SETTITLE ucf/title
debconf (db configdb): trying to getfield(ucf/title template) ..
debconf (db configdb): getfield done by config
debconf (db configdb): trying to variables(ucf/title) ..
debconf (db passwords): cache miss on ucf/title
debconf (developer): -- 0
debconf (db config): no database changes, not saving
debconf (db passwords): no database changes, not saving
debconf (db templatedb): saving database
Processing triggers for dovecot-core (1:2.2.13-9) ...
debconf (db): making DbDriver of type File
debconf (db config): started; filename is /var/cache/debconf/config.dat
debconf (db config): loading database
debconf (db): making DbDriver of type File
debconf (db passwords): started; filename is  
/var/cache/debconf/passwords.dat

debconf (db passwords): loading database
debconf (db): making DbDriver of type Stack
debconf (db): making DbDriver of type File
debconf (db templatedb): started; filename is  
/var/cache/debconf/templates.dat

debconf (db templatedb): loading database
debconf (developer): frontend started
debconf (db configdb): trying to getfield(debconf/frontend value) ..
debconf (db configdb): getfield done by config
debconf (user): trying frontend Dialog
debconf (developer): frontend running, package name is dovecot-core
debconf (developer): starting /var/lib/dpkg/info/dovecot-core.postinst  
triggered /usr/lib/dovecot/modules register-dovecot-plugin

[ ok ] Restarting IMAP/POP3 mail server: dovecot.
[ ok ] Starting IMAP/POP3 mail server: dovecot.

***


hanging here


Let me know if you need more info.

MH


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-09 Thread Jaldhar H. Vyas

On Fri, 5 Dec 2014, Bob Proulx wrote:



How would previous changes to that file explain the current hang upon
a --reinstall?  At the present time the only changes I have
outstanding are in the 10-mail.conf file.



My theory was that somehow ucf was not registering that file in its 
database but never mind thats not it.


Debian user Chris Gilbert did some testing on his own and found that 
explicitly stopping debconf prevents the hang.  From my understanding of 
how it is supposed to work that shouldn't be necessary but apparently it 
works so lets try it.  I have prepared -9 which I shall be uploading 
shortly.  Please try it and let me know if it works.


--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-09 Thread Jaldhar H. Vyas
We may have a possible solution.  I shall shortly be uploading -9.  Please 
try it and let me know if it works for you.


--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-09 Thread Jaldhar H. Vyas

On Sun, 7 Dec 2014, Michael Hatzold wrote:



This bug report applies to the latest ***four versions*** of dovecot-core 
(and

maybe to dovecot-imapd), no problems with earlier versions:


They are all using the same postinst code.  Let us concentrate on 2.2.13 
for now as this is the version that will go into Jessie.  I have prepared 
2.2.13-9 which I shall be uploading (to unstable) shortly.  Please try it 
and let me know if it fixes the problem.  If it does, I will prepare a new 
version of 2.2.15 (still for experimental.)



--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-09 Thread Michael Hatzold

Hi

I downgraded to 2.2.13-9

Still hanging after these lines:


**
Vorbereitung zum Entpacken von .../dovecot-imapd_1%3a2.2.13-9_amd64.deb ...
[ ok ] Stopping IMAP/POP3 mail server: dovecot.
Entpacken von dovecot-imapd (1:2.2.13-9) über (1:2.2.15-1) ...
dpkg: Warnung: Version 1:2.2.15-1 des Paketes dovecot-core wird durch
ältere Version 1:2.2.13-9 ersetzt
Vorbereitung zum Entpacken von .../dovecot-core_1%3a2.2.13-9_amd64.deb ...
[ ok ] Stopping IMAP/POP3 mail server: dovecot.
Entpacken von dovecot-core (1:2.2.13-9) über (1:2.2.15-1) ...
Trigger für man-db (2.7.0.2-4) werden verarbeitet ...
Trigger für siduction-dynamic-dms (2014.08.06) werden verarbeitet ...
dovecot-core (1:2.2.13-9) wird eingerichtet ...

Creating config file /etc/dovecot/dovecot-dict-auth.conf.ext with new
version

Creating config file /etc/dovecot/conf.d/auth-dict.conf.ext with new
version
[ ok ] Starting IMAP/POP3 mail server: dovecot.
dovecot-imapd (1:2.2.13-9) wird eingerichtet ...
Trigger für dovecot-core (1:2.2.13-9) werden verarbeitet ...
[ ok ] Restarting IMAP/POP3 mail server: dovecot.
[ ok ] Starting IMAP/POP3 mail server: dovecot.

**


I waited more than 5 minutes, then killed dpkg which gave this output:


**
E: Sub-process /usr/bin/dpkg exited unexpectedly
W: Operation wurde unterbrochen, bevor sie beendet werden konnte.
E: Problem executing scripts DPkg::Post-Invoke 'adequate --help /dev/null
21 || exit 0; exec adequate --debconf --user nobody --pending'
E: Sub-process returned an error code

**



dpkg --configure -a didn't work due the dpkg lock. While searching for  
other processes which might be in the way htop showed me a file called  
dovecot-core.po where the S column was marked Z . (I have no clue  
what this means or whether or not this is valuable info, I telling you  
anyway I case it is).


After a reboot I could issue dpkg --configure -a which then configured  
dovecot-core, started the IMAP server and returned to the prompt.



Let me know if you need further info or testing.


Thanks


MH


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-09 Thread Jaldhar H. Vyas

reopen 770695
severity 770695 grave
thanks

On Tue, 9 Dec 2014, Michael Hatzold wrote:



dpkg --configure -a didn't work due the dpkg lock. While searching for 
other processes which might be in the way htop showed me a file called 
dovecot-core.po where the S column was marked Z . (I have no clue what 
this means or whether or not this is valuable info, I telling you anyway I 
case it is).


It is.  Unfortunately it makes the problem even more mysterious.  That is 
the localization file for debconf questions.  It was removed from the 
package several versions ago.  The question is why is it still there?


What is the output of:

debconf-show dovecot-core



After a reboot I could issue dpkg --configure -a which then configured 
dovecot-core, started the IMAP server and returned to the prompt.


So you did not reboot after previous installs?  Perhaps the .po file was 
cached somehow?  I will ask some more experienced Debian people if they 
have any insight into what could be happening.


--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-09 Thread Michael Hatzold

Am 10.12.2014, 00:17 Uhr, schrieb Jaldhar H. Vyas jald...@debian.org:


It seems dovecot-core.po is only runing during install/upgrade, because  
now it's not listed in htop.




What is the output of:

debconf-show dovecot-core


as root: nothing
as user: ~$ debconf-show dovecot-core
debconf: DbDriver passwords warning: could not open  
/var/cache/debconf/passwords.dat: Keine Berechtigung


(keine Berechtigung = no permission)






After a reboot I could issue dpkg --configure -a which then  
configured dovecot-core, started the IMAP server and returned to the  
prompt.


So you did not reboot after previous installs?


Sure I did reboot after previous installs, I had to. Otherwise I couldn't  
finish dist-upgrades which I interrupted when I killed dpkg due to the  
hanging dovecot-core install/upgrade. It is always the same procedure:  
dovcote-core install/upgrade hangs, I kill dpkg, apt-get dist-upgrade  
and/or dpkg --configure -a won't work, I reboot and try to finish the  
install or dist-upgrade doing whatever is necessary  (dpkg --configure  
-a, apt-get dist-upgrade, apt-get -f install) .


Thanks

MH


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-09 Thread Michael Hatzold




happening.  Can you run something like this:

DEBCONF_DEBUG=.* dpkg -i dovecot_core_2.2.13-9_i386.deb 21 debconf.log

(Untested.  You may need to adjust it slightly.) Then please send me  
debconf.log.




I ran this command:

~# LANG=C DEBCONF_DEBUG=.* dpkg -i  
/var/cache/apt/archives/dovecot-core_1%3a2.2.13-9_amd64.deb   debconf.log




And the content of debconf.log is:

*
~# cat debconf.log
(Reading database ... 213349 files and directories currently installed.)
Preparing to unpack .../dovecot-core_1%3a2.2.13-9_amd64.deb ...
Stopping IMAP/POP3 mail server: dovecot.
Unpacking dovecot-core (1:2.2.13-9) over (1:2.2.13-9) ...
Setting up dovecot-core (1:2.2.13-9) ...
Processing triggers for man-db (2.7.0.2-4) ...
Processing triggers for siduction-dynamic-dms (2014.08.06) ...
*

MH


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-09 Thread Jaldhar H. Vyas

On Wed, 10 Dec 2014, Michael Hatzold wrote:


I ran this command:

~# LANG=C DEBCONF_DEBUG=.* dpkg -i 
/var/cache/apt/archives/dovecot-core_1%3a2.2.13-9_amd64.deb   debconf.log





debconf logs debug output to stderr so you have to include 21 to get 
all the info. Try it like this:


LANG=C DEBCONF_DEBUG=.* dpkg -i 
/var/cache/apt/archives/dovecot-core_1%3a2.2.13-9_amd64.deb 21  debconf.log


--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-07 Thread Michael Hatzold


This bug report applies to the latest ***four versions*** of dovecot-core  
(and

maybe to dovecot-imapd), no problems with earlier versions:

Install/update (I tried both on two different systems, 32/64 bit)
***reliably*** hangs after restarting IMAP:

**
~# apt-get install dovecot-core -t=experimental dovecot-imapd
-t=experimental
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen Fertig
Vorgeschlagene Pakete:
dovecot-gssapi dovecot-sieve dovecot-pgsql dovecot-mysql dovecot-sqlite
dovecot-ldap dovecot-pop3d
dovecot-lmtpd dovecot-managesieved dovecot-solr dovecot-lucene
Die folgenden Pakete werden aktualisiert (Upgrade):
dovecot-core dovecot-imapd
2 aktualisiert, 0 neu installiert, 0 zu entfernen und 118 nicht
aktualisiert.
Es müssen 3.513 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 446 kB Plattenplatz zusätzlich benutzt.
Holen: 1 http://http.debian.net/debian/ experimental/main dovecot-imapd
amd64 1:2.2.15-1 [697 kB]
Holen: 2 http://http.debian.net/debian/ experimental/main dovecot-core
amd64 1:2.2.15-1 [2.816 kB]
Es wurden 3.513 kB in 15 s geholt (232 kB/s).
Lese Changelogs... Fertig
(Lese Datenbank ... 213102 Dateien und Verzeichnisse sind derzeit
installiert.)
Vorbereitung zum Entpacken von .../dovecot-imapd_1%3a2.2.15-1_amd64.deb ...
[ ok ] Stopping IMAP/POP3 mail server: dovecot.
Entpacken von dovecot-imapd (1:2.2.15-1) über (1:2.2.13-8) ...
Vorbereitung zum Entpacken von .../dovecot-core_1%3a2.2.15-1_amd64.deb ...
[ ok ] Stopping IMAP/POP3 mail server: dovecot.
Entpacken von dovecot-core (1:2.2.15-1) über (1:2.2.13-8) ...
Trigger für man-db (2.7.0.2-4) werden verarbeitet ...
Trigger für siduction-dynamic-dms (2014.08.06) werden verarbeitet ...
dovecot-core (1:2.2.15-1) wird eingerichtet ...
[ ok ] Starting IMAP/POP3 mail server: dovecot.

here I waited half an hour  ... nothing

***

At the first times I though it would be related to ssl (and maybe it is):
It seems that if I comment the path to the ssl certificate IMAP would
start but it then hangs a bit later (don't know how to reproduce).

To overcome the hanging update I needed to kill dpkg (which then remains
locked). After reboot ~# dpkg --configure -a may work if no other  
packages were involved during a failed dist-upgrade:


***
dovecot-core (1:2.2.15-1) wird eingerichtet ...
[ ok ] Starting IMAP/POP3 mail server: dovecot
***

As I remember this does not work when ssl path is uncommented during  
install.


BTW, bug 771407 seems related if it is not entirely the same.


Let me know if you need further informations.


MH


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-06 Thread Tony Mantler

 On Dec 5, 2014, at 6:29 AM, Jaldhar H. Vyas jald...@debian.org wrote:
 
 Tony, I forgot to ask you if you've tried -8 and if that has fixed the 
 problem for you?

I just tried upgrading from -7 to -8. I got a UCF dialog asking if I wanted to 
overwrite my ssl config file with one that has ssl turned off, and I declined. 
The installation then proceeded to hang after Starting IMAP/POP3 mail server: 
dovecot. with the usual defunct postinst:

20090 pts/0Sl+0:07  |   \_ aptitude full-upgrade
23047 pts/2Ss+0:00  |   \_ /usr/bin/dpkg 
--status-fd 24 --configure libitm1:i386 libgomp1:i386 libatomic1:i386 
libasan1:i386 libubsan0:i386 libcilkrts5:i386 libq
27331 pts/2S+ 0:00  |   \_ /usr/bin/perl -w 
/usr/share/debconf/frontend /var/lib/dpkg/info/dovecot-core.postinst configure 
1:2.2.13-7
27337 pts/2Z+ 0:00  |   \_ 
[dovecot-core.po] defunct



--
Tony 'Nicoya' Mantler - Master of Code-fu
-- nic...@ubb.ca -- http://www.ubb.ca/ --


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-06 Thread Jaldhar H. Vyas

On Sat, 6 Dec 2014, Tony Mantler wrote:



I just tried upgrading from -7 to -8. I got a UCF dialog asking if I 
wanted to overwrite my ssl config file with one that has ssl turned off, 
and I declined. The installation then proceeded to hang after Starting 
IMAP/POP3 mail server: dovecot. with the usual defunct postinst:


You are seeing the ucf dialog which is a good sign.  Can you send me

1. Your /etc/dovecot/conf.d/10-ssl.conf

2.  The output of this command: ucfq dovecot-core

Thanks.

--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-06 Thread Tony Mantler

 On Dec 6, 2014, at 8:36 AM, Jaldhar H. Vyas jald...@debian.org wrote:
 
 On Sat, 6 Dec 2014, Tony Mantler wrote:
 
 
 I just tried upgrading from -7 to -8. I got a UCF dialog asking if I wanted 
 to overwrite my ssl config file with one that has ssl turned off, and I 
 declined. The installation then proceeded to hang after Starting IMAP/POP3 
 mail server: dovecot. with the usual defunct postinst:
 
 You are seeing the ucf dialog which is a good sign.  Can you send me
 
 1. Your /etc/dovecot/conf.d/10-ssl.conf

# cat /etc/dovecot/conf.d/10-ssl.conf
##
## SSL settings
##

# SSL/TLS support: yes, no, required. doc/wiki/SSL.txt
ssl = yes

# PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
# dropping root privileges, so keep the key file unreadable by anyone but
# root. Included doc/mkcert.sh can be used to easily generate self-signed
# certificate, just make sure to update the domains in dovecot-openssl.cnf
ssl_cert = /etc/dovecot/dovecot.pem
ssl_key = /etc/dovecot/private/dovecot.pem

# If key file is password protected, give the password here. Alternatively
# give it when starting dovecot with -p parameter. Since this file is often
# world-readable, you may want to place this setting instead to a different
# root owned 0600 file by using ssl_key_password = path.
#ssl_key_password =

# PEM encoded trusted certificate authority. Set this only if you intend to use
# ssl_verify_client_cert=yes. The file should contain the CA certificate(s)
# followed by the matching CRL(s). (e.g. ssl_ca = /etc/ssl/certs/ca.pem)
#ssl_ca = 

# Require that CRL check succeeds for client certificates.
#ssl_require_crl = yes

# Directory and/or file for trusted SSL CA certificates. These are used only
# when Dovecot needs to act as an SSL client (e.g. imapc backend). The
# directory is usually /etc/ssl/certs in Debian-based systems and the file is
# /etc/pki/tls/cert.pem in RedHat-based systems.
#ssl_client_ca_dir =
#ssl_client_ca_file =

# Request client to send a certificate. If you also want to require it, set
# auth_ssl_require_client_cert=yes in auth section.
#ssl_verify_client_cert = no

# Which field from certificate to use for username. commonName and
# x500UniqueIdentifier are the usual choices. You'll also need to set
# auth_ssl_username_from_cert=yes.
#ssl_cert_username_field = commonName

# DH parameters length to use.
#ssl_dh_parameters_length = 1024

# SSL protocols to use
#ssl_protocols = !SSLv2

# SSL ciphers to use
#ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL

# Prefer the server's order of ciphers over client's.
#ssl_prefer_server_ciphers = no

# SSL crypto device to use, for valid values run openssl engine
#ssl_crypto_device =


 2.  The output of this command: ucfq dovecot-core

# ucfq dovecot-core
Configuration filePackage Exists Changed
/etc/dovecot/conf.d/10-auth.conf  dovecot-coreYes No
/etc/dovecot/conf.d/10-director.conf  dovecot-coreYes No
/etc/dovecot/conf.d/10-logging.conf   dovecot-coreYes No
/etc/dovecot/conf.d/10-mail.conf  dovecot-coreYesYes
/etc/dovecot/conf.d/10-master.confdovecot-coreYes No
/etc/dovecot/conf.d/10-ssl.conf   dovecot-coreYesYes
/etc/dovecot/conf.d/10-tcpwrapper.confdovecot-coreYes No
/etc/dovecot/conf.d/15-lda.conf   dovecot-coreYes No
/etc/dovecot/conf.d/15-mailboxes.conf dovecot-coreYes No
/etc/dovecot/conf.d/90-acl.conf   dovecot-coreYes No
/etc/dovecot/conf.d/90-plugin.confdovecot-coreYes No
/etc/dovecot/conf.d/90-quota.conf dovecot-coreYes No
/etc/dovecot/conf.d/auth-checkpassword.conf.e dovecot-coreYes No
/etc/dovecot/conf.d/auth-deny.conf.extdovecot-coreYes No
/etc/dovecot/conf.d/auth-master.conf.ext  dovecot-coreYes No
/etc/dovecot/conf.d/auth-passwdfile.conf.ext  dovecot-coreYes No
/etc/dovecot/conf.d/auth-sql.conf.ext dovecot-coreYes No
/etc/dovecot/conf.d/auth-static.conf.ext  dovecot-coreYes No
/etc/dovecot/conf.d/auth-system.conf.ext  dovecot-coreYes No
/etc/dovecot/conf.d/auth-vpopmail.conf.extdovecot-coreYes No
/etc/dovecot/dovecot-db.conf.ext  dovecot-coreYes No
/etc/dovecot/dovecot-dict-sql.conf.extdovecot-coreYes No
/etc/dovecot/dovecot-sql.conf.ext dovecot-coreYes No
/etc/dovecot/dovecot.conf dovecot-coreYes No
/etc/ssl/certs/dovecot.pemdovecot-core
/etc/ssl/private/dovecot.pem  dovecot-core


--
Tony 'Nicoya' Mantler - Master of Code-fu
-- nic...@ubb.ca -- http://www.ubb.ca/ --


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject 

Bug#770695: Dovecot-core unable to finish its installation

2014-12-05 Thread Jaldhar H. Vyas

On Wed, 3 Dec 2014, Bob Proulx wrote:


2. Did you edit /etc/dovecot/conf.d/10-ssl.conf at all (from any version.)


Not that I recall.  I haven't done anything with the dovecot
configuration for quite a while now.



I'm concentrating on this file because it has upto now been the cause of 
the postinst hang in every report I've received but the thing is 
the 10-ssl.conf you sent me is precisely what we should expect to see 
after a successful upgrade to -8.  So if you did have something different 
in your file it has already been overwritten.  I don't suppose you use 
something like etckeeper do you?  Or maybe some backup from around when 
you had -5 or 6 installed.




Hmm...  It appears to leave it in a state that reconfiguring again
succeeds.

 # dpkg --configure -a
 Setting up dovecot-core (1:2.2.13-8) ...
 Starting IMAP/POP3 mail server: dovecot.



Yes, by this time the new config file has been installed and whatever 
caused the hang has been overwritten.



But again if I --reinstall then the problem is recreated.  It is
repeatable on my system.


Unfortunately I can't reproduce this.  Can you run the command

ucfq dovecot-core

before and after reinstalling?  It will tell us if any config file has 
changed.


--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-05 Thread Jaldhar H. Vyas
Tony, I forgot to ask you if you've tried -8 and if that has fixed the 
problem for you?


--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-05 Thread Bob Proulx
Jaldhar H. Vyas wrote:
 I'm concentrating on this file because it has upto now been the cause of the
 postinst hang in every report I've received but the thing is the 10-ssl.conf
 you sent me is precisely what we should expect to see after a successful
 upgrade to -8.  So if you did have something different in your file it has
 already been overwritten.  I don't suppose you use something like etckeeper
 do you?  Or maybe some backup from around when you had -5 or 6 installed.

How would previous changes to that file explain the current hang upon
a --reinstall?  At the present time the only changes I have
outstanding are in the 10-mail.conf file.

I do actually use etckeeper and can reach back in time to pull forward
previous file versions.  However the current state of those files is
enough to trigger the problem so it doesn't seem necessary to reach
back in time to find a previous version.  The current state is
sufficient to do it.

 Hmm...  It appears to leave it in a state that reconfiguring again
 succeeds.
 ...
 Yes, by this time the new config file has been installed and whatever caused
 the hang has been overwritten.

Hmm...  I am not seeing any dialog prompts about merging new
configuration files.  I haven't seen any ucf prompts.  If you are
suspicious of the ucf config file handling then 10-mail.conf is
locally modified.  I will make some experients there.

 But again if I --reinstall then the problem is recreated.  It is
 repeatable on my system.
 
 Unfortunately I can't reproduce this.  Can you run the command
 
 ucfq dovecot-core
 
 before and after reinstalling?  It will tell us if any config file has
 changed.

Yes.  The state before and after are identical therefore I attach only
one file for both.

Bob
Configuration filePackage Exists Changed
/etc/dovecot/conf.d/10-auth.conf  dovecot-coreYes No
/etc/dovecot/conf.d/10-director.conf  dovecot-coreYes No
/etc/dovecot/conf.d/10-logging.conf   dovecot-coreYes No
/etc/dovecot/conf.d/10-mail.conf  dovecot-coreYesYes
/etc/dovecot/conf.d/10-master.confdovecot-coreYes No
/etc/dovecot/conf.d/10-ssl.conf   dovecot-coreYes No
/etc/dovecot/conf.d/10-tcpwrapper.confdovecot-coreYes No
/etc/dovecot/conf.d/15-lda.conf   dovecot-coreYes No
/etc/dovecot/conf.d/15-mailboxes.conf dovecot-coreYes No
/etc/dovecot/conf.d/90-acl.conf   dovecot-coreYes No
/etc/dovecot/conf.d/90-plugin.confdovecot-coreYes No
/etc/dovecot/conf.d/90-quota.conf dovecot-coreYes No
/etc/dovecot/conf.d/auth-checkpassword.conf.e dovecot-coreYes No
/etc/dovecot/conf.d/auth-deny.conf.extdovecot-coreYes No
/etc/dovecot/conf.d/auth-master.conf.ext  dovecot-coreYes No
/etc/dovecot/conf.d/auth-passwdfile.conf.ext  dovecot-coreYes No
/etc/dovecot/conf.d/auth-sql.conf.ext dovecot-coreYes No
/etc/dovecot/conf.d/auth-static.conf.ext  dovecot-coreYes No
/etc/dovecot/conf.d/auth-system.conf.ext  dovecot-coreYes No
/etc/dovecot/conf.d/auth-vpopmail.conf.extdovecot-coreYes No
/etc/dovecot/dovecot-db.conf.ext  dovecot-coreYes
/etc/dovecot/dovecot-dict-sql.conf.extdovecot-coreYes
/etc/dovecot/dovecot-sql.conf.ext dovecot-coreYes
/etc/dovecot/dovecot.conf dovecot-coreYes No
/etc/ssl/certs/dovecot.pemdovecot-core
/etc/ssl/private/dovecot.pem  dovecot-core


Bug#770695: Dovecot-core unable to finish its installation

2014-12-04 Thread Jaldhar H. Vyas

On Thu, 4 Dec 2014, Jaldhar H. Vyas wrote:


1. Which version were you originally upgrading from?

2. Did you edit /etc/dovecot/conf.d/10-ssl.conf at all (from any version.)

3. Would you mind sending me the contents of that file?

4. During the upgrade do you remember seeing any message about updating that 
file?


5.  This is a long shot but...do you have the ucf package installed?



Sorry, one more question.  Do the files /etc/dovecot/dovecot.pem and 
/etc/dovecot/private/dovecot.pem exist?



--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-04 Thread Bob Proulx
Jaldhar H. Vyas wrote:
 Sorry, one more question.  Do the files /etc/dovecot/dovecot.pem and
 /etc/dovecot/private/dovecot.pem exist?

Questions are good.

  -rw-r--r-- 1 root dovecot 1257 May 12  2010 /etc/dovecot/dovecot.pem
  -rw--- 1 root dovecot  887 May 12  2010 /etc/dovecot/private/dovecot.pem

Bob


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-03 Thread Bob Proulx
reopen 770695 !
thanks

Since 2014-11-28 I have been unable to continue an installation of
dovecot on my up to date Sid amd64 system.  The problem sounds
identical to the previous posters here.  I read through the bug log
and I do not believe the problem has been fixed yet.

  apt-get upgrade
  ...
  Setting up dovecot-core (1:2.2.13-7) ...
  Replacing config file /etc/dovecot/conf.d/10-ssl.conf with new version
  Starting IMAP/POP3 mail server: dovecot.
  ...hang...never returns...

  root   415 32407  0 15:16 pts/58   00:00:00 /usr/bin/perl 
-w /usr/share/debconf/frontend /var/lib/dpkg/info/dovecot-core.postinst 
configure 1:2.2.13-6
  ... killing 415 allowed the apt-get install process to continue...

This problem persists as recently as today when I had time to look
into it further.

If I try to reinstall the problem is recreated.  The only way to break
it free is to kill 12128 below so that the process will error.

  UIDPID  PPID  C STIME TTY  TIME CMD
  root 11008 12921  2 21:58 pts/60   00:00:01 /usr/bin/apt-get 
install --reinstall dovecot-core
  root 12127 11008  0 21:59 pts/63   00:00:00   /usr/bin/dpkg 
--status-fd 23 --configure dovecot-core:amd64
  root 12128 12127  3 21:59 pts/63   00:00:00 /usr/bin/perl 
-w /usr/share/debconf/frontend /var/lib/dpkg/info/dovecot-core.postinst 
configure 1:2.2.13-8
  root 12134 12128  0 21:59 pts/63   00:00:00   
[dovecot-core.po] defunct

What can I do to get more debug information for you?

Bob


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-03 Thread Jaldhar H. Vyas

On Wed, 3 Dec 2014, Bob Proulx wrote:


 Setting up dovecot-core (1:2.2.13-7) ...
 Replacing config file /etc/dovecot/conf.d/10-ssl.conf with new version
 Starting IMAP/POP3 mail server: dovecot.
 ...hang...never returns...


Have you tried -8? which I uploaded earlier today?   I think (hope(pray)) 
that did finally fix the upgrade issue.


--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-03 Thread Bob Proulx
Jaldhar H. Vyas wrote:
 Bob Proulx wrote:
  Setting up dovecot-core (1:2.2.13-7) ...
  Replacing config file /etc/dovecot/conf.d/10-ssl.conf with new version
  Starting IMAP/POP3 mail server: dovecot.
  ...hang...never returns...
 
 Have you tried -8? which I uploaded earlier today?   I think (hope(pray))
 that did finally fix the upgrade issue.

Sorry.  The above was captured by me with -7.  But during my reinstall
tests just a few minutes ago it was with the -8 package.  No change.
The ps listings I showed were from the -8 package.  Here is more fresh
detail.

  # apt-get install --reinstall dovecot-core
  Reading package lists... Done
  Building dependency tree   
  Reading state information... Done
  0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 9 not upgraded.
  Need to get 0 B/2674 kB of archives.
  After this operation, 0 B of additional disk space will be used.
  (Reading database ... 602023 files and directories currently installed.)
  Preparing to unpack .../dovecot-core_1%3a2.2.13-8_amd64.deb ...
  Stopping IMAP/POP3 mail server: dovecot.
  Unpacking dovecot-core (1:2.2.13-8) over (1:2.2.13-8) ...
  Processing triggers for man-db (2.7.0.2-3) ...
  Setting up dovecot-core (1:2.2.13-8) ...
  Starting IMAP/POP3 mail server: dovecot.
  ...hang...
  ...take a clock timestamp... Wed, 03 Dec 2014 22:29:02 -0700
  ...do other things for a few minutes...
  ...take a ps listing...
  root 23957 12921  2 22:28 pts/60   00:00:04 /usr/bin/apt-get 
install --reinstall dovecot-core
  root 24889 23957  0 22:28 pts/65   00:00:00   /usr/bin/dpkg 
--status-fd 23 --configure dovecot-core:amd64
  root 24890 24889  0 22:28 pts/65   00:00:00 /usr/bin/perl 
-w /usr/share/debconf/frontend /var/lib/dpkg/info/dovecot-core.postinst 
configure 1:2.2.13-8
  root 24896 24890  0 22:28 pts/65   00:00:00   
[dovecot-core.po] defunct
  ...wait a while longer...
  ...Wed, 03 Dec 2014 22:48:41 -0700
  ...it is really stuck...
  ...kill 24890...
  dpkg: error processing package dovecot-core (--configure):
   subprocess installed post-installation script was killed by signal 
(Terminated)
  Errors were encountered while processing:
   dovecot-core
  E: Sub-process /usr/bin/dpkg returned an error code (1)

Bob


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-03 Thread Jaldhar H. Vyas

On Wed, 3 Dec 2014, Bob Proulx wrote:



Sorry.  The above was captured by me with -7.  But during my reinstall
tests just a few minutes ago it was with the -8 package.  No change.
The ps listings I showed were from the -8 package.


Drat.


1. Which version were you originally upgrading from?

2. Did you edit /etc/dovecot/conf.d/10-ssl.conf at all (from any version.)

3. Would you mind sending me the contents of that file?

4. During the upgrade do you remember seeing any message about updating 
that file?


5.  This is a long shot but...do you have the ucf package installed?

Past my bedtime now but if you can answer these questions, I'll look into 
this tomorrow.


--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-12-03 Thread Bob Proulx
Jaldhar H. Vyas wrote:
 Bob Proulx wrote:
 Sorry.  The above was captured by me with -7.  But during my reinstall
 tests just a few minutes ago it was with the -8 package.  No change.
 The ps listings I showed were from the -8 package.
 
 Drat.

:-)  I know the feeling.

 1. Which version were you originally upgrading from?

  $ zgrep dovecot-core /var/log/dpkg.log* | awk '$3==upgrade'
  /var/log/dpkg.log-20140401.gz:2014-03-11 11:17:53 upgrade dovecot-core:amd64 
1:2.2.9-1 1:2.2.10-1
  /var/log/dpkg.log-20140401.gz:2014-03-24 16:15:55 upgrade dovecot-core:amd64 
1:2.2.10-1 1:2.2.12-2
  /var/log/dpkg.log-20140501.gz:2014-04-23 12:30:58 upgrade dovecot-core:amd64 
1:2.2.12-2 1:2.2.12-3
  /var/log/dpkg.log-20140601.gz:2014-05-12 13:11:12 upgrade dovecot-core:amd64 
1:2.2.12-3 1:2.2.13~rc1-1
  /var/log/dpkg.log-20140601.gz:2014-05-26 15:44:46 upgrade dovecot-core:amd64 
1:2.2.13~rc1-1 1:2.2.13-1
  /var/log/dpkg.log-20140701.gz:2014-06-30 15:03:51 upgrade dovecot-core:amd64 
1:2.2.13-1 1:2.2.13-2
  /var/log/dpkg.log-20140801.gz:2014-07-21 09:35:13 upgrade dovecot-core:amd64 
1:2.2.13-2 1:2.2.13-3
  /var/log/dpkg.log-20140801.gz:2014-07-31 18:44:39 upgrade dovecot-core:amd64 
1:2.2.13-3 1:2.2.13-4
  /var/log/dpkg.log-20141001.gz:2014-09-08 10:41:33 upgrade dovecot-core:amd64 
1:2.2.13-4 1:2.2.13-5
  /var/log/dpkg.log-20141101.gz:2014-10-27 12:05:00 upgrade dovecot-core:amd64 
1:2.2.13-5 1:2.2.13-6
  /var/log/dpkg.log-20141201:2014-11-28 15:14:56 upgrade dovecot-core:amd64 
1:2.2.13-6 1:2.2.13-7
  /var/log/dpkg.log:2014-12-03 14:38:45 upgrade dovecot-core:amd64 1:2.2.13-7 
1:2.2.13-8
  /var/log/dpkg.log:2014-12-03 21:58:59 upgrade dovecot-core:amd64 1:2.2.13-8 
1:2.2.13-8
  /var/log/dpkg.log:2014-12-03 22:28:26 upgrade dovecot-core:amd64 1:2.2.13-8 
1:2.2.13-8

 2. Did you edit /etc/dovecot/conf.d/10-ssl.conf at all (from any version.)

Not that I recall.  I haven't done anything with the dovecot
configuration for quite a while now.

 3. Would you mind sending me the contents of that file?

Attached.

 4. During the upgrade do you remember seeing any message about updating that
 file?

No.  I pasted the output verbatim.

 5.  This is a long shot but...do you have the ucf package installed?

Yes.  It is required by other packages.

  $ dpkg --status ucf
  Package: ucf
  Status: install ok installed
  Version: 3.0030
  ...

 Past my bedtime now but if you can answer these questions, I'll look into
 this tomorrow.

Hmm...  It appears to leave it in a state that reconfiguring again
succeeds.

  # dpkg --configure -a
  Setting up dovecot-core (1:2.2.13-8) ...
  Starting IMAP/POP3 mail server: dovecot.

I see this in the syslog.

  Dec  3 22:28:27 despair dovecot: master: Warning: Killed with signal 15 (by 
pid=24051 uid=0 code=kill)
  Dec  3 22:28:41 despair dovecot: master: Dovecot v2.2.13 starting up for imap 
(core dumps disabled)

But again if I --reinstall then the problem is recreated.  It is
repeatable on my system.

I would be happy to test candidate packages or hacks or patches
directly if you provide them to me.  Since I have a system in the
victim state and can test.  This is not a production system but is my
own desktop that I use for exactly this type of testing so that we can
catch problems before it releases.

Get some sleep! :-)

Bob
##
## SSL settings
##

# SSL/TLS support: yes, no, required. doc/wiki/SSL.txt
ssl = no

# PEM encoded X.509 SSL/TLS certificate and private key. They're opened before
# dropping root privileges, so keep the key file unreadable by anyone but
# root. Included doc/mkcert.sh can be used to easily generate self-signed
# certificate, just make sure to update the domains in dovecot-openssl.cnf
#ssl_cert = /etc/dovecot/dovecot.pem
#ssl_key = /etc/dovecot/private/dovecot.pem

# If key file is password protected, give the password here. Alternatively
# give it when starting dovecot with -p parameter. Since this file is often
# world-readable, you may want to place this setting instead to a different
# root owned 0600 file by using ssl_key_password = path.
#ssl_key_password =

# PEM encoded trusted certificate authority. Set this only if you intend to use
# ssl_verify_client_cert=yes. The file should contain the CA certificate(s)
# followed by the matching CRL(s). (e.g. ssl_ca = /etc/ssl/certs/ca.pem)
#ssl_ca = 

# Require that CRL check succeeds for client certificates.
#ssl_require_crl = yes

# Directory and/or file for trusted SSL CA certificates. These are used only
# when Dovecot needs to act as an SSL client (e.g. imapc backend). The
# directory is usually /etc/ssl/certs in Debian-based systems and the file is
# /etc/pki/tls/cert.pem in RedHat-based systems.
#ssl_client_ca_dir =
#ssl_client_ca_file =

# Request client to send a certificate. If you also want to require it, set
# auth_ssl_require_client_cert=yes in auth section.
#ssl_verify_client_cert = no

# Which field from certificate to use for username. commonName and
# x500UniqueIdentifier are the usual choices. You'll 

Bug#770695: Dovecot-core unable to finish its installation

2014-11-29 Thread Tony Mantler
I'm trying to install dovecot-core (1:2.2.13-7) and I do have valid 
certificates in /etc/dovecot/conf.d/10-ssl.conf and the postinst script is 
still hanging. I don't believe this bug is fixed.

--
Tony 'Nicoya' Mantler - Master of Code-fu
-- nic...@ubb.ca -- http://www.ubb.ca/ --


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-11-29 Thread Jaldhar H. Vyas

On Sat, 29 Nov 2014, Tony Mantler wrote:

I'm trying to install dovecot-core (1:2.2.13-7) and I do have valid 
certificates in /etc/dovecot/conf.d/10-ssl.conf and the postinst script 
is still hanging. I don't believe this bug is fixed.




No this is a different bug. :(  See #771334

--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-11-29 Thread Tony Mantler

 On Nov 29, 2014, at 11:12 AM, Jaldhar H. Vyas jald...@debian.org wrote:
 
 On Sat, 29 Nov 2014, Tony Mantler wrote:
 
 I'm trying to install dovecot-core (1:2.2.13-7) and I do have valid 
 certificates in /etc/dovecot/conf.d/10-ssl.conf and the postinst script is 
 still hanging. I don't believe this bug is fixed.
 
 
 No this is a different bug. :(  See #771334

I don't think that's the problem I'm seeing. I have valid keys in the default 
locations, in /etc/dovecot/dovecot.pem and /etc/dovecot/private/dovecot.pem

I commented out the lines in /etc/dovecot/conf.d/10-ssl.conf and ran the 
package upgrade again, then re-enabled the lines in the conf file and my 
installation is now working with encryption enabled. The problem was definitely 
that the postinst script was hanging during upgrade.

--
Tony 'Nicoya' Mantler - Master of Code-fu
-- nic...@ubb.ca -- http://www.ubb.ca/ --


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-11-29 Thread Jaldhar H. Vyas

On Sat, 29 Nov 2014, Tony Mantler wrote:

I don't think that's the problem I'm seeing. I have valid keys in the 
default locations, in /etc/dovecot/dovecot.pem and 
/etc/dovecot/private/dovecot.pem


I commented out the lines in /etc/dovecot/conf.d/10-ssl.conf and ran the 
package upgrade again, then re-enabled the lines in the conf file and my 
installation is now working with encryption enabled. The problem was 
definitely that the postinst script was hanging during upgrade.


At the time the postinst was hanging, were ssl_key and ssl_cert commented 
out or not?  As I understand the current situation -7 is installing a new 
version of 10-ssl.conf with those lines commented out when they shouldn't 
be.  If they are not commented out and the postinst is still hanging then 
yes there is a (new?) problem.


--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-11-29 Thread Tony Mantler

 On Nov 29, 2014, at 11:58 AM, Jaldhar H. Vyas jald...@debian.org wrote:
 
 On Sat, 29 Nov 2014, Tony Mantler wrote:
 
 I don't think that's the problem I'm seeing. I have valid keys in the 
 default locations, in /etc/dovecot/dovecot.pem and 
 /etc/dovecot/private/dovecot.pem
 
 I commented out the lines in /etc/dovecot/conf.d/10-ssl.conf and ran the 
 package upgrade again, then re-enabled the lines in the conf file and my 
 installation is now working with encryption enabled. The problem was 
 definitely that the postinst script was hanging during upgrade.
 
 At the time the postinst was hanging, were ssl_key and ssl_cert commented out 
 or not?  As I understand the current situation -7 is installing a new version 
 of 10-ssl.conf with those lines commented out when they shouldn't be.  If 
 they are not commented out and the postinst is still hanging then yes there 
 is a (new?) problem.

When postinst was hanging, those lines were not commented out.


--
Tony 'Nicoya' Mantler - Master of Code-fu
-- nic...@ubb.ca -- http://www.ubb.ca/ --


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-11-29 Thread Jaldhar H. Vyas

On Sat, 29 Nov 2014, Tony Mantler wrote:


When postinst was hanging, those lines were not commented out.



And just to confirm, this was when upgrading from -6 to -7?

--
Jaldhar H. Vyas jald...@debian.org


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-11-29 Thread Tony Mantler
 On Nov 29, 2014, at 12:16 PM, Jaldhar H. Vyas jald...@debian.org wrote:
 
 On Sat, 29 Nov 2014, Tony Mantler wrote:
 
 When postinst was hanging, those lines were not commented out.
 
 
 And just to confirm, this was when upgrading from -6 to -7?

No, it was probably a fair bit earlier than -6, I hadn't upgraded in a while.

--
Tony 'Nicoya' Mantler - Master of Code-fu
-- nic...@ubb.ca -- http://www.ubb.ca/ --


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#770695: Dovecot-core unable to finish its installation

2014-11-27 Thread Jaldhar H. Vyas

On Sun, 23 Nov 2014, Cédric Jeanneret wrote:


Missing SSL certificate, as reported in #732263

Broken post-install script (this report).



It was the missing certificates which were causing the postinst to hang.

I have just uploaded 1:2.2.13-7 which should fix this problem.  It is 
going into unstable now and will reach testing (Jessie) in another 10 
days. If you want to continue with -6, you can fix it yourself by 
commenting out the ssl_cert and ssl_key entries from 
/etc/dovecot/conf.d/10-ssl.conf (or making sure they point to valid 
certificates) and reinstalling.



--
Jaldhar H. Vyas jald...@debian.org

Bug#770695: Dovecot-core unable to finish its installation

2014-11-23 Thread Cédric Jeanneret
Package: dovecot-core
Version: 1:2.2.13-6
Severity: critical




Hello,

I'm trying to install dovecot on Jessie, but it's unable to install
properly. There are two distinct problems:

Missing SSL certificate, as reported in #732263

Broken post-install script (this report).

the installer is stuck with this process:

root@mailserver-1:~# dpkg --configure -a
Setting up dovecot-core (1:2.2.13-6) ...
Starting IMAP/POP3 mail server: dovecot.

ps -fax shows this:
 8651 pts/3S+ 0:00  \_ dpkg --configure -a
 8652 pts/3S+ 0:00  \_ /usr/bin/perl -w
/usr/share/debconf/frontend /var/lib/dpkg/info/dovecot-core.postinst
configure
 8658 pts/3Z+ 0:00  \_ [dovecot-core.po] defunct
10116 ?Ss 0:00 /usr/sbin/dovecot -c /etc/dovecot/dovecot.conf
10119 ?S  0:00  \_ dovecot/anvil
10120 ?S  0:00  \_ dovecot/log
10122 ?S  0:00  \_ dovecot/config


It seems there's something wanting to ask questions, but nothing shows
up on the screen…


dpkg -l | grep dovecot:
iF  dovecot-core 1:2.2.13-6  amd64

System information:
Distributor ID: Debian
Description:Debian GNU/Linux testing (jessie)
Release:testing
Codename:   jessie

Running in a Vagrant box (Virtualbox provider).

Cheers,

C.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org