ejabberd

ejabberd status showing error while server is running

不羁的心 提交于 2019-12-10 11:39:07
问题 I am trying to configure eJabberd on my server. I finished the installation. The following sequence of commands gives an unexpected output: $ ejabberd start $ ejabberd status In this sequence the ejabbed is started and we are able to access the web admin interface. But after running the ejabberd status its giving following output: Failed to create main carrier for temp_alloc /sbin/ejabberdctl: line 412: 9616 Aborted $EXEC_CMD "$ERL $NAME ${CONN_NAME} -noinput -hidden -pa $EJABBERD_EBIN_PATH

java.io.EOFException: no more data available - expected end tag </stream:stream> to close start tag <stream:stream>

丶灬走出姿态 提交于 2019-12-10 05:51:55
问题 I am working on a chat app using xmpp,As per our requirement we have three server Apache Tomcat 7,ejabbered 2.1.11 and mysql 5.5, to run xmppbot on tomcat used below library -Smack-core-4.0.3.jar -smack-tcp-4.0.3.jar -xlightweb2.5.jar -xpp3-1.1.3.3.jar -xSocket-2.4.6.jar Using above library I am able to Connect with ejabberd and able to login with my login id and password but after some time of logging in connection gets close automatically and a am getting below stack trace Sep 16, 2014 4:36

基于ejabberd实现各个客户端消息同步

爷,独闯天下 提交于 2019-12-09 22:41:19
先上图再说(左侧是web端,右侧是ios端) 要实现上面的功能,如果所有设备都在线的话,那么carboncopy(xmpp xep-0280协议)这个模块是可以实现接收到的消息同步,但是如果其中一个设备或多个设备都不在线的话,那么现有的就实现不了。发送的消息也存在同样的问题,只要自己的另外的设备不在线,也是不能同步消息的,也要借助离线消息发给自己其他的设备。 既然离线后就实现不了消息同步,那么肯定要改造离线模块了。既然是针对多个设备的那么需要多添加一个设备的字段,也就是说离线消息需要保存多份了。 还有就是一开始还需要登记多个设备了。 总结一下:要实现多设备消息同步,主要借助carboncopy和离线消息。 来源: oschina 链接: https://my.oschina.net/u/167181/blog/393103

说说ejabberd离线消息踩过的坑

夙愿已清 提交于 2019-12-09 22:26:04
使用过ejabberd的或许知道,也许踩过这个坑。那么就说说我们踩过的ejabberd的离线消息的坑吧。 ejabberd原生的离线消息的机制是,一般用户保存100条离线消息,管理员保存5000条离线消息。超过之后竟然没有删除老的离线消息的机制。😓 仅仅是报一个警告。 1 2 3 max_user_offline_messages: - 5000: admin - 100 1 2 << "Your contact offline message queue is " "full. The message has been discarded." >>    ejabberd原生的群聊是没有离线消息的,只要用户不在线,这期间其他群成员在群里面的聊天,不在线的用户上线后收不到这些消息的。 完全跟现在的一些即时聊天软件不一样,太不好耍了,而且一些客户都是按照某信的要求来看待的,对比一下就会发现这些问题,然后就是一堆的需求。 按照现在的即时聊天软件,我们在原来的基础上实现了群聊离线消息的机制,还添加多客户端消息同步的机制,那么一条离线消息就咬保存好几份了,然后的条数限制远远不够了,即使调了离线消息的配置(由原来的100改为2000),在一个群里面疯狂的聊天,一下子就满了。 好吧,那么就添加删除的机制吧,只要用户的离线消息大于配置的条数,那么就删除超出配置的老的离线消息。 1 2 3 4 5

Connection failure when using strophe with ejabberd bosh to connect to jid account on localhost

倖福魔咒の 提交于 2019-12-09 19:00:53
问题 I have installed ejabberd on my machine and its running fine. localhost:5280/admin localhost:5280/http-bind It is also displaying "ejabberd mod_http_bind An implementation of XMPP over BOSH (XEP-0206)" I guess it's working fine. When I try to create a connection with Strophe I get the connection status as CONNFAIL . My code goes as follow : var conn = new Strophe.Connection('http://localhost:5280/http-bind'); conn.connect(data.jid, data.password, function (status) { // jid=user@localhost if

Get members nickname of MUC Room

冷暖自知 提交于 2019-12-09 18:35:59
问题 Is there a way to get all nicknames of a MUC Room with an ejabberd server? I'm trying with: <iq from='crone1@shakespeare.lit/desktop' id='member3' to='coven@chat.shakespeare.lit' type='get'> <query xmlns='http://jabber.org/protocol/muc#admin'> <item affiliation='member'/> </query> </iq> but I obtain only jid without nicknames: <iq from='coven@chat.shakespeare.lit' id='member3' to='crone1@shakespeare.lit/desktop' type='result'> <query xmlns='http://jabber.org/protocol/muc#admin'> <item

How to scale ejabberd Server machine on CentOS to handle 200 K connections?

六眼飞鱼酱① 提交于 2019-12-09 03:44:27
问题 I am working on a considerably good ejabberd instance with 40 core CPU machine and 160 GB RAM. The issue is I am unable to scale up to 200 K parallel connections. The sysctl config is as follows: net.ipv4.tcp_window_scaling = 1 net.core.rmem_max = 16777216 net.ipv4.tcp_rmem = 4096 87380 16777216 net.ipv4.tcp_wmem = 4096 16384 16777216 #http://linux-ip.net/html/ether-arp.html#ether-arp-flux net.ipv4.conf.all.arp_filter = 1 kernel.exec-shield=1 kernel.randomize_va_space=1 net.ipv4.conf.all.rp

IOS Chat application using XMPP Protocol (ejabberd) Room chat issue

瘦欲@ 提交于 2019-12-08 15:29:32
I am developing an IOS Chat application using XMPP Protocol(ejabberd). My chat room is created at my server, it return roomID to me. I am facing an issue in room/group chat. When i am sending a single message it is repeating more than once like 3 to 4 times.How to fix this. My code is here XMPPJID *roomJID = [XMPPJID jidWithString:[roomDict objectForKey:KEY_group_id]]; XMPPRoom *xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:xmppRoomCoreDataStorage jid:roomJID dispatchQueue:dispatch_get_main_queue()]; [xmppRoom activate:[ChatHandler sharedInstance].xmppStream]; [xmppRoom addDelegate:self

Integrating Smack with Android Studio project for chat application

无人久伴 提交于 2019-12-08 14:36:20
问题 I am trying to implement a chat messenger using ejabberd server and smack library but having a hard time to integrate all the jars and dependencies of smack. I am using android Studio. My build.gradle(module): apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "com.example.nit.xmppclient" minSdkVersion 18 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles

How to send media content in chat application?

醉酒当歌 提交于 2019-12-08 12:37:33
问题 I am designing a Android chat application using ejabberd as XMPP server and Smack 4.1 API. My requirement is to send inline images, maps and videos in chat windows. I realized that, sending media content through XMPP Server(ejabberd) is not a good idea when it comes to performance. I need experts suggestions on how should i proceed with sending inline media content in chat window? Thanks in advance. 回答1: Create api that will upload the media data (http post call) using multipart service. on