Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring with multiple hosts #9

Open
amperesoft opened this issue May 22, 2015 · 1 comment
Open

Configuring with multiple hosts #9

amperesoft opened this issue May 22, 2015 · 1 comment

Comments

@amperesoft
Copy link

Hi I have multiple hosts for which I want to configure this. It runs fine with single host but fails on multiple host with below mentioned error. FYI, I have removed logging from the code as it was giving me undef issue.

2015-05-22 16:24:47.827 [critical] <0.38.0>@gen_mod:start_module:90 Problem starting the module mod_offline_post for host <<"host2">>
 options: [{auth_token,<<"offline_post_auth_token">>},
           {post_url,<<"http://localhost:3000/services/offline_post1">>}]
 error: badarg
[{erlang,register,[mod_offline_post,<0.532.0>],[]},
 {mod_offline_post,start,2,[{file,"src/mod_offline_post.erl"},{line,45}]},
 {gen_mod,start_module,3,[{file,"src/gen_mod.erl"},{line,82}]},
 {lists,foreach,2,[{file,"lists.erl"},{line,1323}]},
 {ejabberd_app,start,2,[{file,"src/ejabberd_app.erl"},{line,67}]},
 {application_master,start_it_old,4,
                     [{file,"application_master.erl"},{line,269}]}]

My config file:

append_host_config:
  "host1":
    modules:
      mod_offline_post:
        auth_token: "offline_post_auth_token"
        post_url: "http://localhost:3000/services/offline_post"
  "host2":
    modules:
      mod_offline_post:
        auth_token: "offline_post_auth_token"
        post_url: "http://localhost:3000/services/offline_post1"

Any help is appreciated.

@rrigoni
Copy link

rrigoni commented Sep 6, 2015

I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants