Page 1 of 1

Completely remove memcached

Posted: Sun Nov 20, 2011 8:44 pm
by mlanner
A previous admin installed memcached on a single server Zimbra instance. As noted in many places, running memcached on a single server installation appears to cause issues. This is an Ubuntu server.
I've disabled memcached but I'd like to completely remove it so that next time we run an upgrade it doesn't get installed and upgraded.
So, my question is: can I safely just run apt-get --purge remove zimbra-memcached and just restart Zimbra and/or just reboot the server?
Would appreciate any ideas/feedback. Thanks in advance.

Completely remove memcached

Posted: Mon Nov 21, 2011 12:48 am
by phoenix
Details on how to do this are in the forums:
If">http://www.zimbra.com/forums/installation/34387-solved-disable-uninstall-memcached.html
If
you also have the proxy installed and are using a single server that should also be removed and the ports reset to their default, search the forums for further details on how to reset the ports.

Completely remove memcached

Posted: Mon Nov 21, 2011 1:20 am
by mlanner
Thanks phoenix. Yes, I saw that post. I ran the commands to list the packages installed and enabled. Only memcached is installed. I was mostly concerned about any potential issues I might encounter running apt-get remove.
Thanks again.

Completely remove memcached

Posted: Mon Nov 21, 2011 1:41 am
by phoenix
Just mark it as not installed and not enabled then any future upgrade will remove that package and not reinstall it. I am assuming that it's also not running.

Completely remove memcached

Posted: Mon Nov 21, 2011 2:28 am
by mlanner
Yes, your assumption is right, it's not running anymore. This is what I get:
zimbra@mail:~$ zmprov gs mail.hostname.com | grep zimbraServiceInstalled

zimbraServiceInstalled: antivirus

zimbraServiceInstalled: antispam

zimbraServiceInstalled: logger

zimbraServiceInstalled: mailbox

zimbraServiceInstalled: memcached

zimbraServiceInstalled: mta

zimbraServiceInstalled: convertd

zimbraServiceInstalled: stats

zimbraServiceInstalled: snmp

zimbraServiceInstalled: ldap

zimbraServiceInstalled: spell

... and:
zimbra@mail:~$ zmprov gs mail.hostname.com | grep zimbraServiceEnabled  

zimbraServiceEnabled: antivirus

zimbraServiceEnabled: antispam

zimbraServiceEnabled: logger

zimbraServiceEnabled: mailbox

zimbraServiceEnabled: mta

zimbraServiceEnabled: convertd

zimbraServiceEnabled: stats

zimbraServiceEnabled: snmp

zimbraServiceEnabled: ldap

zimbraServiceEnabled: spell

Sorry, this may be a dumb question, but how do I "mark it as not installed?"

Completely remove memcached

Posted: Mon Nov 21, 2011 4:59 am
by phoenix
I alluded to it in the link I gave you:
zmprov gs `zmhostname` -zimbraServiceInstalled memcached

Completely remove memcached

Posted: Mon Nov 21, 2011 10:31 am
by mlanner
Doh! Thx phoenix!

Completely remove memcached

Posted: Sat May 05, 2012 10:36 am
by 1415bhwong
I receive an error when executing: zmprov gs `zmhostname` -zimbraServiceInstalled memcached
Error:

I/O exception (java.net.ConnectException) caught when processing request: Connection refused

zclient.IO_ERROR (invoke Connection refused, server: localhost) (cause:
java.net.ConnectionException Connection refused)