[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-27 Thread Thierry Carrez
** Tags added: server-mrs

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-27 Thread Thierry Carrez
I did a fresh install of dovecot-postfix on Maverick, including:
dovecot-common 1:1.2.12-1ubuntu5
postfix 2.7.1-1

I had no problem restarting dovecot:
$ sudo service dovecot restart
dovecot start/running, process 2490

Or upgrading dovecot-postfix:
Unpacking replacement dovecot-postfix ...
Setting up dovecot-postfix (1:1.2.11-1ubuntu1) ...
Configuring postfix for dovecot-postfix integration:  done.
dovecot start/running, process 3015
 * Stopping Postfix Mail Transport Agent postfix [ OK ] 
 * Starting Postfix Mail Transport Agent postfix [ OK ] 

So it looks like it's not 100% reproducible, or only affects busy
dovecot instances ?

The classic init script had a do_stop that would run twice in a row
start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --pidfile
$PIDFILE --name ${DAEMON##*/}... maybe that's why it succeeds in your
case.

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-27 Thread Yan Grunenberger
My maverick is an update of a fresh lucid 10.04.1 with dovecot+dovecot-
postfix already installed (default settings).

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-27 Thread Thierry Carrez
Note for whoever would commit a fix for this, please fix the dovoecot
typo in dovecot-common.dovecot.upstart while you are at it.

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-27 Thread Thierry Carrez
** Changed in: dovecot (Ubuntu Maverick)
 Assignee: (unassigned) = Chuck Short (zulcss)

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-27 Thread Chuck Short
This is my proposed fix.

** Patch added: dovecot-debdiff.patch
   
https://bugs.edge.launchpad.net/ubuntu/+source/dovecot/+bug/646858/+attachment/1644592/+files/dovecot-debdiff.patch

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-27 Thread Yan Grunenberger
Fix is working in my case after a reboot. Start/stop multiple time with
not hang state.

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-27 Thread Brian Murray
** Tags added: patch

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-27 Thread Mathias Gug
After more investigation it seems that the issue is triggered by
managesieve: when managesieve is enabled dovecot forks multiple times
which leads upstart to loose track of it. If managesieve is disabled
upstart is correctly tracking dovecot.

The posted debdiff fixes the problem. Please upload to Maverick.

** Changed in: dovecot (Ubuntu Maverick)
   Status: Confirmed = In Progress

** Summary changed:

- dovecot-postfix and upstart incompatibility
+ upstart unable to correctly track dovecot daemon when managesieve plugin is 
enabled

** Description changed:

+ 
+ When the managesieve plugin is enabled it seems that dovecot forks once more 
than what upstart expects. Upstart tracks the wrong pid with expect fork set.
+ 
+ 
+ Original description
+ 
  Binary package hint: dovecot-postfix
  
  Dovecot on Maverick is now using upstart to launch dovecot. When
  dovecot-postfix is installed, the dovecot must have some component as
  root (for SASL authentification purpose, in order to write to postfix
  chroot). Problem is, the system can start dovecot on boot, but any
  attempt into using restart dovecot will result in a hang of upstart.
  CTRL+C can cancel it, but then dovecot is in a strange state, with half
  the processus presents in memory. This is not the correct behavior, as
  we except a smooth restart of such an important service of the mail
  (especially if SASL authentification of postfix is involved).
  
- As a workaround, I replace the symlink to upstart by the old init.d original 
script from ubuntu 10.04.1. 
+ As a workaround, I replace the symlink to upstart by the old init.d original 
script from ubuntu 10.04.1.
  I try to figure out a clean solution, but apparently this is inherent to 
upstart and explains why some package, such as apache, did not go on the 
upstart train already.

** Also affects: upstart (Ubuntu)
   Importance: Undecided
   Status: New

-- 
upstart unable to correctly track dovecot daemon when managesieve plugin is 
enabled
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-26 Thread Christopher
I have postfix and dovecot-postfix installed, but it will not update.
This from the terminal:

Setting up dovecot-postfix (1:1.2.11-1ubuntu1) ...
Configuring postfix for dovecot-postfix integration:  done.
runlevel:/var/run/utmp: No such file or directory

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-26 Thread Christopher
I meant to add that I can't do normal updates, so this is a security
issue as far as I'm concerned. I haven't found a way to not update
dovecot-postfix, and it blocks all other updates. Running dpkg
--configure -a just starts the dovecot-postfix update, and it just stops
after the last line of my most recent post.

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-26 Thread doclist
You can kill dovecot (sudo pkill dovecot) and it will resume package
installation/configuration but dovecot will still not be running since
it cannot be started with the present bug.

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-26 Thread Yan Grunenberger
I had the same situation. I finish by rebooting to solve the 1st update lockout 
on the first occurrence. On the second, I just change conveniently the upstart 
script by the genuine one and the return code was OK for the update to 
complete. 
In order to find a clean upstart-based solution, I try to switch to expect 
daemon in /etc/init/dovecot.conf to insure upstart being capable of tracking 
dovecot process, but I've got the same hangup problem. 
Question is, is upstart capable of tracking program launched in a unprivileged 
way by the daemon ?
The only similar reference I'm thinking of is 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582745 .

** Bug watch added: Debian Bug tracker #582745
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582745

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-25 Thread doclist
Bug #603285 introduced the relevant change.

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-25 Thread Scott Kitterman
** Changed in: dovecot (Ubuntu)
   Status: New = Confirmed

** Changed in: dovecot (Ubuntu)
   Importance: Undecided = High

** Changed in: dovecot (Ubuntu)
Milestone: None = ubuntu-10.10

** Also affects: dovecot (Ubuntu Maverick)
   Importance: High
   Status: Confirmed

** Tags added: regression-potential

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 646858] Re: dovecot-postfix and upstart incompatibility

2010-09-24 Thread doclist
I am also suffering from the inability to restart dovecot (or stop it)
using sudo service dovecot restart but unlike the original poster I do
not have dovecot-postfix installed only dovecot-common and dovecot-imap.

-- 
dovecot-postfix and upstart incompatibility
https://bugs.launchpad.net/bugs/646858
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to dovecot in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs