-
user2323620
ejabberd
I want to cluster ejabberd node, so I want each node to have a different node name. I searched over net, everywhere it says you can change nodename in ejabberdctl.cfg file by changing ERLANG_NODE=ejabberd@desired_name.But the moment I modify that line to any other name, when starting the server, it says “Crash dump written to……”, and when stopping the server using ejabberdctl stop, it says “Failed RPC connection to the node ejabberd@desired_name: nodedown”.Can somebody tell me how to change
-
why
erlang ejabberd
I install the Ejabberd on my Lion with OTP/r15b02.When start Ejabberd, there is one error in log =CRASH REPORT==== 18-Sep-2012::21:05:54 ===crasher:initial call: application_master:init/4pid: <0.176.0>registered_name: []exception exit: {bad_return,{{ejabberd_app,start,[normal,[]]},{‘EXIT’,”invalid hostname”}}}in function application_master:init/4 (application_master.erl, line 138)ancestors: [<0.175.0>]messages: [{‘EXIT’,<0.177.0>,normal}]links: [<0.175.0>,<0.147.0>
-
Hari Haran
erlang ejabberd
Let assume I have two ejabberd server consider X and Y which has the same source and i did ejabberd clustering for those server by using this. Now consider A and B are user and those are connected in X server. Both A and B are in ONLINE state and those are connected via X server. If suppose X server is get shutdown or crashed by some issue. In this sceneraio whether the A and B are get OFFLINE state or A and B are in ONLINE state which is handle by Y server. I don’t know whether my thought is ri
-
Eldad Mor
ejabberd mnesia
I’m trying to establish a procedure for restoring my database from a crashed server to a new server. My server is running Ejabberd as an XMPP server, and I configured it to use postgresql instead of mnesia – or so I thought.My procedure goes something like “dump the contents of the original DB, run the new server, restore the contents of the DBs using psql, then run the system”. However, when I try running Ejabberd again I get a crash:=CRASH REPORT==== 3-Dec-2010::22:05:00 ===crasher:pid: <0.
-
why
erlang ejabberd
I am using erlang R14B01 with Ejabberd, when I start Ejabberd on my Lion, it shows errors, who can tell me the reason, thanks! I have hosts config {hosts, [“localhost”]}.=INFO REPORT==== 2012-09-18 23:35:10 ===application: ejabberdexited: {bad_return,{{ejabberd_app,start,[normal,[]]},{‘EXIT’,{badarg,[{erlang,port_control,[stringprep_port,2,”localhost”],[]},{stringprep,control,2,[]},{jlib,nodeprep,1,[]},{ejabberd_config,normalize_hosts,2,[]},{ejabberd_config,add_hosts_to_option,2,[]},{lists,foldl
-
user141682
erlang failover ejabberd
Context: I have a system that will need to support 20,000 connected chat users spread over 100 chat rooms. During performance testing I’ve found that I can get up to 6,000 connected users on a single box before I get a crash dump, so in production I’ll probably go with four servers in a cluster.My Question: I understand that a chatroom is bound to a server node, so that if the node dies the chatroom disappears with it and the users no longer belong to the room. Is there a way to “replicate” a ch
-
vinnitu
erlang ejabberd
I have a problem with one module of ejabberd. It is http_bind. But when I debug deeply I found that after accept socket and spawning hadling process and when reasign process for recieve data for new created process by calling gen_tcp:controlling_process() failed with badarg, WHY?…{ok, Socket} = get_tcp:accept(ListenSocket), Opts = [{active, false}, …],% here function return result of proc_lib:spawn_link(handler, …) {ok, Pid} = ejabberd_http:start({gen_tcp, Socket}, Opts),gen_tcp:controllin
-
legoscia
erlang ejabberd
I am not able to understand the reason why Erlang crashes and restarts. I am running Ejabberd server and its log folder is always full of erl_crash_xxxx.dump files. How can I debug this problem.Here is a small part of erlang.log file:=CRASH REPORT==== 4-Sep-2013::19:44:51 ===crasher:initial call: ejabberd_http:init/2pid: <0.15614.15>registered_name: []exception exit: {normal,{gen_fsm,sync_send_all_state_event,[<0.15454.15>,{http_put,2020093061,[{“xmlns”,”http://jabber.org/protocol/ht
-
Tom O’Connor
xmpp ejabberd
How can I configure ejabberd so that it checks if all online users are actually online?I have a small ejabberd server with 2-5 users, if a users pc (using pidgin) crashes or power off the users status still shows online for some hours even if he is offline.Is there a way to remove non responding clients from the online list?
-
Hauke Laging
debian jabber ejabberd
When I try start ejabberd service it always crashes.Starting jabber server: ejabberd Crash dump was written to: /var/log/ejabberd/erl_crash.dump Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})Crash dump was written to: /var/log/ejabberd/erl_crash.dump Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}) .I’ve changed hostanme of server, before that it wor
-
Marco W.
crash erlang ejabberd crash-reports
Everyday I have a new Erlang crash report on my server. As ejabberd is the only Erlang-thing I use, this must be the cause of the crash.The logfile (erl_crash.dump) has almost 9,000 lines so I have no idea how to debug that. But when I searched for “ejabberd” in that logfile, there were 5 occurrences – and every single occurrence was something related to “ejabberdctl”.I’m addressing ejabberdctl via PHP script (exec()) to programatially create users. Could that be the cause for the crash (somehow
-
Hunt
xmpp ejabberd
When i try to start my ejabberd server using following commond/etc/init.d/ejabberd startit shows following but nothing starts when i fire www.example.com:5280\http-bindStarting ejabberd: [ OK ]as my logs at /var/log/ejabberd/ejabberd.log are empty but to figure it out i tried running ejabberdctl liveand got following log ,i really don’t know wht this says specially over here {error,duplicate_name} so can any please help me how to get rid off this and sta
-
KMT
erlang ejabberd
The problem I have is that the hook I defined is not being called on the event “user_send_packet”. I did assume that any stanza (including messages) that is being sent would trigger this event. I have taken into account the priority of how the hook is being called by setting it to ‘0’. In the log I have verified that the module is started (“mod_stanza_ack starting”). The erl file did compile, it only got the warning “gen_mod” is undefined, but I have read on a ejabberd mailing list that this is
-
user601836
erlang ejabberd
I would like to collect useful statistics in ejabberd.Let’s say I would be interested in knowing how many messages were sent to one or more specific internal components, what is in your opinion the best between these two solutions?Set up a new component (based on gen_mod + gen_server) with a filter_packet hook and handle in a specific function all the messages directed towards the aforesaid components. In order to not bother the message forwarding I could spawn a function to route asap the messa
-
Carlosfocker
erlang ejabberd
When trying to run this command on Ejabberd 2.1.5-3 with Erlang R14Aejabberdctl dump /tmp/ejabberd1.textto dump the registered users from ejabberd I receive{error_logger,{{2012,5,17},{17,9,48}},”Too short cookie string”,[]} {error_logger,{{2012,5,17},{17,9,48}},crash_report,[[{initial_call,{auth,init,[‘Argument__1’]}},{pid,<0.19.0>},{registered_name,[]},{error_info,{exit,{“Too short cookie string”,[{auth,init_cookie,0},{auth,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]},[{gen_
-
KMT
erlang ejabberd
I am trying to figure out what is wrong with this code, cause it is giving me errors preventing it from compiling properly into a beam file. I do not see what is wrong with the syntax. Is there an IDE which could help me out?These are the errors:parallels@parallels-Parallels-Virtual-Platform:/var/backend/ejabberd_modules# erlc -I /var/tmp/ejabberd/src/ mod_stanza_ack.erl./mod_stanza_ack.erl:97: syntax error before: ‘.’./mod_stanza_ack.erl:98: syntax error before: Body./mod_stanza_ack.erl
-
Sankalp Singha
erlang websocket osx-mountain-lion ejabberd
I have downloaded ejabberd and even done a :sudo port install ejabberdAfter this, I am trying to install the ejabberd-websocket module from here : https://github.com/superfeedr/ejabberd-websocketsHowever, try as I might I am not able to install it by issuing :./build.shThis is the error that I am getting :Recompile: src/mod_websocket src/mod_websocket.erl:22: can’t find include file “ejabberd.hrl” src/mod_websocket.erl:23: can’t find include file “jlib.hrl” src/mod_websocket.erl:36: undefined ma
-
Sean Thoman
javascript windows node.js chat ejabberd
I am learning node JS and want to create a very basic single purpose web service that runs a windows command (to create a new user in ejabberd chat server) on the server where the client can pass in a specific argument to the command (using ajax I imagine). I’ve been using the basic ‘createServer’ tutorial as a template:var sys = require(‘util’) var http = require(‘http’); var exec = require(‘child_process’).exec;var path = ‘”C:\\Program Files\\ejabberd-2.1.8\\bin\\ejabberdctl”‘; http.createSe
-
Andrew
php authentication external xmpp ejabberd
I’m stumped at the moment. I’m trying to get ejabberd to authenticate users based on my web application’s already-existing MySQL user table.Environment infoUbuntu 8.04 server Ejabberd 2.0.1-2 (using hardy-backports) PHP 5.2.4 MySQL 5.0.51a-3In ejabberd.cfg:I’ve commented out the following default auth_method line:%%{auth_method, internal}.And uncommented and edited the following lines:{auth_method, external}. {extauth_program, “/var/myapplication/xmpp_auth.php”}.The PHP scriptThe PHP script is
-
gboverflow
eclipse import erlang ejabberd erlide
trying to understand the working of ejabberd.I have some problems importing the source code. It would be of great help if you can help trouble shoot.Following is the problem:I install eclipse Juno, install erlide from eclipse market place. Set up the installed run-times as per instructions in here . But when I import the ejabberd source code using the erlang project in import option from the file menu, I get the following error:An error has occurred. See error log for more details. java.lang.Nu
-
Abhinav Singh
php mysql ejabberd authentication extjs
I am trying to setup extauth with ejabberd, however i just cannot get it working (even after googling for a fix on web). I have set following inside ejabberd.cfg:{auth_method, external}. {extauth_program, “/etc/ejabberd/extauth.class.php”}.When i restart ejabberd after updating configs, I see this towards the end of ejabberd.log:=ERROR REPORT==== 2010-12-26 15:38:10 === C(<0.4476.0>:extauth:110) : normal=INFO REPORT==== 2010-12-26 15:38:10 === I(<0.4181.0>:ejabberd_app:69) : ejabberd
-
Rohit Tailor
ejabberd
How to resolve Ejabberd error:”[Microsoft][SQL Server Native Client 10.0]Communication link failure SQLSTATE IS: 08S01″.I described the issue in the below thread but have been told that it is too localized and also given -4 marking to ask this. “[Microsoft][SQL Server Native Client 10.0]Communication link failure SQLSTATE IS: 08S01″Please help.
-
KMT
erlang ejabberd exmpp
Previously I was using xml:get_tag_attr_s(“type”, Packet) for that debug line in ejabberd 2.1.10, but that is not working anymore in ejabberd 13.03. Probably because it is deprecated according to the docs (http://www.process-one.net/docs/exmpp/devdoc/trunk/xml.html#get_attr_s-2), so I tried using a function from exmpp library.I am getting an error on the second DEBUG line (First debug line works fine). And ideas how to get the value from the attribute? Code excerpt:on_user_send_packet(From, To,
-
Lucas
mysql ejabberd
I use ejabberd 2.1.12. It seems to work fine, but in logs I keep getting mysql connection errors. I thought that this is because of mod_roster_odbc (according i.e. to this thread, but I disabled mod_roster and mod_shared_roster and nothing has changed).I am on amazon EC2 on ubuntu 12.04. Errors are raised about 2 minutes after connecting some users to chat.UPDATE: I have found some pattern here. When I connect few users (using adium), every few minutes there is few errors like that. This probabl