[Bug 727403] New: systemd does not start postfix ?
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c0 Summary: systemd does not start postfix ? Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- Blocker: --- this is an 11.4 system being updated to 12.1-beta and -factory. if I boot sysvinit (init=/sbin/sysvinit) then postfix still gets started: # grep postfix /var/log/boot.msg service postfix start service postfix done <notice -- Oct 31 18:15:53.314469000> service postfix stop service postfix done but if I boot with systemd, postfix is not running: # mailq postqueue: warning: Mail system is down -- accessing queue directly Mail queue is empty # ps uax | grep postfix root 7625 0.0 0.0 6792 872 pts/0 S+ 18:29 0:00 grep postfix # chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. disabled postfix off but # find /etc/init.d/ -name \*postfix\* -ls 263983 0 lrwxrwxrwx 1 root root 10 Oct 6 12:00 /etc/init.d/rc3.d/S13postfix -> ../postfix 263932 0 lrwxrwxrwx 1 root root 10 Oct 6 11:21 /etc/init.d/rc3.d/K02postfix -> ../postfix 264080 0 lrwxrwxrwx 1 root root 10 Oct 6 12:00 /etc/init.d/rc5.d/S13postfix -> ../postfix 264035 0 lrwxrwxrwx 1 root root 10 Oct 6 11:21 /etc/init.d/rc5.d/K02postfix -> ../postfix 334015 8 -rwxr-xr-x 1 root root 7900 Oct 18 14:50 /etc/init.d/postfix I could manaully start postfix: # systemctl start postfix.service # mailq Mail queue is empty and at least after # chkconfig postfix off # chkconfig postfix on postfix now runs after boot with systemd, too... now after reboot I get # systemctl is-enabled postfix.service enabled and learn more and more how to use "systemctl" ;-) but shouldn't that be somewhat more automatic? is this "only" an update problem? if yes, may be a beta-only update problem? if the latter, forget about my report;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c1 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |varkoly@suse.com AssignedTo|bnc-team-screening@forge.pr |fcrozat@suse.com |ovo.novell.com | --- Comment #1 from Andreas Jaeger <aj@suse.com> 2011-10-31 18:56:35 UTC --- Peter, Frederic, can you look into this, please? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c2 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|fcrozat@suse.com |varkoly@suse.com --- Comment #2 from Frederic Crozat <fcrozat@suse.com> 2011-11-04 09:12:57 UTC --- systemd .service packages in postfix package aren't following systemd packaging guideline, causing the service to be ignored when running under systemd. http://en.opensuse.org/openSUSE:Systemd_packaging_guidelines -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c3 Peter Varkoly <varkoly@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |FIXED --- Comment #3 from Peter Varkoly <varkoly@suse.com> 2011-11-04 11:28:00 UTC --- fixed -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c4 Harald Koenig <koenig@linux.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|FIXED | --- Comment #4 from Harald Koenig <koenig@linux.de> 2011-11-23 19:13:44 UTC --- after updating my late-12.1-beta to 12.1-final using "zypper dup" again I get $ mailq postqueue: fatal: Queue report unavailable - mail system is down $ /sbin/chkconfig postfix Note: Forwarding request to 'systemctl is-enabled postfix.service'. disabled postfix off if I boot with "init=/sbin/sysvinit" then postfix gets started: $ mailq Mail queue is empty $/sbin/chkconfig postfix postfix on why ??? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c5 Peter Varkoly <varkoly@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |per@opensuse.org --- Comment #5 from Peter Varkoly <varkoly@suse.com> 2011-11-24 15:11:18 UTC --- *** Bug 730787 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=730787 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c7 James Knott <james.knott@rogers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |james.knott@rogers.com --- Comment #7 from James Knott <james.knott@rogers.com> 2011-11-24 15:35:40 UTC --- Comment #3 says there's a fix, but provides no details. What is the fix? Can it be applied to existing systems? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c8 --- Comment #8 from Peter Varkoly <varkoly@suse.com> 2011-11-24 15:45:20 UTC --- The fix is: the macros mentioned in http://en.opensuse.org/openSUSE:Systemd_packaging_guidelines were applied. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c9 --- Comment #9 from James Knott <james.knott@rogers.com> 2011-11-24 15:53:45 UTC --- So, how do packaging guidelines help someone who has installed 12.1, where postfix is broken? Is there a new fixed package somewhere? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c10 Tony Mechelynck <antoine.mechelynck@belgacom.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |antoine.mechelynck@belgacom | |.net --- Comment #10 from Tony Mechelynck <antoine.mechelynck@belgacom.net> 2011-11-26 07:27:54 CET --- I saw Postfix stop working after updating from openSUSE 11.4 (with a "real" System V Init) to 12.1 (with /sbin/init softlinked to /bin/systemd) but the cause seems more specific than in this bug (see bug 732859): I had IPv6 default addresses (::1 etc.) in /etc/hosts but no IPv6 connection to the outside. After adding # in front of those IPv6 lines, Postfix started correctly under systemd. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c11 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aj@suse.com --- Comment #11 from Andreas Jaeger <aj@suse.com> 2011-11-28 11:54:37 UTC --- Peter, I suggest to do an online update. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c13 --- Comment #13 from Harald Koenig <koenig@linux.de> 2011-11-29 10:44:26 UTC --- (In reply to comment #11)
Peter, I suggest to do an online update.
I've installed all available patches and updates, still systemd does not start postfix:-( version check: $ rpm -q postfix systemd postfix-2.8.5-3.2.1.x86_64 systemd-37-3.4.1.x86_64 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c14 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|fcrozat@suse.com | --- Comment #14 from Frederic Crozat <fcrozat@suse.com> 2011-11-29 13:06:37 UTC --- Harald, what is the output of systemctl status postfix.service I think you are still hit by the bug, because the fix Peter did was only for people migrating from 11.4 to 12.1 after the fix was released. In your case, to force migration back, try rm /var/lib/systemd/migrated/postfix and zypper in --force postfix -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c15 --- Comment #15 from Harald Koenig <koenig@linux.de> 2011-11-29 15:37:48 UTC --- thanks! a manual systemctl enable postfix.service finally managed to get the postfix start automatically. unfortuneately chkconfig postfix on does not work, this only reports the status but does not enable it... I'd say "fixed for me" ;-) but later this week I'll do a new, clean 12.1 installation on my new server (still 12.1-beta) and there I'll have a look on postfix again for sure;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c16 --- Comment #16 from Harald Koenig <koenig@linux.de> 2011-11-29 15:49:55 UTC --- just for my own curiosity (and this record;) I did systemctl disable postfix.service reboot to test again (not sure that still is a valid test environment for the original problem?!)... (In reply to comment #14)
Harald, what is the output of
systemctl stats postfix.service
postfix.service - Postfix Mail Transport Agent Loaded: loaded (/lib/systemd/system/postfix.service; disabled) Active: inactive (dead) CGroup: name=systemd:/system/postfix.service
I think you are still hit by the bug, because the fix Peter did was only for people migrating from 11.4 to 12.1 after the fix was released.
In your case, to force migration back, try rm /var/lib/systemd/migrated/postfix and zypper in --force postfix
after "in --force postfix" I still see postfix.service - Postfix Mail Transport Agent Loaded: loaded (/lib/systemd/system/postfix.service; disabled) Active: inactive (dead) CGroup: name=systemd:/system/postfix.service and reboot with systemd does not start postfix. likely that's only because of the explicit "disable postfix.service" before ?! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c17 --- Comment #17 from Frederic Crozat <fcrozat@suse.com> 2011-11-29 16:00:42 UTC --- of course, the test to be make is to migrate 11.4 to 12.1. Running a "mix" and trying to force the upgrade might not work. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c18 Frank Ansari <nabil83@snafu.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nabil83@snafu.de --- Comment #18 from Frank Ansari <nabil83@snafu.de> 2011-12-06 09:33:33 UTC --- I installed openSUSE 12.1 on two systems: Fresh installation on x86_64: ==> postfix does not start after boot although it is enabled in yast runlevels. But: systemctl is-enabled postfix.service disabled Update on i586 ==> same So I guess it's not an upgrade issue. Frank -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c19 --- Comment #19 from Frederic Crozat <fcrozat@suse.com> 2011-12-06 09:45:28 UTC --- postfix is not added to preset list, so it won't be enabled by default if the package is just installed.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c20 --- Comment #20 from Frank Ansari <nabil83@snafu.de> 2011-12-09 14:47:45 UTC --- OK - so this is the explanation. Then the question is whether it is a bug or a feature. In my case I just noticed by accident that all my outgoing mail was hanging in the queue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c21 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lnussel@suse.com --- Comment #21 from Frederic Crozat <fcrozat@suse.com> 2011-12-09 14:53:11 UTC --- this is a policy decision.. Ludwig ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c22 --- Comment #22 from Per Jessen <per@opensuse.org> 2011-12-09 15:48:59 UTC --- Whether it is a feature or a bug, it's a regression. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c23 --- Comment #23 from Ludwig Nussel <lnussel@suse.com> 2011-12-12 09:07:14 CET --- postfix is default on in sysv so should be ok for systemd as well. I'm not sure it's a good idea to enable any kind of service via online update at this point though. Kind of an involuntary implementation of feature 312320. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c24 --- Comment #24 from Per Jessen <per@opensuse.org> 2011-12-12 08:30:53 UTC --- I vote for putting out an update to fix this regression. Being able to send email is a key system feature. There are far too many services that rely on email notifications - mdadmd, snmp, smartd, cron, freshclam, probably many more less general services. It's a nasty surprise to find any such notifications queued up after a couple of weeks or more. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c25 --- Comment #25 from Frederic Crozat <fcrozat@suse.com> 2011-12-12 10:47:46 UTC --- just changing the presets won't change the installed systems. anyway, please test with systemd-presets-branding-openSUSE from home:fcrozat:systemd -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c26 --- Comment #26 from Ludwig Nussel <lnussel@suse.com> 2011-12-12 11:54:33 CET --- when would the changed preset be taken into consideration then? When updating postfix? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c27 --- Comment #27 from Frederic Crozat <fcrozat@suse.com> 2011-12-12 10:58:01 UTC --- you have to run systemctl preset postfix.service (we can't run it automatically, even on package upgrade, since it would override user preferences) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c28 --- Comment #28 from Ludwig Nussel <lnussel@suse.com> 2011-12-12 13:40:58 CET --- (In reply to comment #27)
you have to run systemctl preset postfix.service
(we can't run it automatically, even on package upgrade, since it would override user preferences)
That's what %service_add_post does though. I thought it somehow remembers which presets it already applied in order to not overwrite user choice? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c29 --- Comment #29 from Frederic Crozat <fcrozat@suse.com> 2011-12-12 12:52:17 UTC --- no, it doesn't, unfortunately (I though systemctl preset was doing that, but it isn't..) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c30 --- Comment #30 from Ludwig Nussel <lnussel@suse.com> 2011-12-12 14:02:36 CET --- D'oh. That means the mechanism isn't any better than the sysv way. As soon as a package listed in a preset gets updates it will auto-activate itself again then. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c31 --- Comment #31 from Frederic Crozat <fcrozat@suse.com> 2011-12-12 13:10:43 UTC --- no, it won't, since preset is only applied on the initial package install, not on package upgrade. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c32 --- Comment #32 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-12-12 17:00:11 CET --- This is an autogenerated message for OBS integration: This bug (727403) was mentioned in https://build.opensuse.org/request/show/96373 Factory / systemd-presets-branding-openSUSE -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c33 --- Comment #33 from Ludwig Nussel <lnussel@suse.com> 2011-12-13 10:21:41 CET --- (In reply to comment #31)
no, it won't, since preset is only applied on the initial package install, not on package upgrade.
Ah, bug 728104. Unfortunately not all packages got rebuild to use the macro so when looking at the 12.1 postfix package I couldn't find your fix. Any potential future update will include it of course. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c34 --- Comment #34 from Frederic Crozat <fcrozat@suse.com> 2011-12-13 09:29:09 UTC --- damn, I thought they were all rebuilt :( -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c35 patrick shanahan <pat@indy.rr.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pat@indy.rr.com --- Comment #35 from patrick shanahan <pat@indy.rr.com> 2011-12-15 23:28:15 UTC --- I have the same problem with postfix not being started on boot. One system is tumbelweed update, zypper dup, from 11.4 and the other a clean install of one of the later snapshots via beta,rc,gold-master both have had "zypper in --force postfix" neither postfix starts on boot. ps. nfs doesn't either but on the updated machine I can force it to start manually. On the other it will not run. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727403 https://bugzilla.novell.com/show_bug.cgi?id=727403#c36 Cristian Rodríguez <crrodriguez@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |crrodriguez@opensuse.org Resolution| |FIXED Severity|Major |Critical --- Comment #36 from Cristian Rodríguez <crrodriguez@opensuse.org> 2011-12-17 11:19:28 CLST --- Update has been released -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com