Results 1 to 6 of 6

Thread: slapd wont start as zimbra, will start as root

  1. #1
    gtr33m is offline Loyal Member
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    6

    Default slapd wont start as zimbra, will start as root

    After many problems I managed to finish an upgrade to 5.0.10 and all was working fine until I restarted.

    ldap wouldn't start because slapd wasn't started.

    Launching slapd manually as zimbra produced the following
    Code:
    zimbra@server1:~/libexec$ /opt/zimbra/openldap/libexec/slapd -d -1 -f /opt/zimbra/conf/slapd.conf -u zimbra
    @(#) $OpenLDAP: slapd 2.3.43 (Aug 20 2008 12:21:57) $
    	root@build25.lab.zimbra.com:/home/build/p4/FRANKLIN/ThirdParty/openldap/openldap-2.3.43.5z/servers/slapd
    daemon_init: <null>
    daemon_init: listen on ldap:///
    daemon_init: 1 listeners to open...
    ldap_url_parse_ext(ldap:///)
    daemon: bind(7) failed errno=13 (Permission denied)
    daemon: bind(7) failed errno=13 (Permission denied)
    slap_open_listener: failed on ldap:///
    slapd stopped.
    connections_destroy: nothing to destroy.
    Starting it manually as root works fine, and zimbra can be started and runs fine.

    Seems to be a permission issue, but I've run zmfixperms as root and the problem is not fixed.
    Mark Hawkins

    Medalist

  2. #2
    gtr33m is offline Loyal Member
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    6

    Default

    Just in case it's a split dns/hosts problem (again!)

    Code:
    root@server1:/opt/zimbra/libexec# cat /etc/hosts
    127.0.0.1	localhost.localdomain localhost
    192.168.2.5	server1.medalist.com.au	server1
    192.168.2.5	mail.medalist.com.au mail 
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    Code:
    root@server1:/opt/zimbra/libexec# cat /etc/resolv.conf
    nameserver 192.168.2.5
    nameserver 192.168.2.1
    nameserver 192.168.0.4
    Code:
    root@server1:/opt/zimbra/libexec# dig medalist.com.au mx
    
    ; <<>> DiG 9.4.2-P2 <<>> medalist.com.au mx
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14923
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;medalist.com.au.		IN	MX
    
    ;; ANSWER SECTION:
    medalist.com.au.	604800	IN	MX	10 mail.medalist.com.au.
    
    ;; AUTHORITY SECTION:
    medalist.com.au.	604800	IN	NS	192.168.2.5.medalist.com.au.
    
    ;; Query time: 0 msec
    ;; SERVER: 192.168.2.5#53(192.168.2.5)
    ;; WHEN: Thu Nov 13 16:04:54 2008
    ;; MSG SIZE  rcvd: 80
    Code:
    root@server1:/opt/zimbra/libexec# dig medalist.com.au any
    
    ; <<>> DiG 9.4.2-P2 <<>> medalist.com.au any
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51191
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;medalist.com.au.		IN	ANY
    
    ;; ANSWER SECTION:
    medalist.com.au.	604800	IN	MX	10 mail.medalist.com.au.
    medalist.com.au.	604800	IN	AAAA	::1
    medalist.com.au.	604800	IN	SOA	server1.medalist.com.au. server.medalist.com.au. 3 604800 86400 2419200 604800
    medalist.com.au.	604800	IN	NS	192.168.2.5.medalist.com.au.
    medalist.com.au.	604800	IN	A	192.168.2.5
    
    ;; Query time: 0 msec
    ;; SERVER: 192.168.2.5#53(192.168.2.5)
    ;; WHEN: Thu Nov 13 16:05:14 2008
    ;; MSG SIZE  rcvd: 175
    Code:
    root@server1:/opt/zimbra/libexec# host `hostname`
    server1.medalist.com.au has address 192.168.2.5
    Mark Hawkins

    Medalist

  3. #3
    gtr33m is offline Loyal Member
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    6

    Default

    No I still have this problem in 5.0.11 as
    Mark Hawkins

    Medalist

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Quote Originally Posted by gtr33m View Post
    No I still have this problem in 5.0.11 as
    Your hosts file is incorrect and I assume your Zimbra servername is this:

    Code:
    mail.medalist.com.au
    If that's the case you should remove the following line:
    Code:
    192.168.2.5	server1.medalist.com.au	server1
    When you've done that (just to make sure) stop Zimbra and make sure no Zimbra processes are running (kill them if they are) then run (as root):

    Code:
    /opt/zimbra/libexec/zmfixperms --extended
    restart Zimbra when it's done.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    gtr33m is offline Loyal Member
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    6

    Default

    Hi Bill,

    Zimbra servername is server1.medalist.com.au but I also want it respond to mail.medalist.com.au as this is the external dns name for the machine, whereas server1 is the internal dns name.

    I'll give it a go on Monday and see what happens. I can always change the server name to mail if need be.

    Thanks,

    Mark
    Mark Hawkins

    Medalist

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Quote Originally Posted by gtr33m View Post
    Zimbra servername is server1.medalist.com.au but I also want it respond to mail.medalist.com.au as this is the external dns name for the machine, whereas server1 is the internal dns name.
    Then you need to remove the other line from your hosts file and leave it as this:
    Code:
    127.0.0.1	localhost.localdomain localhost
    192.168.2.5	server1.medalist.com.au	server1
    If you want it to respond to

    Code:
    mail.medalist.com.au
    add a DNS A record to point to the IP adress of your server, nothing else should be needed in your hosts file.

    [edit] If you don't have any lan users that use the url of mail.medalist.com.au to get to the server then you don't need any local DNS records for that domain. You only need the hosts file set for the primary domain (obviously the hosts contains the FQDN of your server) on your server and the DNS records are to ensure that the name can be resolved internally.
    Last edited by phoenix; 12-06-2008 at 06:14 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 17
    Last Post: 08-30-2010, 11:59 AM
  2. Zimbra spam system
    By rajahd in forum Administrators
    Replies: 9
    Last Post: 04-16-2008, 07:25 PM
  3. zmperditionctl start asking for password
    By k7sle in forum Administrators
    Replies: 32
    Last Post: 02-20-2008, 11:13 AM
  4. Replies: 8
    Last Post: 02-27-2007, 04:10 AM
  5. Seeming variety of problems on suse-9.1
    By Crexis in forum Installation
    Replies: 52
    Last Post: 03-04-2006, 12:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •