LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-19-2022, 12:01 AM   #1
MadMartian
LQ Newbie
 
Registered: Jun 2021
Distribution: N00buntu
Posts: 11

Rep: Reputation: Disabled
Unhappy Postfix complains it's already running


I'm at a loss for figuring out why Postfix is giving me grief. It fails to start automatically when I start my machine, but when I manually start it then it works but it also complains with the error message:

Code:
fatal: the Postfix mail system is already running
This is quite odd considering it wasn't actually running, so it's as if it tried to start it twice.

I also get the same behavior when installing it fresh or when installing some other package:

Code:
Setting up postfix (3.4.13-0ubuntu1.2) ...

Postfix (main.cf) configuration was not changed.  If you need to make changes, 
edit /etc/postfix/main.cf (and others) as needed.  To view Postfix 
configuration values, see postconf(1).

After modifying main.cf, be sure to run 'systemctl reload postfix'.

Job for postfix.service failed because the control process exited with error code.
See "systemctl status postfix.service" and "journalctl -xe" for details.
invoke-rc.d: initscript postfix, action "restart" failed.
● postfix.service - Postfix Mail Transport Agent
     Loaded: loaded (/etc/systemd/system/postfix.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2022-05-18 21:55:19 PDT; 42ms ago
    Process: 2158538 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)

May 18 21:55:18 Hoth systemd[1]: Starting Postfix Mail Transport Agent...
May 18 21:55:18 Hoth postfix/postfix-script[2158544]: fatal: the Postfix mail system is already running
May 18 21:55:19 Hoth systemd[1]: postfix.service: Control process exited, code=exited, status=1/FAILURE
May 18 21:55:19 Hoth systemd[1]: postfix.service: Failed with result 'exit-code'.
May 18 21:55:19 Hoth systemd[1]: Failed to start Postfix Mail Transport Agent.
dpkg: error processing package postfix (--configure):
 installed postfix package post-installation script subprocess returned error exit status 1
I've tried purging it and reinstalling it to no avail, this appears to be a stock issue but then why hasn't anyone else complained about this?

When I use systemctl to stop postfix it seems to work fine, there are no "postfix" processes running and nothing is listening on TCP port 25. Then when I start postfix using systemctl it complains with the same error message noted above, that it's already running. I've also checked to make sure that there's no stale "/var/spool/postfix/pid/master.pid" PID file.

What I have been able to determine is that the "/usr/lib/postfix/sbin/master" process, run by "/etc/postfix/postfix-script", returns non-zero, so the error message that Postfix is already running might be a red herring.

Last edited by MadMartian; 05-19-2022 at 12:08 AM. Reason: Formatting
 
Old 05-19-2022, 08:19 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,484

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by MadMartian View Post
See "systemctl status postfix.service" and "journalctl -xe" for details.
Does this give you any more clues?
 
1 members found this post helpful.
Old 05-20-2022, 12:21 AM   #3
MadMartian
LQ Newbie
 
Registered: Jun 2021
Distribution: N00buntu
Posts: 11

Original Poster
Rep: Reputation: Disabled
journalctl -xe

Quote:
Originally Posted by TenTenths View Post
Does this give you any more clues?
JournalCtl reveals...

Code:
May 19 22:17:42 Hoth systemd[1]: Starting Postfix Mail Transport Agent (instance -)...
-- Subject: A start job for unit postfix@-.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- A start job for unit postfix@-.service has begun execution.
-- 
-- The job identifier is 119448.
May 19 22:17:43 Hoth postfix/postfix-script[2530846]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
May 19 22:17:43 Hoth postfix/postfix-script[2530861]: warning: not owned by root: /var/spool/postfix/etc/ssl/certs/foo.bar.pem
May 19 22:17:43 Hoth postfix/postfix-script[2530862]: warning: not owned by root: /var/spool/postfix/etc/ssl/certs/john-doe@some.server.pem
May 19 22:17:43 Hoth postfix/postfix-script[2531047]: starting the Postfix mail system
May 19 22:17:43 Hoth postfix/master[2531049]: daemon started -- version 3.4.13, configuration /etc/postfix
May 19 22:17:43 Hoth systemd[1]: Started Postfix Mail Transport Agent (instance -).
-- Subject: A start job for unit postfix@-.service has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- A start job for unit postfix@-.service has finished successfully.
-- 
-- The job identifier is 119448.
May 19 22:17:43 Hoth systemd[1]: Starting Postfix Mail Transport Agent...
-- Subject: A start job for unit postfix.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
-- 
-- A start job for unit postfix.service has begun execution.
-- 
-- The job identifier is 119292.
May 19 22:17:44 Hoth postfix/postfix-script[2531065]: fatal: the Postfix mail system is already running
There's a couple of warnings but that's about it. It's also worth noting that even though Postfix is effectively running there is no "/var/spool/postfix/pid/master.pid" file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix 2.6.6 postfix/cleanup and postfix/master errors Pummelmuffin Linux - Server 2 11-22-2020 12:50 PM
while compiling nvidia driver, the script complains that nouveu driver still running in tumbleweed sirius57 SUSE / openSUSE 5 11-08-2019 07:31 PM
postfix complains of mystery host bluethundr Linux - Newbie 2 04-16-2010 09:57 AM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 12:21 PM
Running setup.exe, but another already running? erisco Linux - Software 2 08-08-2005 05:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration