Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

Problem in the config file (storage_backend =) #43

Open
casertap opened this issue Aug 28, 2015 · 8 comments
Open

Problem in the config file (storage_backend =) #43

casertap opened this issue Aug 28, 2015 · 8 comments
Labels

Comments

@casertap
Copy link

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.

@hectcastro
Copy link
Owner

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

@peppesilletti
Copy link

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.

@hectcastro
Copy link
Owner

What do you see if you execute riak console?

@peppesilletti
Copy link

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

@casertap
Copy link
Author

casertap commented Oct 4, 2015

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.

@peppesilletti
Copy link

Thank you for helping me! :)

@peppesilletti
Copy link

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.

@hectcastro
Copy link
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants