[Zimbra Open Source] Cannot get Proxy and Memcached working on v8.6

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
dizzyyolk
Posts: 8
Joined: Sat Jan 07, 2017 7:02 pm

[Zimbra Open Source] Cannot get Proxy and Memcached working on v8.6

Postby dizzyyolk » Sat Jan 07, 2017 7:27 pm

Hello, I wonder if anyone can help.

I cannot get proxy / memcached working on Zimbra Open Source 8.6 so I can upgrade to 8.7, and i'm quite technically proficient.

I followed the instructions here

https://wiki.zimbra.com/wiki/Enabling_Z ... _memcached

When I run lsof -i :443 I see nothing

When i run lsof -i :11211 I see

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
memcached 989 zimbra 26u IPv4 17442577 0t0 TCP *:11211 (LISTEN)
memcached 989 zimbra 27u IPv6 17442578 0t0 TCP *:11211 (LISTEN)
memcached 989 zimbra 28u IPv4 17442581 0t0 UDP *:11211
memcached 989 zimbra 29u IPv6 17442582 0t0 UDP *:11211

I can access the admin on 7071 but not the mail server on 443

Admin status shows proxy and memcached is running but when I look at nginx.log I see

2017/01/07 18:50:38 [info] 922#0: memcache: 0/0 connections initialized
2017/01/07 18:50:38 [info] 923#0: memcache: 0/0 connections initialized
2017/01/07 18:50:38 [info] 924#0: memcache: 0/0 connections initialized
2017/01/07 18:50:38 [info] 925#0: memcache: 0/0 connections initialized
2017/01/07 18:51:06 [info] 922#0: *1 client 64.73.113.108:17667 connected to 0.0.0.0:993
2017/01/07 18:51:07 [notice] 922#0: *1 no memcache server available, cannot post request while in mail zmauth state, client: 6$
2017/01/07 18:51:07 [notice] 922#0: *1 no memcache server available, cannot post request while in mail zmauth state, client: 6$
2017/01/07 18:51:07 [notice] 922#0: *1 no memcache server available, cannot post request while in mail zmauth state, client: 6$

Everything else looks normal

zmprov gacf | grep Port shows

zimbraAdminPort: 7071
zimbraAdminProxyPort: 9071
zimbraCBPolicydBindPort: 10031
zimbraClamAVListenPort: 3310
zimbraImapBindPort: 7143
zimbraImapProxyBindPort: 143
zimbraImapSSLBindPort: 7993
zimbraImapSSLProxyBindPort: 993
zimbraLmtpBindPort: 7025
zimbraMailPort: 80
zimbraMailProxyPort: 0
zimbraMailSSLClientCertPort: 9443
zimbraMailSSLPort: 0
zimbraMailSSLProxyClientCertPort: 3443
zimbraMailSSLProxyPort: 0
zimbraMemcachedBindPort: 11211
zimbraMessageChannelPort: 7285
zimbraMilterBindPort: 7026
zimbraMtaSmtpdClientPortLogging: no
zimbraNotifyBindPort: 7035
zimbraNotifySSLBindPort: 7036
zimbraPop3BindPort: 7110
zimbraPop3ProxyBindPort: 110
zimbraPop3SSLBindPort: 7995
zimbraPop3SSLProxyBindPort: 995
zimbraRemoteManagementPort: 22
zimbraReverseProxyAdminPortAttribute: zimbraAdminPort
zimbraReverseProxyHttpPortAttribute: zimbraMailPort
zimbraReverseProxyHttpSSLPortAttribute: zimbraMailSSLPort
zimbraReverseProxyImapPortAttribute: zimbraImapBindPort
zimbraReverseProxyImapSSLPortAttribute: zimbraImapSSLBindPort
zimbraReverseProxyPop3PortAttribute: zimbraPop3BindPort
zimbraReverseProxyPop3SSLPortAttribute: zimbraPop3SSLBindPort
zimbraReverseProxyPortQuery: (&(zimbraServiceHostname=${MAILHOST})(objectClass=zimbraServer))
zimbraSmtpPort: 25

zmprov -l gs `zmhostname` | grep -i port shows

