basho / riak

Riak is a decentralized datastore from Basho Technologies.

Home Page:http://docs.basho.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Centos RPM service riak failed to start within 15 seconds

cheluskin opened this issue · comments

`● riak.service - SYSV: Riak is a distributed data store
Loaded: loaded (/etc/rc.d/init.d/riak; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2020-06-24 09:45:53 CEST; 6min ago
Docs: man:systemd-sysv-generator(8)
Process: 3357 ExecStart=/etc/rc.d/init.d/riak start (code=exited, status=1/FAILURE)

Jun 24 09:45:34 ns3082334 su[3363]: (to riak) root on none
Jun 24 09:45:53 ns3082334 riak[3357]: Starting riak: riak failed to start within 15 seconds,
Jun 24 09:45:53 ns3082334 riak[3357]: see the output of 'riak console' for more information.
Jun 24 09:45:53 ns3082334 riak[3357]: If you want to wait longer, set the environment variable
Jun 24 09:45:53 ns3082334 riak[3357]: WAIT_FOR_ERLANG to the number of seconds to wait.
Jun 24 09:45:53 ns3082334 riak[3357]: [FAILED]
Jun 24 09:45:53 ns3082334 systemd[1]: riak.service: control process exited, code=exited status=1
Jun 24 09:45:53 ns3082334 systemd[1]: Failed to start SYSV: Riak is a distributed data store.
Jun 24 09:45:53 ns3082334 systemd[1]: Unit riak.service entered failed state.
Jun 24 09:45:53 ns3082334 systemd[1]: riak.service failed.`

in system messages run_erl[3514]: errno=1 'Operation not permitted'#012Could not open pty master

fix:
usermod -a -G tty riak

Apologies that this issue was never picked up at the time. Without the console logs, the output of a crash.log it is hard to know what was happening in this case, but generally we would expect this to happen due to a local permissions issue.