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

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 10-13-2009, 04:29 PM
Active Member
 
Posts: 41
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 *
Reply With Quote
  #2 (permalink)  
Old 10-13-2009, 06:46 PM
Moderator
 
Posts: 1,147
Default

What are the contents of the following files?
/etc/nsswitch.conf
/etc/resolv.conf
/etc/hosts
Reply With Quote
  #3 (permalink)  
Old 10-13-2009, 10:04 PM
Active Member
 
Posts: 41
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
Reply With Quote
  #4 (permalink)  
Old 10-14-2009, 10:44 AM
Moderator
 
Posts: 1,147
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.
Reply With Quote
  #5 (permalink)  
Old 10-14-2009, 11:30 AM
Active Member
 
Posts: 41
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 *
Reply With Quote
  #6 (permalink)  
Old 10-14-2009, 12:15 PM
Moderator
 
Posts: 1,147
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
Reply With Quote
  #7 (permalink)  
Old 11-02-2009, 08:43 AM
Active Member
 
Posts: 41
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 *
Reply With Quote
  #8 (permalink)  
Old 11-02-2009, 09:36 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
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
Reply With Quote
  #9 (permalink)  
Old 11-02-2009, 02:05 PM
Active Member
 
Posts: 41
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 *
Reply With Quote
  #10 (permalink)  
Old 11-02-2009, 02:17 PM
Active Member
 
Posts: 41
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 *
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.