{"action":"created","issue":{"url":"https://api.github.com/repos/adamvduke/mod_interact/issues/5","labels_url":"https://api.github.com/repos/adamvduke/mod_interact/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/adamvduke/mod_interact/issues/5/comments","events_url":"https://api.github.com/repos/adamvduke/mod_interact/issues/5/events","html_url":"https://github.com/adamvduke/mod_interact/issues/5","id":36380577,"number":5,"title":"ejabberd 14.05 - ejabberd initialization was aborted because a module start failed.","user":{"login":"igama","id":76993,"avatar_url":"https://avatars.githubusercontent.com/u/76993?v=3","gravatar_id":"","url":"https://api.github.com/users/igama","html_url":"https://github.com/igama","followers_url":"https://api.github.com/users/igama/followers","following_url":"https://api.github.com/users/igama/following{/other_user}","gists_url":"https://api.github.com/users/igama/gists{/gist_id}","starred_url":"https://api.github.com/users/igama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igama/subscriptions","organizations_url":"https://api.github.com/users/igama/orgs","repos_url":"https://api.github.com/users/igama/repos","events_url":"https://api.github.com/users/igama/events{/privacy}","received_events_url":"https://api.github.com/users/igama/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-06-24T12:53:26Z","updated_at":"2015-01-05T17:09:34Z","closed_at":null,"body":" * Installed ejabberd 14.05 with ejabberd-14.05-linux-x86_64-installer.run\r\n * Updated Emakefile with the new paths : \r\n\r\n```\r\n    {'src/mod_offline_post', [{outdir, \"ebin\"},{i,\"/opt/ejabberd/lib/ejabberd-14.05/include\"}]}.\r\n    {'src/mod_available_post', [{outdir, \"ebin\"},{i,\"/opt/ejabberd/lib/ejabberd-14.05/include\"}]}.\r\n    {'src/mod_unavailable_post', [{outdir, \"ebin\"},{i,\"/opt/ejabberd/lib/ejabberd-14.05/include\"}]}.\r\n```\r\n* Build process no errors:\r\n\r\n```\r\nejabberd@external:~/mod_interact$ /build.sh\r\nRecompile: src/mod_offline_post\r\nRecompile: src/mod_available_post\r\nRecompile: src/mod_unavailable_post\r\n```\r\n\r\nin ejabberd.yml\r\n\r\n```\r\n  mod_offline_post:\r\n    auth_token: \"offline_post_auth_token\"\r\n    post_url: \"http://localhost:4567/offline_post\"\r\n```\r\n\r\nrunning ejabberdctl live\r\n\r\n```\r\n12:50:51.700 [critical] Problem starting the module mod_offline_post for host <<\"example.org\">>\r\n options: [{auth_token,<<\"offline_post_auth_token\">>},\r\n           {post_url,<<\"http://localhost:4567/offline_post\">>}]\r\n error: undef\r\n[{p1_logger,info_msg,[mod_offline_post,45,\"Starting mod_offline_post\",[]],[]},\r\n {mod_offline_post,start,2,[{file,\"src/mod_offline_post.erl\"},{line,45}]},\r\n {gen_mod,start_module,3,[{file,\"src/gen_mod.erl\"},{line,69}]},\r\n {lists,foreach,2,[{file,\"lists.erl\"},{line,1323}]},\r\n {ejabberd_app,start,2,[{file,\"src/ejabberd_app.erl\"},{line,66}]},\r\n {application_master,start_it_old,4,\r\n                     [{file,\"application_master.erl\"},{line,269}]}]\r\n12:50:51.700 [critical] ejabberd initialization was aborted because a module start failed.\r\n\r\nCrash dump was written to: /opt/ejabberd/logs/erl_crash_20140624-125049.dump\r\nProblem starting the module mod_offline_post for host <<\"example.org\">>\r\n options: [{auth_token,<<\"offline_post_auth_token\">>},\r\n           {post_url,<<\"http://localhost:4567/offline_post\">>}]\r\n error: un\r\n```"},"comment":{"url":"https://api.github.com/repos/adamvduke/mod_interact/issues/comments/68739759","html_url":"https://github.com/adamvduke/mod_interact/issues/5#issuecomment-68739759","issue_url":"https://api.github.com/repos/adamvduke/mod_interact/issues/5","id":68739759,"user":{"login":"raelmax","id":459390,"avatar_url":"https://avatars.githubusercontent.com/u/459390?v=3","gravatar_id":"","url":"https://api.github.com/users/raelmax","html_url":"https://github.com/raelmax","followers_url":"https://api.github.com/users/raelmax/followers","following_url":"https://api.github.com/users/raelmax/following{/other_user}","gists_url":"https://api.github.com/users/raelmax/gists{/gist_id}","starred_url":"https://api.github.com/users/raelmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raelmax/subscriptions","organizations_url":"https://api.github.com/users/raelmax/orgs","repos_url":"https://api.github.com/users/raelmax/repos","events_url":"https://api.github.com/users/raelmax/events{/privacy}","received_events_url":"https://api.github.com/users/raelmax/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T17:09:33Z","updated_at":"2015-01-05T17:09:33Z","body":"I've downloaded the 14.12 version from github, compiled from source code and have the same issue, I followed this steps to solve:\r\n\r\nAdd this:\t\r\n\r\n```-define(LAGER, 1).```\r\n\r\nTo \"/lib/ejabberd/include/logger.hrl\", before the line:\r\n\r\n``` ifdef(LAGER) ```\r\n\r\nAnd compile module with:\r\n$ erlc -I /lib/ejabberd/include/ -pa ~[path-to-ejabberd-code]/ejabberd/deps/lager/ebin/ src/mod_offline_post.erl\r\n$ sudo mv mod_offline_post.beam /lib/ejabberd/ebin/\r\n$ sudo ejabberdctl start\r\n\r\nThis works for me on:\r\nDistributor ID: Ubuntu\r\nDescription:    Ubuntu 14.04.1 LTS\r\nRelease:        14.04\r\nCodename:       trusty"}}