basho/riak-ruby-client — Issue #2: Test server in master does not work on 0.14
Author: seancribbs
Created: 2012-01-12 21:00:31+00:00
State: open
Labels: bug

Moved from https://github.com/seancribbs/ripple/issues/253 by @myronmarston:

I've got an app on riak 0.14 that I'm getting ready to upgrade to 1.0. The app is currently on 3595941bfc1615e2b10198bdcc8640074c47e560 from the end of July, so I tried to upgrade ripple to see if it would work on 0.14.

I haven't tried it in production yet (so it may work there) but I rely on our test suite pretty heavily and I can't get the test server to work on 0.14. The test server would boot and immediately crash. [Here's](https://gist.github.com/d8440bded0ce1973aeb1) the log output, if that's useful. The [test server backend](https://github.com/seancribbs/ripple/blob/master/riak-client/erl_src/riak_kv_test_backend.erl#L61) looks like it declares that it's only compatible with riak 1.0 (or does API_VERSION refer to something else?).

I tried to hack riak-client so that it used the old test server backend and the old `app.config` and `vm.args` files that were being generated by the commit above. That fixed the crashing issue but then the test process would get stuck. I did some debugging and it appears to get stuck when [attaching to the riak console](https://github.com/seancribbs/ripple/blob/master/riak-client/lib/riak/node/control.rb#L70-72). The console appeared to be waiting for input and the test process wasn't giving it any, so it just sat there.

Any ideas for how to get this to work?

## Copied Comments

@myronmarston said on November 29:

I decided to try upgrading riak and ripple at the same time, and ran in to problems there, too. I upgraded riak on my MBP using [homebrew](https://github.com/mxcl/homebrew/blob/e93e65e1445d821d35a0466e51c220d97cc3a404/Library/Formula/riak.rb). Now when I start the test server, it crashes, but with a different error. I [gisted](https://gist.github.com/e99c818b5ffb532db907) the logs.

So for now I'm totally stuck on the upgrade since I can't get the ripple test server to work with either 0.14 or 1.0 :(.

@myronmarston said on November 29:

With @seancribbs help we figured out that it was due to my use of `localhost` rather than `127.0.0.1` as the host. We should document and/or fix this.