Excerpts from Sangeetha.PattabiRaman2's message of 2012-08-08 13:33:25 +1000:
> [root@CTSINGMRGTO riak]# sudo -u riak sh -c 'echo $PATH'
> /sbin:/bin:/usr/sbin:/usr/bin

That's what I would expect.

> [root@CTSINGMRGTO riak]#   sudo -u riak -i
> -bash: id: command not found
> -bash: tty: command not found
> -bash: grep: command not found
> -bash: sed: command not found

This is very odd! Given that your path looks fine & without getting on the
machine it looks as if it's completely and utterly screwed.

My initial thoughts are it's one of the following:

* /bin or /usr/bin has had files deleted - but I assume the machine
  behaves properly when you are normally logged in so this would be
  unlikely.
* Some of the shared libraries are missing or corrupt but the above
  caveat applies.

As any user other than riak what happens when you type:

  which sed

it should return /bin/sed (I'm checking this on a debian machine so it
may be different on yours).

You might want to run

  ls /bin
  ls /usr/bin

and see what that returns. It should be a whole load of stuff including
sed, tty, etc

If sed exists (I'll assume it's path is /bin/sed) try running ldd

  ldd /bin/sed

is should return:
        linux-vdso.so.1 =>  (0x00007fff6f1ff000)
        libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 
(0x00007fcb57137000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fcb56db0000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fcb56bab000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fcb57377000)

If any shared libs are missing you'll get (from the top of my head):

        libdl.so.2 => missing

it might not be "missing" but it won't be a path.


rgh

> Still the same .unable to start
> 
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Richard Heycock
> Sent: Wednesday, August 08, 2012 9:00 AM
> To: riak-users
> Subject: Re: riak failed to start up
> 
> Excerpts from Sangeetha.PattabiRaman2's message of 2012-08-07 21:15:16 +1000:
> > Hi ,
> >
> > Can any one help me on the start up error ..thx in advance
> > [root@CTSINGMRGTO riak]# cat console.log
> > 2012-08-07 09:13:54.260 [error] <0.164.0> CRASH REPORT Process
> > riak_core_capability with 0 neighbours exited with reason: no function
> > clause matching orddict:fetch('[email protected]', []) line 72 in
> > gen_server:terminate/6 line 747
> >
> > [root@CTSINGMRGTO riak]# riak start
> > Attempting to restart script through sudo -u riak
> > /etc/profile: line 31: id: command not found
> > /usr/sbin/riak: line 6: uname: command not found
> > /usr/sbin/riak: line 6: [: too many arguments
> > /usr/sbin/riak: line 30: whoami: command not found sudo doesn't appear
> > to be installed and your EUID isn't riak
> 
> This looks like your PATH isn't being set. Is "sudo -u riak"
> 
> sudo -u riak sh -c 'echo $PATH'
> 
> should show something like:
> 
>   /usr/local/bin:/usr/bin:/bin
> 
> try getting a shell as riak:
> 
>   sudo -u riak -i
> 
> checking the path is ok and run it from there.
> 
> rgh
> 
> >
> > on running as service
> >
> > [root@CTSINGMRGTO riak]# service riak start Starting Riak: Riak failed
> > to start within 15 seconds, see the output of 'riak console' for more
> > information.
> > If you want to wait longer, set the environment variable
> > WAIT_FOR_ERLANG to the number of seconds to wait.
> >                                                            [FAILED]
> >
> > Thanks & regards
> > sangeetha
> >
> > This e-mail and any files transmitted with it are for the sole use of the 
> > intended recipient(s) and may contain confidential and privileged 
> > information. If you are not the intended recipient(s), please reply to the 
> > sender and destroy all copies of the original message. Any unauthorized 
> > review, use, disclosure, dissemination, forwarding, printing or copying of 
> > this email, and/or any action taken in reliance on the contents of this 
> > e-mail is strictly prohibited and may be unlawful.
> --
> [e]:  [email protected]
> [im]: [email protected]
> 
> You're worried criminals will continue to penetrate into cyberspace, and I'm 
> worried complexity, poor design and mismanagement will be there to meet them 
> - Marcus Ranum
> 
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> This e-mail and any files transmitted with it are for the sole use of the 
> intended recipient(s) and may contain confidential and privileged 
> information. If you are not the intended recipient(s), please reply to the 
> sender and destroy all copies of the original message. Any unauthorized 
> review, use, disclosure, dissemination, forwarding, printing or copying of 
> this email, and/or any action taken in reliance on the contents of this 
> e-mail is strictly prohibited and may be unlawful.
-- 
[e]:  [email protected]
[im]: [email protected]

You're worried criminals will continue to penetrate into cyberspace, and
I'm worried complexity, poor design and mismanagement will be there to meet
them - Marcus Ranum

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to