riak hangs

Sean Cribbs sean at basho.com
Thu Nov 18 15:49:35 EST 2010


{error,emfile} generally means that you don't have enough file descriptors available to the process.  Set `ulimit -n` higher when starting Riak or use sysctl to increase the limit.

Sean Cribbs <sean at basho.com>
Developer Advocate
Basho Technologies, Inc.
http://basho.com/

On Nov 18, 2010, at 3:47 PM, Andrea Campolonghi wrote:

> Hi,
> 
> I am testing riak on an ubuntu 64 bit (10.10).
> After few operations riak hangs and I find this log report:
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
>     application: mochiweb
>     "Accept failed error"
>     "{error,emfile}"
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: ./lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/kernel-2.13.5/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/stdlib-1.16.5/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/sasl-2.1.9/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/os_mon-2.2.5/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/crypto-1.6.4/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/runtime_tools-1.8.3/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/erlang_js-0.4.1/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/mochiweb-1.7.1/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/webmachine-1.7.2/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/luke-0.2.1/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/bitcask-1.1.4/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/riak_core-0.13.0/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/riak_kv-0.13.0/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/skerl-0.1/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/luwak-1.0/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/xmerl-1.2.4/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/webtool-0.8.6/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/tools-2.6.5.1/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/syntax_tools-1.6.5/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/ssl-3.10.8/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/snmp-4.16/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/riakc-1.0.1/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/public_key-0.5/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/protobuffs-0.5.0/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/otp_mibs-1.0.6/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/mnesia-4.4.13/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/inets-5.3/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/hipe-3.7.5/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/eunit-2.1.5/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/erts-5.7.5/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/ebloom-1.0.2/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: /usr/lib/riak/lib/compiler-4.6.5/ebin/lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> File operation error: emfile. Target: lib.beam. Function: get_file. Process: code_server.
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> ** gen_event handler sasl_report_file_h crashed.
> ** Was installed in error_logger
> ** Last event was: {error_report,<0.95.0>,
>                        {<0.1703.0>,crash_report,
>                         [[{initial_call,
>                               {mochiweb_acceptor,init,
>                                   ['Argument__1','Argument__2',
>                                    'Argument__3']}},
>                           {pid,<0.1703.0>},
>                           {registered_name,[]},
>                           {error_info,
>                               {exit,
>                                   {error,accept_failed},
>                                   [{mochiweb_acceptor,init,3},
>                                    {proc_lib,init_p_do_apply,3}]}},
>                           {ancestors,
>                               [webmachine_mochiweb,riak_core_sup,<0.96.0>]},
>                           {messages,[]},
>                           {links,[<0.108.0>]},
>                           {dictionary,[]},
>                           {trap_exit,false},
>                           {status,running},
>                           {heap_size,233},
>                           {stack_size,24},
>                           {reductions,207}],
>                          []]}}
> ** When handler state == {<0.40.0>,"/var/log/riak/sasl-error.log",error}
> ** Reason == {'module could not be loaded',
>                  [{lib,format_exception,
>                       [5,exit,
>                        {error,accept_failed},
>                        [{mochiweb_acceptor,init,3},
>                         {proc_lib,init_p_do_apply,3}],
>                        #Fun<proc_lib.0.73600383>,#Fun<proc_lib.1.130404962>]},
>                   {proc_lib,format_exception,3},
>                   {proc_lib,format_rep,1},
>                   {proc_lib,format_rep,1},
>                   {proc_lib,format_rep,1},
>                   {proc_lib,format,1},
>                   {sasl_report,write_report2,5},
>                   {sasl_report_file_h,handle_event,2}]}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:04 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:05 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:05 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:05 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:05 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:05 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:05 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:05 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:05 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:05 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> =ERROR REPORT==== 18-Nov-2010::21:42:05 ===
> {mochiweb_socket_server,256,{acceptor_error,{error,accept_failed}}}
> 
> 
> Any suggestion?
> 
> Thanks
> 
> Andrea
> 
> -- 
> Andrea Campolonghi
> 
> Cell : +39 347 2298435
> acampolonghi at gmail.com
> andrea at andreacfm.com
> http://www.andreacfm.com
> 
> Railo Team
> andrea at getrailo.org
> http://getrailo.org
> 
> 
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20101118/9fbf2aa1/attachment.html>


More information about the riak-users mailing list