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

Thread: proxy error finding localhost.localdomain but HOSTS is correct

  1. #1
    sjobeck is offline Active Member
    Join Date
    May 2006
    Location
    www.sjobeck.com
    Posts
    41
    Rep Power
    8

    Question proxy error finding localhost.localdomain but HOSTS is correct

    Hey all,

    I hope everyone is healthy, wealthy, & wise.

    I am not sure what I broke when upgraded to v6 recently (or if it even happened during the upgrade, but I think so). This was a perfectly working 5.x box running on latest stable up-to-date centOS 5.3 on top of Xen (no that matters) and recently (I think when I upgraded to v6) broke. I have checked DNS & HOSTS multiple times & all seem fine. I think they are. It seems like something with the proxy. When I ping localhost.localdomain all is well.

    Here is the error:

    [root@zermatt ~]# tail -n 99 /opt/zimbra/log/mailbox.log
    2009-10-13 00:14:54,200 INFO [btpool0-37] [name=sjobeck@sjobeck.com;oip=67.136.135.137;ua=zcl ient/6.0.1_GA_1816.RHEL5;] SoapEngine - handler exception
    com.zimbra.common.service.ServiceException: error while proxying request to target server no such server: localhost.localdomain
    ExceptionId:btpool0-37:1255418094200:1c13fc846c71854f
    Code:service.PROXY_ERROR Argurl, STR, "")
    at com.zimbra.common.service.ServiceException.PROXY_E RROR(ServiceException.java:301)



    Caused by: com.zimbra.cs.account.AccountServiceException: no such server: localhost.localdomain
    ExceptionId:btpool0-37:1255418094200:1c13fc846c71854f
    Code:account.NO_SUCH_SERVER
    at com.zimbra.cs.account.AccountServiceException.NO_S UCH_SERVER(AccountServiceException.java:205)
    ... 35 more
    2009-10-13 00:14:57,128 INFO [btpool0-42] [name=sjobeck@sjobeck.com;ip=67.136.135.137;ua=Zimb raWebClient - SAF3 (Mac)/6.0.1_GA_1816.RHEL5;] soap - SearchRequest
    2009-10-13 00:14:57,206 INFO [btpool0-42] [name=sjobeck@sjobeck.com;ip=67.136.135.137;ua=Zimb raWebClient - SAF3 (Mac)/6.0.1_GA_1816.RHEL5;] SoapEngine - handler exception
    com.zimbra.common.service.ServiceException: error while proxying request to target server no such server: localhost.localdomain
    ExceptionId:btpool0-42:1255418097205:1c13fc846c71854f
    Code:service.PROXY_ERROR Argurl, STR, "")
    at com.zimbra.common.service.ServiceException.PROXY_E RROR(ServiceException.java:301)
    at com.zimbra.soap.DocumentHandler.getServer(Document Handler.java:404)
    at

    <snipped for brevity>

    Caused by: com.zimbra.cs.account.AccountServiceException: no such server: localhost.localdomain
    ExceptionId:btpool0-42:1255418097205:1c13fc846c71854f
    Code:account.NO_SUCH_SERVER
    at com.zimbra.cs.account.AccountServiceException.NO_S UCH_SERVER(AccountServiceException.java:205)
    ... 35 more


    So, do I remove proxy? Reconfigure it? Correct something else? All advice is appreciated.
    Thanks very much.

    Peace. Love. Linux.

    Jason Sjobeck
    xmpp:jason@sjobeck.com
    *Asterisk Consultant To The Stars *

  2. #2
    ArcaneMagus's Avatar
    ArcaneMagus is offline Moderator
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    What are the contents of the following files?
    /etc/nsswitch.conf
    /etc/resolv.conf
    /etc/hosts

  3. #3
    sjobeck is offline Active Member
    Join Date
    May 2006
    Location
    www.sjobeck.com
    Posts
    41
    Rep Power
    8

    Default

    [root@zermatt ~]# cat /etc/nsswitch.conf
    # /etc/nsswitch.conf
    #
    # An example Name Service Switch config file. This file should be
    # sorted with the most-used services at the beginning.
    #
    # The entry '[NOTFOUND=return]' means that the search for an
    # entry should stop if the search in the previous entry turned
    # up nothing. Note that if the search failed due to some other reason
    # (like no NIS server responding) then the search continues with the
    # next entry.
    #
    # Legal entries are:
    #
    # nisplus or nis+ Use NIS+ (NIS version 3)
    # nis or yp Use NIS (NIS version 2), also called YP
    # dns Use DNS (Domain Name Service)
    # files Use the local files
    # db Use the local database (.db) files
    # compat Use NIS on compat mode
    # hesiod Use Hesiod for user lookups
    # [NOTFOUND=return] Stop searching if not found so far
    #
    # To use db, put the "db" in front of "files" for entries you want to be
    # looked up first in the databases
    #
    # Example:
    #passwd: db files nisplus nis
    #shadow: db files nisplus nis
    #group: db files nisplus nis
    passwd: files
    shadow: files
    group: files
    #hosts: db files nisplus nis dns
    hosts: files dns
    # Example - obey only what nisplus tells us...
    #services: nisplus [NOTFOUND=return] files
    #networks: nisplus [NOTFOUND=return] files
    #protocols: nisplus [NOTFOUND=return] files
    #rpc: nisplus [NOTFOUND=return] files
    #ethers: nisplus [NOTFOUND=return] files
    #netmasks: nisplus [NOTFOUND=return] files
    bootparams: nisplus [NOTFOUND=return] files
    ethers: files
    netmasks: files
    networks: files
    protocols: files
    rpc: files
    services: files
    netgroup: nisplus
    publickey: nisplus
    automount: files nisplus
    aliases: files nisplus


    [root@zermatt ~]# cat /etc/resolv.conf
    search sjobeck.com
    nameserver 10.0.92.1
    nameserver 208.67.222.222
    nameserver 208.67.220.220


    [root@zermatt ~]# cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost
    10.0.92.234 zermatt.sjobeck.com zermatt
    10.0.100.103 roma.sjobeck.com roma
    #::1 localhost6.localdomain6 localhost6

  4. #4
    ArcaneMagus's Avatar
    ArcaneMagus is offline Moderator
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    You wouldn't happen to have the proxy service installed on a single machine install would you? The proxy service is only meant for a multi-machine install.

  5. #5
    sjobeck is offline Active Member
    Join Date
    May 2006
    Location
    www.sjobeck.com
    Posts
    41
    Rep Power
    8

    Default

    ut oh, I think I might. I will find out to disable it? Or do you advise I actually remove it? I bet you at midnight the other time when I was doing the upgrade I hit "Y" on that by mistake.

    Thx so much !
    Thanks very much.

    Peace. Love. Linux.

    Jason Sjobeck
    xmpp:jason@sjobeck.com
    *Asterisk Consultant To The Stars *

  6. #6
    ArcaneMagus's Avatar
    ArcaneMagus is offline Moderator
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    To find out if it is installed you can run
    Code:
    zmprov gs `zmhostname` | grep zimbraServiceInstalled
    to check if it is enabled change that to zimbraServiceEnabled.

    As for the differences between disabling / uninstalling... I can't say. When I accidentally installed the proxy service one time I just restored the backup and didn't install the proxy service on the next attempt at upgrading, but it sounds like you have had it running for a while so you would probably lose data if you did that.

    To try just disabling it check out remove/disable imapproxy

  7. #7
    sjobeck is offline Active Member
    Join Date
    May 2006
    Location
    www.sjobeck.com
    Posts
    41
    Rep Power
    8

    Question localhost.localdomain is now being returned after login to webmail

    so, i have followed the good advice in this thread so far & seem to have gone sideways. There does not appear to really be a way to remove the proxy component short of totally uninstalling & installing again & skipping it on that install.

    I have disabled it & set the ports back to the defaults without it there. That seemed to work. Things start & run OK.

    But when I go to test the user portal, it lets me authenticate then it forwards me to localhost.localdomain. Let me clarify: I put it our organization's FQDN in the URL & that works & I hit the auth' page. I auth' & it succeeds & it then changes the FQDN in the URL to "localhost.localdomain" with some long string of characters after it too. This of course can never work on the WAN, so it doesn't load. Seems somewhere in the editing of the properties, it pulled out the server's FQDN & substituted "localhost.localdomain" in there instead, which is now breaking it.

    Does any one know where to repair this issue in the config'?

    I'm about to nuke the entire thing & start over but I'd hate to do that.

    Thanks all !

    Cheers
    Thanks very much.

    Peace. Love. Linux.

    Jason Sjobeck
    xmpp:jason@sjobeck.com
    *Asterisk Consultant To The Stars *

  8. #8
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    You can check if the proxy is installed/running:

    Code:
    zmproxyctl status
    zmprov gs `zmhostname` | grep zimbraServiceEnabled
    zmprov gs `zmhostname` | grep zimbraServiceInstalled
    If it's in, then run this:
    Code:
    zmproxyctl stop
    zmprov ms `zmhostname` -zimbraServiceEnabled imapproxy
    zmcontrol stop
    zmcontrol start
    To reset the ports run the following (on one line):
    Code:
    zmprov -l ms `zmhostname` zimbraPop3BindPort 110 zimbraPop3SSLBindPort 995 zimbraPop3ProxyBindPort 7110 zimbraPop3SSLProxyBindPort 7995 zimbraImapBindPort 143 zimbraImapSSLBindPort 993 zimbraImapProxyBindPort 7143 zimbraImapSSLProxyBindPort 7993
    then restart. When you've done that post the out of the following commands (on the Zimbra server):

    Code:
    cat /etc/hosts
    cat /etc/resolv.conf
    dig yourdomain.com mx
    dig yourdomain.com any
    host `hostname`  <-- use that exact command with backticks not single quotes
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    sjobeck is offline Active Member
    Join Date
    May 2006
    Location
    www.sjobeck.com
    Posts
    41
    Rep Power
    8

    Default

    Bill.

    Thx.

    I just upgraded to v.6.0.2 and all seemed to go well except this:

    Adding zermatt.sjobeck.com to zimbraMailHostPool in default COS...failed.

    ..... which was spit out in the middle of the process & log file.

    Is there a way I can manually resolve this? (now the the installer/upgrader is complete)

    Thx !

    Jason
    Thanks very much.

    Peace. Love. Linux.

    Jason Sjobeck
    xmpp:jason@sjobeck.com
    *Asterisk Consultant To The Stars *

  10. #10
    sjobeck is offline Active Member
    Join Date
    May 2006
    Location
    www.sjobeck.com
    Posts
    41
    Rep Power
    8

    Default

    It seems I have gone throgh the entire thing & have narrowed this down to two things. Convertd will not start. And when logging in to webmail it auto-forwards the user to localhost.localdomain. If I could those two issues resolved, I'd be cooking with gas.

    I have checked all the other items (Bill) and they seem correct.

    Thanks so much !
    Thanks very much.

    Peace. Love. Linux.

    Jason Sjobeck
    xmpp:jason@sjobeck.com
    *Asterisk Consultant To The Stars *

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. proxy and 502 responses
    By sdouglass in forum Administrators
    Replies: 0
    Last Post: 01-07-2009, 03:00 PM
  2. Replies: 1
    Last Post: 01-02-2008, 09:31 PM
  3. Is this error significant?
    By phoenix in forum Administrators
    Replies: 2
    Last Post: 04-21-2006, 10:09 AM
  4. Problem sending mails
    By fmodola in forum Administrators
    Replies: 3
    Last Post: 04-12-2006, 08:39 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 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
  •