Sunday, March 17, 2013

Installing Couchbase on Windows 8

March 17, 2013 Posted by Jason Irwin , , No comments

This weekend I played around with Couchbase’s caching infrastructure on my Windows 8 box. Getting things set up was a bit of a nightmare, but thanks to some perseverance and much Googling, I got things up and running.

You’re likely to run into two issues post install:

  1. Post install: Navigating to localhost:8091 resulted in an error page
  2. Upon successful login: the Active Servers count is 0 and the Servers Down count is 1

The following guide should address both issues

Installation Guide

  1. Install Couchbase as usual
  2. Fix IP Address issue. For some reason the registration process generated a strange IP address on my box. Looking at the registration script it became obvious that the IP was saved and subsequently read from an ipaddr.out file
    • Copy the file C:\Program Files\Couchbase\Server\bin\ipaddr.out to your desktop and replace the IP with 127.0.0.1
    • Copy the modified version back to C:\Program Files\Couchbase\Server\bin\
  3. Replace tcmalloc binary (glad somebody smarter figured this out!)
    1. Grab a copy of libtcmalloc_minimal-4 from the relevant link in the following issue log
    2. Overwrite the existing binary in C:\Program Files\Couchbase\Server\bin with this one
  4. Reregister service
    • C:\Program Files\Couchbase\Server\bin\service_reregister.bat

 

I hope this saves somebody else some time!

0 comments: