Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 6th August 2009, 19:03
ca_mongrel ca_mongrel is offline
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix will not load; master.lock file permission denied

I used the Perfect Server How To to create my SuSE 11.1 server months ago. I installed ISPConfig, then uninstalled it, but the directory structure largely remains the same.

The Apache server works fine. Postfix has worked fine until a few days ago, when I "cleaned up" the /srv/www/web3 directory a little bit. I may have broken Postfix.

Postfix no longer starts. Mail.err reports "postfix/master[4957]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied".
Permissions shown below (I am only showing relevant data (to my knowledge):

/var/lib # ls -l
drwx------ 2 postfix root ... postfix
/var/lib # cd postfix
/var/lib/postfix # ls -l
-rw------- 2 postfix root ... master.lock

I have tried changing permissions to root, all, and back to postfix as originally found, to no avail. I have tried creating a new maste.lock file (w/ touch) to no avail.

I am considering a Postfix uninstall/reinstall if I can't fix this issue.

Any ideas or help would be appreciated, as the uninstall & reinstall may not be as simple as I need at this time.
Reply With Quote
Sponsored Links
  #2  
Old 7th August 2009, 12:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

I'd simply delete /var/lib/postfix/master.lock and try again.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 7th August 2009, 17:35
ca_mongrel ca_mongrel is offline
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Deletion

I renamed master.lock to bmaster.lock.orig; no joy. Postfix will not start, and the same message occurs.
Reply With Quote
  #4  
Old 8th August 2009, 13:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's the output of
Code:
updatedb
locate master.lock
?
Did you disable SELinux?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 1st September 2009, 18:20
ca_mongrel ca_mongrel is offline
Junior Member
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default SELinux & locate

SELinux is disabled. "locate master.lock" result is "/etc/var/postfix/bmaster.lock.orig", my backup. There is now no master.lock file, and Postfix still will not start ("postfix status" reports that it is not running after a "postfix start" command).
Reply With Quote
  #6  
Old 15th December 2010, 14:03
tester321 tester321 is offline
Member
 
Join Date: Jul 2009
Posts: 34
Thanks: 7
Thanked 2 Times in 2 Posts
 
Question Did you ever find a solution to this?

EDIT: SOLVED using another thread here and some googling. Details here.

I have this problem on a Debian server running ISPConfig2.

(After tarring the OS, so it is not the fault of ISPConfig or anything. I verified permissions vs the server it was tarred from that is running just fine, but still no go)

Postfix won't start and errors out with the master.lock permission error.

Last edited by tester321; 23rd December 2010 at 00:34. Reason: Added link to solution
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix, pop3 uvbnserved Server Operation 22 24th May 2009 21:00
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26


All times are GMT +2. The time now is 19:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.