basho-labs / riak-docker

Riak in Docker
19 stars 32 forks source link

LevelDB error #2

Open ghost opened 8 years ago

ghost commented 8 years ago

When i changed storage_backend to leveldb (indexes) i got an errors:

ClientError|[Cluster] all retries exhausted and/or no nodes available to execute command|InnerError|RiakError|0|Error processing incoming message: error:{case_clause,\n                                          {rpbindexreq,<<\"users\">>,\n                                           <<\"email_bin\">>,eq,\n                                           <<\"fdhadzh@gmail.com\">>,undefined,\n                                           undefined,undefined,undefined,\n                                           undefined,undefined,300000,\n                                           <<\"default\">>,undefined,undefined,\n                                           undefined,undefined}}:[{riak_kv_pb_index,\n                                                                   decode,2,\n                                                                   [{file,\n                                                                     \"src/riak_kv_pb_index.erl\"},\n                                                                    {line,\n                                                                     62}]},\n                                                                  {riak_api_pb_server,\n                                                                   connected,\n                                                                   2,\n                                                                   [{file,\n                                                                     \"src/riak_api_pb_server.erl\"},\n                                                                    {line,\n                                                                     219}]},\n                                                                  {riak_api_pb_server,\n                                                                   decode_buffer,\n                                                                   2,\n                                                                   [{file,\n                                                                     \"src/riak_api_pb_server.erl\"},\n                                                                    {line,\n                                                                     364}]},\n                                                                  {gen_fsm,\n                                                                   handle_msg,\n                                                                   7,\n                                                                   [{file,\n                                                                     \"gen_fsm.erl\"},\n                                                                    {line,\n                                                                     505}]},\n                                                                  {proc_lib,\n                                                                   init_p_do_apply,\n                                                                   3,\n                                                                   [{file,\n                                                                     \"proc_lib.erl\"},\n                                                                    {line,\n                                                                     239}]}]
2016-10-05 17:46:50.036 [notice] <0.2140.0> Data directory /var/lib/riak/leveldb is not mounted with 'noatime'. Please remount its disk with the 'noatime' flag to improve performance.

Using prestart hook:

#!/usr/bin/env bash

# Change storage backend to leveldb
sed -i -r "s#storage_backend = (.*)#storage_backend = leveldb#g" $RIAK_CONF

But when i changed docker-image to 2.1.4 (not ubuntu-2.1.4 or centos) and changed config manually i got no errors.

jbrisbin commented 7 years ago

@fdhadzh I assume you had the /var/lib/riak volume mounted? Were you using just the normal local disk driver for the volume? What host OS were you using?

mdigan commented 7 years ago

Hi @fdhadzh do you still need assistance with this issue?

cc @jbrisbin