ejabberd

Ejabberd Clustering not working

那年仲夏 提交于 2019-12-12 07:05:33
问题 I have installed ejabberd on two ubuntu servers in the same network using the binary installers, I have copied the .erlang.cookie file from /etc/ejabberd/bin of ejabberd@node1 (The intended master) to /etc/ejabberd/bin of ejabberd@node2 (the intended slave). When I run the command: ejabberdctl join_cluster 'ejabberd@node1' on ejabberd@node2, I get the following error: Error: {no_ping,ejabberd@node1} When I try to ping ejabberd@node1 using erl console I get a pang . The servers on which both

Connect phpMyAdmin with ejabberd server on ec2 ubuntu instance

心不动则不痛 提交于 2019-12-12 06:56:56
问题 i successfully configure lamp server, phpmyadmin and ejabberd server on my ec2 Ubuntu instance. Now i want to connect my phpMyAdmin with ejabberd i don't know how to do that please provide some help or some reference. Thanks 回答1: change in your ejabberd configuration file- ## MySQL server: ## odbc_type: mysql odbc_server: "localhost" #your host ip or domain name odbc_database: "ejabberddb" # your database name odbc_username: "root" odbc_password: "test" odbc_pool_size: 50 ## ## If you want to

Does ejabberd support DB Level clustering on NOSQL RIak?

对着背影说爱祢 提交于 2019-12-12 04:59:20
问题 I am working on chat app. I have two ejabberd nodes node1@domain.com and node2@domain.com if i will do master-master clustering between nodes and each nodes have their own riak server if node1 riak server goes down then how node1 transfer request to node2? Please suggest me solution. 回答1: This is not how it is supposed to work. If you deploy with Riak, you are supposed to have a dedicated Riak infrastructure. Moreover, having only two Riak nodes does not make sense: You need at least 5 Riak

ejabberd stateless configuration

怎甘沉沦 提交于 2019-12-12 03:46:59
问题 I'm really new to XMPP and I decided to go with ejabberd. Firstly I tried to configure it on ubuntu, but I got error after error and I just switched to windows. The server is running now. I've installed XAMPP and I tested the connection with strophe.js. I've read some of the documentation on ejabberd and watched the tutorial videos and that guy talks about stateless configuration( use ejabberd only of messages and have my own database in which I save messages,users etc). I want to achieve

ejabberd - custom iq handlers

折月煮酒 提交于 2019-12-12 03:29:23
问题 I have created simple module. here is the code -module(mod_conversations). -behaviour(gen_mod). -export([start/2, stop/1, process_local_iq/3]). -include("ejabberd.hrl"). -include("logger.hrl"). -include("jlib.hrl"). -define(IQ_CUSTOM, <<"jabber:iq:conversations">>). start(Host, _) -> gen_iq_handler:add_iq_handler(ejabberd_local, Host, ?IQ_CUSTOM, ?MODULE, process_local_iq, one_queue), ok. stop(Host) -> gen_iq_handler:remove_iq_handler(ejabberd_local, Host, ?IQ_CUSTOM), ok. process_local_iq

Max users in XMPP roster?

吃可爱长大的小学妹 提交于 2019-12-12 02:57:18
问题 Assume there is a bot who relays presence information of any user on the system to any other user on the system. For this to work- it seems every user must be added to that bot's roster, correct? Is this a problem- i.e. is there a limit to the max number of user's per roster? 回答1: You do not want to do that. This is not a scalable design. Having a roster for the bot with all presence of the server is the best way to create a deadly bottleneck as you scale. Consider writing a native ejabberd

mod_zeropush not working with ejabberd 16.03

戏子无情 提交于 2019-12-12 02:18:38
问题 I am working with mod_zeropush and i was working fine with 15.07 until i switched to the ejabberd version 16.03. I am using Ubuntu OS 14.04 Copied all beam files again to ebin directory it iis last error === 2016-05-12 15:40:08.706 [error] <0.499.0>@ejabberd_hooks:run1:332 {undef,[{xml,get_tag_attr_s,[<<"type">>,{xmlel,<<"message">>,[{<<"type">>, <<"chat">>},{<<"image">>,<<"http://example.com/web-services/user_images /personal_image/support_team_01.03.2016.png">>},{<<"id">>, <<

ejabberd can not set nickname when add roster sometimes

你。 提交于 2019-12-12 02:14:00
问题 I am using iOS xmppframework and ejabberd as the xmpp server.When I add rosters with nickname, sometimes I can set the nick, sometimes I can not set nick. The packets I sent to the server are: 2015-07-03 10:19:24:144 pigai[36644:3a0b] The nick is songxiao 2015-07-03 10:19:24:144 pigai[36644:3a0b] SEND: <iq type="set" xmlns="jabber:client" id="roster-remotely-managed"><query xmlns="jabber:iq:roster"><item jid="xh1@192.168.1.67" name="songxiao"/></query></iq> 2015-07-03 10:19:24:144 pigai[36644

Joining XMPP MUC Room without invite - ejabberd

孤人 提交于 2019-12-12 01:47:47
问题 For persistent XMPP rooms, what is the way to make a client join back the room again if he / she has disconnected once? During testing, I find that simply sending back the presence stanza to the said room's JID does not make the client be available in the room again. Does re-entering a room happen only when a user has received an invite (and thus, in our case, if the user disconnects once, the user would need another invite to join the room?)? If that is the case, then what is the best way to

User is still Online although user is not connected to the server. And failed to reconnecting to the server

拟墨画扇 提交于 2019-12-12 01:22:32
问题 I am using smack client in my chat application. Everything is going to be fine but when connection aborted for some reason, my server is showing online for that user JID. My problem is that how to reconnect to the server again after disconnecting. I am able to catch for connection using connection.isAuthenticated() method in my service thread. But unable to reconnect to the server. 回答1: you can enable mod_ping module on server side (ejabberd) to overcome online issue if client disconnect but