Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-2009, 04:09 AM
Loyal Member
 
Posts: 93
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.
__________________
Mark Hawkins

Medalist

Last edited by gtr33m; 04-22-2009 at 04:45 AM..
Reply With Quote
  #2 (permalink)  
Old 04-22-2009, 10:48 AM
Zimbra Consultant & Moderator
 
Posts: 19,655
Default

What's the output of the following:

Code:
cat /etc/hosts
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 04-22-2009, 03:07 PM
Loyal Member
 
Posts: 93
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
Reply With Quote
  #4 (permalink)  
Old 04-22-2009, 03:32 PM
Moderator
 
Posts: 7,911
Default

Check perms on /etc/hosts and /etc/resolv.conf
__________________
Reply With Quote
  #5 (permalink)  
Old 04-22-2009, 03:53 PM
Loyal Member
 
Posts: 93
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
Reply With Quote
  #6 (permalink)  
Old 04-22-2009, 03:59 PM
Loyal Member
 
Posts: 93
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
Reply With Quote
  #7 (permalink)  
Old 04-22-2009, 11:37 PM
Zimbra Consultant & Moderator
 
Posts: 19,655
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
Reply With Quote
  #8 (permalink)  
Old 04-23-2009, 12:40 AM
Loyal Member
 
Posts: 93
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
Reply With Quote
  #9 (permalink)  
Old 04-23-2009, 12:56 AM
Moderator
 
Posts: 7,911
Default

Thats not a good idea to be honest as you may encounter other issues later. What is in /etc/nsswitch.conf ?
__________________
Reply With Quote
  #10 (permalink)  
Old 04-23-2009, 05:17 AM
Outstanding Member
 
Posts: 708
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.