Results 1 to 6 of 6

Thread: java.net.UnknownHostException:

  1. #1
    Join Date
    Oct 2005
    Location
    Calgary, AB
    Posts
    232
    Rep Power
    10

    Default java.net.UnknownHostException:

    Has anyone seen this? The install seemed to work but this is the result I get from a 'zmcontrol status' command:

    java.net.UnknownHostException: zimbra.avmax.ca: zimbra.avmax.ca
    at java.net.InetAddress.getLocalHost(InetAddress.java :1308)
    at com.zimbra.cs.localconfig.LC.(LC.java:138)
    at com.zimbra.cs.localconfig.KnownKey.(KnownKey.java:39)
    at com.zimbra.cs.localconfig.LocalConfig.verify(Local Config.java:331)
    at com.zimbra.cs.localconfig.LocalConfig.(LocalConfig.java:186)
    at com.zimbra.cs.localconfig.LocalConfig.readConfig(L ocalConfig.java:354)
    at com.zimbra.cs.localconfig.LocalConfig.(LocalConfig.java:359)
    at com.zimbra.cs.localconfig.Main.main(Main.java:115)
    Calling GetServiceInfoRequest (mail.zimbra.avmax.ca)

    java.net.UnknownHostException: zimbra.avmax.ca: zimbra.avmax.ca
    at java.net.InetAddress.getLocalHost(InetAddress.java :1308)
    at com.zimbra.cs.localconfig.LC.(LC.java:138)
    at com.zimbra.cs.localconfig.KnownKey.(KnownKey.java:39)
    at com.zimbra.cs.localconfig.LocalConfig.verify(Local Config.java:331)
    at com.zimbra.cs.localconfig.LocalConfig.(LocalConfig.java:186)
    at com.zimbra.cs.localconfig.LocalConfig.readConfig(L ocalConfig.java:354)
    at com.zimbra.cs.localconfig.LocalConfig.(LocalConfig.java:359)
    at com.zimbra.cs.localconfig.Main.main(Main.java:115)
    RESPONSE: (Zimbra::Mon::serviceInfo)
    host
    ip 10.2.0.8
    name mail.zimbra.avmax.ca
    java.net.UnknownHostException: zimbra.avmax.ca: zimbra.avmax.ca
    at java.net.InetAddress.getLocalHost(InetAddress.java :1308)
    at com.zimbra.cs.localconfig.LC.(LC.java:138)
    at com.zimbra.cs.localconfig.KnownKey.(KnownKey.java:39)
    at com.zimbra.cs.localconfig.LocalConfig.verify(Local Config.java:331)
    at com.zimbra.cs.localconfig.LocalConfig.(LocalConfig.java:186)
    at com.zimbra.cs.localconfig.LocalConfig.readConfig(L ocalConfig.java:354)
    at com.zimbra.cs.localconfig.LocalConfig.(LocalConfig.java:359)
    at com.zimbra.cs.localconfig.Main.main(Main.java:115)


    Cheers,

    Travis

  2. #2
    Join Date
    Oct 2005
    Location
    Calgary, AB
    Posts
    232
    Rep Power
    10

    Default Forward March...

    Hi everyone.

    I read back a ways in the forum and saw someone with a similiar problem which was resolved via the /etc/hosts file.

    zmcontrol status now returns:

    [zimbra@mail root]$ zmcontrol status
    Calling GetServiceInfoRequest (mail.zimbra.avmax.ca)

    RESPONSE: (Zimbra::Mon::serviceInfo)
    host
    ip 127.0.0.1
    name mail.zimbra.avmax.ca


    Does this look correct??

    Cheers,

    Travis

  3. #3
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    No it should list all the running services and report status of each. Something is still not right with yours.

  4. #4
    Join Date
    Nov 2008
    Posts
    2
    Rep Power
    7

    Default

    it's a wrong /etc/hosts configuration issue.
    set your hosts file like this:

    127.0.0.1 localhost localhost.localdomain
    server.ip.here server.domain server


    and the problem has fixed.
    Last edited by dougcc; 11-14-2008 at 04:55 AM.

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

    Default

    Quote Originally Posted by dougcc View Post
    it's a wrong /etc/hosts configuration issue.
    set your hosts file like this:

    127.0.0.1 localhost localhost.localdomain
    server.ip.here server.domain server


    and the problem has fix.
    Please don't post a reply to a thread that's over two years old.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    Join Date
    Jun 2010
    Posts
    1
    Rep Power
    5

    Default

    Quote Originally Posted by phoenix View Post
    Please don't post a reply to a thread that's over two years old.
    But his answer fixed my problem...

    Oh wait, someone did it again! /emo less

Posting Permissions

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