This hotfix addresses the following issue:

* MB-5343 memcached dropped connections: Rebalance failed due to replicator_died: exited (ns_single_vbucket_mover)

Requirements:

* Couchbase Server 1.8.1
* Couchbase Server 1.8.0

Contents:
bin/<OS>/memcached: Memcached binary for centos-64, ubuntu-64 and windows-32 bit server nodes. 
README.txt: Instructions to patch the 180/181 server nodes

Linux based OS
Backup old files before applying the hotfix:

- Before applying this hotfix, please backup the following files in bin directory.
    Ex: /opt/couchbase/bin/memcached
        cp /opt/couchbase/bin/memcached /opt/couchbase/bin/memcached.bk

Applying the hotfix on 181 server node:-
- Stop couchbase server (/etc/init.d/couchbase-server stop)
- Make sure no couchbase processes are running at this moment
  ps -efH |grep couchbase
- Extract the bin.zip 
- Depending upon the OS (centos or ubuntu), extract centos-64.zip or ubuntu-64.zip
  Copy files in the bin/centos-64/ or bin/ubuntu-64/ directory into /opt/couchbase/bin/
- Verify the md5sum of /opt/couchbase/bin/memcached 

  Centos-32bit  a0a6e8ac10d1537acb5fc8053eb658dc  /opt/couchbase/bin/memcached
  Centos-64bit  30705e3d9db9fcb829f94ec1469697d7  /opt/couchbase/bin/memcached
  Ubuntu-32bit  e6e9d8c9bda52bd7245120ce1f023b43  /opt/couchbase/bin/memcached
  Ubuntu-64bit  18dc15eeb83c7ced852b9fe3298ccb12  /opt/couchbase/bin/memcached

- Copy HOTFIX-MB-4738.txt file into /opt/couchbase/bin directory. 
_ Change the permission on /opt/couchbase/bin/memcached binary
  CentOS-64:
    chown bin:bin /opt/couchbase/bin/memcached
  Ubuntu-64:
    chown couchbase:couchbase /opt/couchbase/bin/memcached
- Set execute permission on /opt/couchbase/bin/memcached binary
  chmod +x /opt/couchbase/bin/memcached 
- Start couchbase server (/etc/init.d/couchbase-server start)


Applying the hotfix on 180 server node:-
- Stop couchbase server (/etc/init.d/couchbase-server stop)
- Make sure no couchbase processes are running at this moment
  ps -efH |grep couchbase
- Upgrade the server to 181. 
  
  Using the following command:- 
  CentOS 5.*:
    INSTALL_DONT_START_SERVER=1 rpm -U <couchbase-181-binary>.rpm
  Ubuntu:
    INSTALL_DONT_START_SERVER=1 dpkg -i <couchbase-181-binary>.deb

- Extract the bin.zip 
- Depending upon the OS (centos or ubuntu), extract centos-64.zip or ubuntu-64.zip
  Copy files in the bin/centos-64/ or bin/ubuntu-64/ directory into /opt/couchbase/bin/
- Verify the md5sum of /opt/couchbase/bin/memcached 

  Centos-32bit  a0a6e8ac10d1537acb5fc8053eb658dc  /opt/couchbase/bin/memcached
  Centos-64bit  30705e3d9db9fcb829f94ec1469697d7  /opt/couchbase/bin/memcached
  Ubuntu-32bit  e6e9d8c9bda52bd7245120ce1f023b43  /opt/couchbase/bin/memcached
  Ubuntu-64bit  18dc15eeb83c7ced852b9fe3298ccb12  /opt/couchbase/bin/memcached

- Copy HOTFIX-MB-4738.txt file into /opt/couchbase/bin directory. 
_ Change the permission on /opt/couchbase/bin/memcached binary
  CentOS-64:
    chown bin:bin /opt/couchbase/bin/memcached
  Ubuntu-64:
    chown couchbase:couchbase /opt/couchbase/bin/memcached
- Set execute permission on /opt/couchbase/bin/memcached binary
  chmod +x /opt/couchbase/bin/memcached 
- Start couchbase server (/etc/init.d/couchbase-server start)


Windows based OS
Backup old files before applying the hotfix:

- Before applying this hotfix, please backup the following files in bin directory.
    Ex: memcached.exe
	cp C:\Program Files\Couchbase\Server\bin\memcached.exe C:\Program Files\Couchbase\Server\bin\memcached.exe.bk

Applying the hotfix on 180 server node:-
- Upgrade the couchbase server node to 181 first. 
- Stop couchbase server (net stop couchbaseserver)
- Make sure no couchbase processes are running at this moment
  - Extract the bin.zip 
- Depending upon the OS architecture, extract the corresponding binary
  Copy files in the bin/<OS> directory into C:\Program Files\Couchbase\Server\bin\

- Verify the md5sum of C:\Program Files\Couchbase\Server\bin\memcached.exe

  Windows-32bit e2bf49c8b85cb7d00baadd0605dd5059
  Windows-r2-64bit e3bf10eb73b0049a4594eee845ee1455 

- Copy HOTFIX-MB-4738.txt file into C:\Program Files\Couchbase\Server\bin\
- Start couchbase server (net start couchbaseserver)


Applying the hotfix on 181 server node:-
- Stop couchbase server (net stop couchbaseserver)
- Make sure no couchbase processes are running at this moment
  - Extract the bin.zip 
- Depending upon the OS architecture, extract the corresponding binary
  Copy files in the bin/<OS> directory into C:\Program Files\Couchbase\Server\bin\

- Verify the md5sum of C:\Program Files\Couchbase\Server\bin\memcached.exe

  Windows-32bit e2bf49c8b85cb7d00baadd0605dd5059
  Windows-r2-64bit e3bf10eb73b0049a4594eee845ee1455 

- Copy HOTFIX-MB-4738.txt file into C:\Program Files\Couchbase\Server\bin\
- Start couchbase server (net start couchbaseserver)


Contact Information:
support@couchbase.com
