Error while installing riak on ubuntu 12.04

2015-07-08 Thread Gopi Krishna
Hi,

I am trying to install riak1.4.7 on my ubuntu 12.04 machine.

I have installed otp_src_R15BO1 version.

erl shell is coming fine but when i try to install riak.

The below command is thrwoing me the error:

make rel

fatal: No names found, cannot describe anything.
./rebar get-deps
Uncaught error in rebar_core: {'EXIT',
   {undef,
[{crypto,start,[],[]},
 {rebar,run_aux,2,[]},
 {rebar,main,1,[]},
 {escript,run,2,
  [{file,"escript.erl"},{line,727}]},
 {escript,start,1,
  [{file,"escript.erl"},{line,277}]},
 {init,start_it,1,[]},
 {init,start_em,1,[]}]}}
make: *** [deps] Error 1

I am also getting error in the erlang shell to make sure it is getting the
crypto file or not

Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0]
[hipe] [kernel-poll:false]

Eshell V5.9.1  (abort with ^G)
1>
1> l(crypto).
{error,on_load_failure}

=ERROR REPORT 8-Jul-2015::16:52:21 ===
Unable to load crypto library. Failed with error:
"load_failed, Failed to load NIF library
/usr/local/lib/erlang/lib/crypto-2.1/priv/lib/crypto: 'libcrypto.so.10:
cannot open shared object file: No such file or directory'"
OpenSSL might not be installed on this system.

