%% -*- mode: erlang -*-
[

 {exometer, [{predefined, [
    {[erlang, memory], {function, erlang, memory, [], value, []}, []},
    {[erlang, system_info], {function, erlang, system_info, ['$dp'], value, 
[process_count]}, []},
    {[erlang, statistics], {function, erlang, statistics, ['$dp'], value, 
[run_queue]}, []},
    {[erlang, io], {function, erlang, statistics, [io], match, {{'_', 
input}, {'_', output}}}, []}
   ]}
 ]},
 {mnesia, [
    {dir, "priv/mnesia"}
 ]},
 {emqtt, [
    {auth, {z_mqtt_auth, []}},
       {access_control, {zotonic, []}},
          {listeners, [
                 {1883,  [
                            binary,
                            {packet,        raw},
                            {reuseaddr,     true},
                            {backlog,       128},
                            {nodelay,       true}
                        ]}
                    ]}
        ]},
 {lager,
  [{handlers,
    [
      {lager_console_backend, info},
      {lager_file_backend, [{file, "priv/log/error.log"},   {level, 
error}]},
      {lager_file_backend, [{file, "priv/log/console.log"}, {level, info}]}
    ]},
   {crash_log, "priv/log/crash.log"}
  ]},

 {webzmachine,
  [
%%% Logger module, use this option to set your own.
   %% {webmachine_logger_module, z_stats}, % <- default set by Zotonic
   %% {webmachine_logger_module, webmachine_logger}, % <- webmachine default

%%% Error handler module, use this option to set your own.
   %% {error_handler, z_webmachine_error_handler}, % <- default set by 
Zotonic
   %% {error_handler, webmachine_error_handler}, % <- webmachine default

%%% Set this option to false if you want webmachine to write info about
%%% opening/closing log files to the Erlang console.
   %% {silent_console, true},

%%% Location of access logs (logging is disabled if not set).
   {log_dir, "priv/log/access/"},

%%% Location of performance logs (logging is disabled if not set).
   %% {perf_log_dir, "priv/log/perf/"},

%%% Location of wmtrace logs (defaults to "priv/wmtrace" if not specified).
   {wmtrace_dir, "priv/log/wmtrace/"},

%%% Which sendfile command to use: disable, yaws, erlang;
%%% disabled by default because both erlang and yaws implementations are 
buggy
   {use_sendfile, disable}
  ]}
].




понедельник, 7 ноября 2016 г., 19:46:16 UTC+9 пользователь Marc Worrell 
написал:
>
> That is interesting.
>
> emqtt seems to think that the auth module is called “
> emqtt_auth_z_mqtt_auth”.
> When in fact it is called “emqtt_auth_zotonic”
>
> What is your erlang.config configuration for emqtt?
>
> It should be something like:
>
>  {emqtt, [
>     {auth, {zotonic, []}},
>     {access_control, {zotonic, []}},
>  
>
> - Marc
>
>
> On 06 Nov 2016, at 15:41, heiheshang <strangerf...@gmail.com <javascript:>> 
> wrote:
>
> 2016-11-06 08:48:46.385 [error] <0.259.0> CRASH REPORT Process <0.259.0> 
> with 0 neighbours exited with reason: call to undefined function 
> emqtt_auth_z_mqtt_auth:init([]) in gen_server2:init_it/6 line 481
> 2016-11-06 08:48:46.385 [error] <0.258.0> Supervisor emqtt_sup had child 
> emqtt_auth started with emqtt_auth:start_link() at undefined exit with 
> reason call to undefined function emqtt_auth_z_mqtt_auth:init([]) in 
> context start_error
> 2016-11-06 08:48:46.386 [error] <0.256.0> CRASH REPORT Process <0.256.0> 
> with 0 neighbours exited with reason: no match of right hand value 
> {error,{shutdown,{failed_to_start_child,emqtt_auth,{undef,[{emqtt_auth_z_mqtt_auth,init,[[]],[]},{emqtt_auth,init,1,[{file,"src/emqtt_auth.erl"},{line,53}]},{gen_server2,init_it,6,[{file,"src/gen_server2.erl"},{line,447}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}}}}
>  
> in emqtt_app:start/2 line 36 in application_master:init/4 line 134
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Zotonic developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to zotonic-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to