ejabberd

`ejabberdctl start` results in “kernel pid terminated” error — what do I do?

微笑、不失礼 提交于 2019-12-02 11:28:38
I have googled for three hours but to no avail. I have an ejabberd installation which is not installed using apt. It is installed from source and there is no program called ejabberd in it. Start and Stop and everything is through ejabberdctl. It was running perfectly for a month and all of a sudden one day it stopped with the infamous kernel pid terminated error Anytime i do sudo ejabberdctl start --node ejabberd@MasterService A erl_crash file gets generated and when i try ejabberdctl i get Failed to connect to RPC at node ejabberd@MasterService Now what have i tried Tried killing all running

iOS XMPP PubSub not receiving events while publishing node to my subscribed users

狂风中的少年 提交于 2019-12-02 01:08:21
问题 I am using XMPPClient with ejjaberd for my chat application(like Whatsapp). I want to implement XMPPPubsub to notify all users when any one of user changed his/her profile picture. My framework : https://github.com/robbiehanson/XMPPFramework Here is my code Initialize XMPPPubsub XMPPJID *serviceJID =[XMPPJID jidWithString:[NSString stringWithFormat:@"pubsub.%@",[[SharedClass sharedInstance] hostName]]]; _xmppPubSub = [[XMPPPubSub alloc]initWithServiceJID:serviceJID dispatchQueue:dispatch_get

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

ぃ、小莉子 提交于 2019-12-01 20:46:17
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_filter=1 net.ipv4.conf.all.accept_source_route=0 net.ipv4.icmp_echo_ignore_broadcasts=1 net.ipv4.conf

Phoenix/Elixir/Ejabberd - Response already sent error

試著忘記壹切 提交于 2019-12-01 15:03:14
问题 I was following this guide for embedding Ejabberd into a Phoenix application (https://blog.process-one.net/embedding-ejabberd-into-an-elixir-phoenix-web-application/) and I'm having an error now that it' running. Basically, everything appears to work fine until I navigate to "http://localhost:4000/ejabberd" at which point I get the following error: [error] #PID<0.721.0> running EjbrdTest.Endpoint terminated Server: localhost:4000 (http) Request: GET /ejabberd ** (exit) an exception was raised

XEP - 0055 with iOS and ejabberd?

筅森魡賤 提交于 2019-12-01 14:00:15
问题 I am trying to implement XEP-0055 which is supported by ejabbed as shown here in supported xeps This is my request: XMPPIQ *iq = [[XMPPIQ alloc] init]; [iq addAttributeWithName:@"type" stringValue:@"get"]; [iq addAttributeWithName:@"from" stringValue:@"testuser1@company.com"]; [iq addAttributeWithName:@"to" stringValue:@"company.com"]; [iq addAttributeWithName:@"id" stringValue:@"search1"]; XMPPElement *query = [XMPPElement elementWithName:@"query"]; [query setXmlns:@"jabber:iq:search"]; [iq

Advice on implementing “presence” for a web site?

我的未来我决定 提交于 2019-12-01 11:09:45
Ideally, I'd like to find simple, lightweight code that allows all the web clients connected to my site to maintain real-time status of who else is currently online. I know ejabberd does this, but it also does a lot of other things, and I'd prefer a small code footprint so I can customize and understand its performance characteristics. I like the non-blocking aspect of node.js, and was wondering if there's an open source project that does all this logic. I'd also like to see a JavaScript implementation of maintaining this model on the client side. For real time status, use socket.io . Every

Advice on implementing “presence” for a web site?

女生的网名这么多〃 提交于 2019-12-01 08:33:27
问题 Ideally, I'd like to find simple, lightweight code that allows all the web clients connected to my site to maintain real-time status of who else is currently online. I know ejabberd does this, but it also does a lot of other things, and I'd prefer a small code footprint so I can customize and understand its performance characteristics. I like the non-blocking aspect of node.js, and was wondering if there's an open source project that does all this logic. I'd also like to see a JavaScript

ejabberd clustering, Slave doesn't work when master goes down

断了今生、忘了曾经 提交于 2019-12-01 07:17:15
I have setup ejabberd clustering, one is master and other is slave as described here . I have copied .erlang.cookie and database files from master to slave. Everything is working fine. The issue is when I stop master node: Then no request getting routed to slave. When trying to restart slave node its not getting start once it down. I get stuck here, please help me out. Thanks This is the standard behaviour of Mnesia. If the node you start was not the last one that was stopped in a cluster, then it does not have any way to know if it has the latest, most up to date data. The process to start a

ejabberd clustering, Slave doesn't work when master goes down

爷,独闯天下 提交于 2019-12-01 05:20:48
问题 I have setup ejabberd clustering, one is master and other is slave as described here. I have copied .erlang.cookie and database files from master to slave. Everything is working fine. The issue is when I stop master node: Then no request getting routed to slave. When trying to restart slave node its not getting start once it down. I get stuck here, please help me out. Thanks 回答1: This is the standard behaviour of Mnesia. If the node you start was not the last one that was stopped in a cluster

Creating new user with Smack on ejabberd throws XMPP Exception: forbidden(403)

不羁岁月 提交于 2019-11-30 21:49:07
Hi I am working on ejabberd and I am quite new to this technology. I am trying to add a user on my ejabberd server using this code: try { conf.setSASLAuthenticationEnabled(true); connection.connect(); Roster.setDefaultSubscriptionMode(Roster.SubscriptionMode.manual); Log.i("XMPPClient", "Connected to " +connection.getHost()); createUser("tester","testerpass"); } } catch (XMPPException e1) { Log.e("XMPPClient", e1.toString()); xmppClient.setConnection(null); } public void createUser(String user, String pass) { try { //Admin login connection.login(user, pass); } catch (XMPPException e) { e