docker-riak icon indicating copy to clipboard operation
docker-riak copied to clipboard

Problem in the config file (storage_backend =)

Open casertap opened this issue 9 years ago • 8 comments

Riak was not starting so I logged into the container and did:

riak console
/etc/riak/riak.conf after line 334 column 1, parsing incomplete

vim /etc/riak/riak.conf

## Acceptable values:                                                                                                                                                                 
##   - one of: bitcask, leveldb, memory, multi                                                                                                                                        
storage_backend =

So I commented the entire line and it works.

casertap avatar Aug 28 '15 15:08 casertap

Can you please provide the command used to launch the cluster?

hectcastro avatar Aug 29 '15 13:08 hectcastro

I've got the same problem. I'm using docker on Ubuntu 15.04 and in the riak container, i use "riak start" to start the node, but it doesn't work. Neither commenting the line.

peppesilletti avatar Oct 02 '15 07:10 peppesilletti

What do you see if you execute riak console?

hectcastro avatar Oct 03 '15 14:10 hectcastro

riak console /etc/riak/riak.conf after line 334 column 1, parsing incomplete

peppesilletti avatar Oct 04 '15 08:10 peppesilletti

Riak is asking to setup the storage backend type. You can comment the line 334 so riak will use a Bitcask storage engine by default.

Otherwise you can choose between bitcask, leveldb, memory and multi storage_backend.

casertap avatar Oct 04 '15 09:10 casertap

Thank you for helping me! :)

peppesilletti avatar Oct 04 '15 09:10 peppesilletti

I did like @casertap suggested, and it worked without even digit "riak start" (strange). Then i stopped the container and re-started and digiting "riak start" didn't work again, even if the config file was ok (riak chkconfig). One good thing is that it was possible to connect it to the riak java client.

Then i tried to use the Dockerfile without the last changes, and it works perfectly, without commenting anything, but now the riak java client doesn't work anymore.

peppesilletti avatar Oct 04 '15 19:10 peppesilletti

I'm still trying to make sense of this issue and how it may be occurring. The example command in the README is:

$ DOCKER_RIAK_AUTOMATIC_CLUSTERING=1 DOCKER_RIAK_CLUSTER_SIZE=5 DOCKER_RIAK_BACKEND=leveldb make start-cluster

In that scenario, the Riak backend should be set to LevelDB. If DOCKER_RIAK_BACKEND is omitted, it should default to Bitcask.

Do either if you have examples of the commands used to launch the cluster so that I can try to reproduce the issue? Thanks.

hectcastro avatar Oct 05 '15 23:10 hectcastro