Steps to fix where proxy service not starting

Revision as of 08:54, 21 May 2018 by Ssatam (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Steps to fix where proxy service not starting


Problem

Proxy service not starting and getting NullPointerException with "zmproxyconfgen -v"

[zimbra@ZIMBRA ~]$ zmproxyctl restart
/opt/zimbra/conf/nginx.conf is missing.
Starting nginx...failed. /opt/zimbra/conf/nginx.conf is missing. 

OR

[zimbra@ZIMBRA ~]$ zmproxyctl restart
Stopping proxy...proxy is not running.
Starting proxy...nginx: [emerg] invalid port in "192.168.0.120:0" of the "listen" directive in /opt/zimbra/conf/nginx/includes/nginx.conf.mail.imap:7

OR

[zimbra@ZIMBRA ~]$ /opt/zimbra/libexec/zmproxyconfgen -v
[] DEBUG: GET_CONN - millis=[2], usage=[GET_GLOBALCONFIG], conn=[1], connPool=[ZimbraReplica(770947228)]
[] DEBUG: GET_ENTRY - millis=[22], usage=[GET_GLOBALCONFIG], conn=[1], dn=[cn=config,cn=zimbra]
[] DEBUG: REL_CONN - conn=[1]
[] DEBUG: Working Directory: /opt/zimbra
[] DEBUG: Template Directory: /opt/zimbra/conf/nginx/templates
[] DEBUG: Config Includes Directory: /opt/zimbra/conf/nginx/includes
[] DEBUG: Config File Prefix: nginx.conf
[] DEBUG: Template File Prefix: nginx.conf
[] DEBUG: Building Default Variable Map
[] DEBUG: Loading Attrs in Domain Level
[] DEBUG: GET_CONN - millis=[0], usage=[SEARCH], conn=[1], connPool=[ZimbraReplica(770947228)]
[] DEBUG: SEARCH - millis=[6], resp=[0 (success)], usage=[SEARCH], conn=[1], controls=[Simple Paged Results Control], base=[], filter=[(objectClass=zimbraDomain)]
[] DEBUG: REL_CONN - conn=[1]
[] DEBUG: Updating Default Variable Map
[] DEBUG: GET_CONN - millis=[0], usage=[GET_SERVER], conn=[1], connPool=[ZimbraReplica(770947228)]
[] DEBUG: GET_ENTRY - millis=[1], usage=[GET_SERVER], conn=[1], dn=[cn=SERVER.EXAMPLE.COM,cn=servers,cn=zimbra]
[] DEBUG: REL_CONN - conn=[1]
Exception in thread "main" java.lang.NullPointerException
at com.zimbra.cs.util.ProxyConfVar.isValidUpstream(ProxyConfGen.java:308)
at com.zimbra.cs.util.WebEwsSSLUpstreamServersVar.update(ProxyConfGen.java:989)
at com.zimbra.cs.util.ProxyConfGen.updateDefaultVars(ProxyConfGen.java:2471)
at com.zimbra.cs.util.ProxyConfGen.createConf(ProxyConfGen.java:2630)
at com.zimbra.cs.util.ProxyConfGen.main(ProxyConfGen.java:2827)

Solution

Proxy and memcached services install but not configured.

1). Check IMAP port settings in global and server level configuration.

$ zmprov -l gacf zimbraImapBindPort zimbraImapProxyBindPort   
$ zmprov -l gs `zmhostname` zimbraImapBindPort zimbraImapProxyBindPort    


2). Configure correct ports on server and global config level if default ports previously changed. .

zmprov -l mcf zimbraImapBindPort 7143 zimbraImapProxyBindPort 143 
zmprov -l ms `zmhostname` zimbraImapBindPort 7143 zimbraImapProxyBindPort 143    
/opt/zimbra/libexec/zmproxyconfig -m -w -e -x redirect -H `zmhostname`  
zmprov mcf zimbraPublicServiceHostname MAIL.EXAMPLE.COM                          #Enter FQDN here. 
zmprov mcf zimbraPublicServiceProtocol https
zmprov mcf zimbraPublicServicePort 443   
zmprov ms `zmhostname` zimbraMailReferMode reverse-proxied  
zmcontrol restart  
zmcontrol status



Verified Against: ZCS 8.8, 8.7, 8.6 Date Created: 2018-05-19
Article ID: https://wiki.zimbra.com/index.php?title=Steps_to_fix_where_proxy_service_not_starting Date Modified: 2018-05-21



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search