Results 1 to 7 of 7

Thread: UnknownHostException - how should /etc/hosts look like?

  1. #1
    wurstbrot is offline New Member
    Join Date
    Nov 2005
    Posts
    3
    Rep Power
    9

    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:

    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

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

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    jhoelz is offline Special Member
    Join Date
    Feb 2007
    Posts
    124
    Rep Power
    8

    Default

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

    Why would it start happeing if it never happened before?

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

    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


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    jhoelz is offline Special Member
    Join Date
    Feb 2007
    Posts
    124
    Rep Power
    8

    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

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

    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


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    jhoelz is offline Special Member
    Join Date
    Feb 2007
    Posts
    124
    Rep Power
    8

    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Please fix your /etc/hosts file...
    By ipguru99 in forum Administrators
    Replies: 24
    Last Post: 07-02-2012, 08:34 PM
  2. Cannot install zimbra (/etc/hosts problem ?)
    By kevork in forum Installation
    Replies: 12
    Last Post: 06-15-2010, 04:41 AM
  3. Broken /etc/hosts
    By mevets in forum Installation
    Replies: 1
    Last Post: 06-26-2007, 11:40 PM
  4. Editing the /etc/hosts file
    By Tanth in forum Installation
    Replies: 3
    Last Post: 05-13-2007, 08:53 AM
  5. Debian /etc/hosts ERROR
    By mjfleck2000 in forum Installation
    Replies: 2
    Last Post: 02-07-2006, 11:50 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
  •