zimbraAdminImapImportNumThreads: 20
zimbraAdminPort: 7071
zimbraAdminProxyPort: 9071
zimbraBackupReportEmailSubjectPrefix: ZCS Backup Report
zimbraCBPolicydBindPort: 10031
zimbraClamAVListenPort: 3310
zimbraImapBindPort: 7143
zimbraImapProxyBindPort: 143
zimbraImapSSLBindPort: 7993
zimbraImapSSLProxyBindPort: 993
zimbraLmtpBindPort: 7025
zimbraLowestSupportedAuthVersion: 1
zimbraMailPort: 8080
zimbraMailProxyPort: 80
zimbraMailSSLClientCertPort: 9443
zimbraMailSSLPort: 8443
zimbraMailSSLProxyClientCertPort: 3443
zimbraMailSSLProxyPort: 443
zimbraMemcachedBindPort: 11211
zimbraMessageChannelPort: 7285
zimbraMilterBindPort: 7026
zimbraMtaLmtpTlsCiphers: export
zimbraMtaSmtpTlsCiphers: export
zimbraMtaSmtpdClientPortLogging: no
zimbraMtaSmtpdTlsCiphers: export
zimbraMtaSmtpdVirtualTransport: error
zimbraMtaTransportMaps: proxy:ldap:/opt/zimbra/conf/ldap-transport.cf
zimbraNotifyBindPort: 7035
zimbraNotifySSLBindPort: 7036
zimbraPop3BindPort: 7110
zimbraPop3ProxyBindPort: 110
zimbraPop3SSLBindPort: 7995
zimbraPop3SSLProxyBindPort: 995
zimbraRemoteManagementPort: 22
zimbraSmtpPort: 25

zmprov gs `zmhostname` | grep -i serviceenabled shows

zimbraServiceEnabled: amavis
zimbraServiceEnabled: antivirus
zimbraServiceEnabled: antispam
zimbraServiceEnabled: opendkim
zimbraServiceEnabled: mta
zimbraServiceEnabled: logger
zimbraServiceEnabled: spell
zimbraServiceEnabled: snmp
zimbraServiceEnabled: ldap
zimbraServiceEnabled: service
zimbraServiceEnabled: zimbra
zimbraServiceEnabled: zimbraAdmin
zimbraServiceEnabled: zimlet
zimbraServiceEnabled: mailbox
zimbraServiceEnabled: stats
zimbraServiceEnabled: memcached
zimbraServiceEnabled: proxy

netstat -tnpl | grep nginx shows

