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 12-17-2006, 01:32 PM
New Member
 
Posts: 3
Default UnknownHostException - how should /etc/hosts look like?

Good evening,

I wanted to install the current version of zimbra on a debian 3.1 server. But during the installation proccess, I got a lot of errors like:

Quote:
java.net.UnknownHostException: (none): (none)
at java.net.InetAddress.getLocalHost(InetAddress.java :1308)
at com.zimbra.cs.localconfig.LC.(LC.java:217)
at com.zimbra.cs.localconfig.KnownKey.(KnownKey.java:39)
at com.zimbra.cs.localconfig.LocalConfig.verify(Local Config.java:327)
at com.zimbra.cs.localconfig.LocalConfig.(LocalConfig.java:177)
at com.zimbra.cs.localconfig.LocalConfig.readConfig(L ocalConfig.java:348)
at com.zimbra.cs.localconfig.LocalConfig.(LocalConfig.java:353)
at com.zimbra.cs.localconfig.Main.main(Main.java:116)
As I have seen, this error occurs, if the /etc/hosts -file is not correct. Unfortunatelly, i cannot see, how it should look like. I have tried this combinations:
  • 127.0.0.1 localhost
  • 127.0.0.1 localhost server.name.de
  • 127.0.0.1 localhost
    1.2.3.4 server.name.de

Every time, I got the same error.

If I would disregard this messages, all works fine except that the mta is not starting.

I would be pleased to recieve help.

Wurstbrot
Reply With Quote
  #2 (permalink)  
Old 12-17-2006, 01:50 PM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Your hosts file should look like this:
Code:
127.0.0.1	localhost.localdomain localhost
1.2.3.4	        server.name.de server
It is documented in the Zimbra Quick Start Guide. You'll also need DNS A & MX records pointing to your server.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 06-15-2007, 08:28 AM
Special Member
 
Posts: 124
Default

I suddenly started seeing this error in my /opt/zimbra/libexec/zmstatuslog

Why would it start happeing if it never happened before?
Reply With Quote
  #4 (permalink)  
Old 06-15-2007, 08:38 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by jhoelz View Post
I suddenly started seeing this error in my /opt/zimbra/libexec/zmstatuslog

Why would it start happeing if it never happened before?
Something has changed.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 06-15-2007, 08:50 AM
Special Member
 
Posts: 124
Default

LOL, Kidding!

How do I find out what and how do I get it fixed. Everything seems to be working fine.

Hosts file as follows

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
66.135.41.117 icthusconnect.com
66.135.41.117 connect.icthustech.com
Reply With Quote
  #6 (permalink)  
Old 06-15-2007, 09:01 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Well, your hosts file is incorrect - look at my example above or in the Zimbra Quick Start Guide. What happened around the time your system started producing these errors? Is there anything else in the logs that indicates any errors? Is it causing you any problems other than the error message being produced?
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 06-15-2007, 09:04 AM
Special Member
 
Posts: 124
Default

So should the hosts file look like this if I need both names?

127.0.0.1 localhost.localdomain localhost
66.135.41.117 icthusconnect.com connect.icthustech.com
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.