=ERROR REPORT 8-Jul-2015::16:52:21 ===
The on_load function for module crypto returned {error,
 {load_failed,
  "Failed to load NIF
library /usr/local/lib/erlang/lib/crypto-2.1/priv/lib/crypto:
'libcrypto.so.10: cannot open shared object file: No such file or
directory'"}}


Someone please suggest me to how to fix it.

-- 

Thanks & Regards,
J.Gopi Krishna
+91-8341452934,
www.lintelindia.com
Lintel Technologies Pvt. LTD,Hyderabad.

This message contains confidential information and is intended for
recipient. If you are not the intended recipient you are notified that
disclosing, copying, distributing or taking any action in reliance on the
contents of this information is strictly prohibited. E-mail transmission
cannot be guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please request a
hard-copy version.
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Error while installing riak on ubuntu 12.04

2015-07-08 Thread Fred Dushin
Generally this means you built a version of Erlang that did not end up building 
the crypto application.  This usually happens if the configure script does not 
find the OpenSSL header files and libraries.  You probably need to install one 
of the openssl-dev packages on whatever flavor of Linux you are using, and then 
rebuild Erlang/OTP.  Pay special attention to the output of the configure 
script, and verify crypto has been built via the Erlang shell, e.g.,

1> m(crypto).
Module crypto compiled: Date: April 14 2015, Time: 03.02
Compiler options:  [{d,'CRYPTO_VSN',"3.1"},
{outdir,"/xx/lib/crypto/src/../ebin"},
warnings_as_errors,warn_obsolete_guard,debug_info]
Object file: /xxx/lib/crypto-3.1/ebin/crypto.beam
Exports: 
aes_cbc_128_decrypt/3 hmac_update/2
aes_cbc_128_encrypt/3 info/0
aes_cbc_256_decrypt/3 info_lib/0
...

-Fred

> On Jul 8, 2015, at 7:23 AM, Gopi Krishna  wrote:
> 
> Hi,
> 
> I am trying to install riak1.4.7 on my ubuntu 12.04 machine.
> 
> I have installed otp_src_R15BO1 version.
> 
> erl shell is coming fine but when i try to install riak.
> 
> The below command is thrwoing me the error:
> 
> make rel
> 
> fatal: No names found, cannot describe anything.
> ./rebar get-deps
> Uncaught error in rebar_core: {'EXIT',
>{undef,
> [{crypto,start,[],[]},
>  {rebar,run_aux,2,[]},
>  {rebar,main,1,[]},
>  {escript,run,2,
>   [{file,"escript.erl"},{line,727}]},
>  {escript,start,1,
>   [{file,"escript.erl"},{line,277}]},
>  {init,start_it,1,[]},
>  {init,start_em,1,[]}]}}
> make: *** [deps] Error 1
> 
> I am also getting error in the erlang shell to make sure it is getting the 
> crypto file or not 
> 
> Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0] 
> [hipe] [kernel-poll:false]
> 
> Eshell V5.9.1  (abort with ^G)
> 1> 
> 1> l(crypto).
> {error,on_load_failure}
> 
> =ERROR REPORT 8-Jul-2015::16:52:21 ===
> Unable to load crypto library. Failed with error:
> "load_failed, Failed to load NIF library 
> /usr/local/lib/erlang/lib/crypto-2.1/priv/lib/crypto: 'libcrypto.so.10: 
> cannot open shared object file: No such file or directory'"
> OpenSSL might not be installed on this system.
> 
> =ERROR REPORT 8-Jul-2015::16:52:21 ===
> The on_load function for module crypto returned {error,
>  {load_failed,
>   "Failed to load NIF library 
> /usr/local/lib/erlang/lib/crypto-2.1/priv/lib/crypto: 'libcrypto.so.10: 
> cannot open shared object file: No such file or directory'"}}
> 
> 
> Someone please suggest me to how to fix it.
> 
> -- 
> 
> Thanks & Regards,
> J.Gopi Krishna
> +91-8341452934,
> www.lintelindia.com 
> Lintel Technologies Pvt. LTD,Hyderabad.
> 
> This message contains confidential information and is intended for recipient. 
> If you are not the intended recipient you are notified that disclosing, 
> copying, distributing or taking any action in reliance on the contents of 
> this information is strictly prohibited. E-mail transmission cannot be 
> guaranteed to be secure or error-free as information could be intercepted, 
> corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. 
> The sender therefore does not accept liability for any errors or omissions in 
> the contents of this message, which arise as a result of e-mail transmission. 
> If verification is required please request a hard-copy version.
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


is it possible to start riak_kv as foreground process?

2015-07-08 Thread ROMAN SHESTAKOV
hello,

is there any way to start RIAK_KV as a foreground process instead of as a demon 
process, which is what "bin/riak start” does?

Regards, Roman
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: is it possible to start riak_kv as foreground process?

2015-07-08 Thread Cuyler Jones
Hi Roman --

If riak is not currently running:

bin/riak console

If riak is currently running:

bin/riak attach



On Wed, Jul 8, 2015 at 9:41 AM, ROMAN SHESTAKOV 
wrote:

> hello,
>
> is there any way to start RIAK_KV as a foreground process instead of as a
> demon process, which is what "bin/riak start” does?
>
> Regards, Roman
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: is it possible to start riak_kv as foreground process?

2015-07-08 Thread Roman Shestakov
Thanks, but i meant to run as foreground hidden process, without console.

I need to run riak kv under specific process management system which controls 
process live cycle. It cant do it if the process is backgrounded. 

I really dont want ti hack the riak runner wrapper so though maybe there us 
sine trick. 

But in any case, it seems surprising that this option is missing as a standard

Regards, Roman  

Sent from my iPhone

> On 8 Jul 2015, at 17:54, Cuyler Jones  wrote:
> 
> Hi Roman --
> 
> If riak is not currently running:
> 
> bin/riak console
> 
> If riak is currently running:
> 
> bin/riak attach
> 
> 
> 
>> On Wed, Jul 8, 2015 at 9:41 AM, ROMAN SHESTAKOV  
>> wrote:
>> hello,
>> 
>> is there any way to start RIAK_KV as a foreground process instead of as a 
>> demon process, which is what "bin/riak start” does?
>> 
>> Regards, Roman
>> ___
>> riak-users mailing list
>> riak-users@lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> 
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: is it possible to start riak_kv as foreground process?

2015-07-08 Thread Luke Bakken
Hi Roman,

Which "process management system" are you using? I have successfully run
Riak using monit and the fact that Riak runs in the background does not
cause issues.

For instance, this monit configuration will start/stop Riak as well as
monitor it. You must disable your system's init script for Riak if you want
monit to do the job instead.

check process riak
with pidfile /var/run/riak/riak.pid
start program = "/etc/init.d/riak start" with timeout 30 seconds
stop program = "/etc/init.d/riak stop" with timeout 60 seconds
alert riak-ale...@domain.com
on { connection, timeout }
with mail-format {
subject: [ALERT] $HOST: Riak Service - $EVENT
message: $DATE
Problem:
$HOST: Riak raised the following event: $EVENT
$DESCRIPTION
}
with reminder on 10 cycles
if failed (url http://localhost:8098/ping and content == '^OK$')
with timeout 15 seconds
for 2 times within 5 cycles
then alert
if 3 restarts within 5 cycles then alert
group riak

--
Luke Bakken
Engineer
lbak...@basho.com

On Wed, Jul 8, 2015 at 2:17 PM, Roman Shestakov 
wrote:

> Thanks, but i meant to run as foreground hidden process, without console.
>
> I need to run riak kv under specific process management system which
> controls process live cycle. It cant do it if the process is backgrounded.
>
> I really dont want ti hack the riak runner wrapper so though maybe there
> us sine trick.
>
> But in any case, it seems surprising that this option is missing as a
> standard
>
> Regards, Roman
>
> Sent from my iPhone
>
> On 8 Jul 2015, at 17:54, Cuyler Jones  wrote:
>
> Hi Roman --
>
> If riak is not currently running:
>
> bin/riak console
>
> If riak is currently running:
>
> bin/riak attach
>
>
>
> On Wed, Jul 8, 2015 at 9:41 AM, ROMAN SHESTAKOV <
> romanshesta...@yahoo.co.uk> wrote:
>
>> hello,
>>
>> is there any way to start RIAK_KV as a foreground process instead of as a
>> demon process, which is what "bin/riak start” does?
>>
>> Regards, Roman
>> ___
>> riak-users mailing list
>> riak-users@lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>
>
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com