(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 922/nginx: worker p
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 922/nginx: worker p
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 922/nginx: worker p
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 922/nginx: worker p

I'm guessing I should see NGINX additionally running on 80, 443 and 9071 above but it's not

netstat -tnpl | grep java shows

tcp 0 0 0.0.0.0:7993 0.0.0.0:* LISTEN 19051/java
tcp 0 0 0.0.0.0:7995 0.0.0.0:* LISTEN 19051/java
tcp 0 0 0.0.0.0:8443 0.0.0.0:* LISTEN 19051/java
tcp 0 0 0.0.0.0:7071 0.0.0.0:* LISTEN 19051/java
tcp 0 0 0.0.0.0:7072 0.0.0.0:* LISTEN 19051/java
tcp 0 0 127.0.0.1:7171 0.0.0.0:* LISTEN 18360/java
tcp 0 0 0.0.0.0:7110 0.0.0.0:* LISTEN 19051/java
tcp 0 0 0.0.0.0:7143 0.0.0.0:* LISTEN 19051/java
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 19051/java
tcp 0 0 0.0.0.0:7025 0.0.0.0:* LISTEN 19051/java

netstat -tnpl | grep memcached shows

tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 989/memcached
tcp6 0 0 :::11211 :::* LISTEN 989/memcached

zmprov gs `zmhostname` | grep -i mailmode shows

zimbraMailMode: https
zimbraReverseProxyMailMode: redirect

zmprov garpu shows

my.server.domain:7072/service/extension/nginx-lookup (i've switched the domain name)

I'm a bit at a loss to work out what is going wrong.

I can get the server back working again if I disable both memcached and the proxy using these instructions:

https://wiki.zimbra.com/wiki/Zimbra_Pro ... mbra_Proxy

Under

Disable POP/IMAP Proxy In Single ZCS Server Environment
Disable Web [Mail] Proxy In Single ZCS Server Environment

Any help would be appreciated.

Thanks
Last edited by dizzyyolk on Tue Jan 10, 2017 11:38 am, edited 1 time in total.


User avatar
jorgedlcruz
Zimbra Alumni
Zimbra Alumni
Posts: 2773
Joined: Thu May 22, 2014 4:47 pm

Re: Really struggling with proxy and memcached on 8.6

Postby jorgedlcruz » Sat Jan 07, 2017 10:06 pm

Hello,
Would you mind to paste us all the commands you followed?
What if you try

Code: Select all

zmprov ms `zmhostname` +zimbraServiceEnabled memcached
zmprov ms `zmhostname` +zimbraServiceEnabled proxy
zmcontrol restart

?

Best regards
Jorge de la Cruz https://jorgedelacruz.es
Systems Engineer at Veeam Software https://www.veeam.com/
dizzyyolk
Posts: 8
Joined: Sat Jan 07, 2017 7:02 pm

Re: Really struggling with proxy and memcached on 8.6

Postby dizzyyolk » Sun Jan 08, 2017 4:59 pm

Hi there, thanks for replying.

I've shown above that the services have started:

Code: Select all

zmprov gs `zmhostname` | grep -i serviceenabled

zimbraServiceEnabled: amavis
zimbraServiceEnabled: antivirus
zimbraServiceEnabled: antispam
zimbraServiceEnabled: opendkim
zimbraServiceEnabled: mta
zimbraServiceEnabled: logger
zimbraServiceEnabled: spell
zimbraServiceEnabled: snmp
zimbraServiceEnabled: ldap
zimbraServiceEnabled: service
zimbraServiceEnabled: zimbra
zimbraServiceEnabled: zimbraAdmin
zimbraServiceEnabled: zimlet
zimbraServiceEnabled: mailbox
zimbraServiceEnabled: stats
zimbraServiceEnabled: memcached
zimbraServiceEnabled: proxy


The upgrade method I've used is as follows.

I'm currently running Ubuntu 14.04 LTS upgraded previously from Ubuntu 12 LTS. The server is only running Zimbra, and nothing else although it's been updated many times from earlier versions.

So the method I use to install the Proxy and Memcached was:

1. Download Zimbra 8.6, and run the installer and install Proxy and Memcached, this has been done.

2. Run the following commands on the server:

Code: Select all

zimbra@mail:/root$ /opt/zimbra/libexec/zmproxyconfig -e -w -o -a 8080:80:8443:443 -x https -H `zmhostname`
zimbra@mail:/root$ /opt/zimbra/libexec/zmproxyconfig -e -m -o -i 7143:143:7993:993 -p 7110:110:7995:995 -H `zmhostname`
zimbra@mail:/root$ zmprov ms `zmhostname` zimbraMailReferMode reverse-proxied
zimbra@mail:/root$ zmcontrol restart
Host <my.mail.server.domain>
        Stopping vmware-ha...skipped.
                /opt/zimbra/bin/zmhactl missing or not executable.
        Stopping zmconfigd...Done.
        Stopping zimlet webapp...Done.
        Stopping zimbraAdmin webapp...Done.
        Stopping zimbra webapp...Done.
        Stopping service webapp...Done.
        Stopping stats...Done.
        Stopping mta...Done.
        Stopping spell...Done.
        Stopping snmp...Done.
        Stopping cbpolicyd...Done.
        Stopping archiving...Done.
        Stopping opendkim...Done.
        Stopping amavis...Done.
        Stopping antivirus...Done.
        Stopping antispam...Done.
        Stopping proxy...Done.
        Stopping memcached...Done.
        Stopping mailbox...Done.
        Stopping logger...Done.
        Stopping dnscache...Done.
        Stopping ldap...Done.
Host <my.mail.server.domain>
        Starting ldap...Done.
        Starting zmconfigd...Done.
        Starting logger...Done.
        Starting mailbox...Done.
        Starting memcached...Done.
        Starting proxy...Done.
        Starting amavis...Done.
        Starting antispam...Done.
        Starting antivirus...Done.
        Starting opendkim...Done.
        Starting snmp...Done.
        Starting spell...Done.
        Starting mta...Done.
        Starting stats...Done.
        Starting service webapp...Done.
        Starting zimbra webapp...Done.
        Starting zimbraAdmin webapp...Done.
        Starting zimlet webapp...Done.


Now if I test if Proxy and Memcached are listening properly:

Code: Select all

zimbra@mail:/root$ lsof -i :443
zimbra@mail:/root$ lsof -i :11211
COMMAND     PID   USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
memcached 20000 zimbra   26u  IPv4 22261358      0t0  TCP *:11211 (LISTEN)
memcached 20000 zimbra   27u  IPv6 22261359      0t0  TCP *:11211 (LISTEN)
memcached 20000 zimbra   28u  IPv4 22261362      0t0  UDP *:11211
memcached 20000 zimbra   29u  IPv6 22261363      0t0  UDP *:11211
zimbra@mail:/root$


You can see nothing is listening on 443 but is on 11211.

If I try to listen on other ports, just to show what's listening:

Code: Select all

root@mail:~# lsof -i :80
root@mail:~# lsof -i :8080
COMMAND   PID   USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
java    20980 zimbra  100u  IPv4 22475338      0t0  TCP localhost.localdomain:http-alt (LISTEN)
root@mail:~# lsof -i :8443
COMMAND   PID   USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
java    20980 zimbra  102u  IPv4 22475345      0t0  TCP *:8443 (LISTEN)
root@mail:~# lsof -i :443
root@mail:~# lsof -i :7143
COMMAND   PID   USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
java    20980 zimbra  106u  IPv4 22475349      0t0  TCP *:7143 (LISTEN)
root@mail:~# lsof -i :143
COMMAND   PID   USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
nginx   21141 zimbra    5u  IPv4 22473088      0t0  TCP *:imap2 (LISTEN)
nginx   21142 zimbra    5u  IPv4 22473088      0t0  TCP *:imap2 (LISTEN)
nginx   21143 zimbra    5u  IPv4 22473088      0t0  TCP *:imap2 (LISTEN)
nginx   21145 zimbra    5u  IPv4 22473088      0t0  TCP *:imap2 (LISTEN)
nginx   21146 zimbra    5u  IPv4 22473088      0t0  TCP *:imap2 (LISTEN)
root@mail:~# lsof -i :7993
COMMAND   PID   USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
java    20980 zimbra  107u  IPv4 22475350      0t0  TCP *:7993 (LISTEN)
java    20980 zimbra  360u  IPv4 22504906      0t0  TCP <my.company.email.domain>:7993-><my.company.email.domain>:32866 (ESTABLISHED)
java    20980 zimbra  364u  IPv4 22485036      0t0  TCP <my.company.email.domain>:7993-><my.company.email.domain>:60934 (ESTABLISHED)
java    20980 zimbra  366u  IPv4 22485037      0t0  TCP <my.company.email.domain>:7993-><my.company.email.domain>:60942 (ESTABLISHED)
java    20980 zimbra  404u  IPv4 22500400      0t0  TCP <my.company.email.domain>:7993-><my.company.email.domain>:32826 (ESTABLISHED)
java    20980 zimbra  405u  IPv4 22500401      0t0  TCP <my.company.email.domain>:7993-><my.company.email.domain>:32828 (ESTABLISHED)
java    20980 zimbra  407u  IPv4 22500446      0t0  TCP <my.company.email.domain>:7993-><my.company.email.domain>:32832 (ESTABLISHED)
java    20980 zimbra  412u  IPv4 22504893      0t0  TCP <my.company.email.domain>:7993-><my.company.email.domain>:32858 (ESTABLISHED)
nginx   21143 zimbra   14u  IPv4 22477819      0t0  TCP <my.company.email.domain>:60934-><my.company.email.domain>:7993 (ESTABLISHED)
nginx   21143 zimbra   16u  IPv4 22477823      0t0  TCP <my.company.email.domain>:60942-><my.company.email.domain>:7993 (ESTABLISHED)
nginx   21143 zimbra   19u  IPv4 22490567      0t0  TCP <my.company.email.domain>:32826-><my.company.email.domain>:7993 (ESTABLISHED)
nginx   21143 zimbra   20u  IPv4 22490568      0t0  TCP <my.company.email.domain>:32828-><my.company.email.domain>:7993 (ESTABLISHED)
nginx   21143 zimbra   22u  IPv4 22501387      0t0  TCP <my.company.email.domain>:32832-><my.company.email.domain>:7993 (ESTABLISHED)
nginx   21143 zimbra   24u  IPv4 22490997      0t0  TCP <my.company.email.domain>:32866-><my.company.email.domain>:7993 (ESTABLISHED)
nginx   21143 zimbra   26u  IPv4 22502644      0t0  TCP <my.company.email.domain>:32858-><my.company.email.domain>:7993 (ESTABLISHED)
root@mail:~# lsof -i :993
COMMAND   PID   USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
nginx   21141 zimbra    6u  IPv4 22473089      0t0  TCP *:imaps (LISTEN)
nginx   21142 zimbra    6u  IPv4 22473089      0t0  TCP *:imaps (LISTEN)
nginx   21143 zimbra    6u  IPv4 22473089      0t0  TCP *:imaps (LISTEN)
nginx   21143 zimbra   13u  IPv4 22477817      0t0  TCP <my.company.email.domain>:imaps->MAN-DR1-ATM2-0.17.zipcom.com:43764 (ESTABLISHED)
nginx   21143 zimbra   15u  IPv4 22477821      0t0  TCP <my.company.email.domain>:imaps->host-92-2-185-247.as43234.net:64933 (ESTABLISHED)
nginx   21143 zimbra   17u  IPv4 22490563      0t0  TCP <my.company.email.domain>:imaps->82-132-217-25.dab.02.net:27872 (ESTABLISHED)
nginx   21143 zimbra   18u  IPv4 22490564      0t0  TCP <my.company.email.domain>:imaps->82-132-217-25.dab.02.net:27876 (ESTABLISHED)
nginx   21143 zimbra   21u  IPv4 22501385      0t0  TCP <my.company.email.domain>:imaps->82-132-217-25.dab.02.net:27879 (ESTABLISHED)
nginx   21143 zimbra   23u  IPv4 22490995      0t0  TCP <my.company.email.domain>:imaps->filter.sanebox.com:6855 (ESTABLISHED)
nginx   21143 zimbra   25u  IPv4 22502642      0t0  TCP <my.company.email.domain>:imaps->filter.sanebox.com:61204 (ESTABLISHED)
nginx   21145 zimbra    6u  IPv4 22473089      0t0  TCP *:imaps (LISTEN)
nginx   21146 zimbra    6u  IPv4 22473089      0t0  TCP *:imaps (LISTEN)


If I run your commands:

Code: Select all

zimbra@mail:/root$ zmprov ms `zmhostname` +zimbraServiceEnabled memcached
zimbra@mail:/root$ zmprov ms `zmhostname` +zimbraServiceEnabled proxy
zimbra@mail:/root$ zmcontrol restart
Host <my.mail.server.domain>
        Stopping vmware-ha...skipped.
                /opt/zimbra/bin/zmhactl missing or not executable.
        Stopping zmconfigd...Done.
        Stopping zimlet webapp...Done.
        Stopping zimbraAdmin webapp...Done.
        Stopping zimbra webapp...Done.
        Stopping service webapp...Done.
        Stopping stats...Done.
        Stopping mta...Done.
        Stopping spell...Done.
        Stopping snmp...Done.
        Stopping cbpolicyd...Done.
        Stopping archiving...Done.
        Stopping opendkim...Done.
        Stopping amavis...Done.
        Stopping antivirus...Done.
        Stopping antispam...Done.
        Stopping proxy...Done.
        Stopping memcached...Done.
        Stopping mailbox...Done.
        Stopping logger...Done.
        Stopping dnscache...Done.
        Stopping ldap...Done.
Host <my.mail.server.domain>
        Starting ldap...Done.
        Starting zmconfigd...Done.
        Starting logger...Done.
        Starting mailbox...Done.
        Starting memcached...Done.
        Starting proxy...Done.
        Starting amavis...Done.
        Starting antispam...Done.
        Starting antivirus...Done.
        Starting opendkim...Done.
        Starting snmp...Done.
        Starting spell...Done.
        Starting mta...Done.
        Starting stats...Done.
        Starting service webapp...Done.
        Starting zimbra webapp...Done.
        Starting zimbraAdmin webapp...Done.
        Starting zimlet webapp...Done.


If I again see what ports are listening:

Code: Select all

zimbra@mail:/root$ lsof -i :443
zimbra@mail:/root$ lsof -i :80
zimbra@mail:/root$ lsof -i :11211
COMMAND     PID   USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
memcached 25116 zimbra   26u  IPv4 22276977      0t0  TCP *:11211 (LISTEN)
memcached 25116 zimbra   27u  IPv6 22276978      0t0  TCP *:11211 (LISTEN)
memcached 25116 zimbra   28u  IPv4 22276981      0t0  UDP *:11211
memcached 25116 zimbra   29u  IPv6 22276982      0t0  UDP *:11211
zimbra@mail:/root$


Again, 80 and 443 are doing nothing.

If I check /opt/zimbra/log/nginx.log I keep seeing the same thing:

no memcache server available, cannot post request while in mail zmauth state

Code: Select all

2017/01/08 16:04:09 [notice] 25135#0: *7 no memcache server available, cannot post request while in mail zmauth state, client: 64.73.113.108:49188, server: 0.0.0.0:$
2017/01/08 16:04:09 [notice] 25135#0: *7 no memcache server available, cannot post request while in mail zmauth state, client: 64.73.113.108:49188, server: 0.0.0.0:$
2017/01/08 16:04:09 [notice] 25135#0: *7 no memcache server available, cannot post request while in mail zmauth state, client: 64.73.113.108:49188, server: 0.0.0.0:$
2017/01/08 16:04:09 [info] 25135#0: *7 client logged in, client: 64.73.113.108:49188, server: 0.0.0.0:993, login: "<account_removed>", upstream: 178.79.139.4:7993 (64$
2017/01/08 16:04:10 [info] 25135#0: *7 proxied session done, client: 64.73.113.108:49188, server: 0.0.0.0:993, login: "<account_removed>", upstream: 178.79.139.4:7993$
2017/01/08 16:04:10 [info] 25135#0: *10 client 64.73.113.108:49248 connected to 0.0.0.0:993
2017/01/08 16:04:10 [notice] 25135#0: *10 no memcache server available, cannot post request while in mail zmauth state, client: 64.73.113.108:49248, server: 0.0.0.0$
2017/01/08 16:04:10 [notice] 25135#0: *10 no memcache server available, cannot post request while in mail zmauth state, client: 64.73.113.108:49248, server: 0.0.0.0$
2017/01/08 16:04:10 [notice] 25135#0: *10 no memcache server available, cannot post request while in mail zmauth state, client: 64.73.113.108:49248, server: 0.0.0.0$
2017/01/08 16:04:10 [info] 25135#0: *10 client logged in, client: 64.73.113.108:49248, server: 0.0.0.0:993, login: "<account_removed>", upstream: 178.79.139.4:7993 (6$
2017/01/08 16:04:46 [info] 25135#0: *13 client 64.73.113.108:50964 connected to 0.0.0.0:993
2017/01/08 16:04:47 [notice] 25135#0: *13 no memcache server available, cannot post request while in mail zmauth state, client: 64.73.113.108:50964, server: 0.0.0.0$
2017/01/08 16:04:47 [notice] 25135#0: *13 no memcache server available, cannot post request while in mail zmauth state, client: 64.73.113.108:50964, server: 0.0.0.0$
2017/01/08 16:04:47 [notice] 25135#0: *13 no memcache server available, cannot post request while in mail zmauth state, client: 64.73.113.108:50964, server: 0.0.0.0$
2017/01/08 16:04:47 [info] 25135#0: *13 client logged in, client: 64.73.113.108:50964, server: 0.0.0.0:993, login: "<account_removed>", upstream: 178.79.139.4:7993 (6$
2017/01/08 16:04:48 [info] 25135#0: *13 proxied session done, client: 64.73.113.108:50964, server: 0.0.0.0:993, login: "<account_removed>", upstream: 178.79.139.4:799$
2017/01/08 16:04:48 [info] 25135#0: *16 client 64.73.113.108:51010 connected to 0.0.0.0:993
2017/01/08 16:04:49 [notice] 25135#0: *16 no memcache server available, cannot post request while in mail zmauth state, client: 64.73.113.108:51010, server: 0.0.0.0$
2017/01/08 16:04:49 [notice] 25135#0: *16 no memcache server available, cannot post request while in mail zmauth state, client: 64.73.113.108:51010, server: 0.0.0.0$
2017/01/08 16:04:49 [notice] 25135#0: *16 no memcache server available, cannot post request while in mail zmauth state, client: 64.73.113.108:51010, server: 0.0.0.0$
2017/01/08 16:04:49 [info] 25135#0: *16 client logged in, client: 64.73.113.108:51010, server: 0.0.0.0:993, login: "<account_removed>", upstream: 178.79.139.4:7993 (6$
2017/01/08 16:08:06 [info] 25136#0: *19 client 82.132.217.25:27815 connected to 0.0.0.0:993
2017/01/08 16:08:06 [notice] 25136#0: *19 no memcache server available, cannot post request while in mail zmauth state, client: 82.132.217.25:27815, server: 0.0.0.0$
2017/01/08 16:08:06 [notice] 25136#0: *19 no memcache server available, cannot post request while in mail zmauth state, client: 82.132.217.25:27815, server: 0.0.0.0$
2017/01/08 16:08:06 [notice] 25136#0: *19 no memcache server available, cannot post request while in mail zmauth state, client: 82.132.217.25:27815, server: 0.0.0.0$
2017/01/08 16:08:06 [notice] 25136#0: *19 no memcache server available, cannot post request while in mail zmauth state, client: 82.132.217.25:27815, server: 0.0.0.0$
2017/01/08 16:08:06 [info] 25136#0: *19 client logged in, client: 82.132.217.25:27815, server: 0.0.0.0:993, login: "<account_removed>", upstream: 178.79.139$


So to get the server back working as normal I do the following:

Code: Select all

zimbra@mail:/root$ zmprov ms `zmhostname` zimbraImapProxyBindPort 0
zimbra@mail:/root$ zmprov ms `zmhostname` zimbraImapSSLProxyBindPort 0
zimbra@mail:/root$ zmprov ms `zmhostname` zimbraPop3ProxyBindPort 0
zimbra@mail:/root$ zmprov ms `zmhostname` zimbraPop3SSLProxyBindPort 0
zimbra@mail:/root$ zmprov ms `zmhostname` zimbraImapBindPort 143
zimbra@mail:/root$ zmprov ms `zmhostname` zimbraImapSSLBindPort 993
zimbra@mail:/root$ zmprov ms `zmhostname` zimbraPop3BindPort 110
zimbra@mail:/root$ zmprov ms `zmhostname` zimbraPop3SSLBindPort 995
zimbra@mail:/root$ zmprov ms `zmhostname` -zimbraServiceEnabled memcached
zimbra@mail:/root$ zmprov ms `zmhostname` -zimbraServiceEnabled imapproxy
zimbra@mail:/root$ zmprov ms `zmhostname` -zimbraServiceEnabled proxy
zimbra@mail:/root$ zmproxyctl stop
Stopping nginx...done.
zimbra@mail:/root$ zmmemcachedctl stop
Stopping memcached...done.
zimbra@mail:/root$ zmmailboxdctl stop
Stopping mailboxd...done.
zimbra@mail:/root$ zmmailboxdctl start
Starting mailboxd...done.
zimbra@mail:/root$ zmprov ms `zmhostname` zimbraMailProxyPort 0
zimbra@mail:/root$ zmprov ms `zmhostname` zimbraMailSSLProxyPort 0
zimbra@mail:/root$ zmprov ms `zmhostname` zimbraMailPort 80
zimbra@mail:/root$ zmprov ms `zmhostname` zimbraMailSSLPort 443
zimbra@mail:/root$ zmcontrol restart
Host mail.adrac.net
        Stopping vmware-ha...skipped.
                /opt/zimbra/bin/zmhactl missing or not executable.
        Stopping zmconfigd...Done.
        Stopping zimlet webapp...Done.
        Stopping zimbraAdmin webapp...Done.
        Stopping zimbra webapp...Done.
        Stopping service webapp...Done.
        Stopping stats...Done.
        Stopping mta...Done.
        Stopping spell...Done.
        Stopping snmp...Done.
        Stopping cbpolicyd...Done.
        Stopping archiving...Done.
        Stopping opendkim...Done.
        Stopping amavis...Done.
        Stopping antivirus...Done.
        Stopping antispam...Done.
        Stopping proxy...Done.
        Stopping memcached...Done.
        Stopping mailbox...Done.
        Stopping logger...Done.
        Stopping dnscache...Done.
        Stopping ldap...Done.
Host mail.adrac.net
        Starting ldap...Done.
        Starting zmconfigd...Done.
        Starting logger...Done.
        Starting mailbox...Done.
        Starting amavis...Done.
        Starting antispam...Done.
        Starting antivirus...Done.
        Starting opendkim...Done.
        Starting snmp...Done.
        Starting spell...Done.
        Starting mta...Done.
        Starting stats...Done.
        Starting service webapp...Done.
        Starting zimbra webapp...Done.
        Starting zimbraAdmin webapp...Done.
        Starting zimlet webapp...Done.


And 8.6 is back working as normally, without Proxy or Memcached. I'm a bit at a loss!

The firewall is also disabled on the server when I'm trying this.

Neither port 80 or 443 is listening when I do the above.
dizzyyolk
Posts: 8
Joined: Sat Jan 07, 2017 7:02 pm

Re: [Zimbra Open Source] Cannot get Proxy and Memcached working on v8.6

Postby dizzyyolk » Sun Jan 15, 2017 2:20 pm

Can anyone help?
User avatar
jorgedlcruz
Zimbra Alumni
Zimbra Alumni
Posts: 2773
Joined: Thu May 22, 2014 4:47 pm

Re: [Zimbra Open Source] Cannot get Proxy and Memcached working on v8.6

Postby jorgedlcruz » Mon Jan 16, 2017 10:51 am

Can you install the latest patch after you enabled the proxy and memcached?

Code: Select all

wget https://files.zimbra.com/downloads/8.6.0_GA/zcs-patch-8.6.0_GA_1200.tgz
tar xzvf zcs-*
cd zcs-patch*
./install.sh
zmcontrol restart


Best regards
Jorge de la Cruz https://jorgedelacruz.es
Systems Engineer at Veeam Software https://www.veeam.com/
User avatar
jorgedlcruz
Zimbra Alumni
Zimbra Alumni
Posts: 2773
Joined: Thu May 22, 2014 4:47 pm

Re: [Zimbra Open Source] Cannot get Proxy and Memcached working on v8.6

Postby jorgedlcruz » Thu Jan 19, 2017 11:11 pm

Try this step, just in case:

Code: Select all

zmprov mcf zimbraMailReferMode reverse-proxied
zmcontrol restart


Best regards
Jorge de la Cruz https://jorgedelacruz.es
Systems Engineer at Veeam Software https://www.veeam.com/
dizzyyolk
Posts: 8
Joined: Sat Jan 07, 2017 7:02 pm

Re: [Zimbra Open Source] Cannot get Proxy and Memcached working on v8.6

Postby dizzyyolk » Fri Jan 20, 2017 3:03 pm

Thanks for the suggestions, I'll try this at the weekend when the mail server is not being accessed and update with my findings.

Thanks again for responding.
dizzyyolk
Posts: 8
Joined: Sat Jan 07, 2017 7:02 pm

Re: [Zimbra Open Source] Cannot get Proxy and Memcached working on v8.6

Postby dizzyyolk » Sun Jan 22, 2017 5:12 pm

Hi Jorge,

I tried all as you suggested, but i'm getting the same results.

- I cannot access the web client on port 80 or 443
- I can access the Zimbra Admin on 7071 and monitor shows all services runnning

If i look in the nginx.log i'm still getting the same error message:

memcache: 0/0 connections initialized
1 no memcache server available, cannot post request while in mail zmauth state

Code: Select all

2017/01/22 17:03:11 [notice] 23998#0: using the "epoll" event method
2017/01/22 17:03:11 [notice] 23998#0: nginx/1.2.0-zimbra
2017/01/22 17:03:11 [notice] 23998#0: built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
2017/01/22 17:03:11 [notice] 23998#0: OS: Linux 4.8.6-x86_64-linode78
2017/01/22 17:03:11 [notice] 23998#0: getrlimit(RLIMIT_NOFILE): 524288:524288
2017/01/22 17:03:11 [notice] 23999#0: start worker processes
2017/01/22 17:03:11 [notice] 23999#0: start worker process 24000
2017/01/22 17:03:11 [notice] 23999#0: start worker process 24001
2017/01/22 17:03:11 [notice] 23999#0: start worker process 24002
2017/01/22 17:03:11 [notice] 23999#0: start worker process 24003
2017/01/22 17:03:11 [info] 24002#0: memcache: 0/0 connections initialized
2017/01/22 17:03:11 [info] 24000#0: memcache: 0/0 connections initialized
2017/01/22 17:03:11 [info] 24001#0: memcache: 0/0 connections initialized
2017/01/22 17:03:11 [info] 24003#0: memcache: 0/0 connections initialized
2017/01/22 17:04:32 [info] 24002#0: *1 client 86.4.213.169:37161 connected to 0.0.0.0:993
2017/01/22 17:04:32 [notice] 24002#0: *1 no memcache server available, cannot post request while in mail zmauth state, client: 86.4.213.169:37161, server: 0.0.0.0:993, login: "<removed>"
2017/01/22 17:04:32 [notice] 24002#0: *1 no memcache server available, cannot post request while in mail zmauth state, client: 86.4.213.169:37161, server: 0.0.0.0:993, login: "<removed>"
2017/01/22 17:04:35 [notice] 24002#0: *1 no memcache server available, cannot post request while in mail zmauth state, client: 86.4.213.169:37161, server: 0.0.0.0:993, login: "<removed>"
2017/01/22 17:04:35 [notice] 24002#0: *1 no memcache server available, cannot post request while in mail zmauth state, client: 86.4.213.169:37161, server: 0.0.0.0:993, login: "<removed>"
2017/01/22 17:04:35 [info] 24002#0: *1 client logged in, client: 86.4.213.169:37161, server: 0.0.0.0:993, login: "<removed>", upstream: <removed>:7993 (86.4.213.169:37161-><removed>:993) <=> (<removed>:40$

It still seems memcached won't run or answer, is there anyway to find out whats going on with memcached?
dizzyyolk
Posts: 8
Joined: Sat Jan 07, 2017 7:02 pm

Re: [Zimbra Open Source] Cannot get Proxy and Memcached working on v8.6

Postby dizzyyolk » Sun Jan 29, 2017 2:17 pm

Does anyone have any ideas?
User avatar
JDunphy
Outstanding Member
Outstanding Member
Posts: 494
Joined: Fri Sep 12, 2014 11:18 pm
Location: Victoria, BC
ZCS/ZD Version: 8.7.11_P14 RHEL6 Network Edition
Contact:

Re: [Zimbra Open Source] Cannot get Proxy and Memcached working on v8.6

Postby JDunphy » Sun Jan 29, 2017 5:44 pm

Wild guess here.

netstat -tnpl | grep memcached
shows

tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 989/memcached
tcp6 0 0 :::11211 :::* LISTEN 989/memcached


I see both ipv4 and ipv6 on one of those netstat's ... This thread might help http://forums.zimbra.org/viewtopic.php?f=15&t=61041&hilit=centos+7+ipv6&sid=5e081eecf71a0b16e8d414333836b9d5 While the issue was pop/imap, the solution was to update nginx configuration by hand for some reason for a few users.

If you are trying to run both ip stacks... did you try:

Code: Select all

zmprov ms `zmhostname` zimbraIPMode both
/opt/zimbra/libexec/zmiptool
zmcontrol restart

Return to “Administrators”

Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 11 guests