Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: user zimbra can't ping localhost, but root can?

  1. #1
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    7

    Default user zimbra can't ping localhost, but root can?

    I'm having trouble with my server starting certain zimbra services which rely on localhost.

    For some strange reason, user zimbra or any other user can't ping localhost, but for some reason root can.

    User zimbra get's a valid host localhost but can't ping localhost. Response is:

    Code:
    ping: unknown host localhost
    Any ideas? I've checked the permissions on the bind folder and they all look alright.

    User zimbra can ping 127.0.0.1 so it must be an inability to resolve localhost, though it can resolve internet addresses.
    Last edited by gtr33m; 04-22-2009 at 04:45 AM.
    Mark Hawkins

    Medalist

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    What's the output of the following:

    Code:
    cat /etc/hosts
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    7

    Default

    As either root or zimbra the result is:

    Code:
    127.0.0.1 localhost.localdomain	localhost
    192.168.2.5 server1.medalist.com.au server1
    
    # 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
    Mark Hawkins

    Medalist

  4. #4
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Check perms on /etc/hosts and /etc/resolv.conf

  5. #5
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    7

    Default

    /etc/hosts:
    -rw-r--r-- 1 root root 287 2009-04-20 14:27 /etc/hosts

    /etc/resolv.conf
    -rw-r--r-- 1 root root 148 2009-04-22 11:38 /etc/resolv.conf
    Mark Hawkins

    Medalist

  6. #6
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    7

    Default

    for some reason there is a directory /etc/resolvconf/ in this server that my new server does not have. I don't know if it's significant, but here's the structure:

    root@server1:~# ls -l -R /etc/resolvconf/
    /etc/resolvconf/:
    total 4
    drwxr-xr-x 2 root root 4096 2009-01-08 12:42 update-libc.d

    /etc/resolvconf/update-libc.d:
    total 8
    -rwxr-xr-x 1 root root 249 2008-03-21 21:40 avahi-daemon
    -rwxr-xr-x 1 root root 162 2007-11-15 19:50 fetchmail
    Mark Hawkins

    Medalist

  7. #7
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    What did you use to edit the hosts file? There seems to be a stray character in there (unless it's your copy/paste), notice there's no space in you post above:

    Code:
    127.0.0.1 localhost.localdomain localhost
    Make sure that there's is actually a space before the last 'localhost' and not some unprintable character.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  8. #8
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    7

    Default

    Edited with nano. I think it's just an artifact of the copy paste as looking at the file it's definitively got a space in there, and in any case root can resolve localhost, so unless root looks elsewhere, it doesn't look like /etc/hosts is the issue.

    I wouldn't worry about it anymore Bill. I managed to get the services fired up by modifying any reference to localhost in zmlocalconfig to 127.0.0.1, doing the same in my.cnf and my-logger.cnf and starting slapd manually using sudo (I coudln't figure out where the slpad conf file was) before doing a zmcontrol start.

    It's ugly, but it's up. It's only there long enough to transfer the data over to the new server, then the whole thing gets wiped.

    I'd like to know what the problem is, but it's one of those things that not likely to happen again and I've got a workaround that will suffice for now.
    Mark Hawkins

    Medalist

  9. #9
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    25

    Default

    Thats not a good idea to be honest as you may encounter other issues later. What is in /etc/nsswitch.conf ?

  10. #10
    Join Date
    Jan 2007
    Location
    Minnesota
    Posts
    719
    Rep Power
    9

    Default

    I caused this problem once by scp'ing /etc/hosts from elsewhere, which changed the selinux label. What's the output of "getenforce"?

Similar Threads

  1. slapd message error
    By smoke in forum Administrators
    Replies: 7
    Last Post: 04-27-2008, 04:23 PM
  2. Major Issue - 5.0RC2 NE to 5.0GA NE failed
    By DougWare in forum Installation
    Replies: 7
    Last Post: 01-06-2008, 09:56 PM
  3. Cleanup after many upgrades
    By tobru in forum Installation
    Replies: 1
    Last Post: 12-23-2007, 09:21 AM
  4. Zimbra server crashed
    By goetzi in forum Administrators
    Replies: 6
    Last Post: 03-25-2006, 01:00 PM
  5. Mail logs
    By Rick Baker in forum Installation
    Replies: 8
    Last Post: 01-17-2006, 04:33 PM

Posting Permissions

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