Search code examples
macosriak

riak node is not running


I installed riak version riak-1.4.6.

I ran make rel then make devrel.

rel/gen_dev dev1 rel/vars/dev_vars.config.src rel/vars/dev1_vars.config
Generating dev1 - node='[email protected]' pbc=10017 http=10018 handoff=10019
(cd rel && ../rebar generate target_dir=../dev/dev1 overlay_vars=vars/dev1_vars.config)
==> rel (generate)
mkdir -p dev
rel/gen_dev dev2 rel/vars/dev_vars.config.src rel/vars/dev2_vars.config
Generating dev2 - node='[email protected]' pbc=10027 http=10028 handoff=10029
(cd rel && ../rebar generate target_dir=../dev/dev2 overlay_vars=vars/dev2_vars.config)
==> rel (generate)
mkdir -p dev
rel/gen_dev dev3 rel/vars/dev_vars.config.src rel/vars/dev3_vars.config
Generating dev3 - node='[email protected]' pbc=10037 http=10038 handoff=10039
(cd rel && ../rebar generate target_dir=../dev/dev3 overlay_vars=vars/dev3_vars.config)
==> rel (generate)
mkdir -p dev

Then I ran

./dev/dev1/bin/riak start
!!!!
!!!! WARNING: ulimit -n is 256; 4096 is the recommended minimum.
!!!!:riak username$ ./dev/dev2/bin/riak start
!!!!
!!!! WARNING: ulimit -n is 256; 4096 is the recommended minimum.
!!!!

Same for ./dev/dev2/bin/riak start

In my web browser: http://localhost:10017/stats

Cannot find server.

I then ran

 ./dev/dev2/bin/riak-admin cluster join [email protected]
Node is not running!

then

 ./dev/dev1/bin/riak restart
Node '[email protected]' not responding to pings.

Ok, so I'll try starting again:

./dev/dev1/bin/riak start
!!!!
!!!! WARNING: ulimit -n is 256; 4096 is the recommended minimum.
!!!!

This time it restarted:

./dev/dev1/bin/riak restart
ok

In

vim ./dev/dev1/etc/app.config

I find

 %% Protocol Buffers interface will bind.
        {pb, [ {"127.0.0.1", 10017 } ]}
        ]},

and

   %% http is a list of IP addresses and TCP ports that the Riak
          %% HTTP interface will bind.
          {http, [ {"127.0.0.1", 10018 } ]},

          %% https is a list of IP addresses and TCP ports that the Riak
          %% HTTPS interface will bind.
          %{https, [{ "127.0.0.1", 10018 }]},

But I cannot get a ping from either 127.0.0.1:10017 or 127.0.0.1:10018.

./dev/dev1/etc/vm.args

shows

## Name of the riak node
-name [email protected]

How do I start these riak servers?


Solution

  • Riak is fairly picky about what version of Erlang should be installed. From its documentation on that, it looks like R15B01 is the version of Erlang you need installing.

    Also, I'd advise you to find binaries or packages for the platform of your choice, rather than building from source.