ejabberd - Comments for "YawsPack for ejabberd: Embedded Web Server with Web-based Applications" https://www.ejabberd.im/yawspack en > can anyone here make a https://www.ejabberd.im/yawspack#comment-54450 <p>&gt; can anyone here make a "newer" version?</p> <p>I've updated YawsPack. Only change is: compiled with R12B, and updated Yaws to recent version. </p> <p>It now should work with the ejabberd 2.0.5 installers, but I didn't try it.</p> Sun, 12 Jul 2009 11:20:21 +0000 mfoss comment 54450 at https://www.ejabberd.im prob on windows https://www.ejabberd.im/yawspack#comment-54441 <p>Didn't work for me too... found:<br /> in ejabberd-2.0.5 ebins where moved to something like: C:\Program Files\ejabberd-2.0.5\lib\ejabberd-2.0.5\ebin.<br /> includes also.</p> <p>After moving ebin and includes contents to cerresponding folders got the result:<br /> }</p> <p>=ERROR REPORT==== 2009-07-09 12:02:31 ===<br /> beam/beam_load.c(1730): Error loading function yaws_log:handle_call/3: op int_band f x i x:<br /> please re-compile this module with an R12B compiler </p> <p>=ERROR REPORT==== 2009-07-09 12:02:31 ===<br /> Loading of c:/Program Files/ejabberd-2.0.5/bin/../lib/ejabberd-2.0.5/ebin/yaws_log.beam failed: badfile</p> <p>=INFO REPORT==== 2009-07-09 12:02:31 ===<br /> application: yaws<br /> exited: {shutdown,{yaws_app,start,[normal,[]]}}<br /> type: temporary</p> <p>=ERROR REPORT==== 2009-07-09 12:02:31 ===<br /> beam/beam_load.c(1679): Error loading function yaws_config:validate_group/1: op too_old_compiler:<br /> please re-compile this module with an R12B compiler</p> <p>=ERROR REPORT==== 2009-07-09 12:02:31 ===<br /> Loading of c:/Program Files/ejabberd-2.0.5/bin/../lib/ejabberd-2.0.5/ebin/yaws_config.beam failed: badfile</p> <p>=ERROR REPORT==== 2009-07-09 12:02:31 ===<br /> E(&lt;0.526.0&gt;:gen_mod:73) : {undef,<br /> [{yaws_config,make_default_gconf,<br /> [false,undefined]},<br /> {mod_yaws,start,2},<br /> {gen_mod,start_module,3},<br /> {rpc,local_call,3},<br /> {ejabberd_web_admin,node_modules_parse_query,4},<br /> {ejabberd_web_admin,get_node,5},<br /> {ejabberd_web_admin,process_admin,2},<br /> {ejabberd_http,process_request,1}]</p> <p>so that's old erlang compiler used...<br /> I'm not sure i can recompile package by myself. can anyone here make a "newer" version?</p> <p>Thanks.</p> Thu, 09 Jul 2009 09:11:05 +0000 MaximK comment 54441 at https://www.ejabberd.im JabberHTTPBind says "Service Unavailable" https://www.ejabberd.im/yawspack#comment-51180 <div class="quote-msg"> <div class="quote-author"><em>Vivian</em> wrote:</div> <p>and I am getting the following error..<br /> "Service Unavailable"<br /> can someone PLEASE help me on this problem.. I am stuck here..<br /> Vivian </p></div> <p>I've got exacly the same message as Vivian:<br /> "Service Unavailable"<br /> I've installed similar bunch of software:<br /> ejabberd-1.1.4, JabberHTTPBind-1.1, MUCkl-0.4.3.<br /> Everything works when I change client to use polling.<br /> But at binding mode MUCkl Debugger returns:<br /> "initial response broken (status: 404)"</p> <p>I am stuck here too.<br /> Any suggestions?<br /> Where to look?</p> <p>Lewar</p> Tue, 06 Nov 2007 15:05:24 +0000 Lewar comment 51180 at https://www.ejabberd.im Try YawsPack 0.3.1 https://www.ejabberd.im/yawspack#comment-51107 <div class="quote-msg"> <div class="quote-author"><em>Arif</em> wrote:</div> <pre>Cannot open /tmp/auth.log</pre></div> <p>I guess this isn't a big problem. I wouln't worry about it.</p> <div class="quote-msg"> <div class="quote-author"><em>Arif</em> wrote:</div> <pre>** Reason for termination = ** {'module could not be loaded',[{httpd_util, to_lower, ["8F38B436055CF6F48B9DEE8A9196DA68DE5D1E1A"]}, {ejabberd_http_bind,handle_sync_event,4}, {gen_fsm,handle_msg,7}, {proc_lib,init_p,5}]}</pre></div> <p>It seems newer versions of Erlang/OTP do not include the function httpd_util:to_lower/1, and also probably the ejabberd Windows installer does not even include the module httpd_util. </p> <p>I've modified the source code of http-bind to not use that function. Try the new YawsPack 0.3.1, that is the only change. Note that I didn't have time to try it.</p> Sat, 20 Oct 2007 17:04:20 +0000 mfoss comment 51107 at https://www.ejabberd.im Can't load the module https://www.ejabberd.im/yawspack#comment-51105 <p>Hie badlop,</p> <p>I'm using ejabberd-1.1.3_1-windows-installer.exe and then I used YawsPack-0.3.tar.bz2 and copied all the beam file to the bin directory.</p> <p>Now I can run JWChat using http_poll but when I try to connect using http_bind I get an internal server error message.</p> <p>I checked the ejabberd log file.Here I got two Error logs:</p> <pre>1.=ERROR REPORT==== 2007-10-20 16:46:12 === Cannot open /tmp/auth.log 2.=ERROR REPORT==== 2007-10-20 16:50:27 === ** State machine &lt;0.326.0&gt; terminating ** Last message in was {'$gen_sync_all_state_event', {&lt;0.330.0&gt;,#Ref&lt;0.0.0.4691&gt;}, {http_put,542393, "88bd22caf3c358458bfc940695e5f8b42da176c6", [], 1, [[60, "iq", [[32,"type",61,39,"get",39], [32,"id",61,39,"auth1",39]], 62, [[60, "query", [[32, "xmlns", 61, 39, "jabber:iq:auth", 39]], 62, [[60, "username", [], 62, ["ranjan"], 60, 47, "username", 62]], 60, 47, "query", 62]], 60, 47, "iq", 62]]}} ** When State == loop ** Data == {state,"56a991ae3634a768704fc8e62a3fbe9c705329a2", 542392, "8f38b436055cf6f48b9dee8a9196da68de5d1e1a", [], [], {&lt;0.328.0&gt;,#Ref&lt;0.0.0.4682&gt;}, &lt;0.328.0&gt;, undefined, 877426983000, #Ref&lt;0.0.0.4685&gt;, [{hbr,542392, "8f38b436055cf6f48b9dee8a9196da68de5d1e1a", [], [[], 60, ..., ..., 100, 61, 39, "2503385356", 39, ..., ..., 39, "localhost", 39, [], " xml:lang='en'", 62]}]} ** Reason for termination = ** {'module could not be loaded',[{httpd_util, to_lower, ["8F38B436055CF6F48B9DEE8A9196DA68DE5D1E1A"]}, {ejabberd_http_bind,handle_sync_event,4}, {gen_fsm,handle_msg,7}, {proc_lib,init_p,5}]}</pre><p> Can u tell what I'm actually missing here ?!</p> Sat, 20 Oct 2007 10:51:39 +0000 Arif comment 51105 at https://www.ejabberd.im Hi folks, I changed did the https://www.ejabberd.im/yawspack#comment-51068 <p>Hi folks,<br /> I changed did the following changes..in the ejabberd.cfm file</p> <p>{mod_yaws, [<br /> {logdir, “/tmp/"},<br /> {servers, [<br /> {"QKAN00191117A", 5224,<br /> “C:\Program Files/Apache Software Foundation/Tomcat 6.0/webapps/www/”,<br /> [{dir_listing, true}, {ip, {127, 0, 0, 1}}]<br /> }<br /> ]}<br /> ]},<br /> ..<br /> ]}</p> <p>and I am getting the following error....</p> <p>“Internal Server error<br /> Reconnect<br /> Ok / cancel<br /> “</p> <p>The muckl debugger says..<br /> level 1<br /> no body element or incorrect body in initial response</p> <p>and the error report was..</p> <p>=ERROR REPORT==== 2007-10-11 11:36:44 ===<br /> E(&lt;0.36.0&gt;:gen_mod:47): {undef,<br /> [{mod_yaws,<br /> start,<br /> ["qkan00191117a",<br /> [{logdir,"/tmp/"},<br /> {servers,<br /> [{"QKAN00191117A",<br /> 5224,<br /> “Crasberryrogram Files/Apache Software Foundation/Tomcat 6.0/webapps/www/”,<br /> [{dir_listing,true},<br /> {ip,{127,0,0,1}}]}]}]]},<br /> {gen_mod,start_module,3},<br /> {lists,foreach,2},<br /> {ejabberd_app,start,2},<br /> {application_master,start_it_old,4}]}</p> <p>can someone PLEASE help me on this problem.. what am I doing wrong ?..</p> <p>thanks<br /> Vivian</p> Thu, 11 Oct 2007 09:48:54 +0000 Vivian comment 51068 at https://www.ejabberd.im Yaws runtime https://www.ejabberd.im/yawspack#comment-51065 <p>Hi,<br /> I did the following during installation..<br /> Ejabberd - ejabberd.cfg file<br /> {Listen, [<br /> ...<br /> {5280, ejabberd_http, [http_bind, web_admin]},<br /> ...<br /> ]}</p> <p>and</p> <p>{modules, [<br /> ...<br /> {mod_yaws, [<br /> {logdir, "/tmp/"},<br /> {servers, [<br /> {"QKAN00191117A", 5224, "/home/test/www", [<br /> {dir_listing, true},<br /> {ip, {127, 0, 0, 1}}<br /> ]}<br /> ]}<br /> ]},<br /> ..<br /> ]}</p> <p>I am using Apache tomcat..and I deployed the JabberHttpBind-1.1<br /> This is working fine and I am getting the following msg..</p> <p>"<br /> Jabber HTTP Binding Servlet v1.1<br /> This is an implementation of JEP-0124 (HTTP-Binding). Please see <noindex><a href="http://www.jabber.org/jeps/jep-0124.html" title="http://www.jabber.org/jeps/jep-0124.html" rel="nofollow" >http://www.jabber.org/jeps/jep-0124.html</a></noindex> for details.</p> <p>Active sessions: 0<br /> "<br /> Then I have in my mukl the following settings in config.js,</p> <p>var BACKENDTYPE = 'binding';<br /> var HTTPBASE = "/tomcat/JabberHTTPBind-1.1/";<br /> var XMPPDOMAIN = "QKAN00191117A";<br /> var timerval = 2000;</p> <p>Then the .htaccess file in MUCKl has the following settings..</p> <p>RewriteEngine On<br /> RewriteRule http-poll/ <noindex><a href="http://QKAN00191117A:5280/http-poll/" title="http://QKAN00191117A:5280/http-poll/" rel="nofollow" >http://QKAN00191117A:5280/http-poll/</a></noindex> [P]<br /> RewriteRule http-bind/ <noindex><a href="http://QKAN00191117A:5280/JabberHTTPBind-1.1/" title="http://QKAN00191117A:5280/JabberHTTPBind-1.1/" rel="nofollow" >http://QKAN00191117A:5280/JabberHTTPBind-1.1/</a></noindex> [P]</p> <p>and I am getting the following error..</p> <p>"Service Unavailable"</p> <p>can someone PLEASE help me on this problem.. I am stuck here..<br /> thanks<br /> Vivian</p> Wed, 10 Oct 2007 09:39:38 +0000 Vivian comment 51065 at https://www.ejabberd.im prob on windows https://www.ejabberd.im/yawspack#comment-51064 <p>My Ejabberd log says :</p> <p>=ERROR REPORT==== 2007-10-10 10:11:57 ===<br /> E(&lt;0.35.0&gt;:gen_mod:47): {undef,[{mod_yaws,<br /> start,<br /> ["localhost",<br /> [{logdir,"/tmp/"},<br /> {servers,<br /> [{"localhost",<br /> 5224,<br /> "D:/INSTALLED/ejabberd-1.1.3/www",<br /> [{dir_listing,true},<br /> {ip,{127,0,0,1}}]}]}]]},<br /> {gen_mod,start_module,3},<br /> {lists,foreach,2},<br /> {ejabberd_app,start,2},<br /> {application_master,start_it_old,4}]}</p> <p>Can u please tell me what could be possible reason ?</p> Wed, 10 Oct 2007 07:48:01 +0000 arif comment 51064 at https://www.ejabberd.im I do it, but have error https://www.ejabberd.im/yawspack#comment-51005 <p>E(&lt;0.39.0&gt;:gen_mod:47): {{badrecord,gconf},<br /> [{mod_yaws,start,2},<br /> {gen_mod,start_module,3},<br /> {lists,foreach,2},<br /> {ejabberd_app,start,2},<br /> {application_master,start_it_old,4}]}</p> Mon, 08 Oct 2007 15:11:58 +0000 Alex765 comment 51005 at https://www.ejabberd.im Strange, it should work https://www.ejabberd.im/yawspack#comment-3469 <p>You could check ejabberd log files, maybe they provide meaningful information to know what is wrong. </p> <p>If jwchat+yaws+httppoll works, and httpbind seem to work correctly, then jwchat+yaws+httpbind should work too. It's strange. Maybe the problem is on Yaws configuration, but that is done automatically, so you don't need to touch it.</p> <p>If you try don't find any solution, join ejabberd chatroom and idle there until we met, and we'll try to find the problem.</p> Tue, 03 Apr 2007 16:05:35 +0000 mfoss comment 3469 at https://www.ejabberd.im Service Unavailable https://www.ejabberd.im/yawspack#comment-3467 <p>When i try to connect jwchat using http-bind i get 'service unavailable' error. Where as http-poll works fine.<br /> Even <noindex><a href="http://servername.com:5280/http-bind" title="http://servername.com:5280/http-bind" rel="nofollow" >http://servername.com:5280/http-bind</a></noindex> works. I get "Ejabberd mod_http_bind v1.0"</p> <p>Is there something that I am missing while installing Yaws pack??</p> Tue, 03 Apr 2007 12:20:55 +0000 sarfaraz comment 3467 at https://www.ejabberd.im how i can bind my yaws to 80 https://www.ejabberd.im/yawspack#comment-2593 <p>how i can bind my yaws to 80 port instead of 5224 port?</p> Fri, 24 Nov 2006 16:08:43 +0000 iVint comment 2593 at https://www.ejabberd.im All set for now... https://www.ejabberd.im/yawspack#comment-2479 <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>The ejabberd binary installer from Process-one website includes a minimal Erlang. Checking it will give you a clue on what is safe to remove and what not. </p></div> <p>Perfect! That cut my install size in half.</p> <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>Yaws in embedded mode does not read from yaws.conf, the options are passed on runtime, by the calling code (mod_yaws). It's possible to parametrice mod_yaws so you can change the Yaws options on ejabberd.cfg or web interface, for example 'appmods'. </p></div> <p>Cool. That's why I wanted the source for the latest mod_yaws... I figure there may be a way to use the yaws load-config-from-file with the embedded configuration and the ejabberd specifics. If I figure it out I'll send a patch. :) I'm still a erlang newbie.</p> Tue, 31 Oct 2006 10:43:20 +0000 zengargoyle comment 2479 at https://www.ejabberd.im Check binary installer https://www.ejabberd.im/yawspack#comment-2478 <div class="quote-msg"> <div class="quote-author"><em>zengargoyle</em> wrote:</div> <p>I have one final question for now, looking at yaws.app and ejabberd.app I see a "{applications, [kernel, stdlib]}" line. Does this mean that I only need the erlang/lib/{kernel,stdlib} parts of erlang?</p></div> <p>I don't know.</p> <div class="quote-msg"> <div class="quote-author"><em>zengargoyle</em> wrote:</div> <p>Is there an easy way to determine which parts of erlang erts are not needed? Like debugger, edoc, snmp... </p></div> <p>The ejabberd binary installer from Process-one website includes a minimal Erlang. Checking it will give you a clue on what is safe to remove and what not.</p> <div class="quote-msg"> <div class="quote-author"><em>zengargoyle</em> wrote:</div> <p>Oh, and one little feature request. If possible, it would be nice to still use a yaws.conf file for the embedded server. So as to be able to add protected directories or other yaws applications to the embedded server without modifying mod_yaws each time.</p></div> <p>Yaws in embedded mode does not read from yaws.conf, the options are passed on runtime, by the calling code (mod_yaws). It's possible to parametrice mod_yaws so you can change the Yaws options on ejabberd.cfg or web interface, for example 'appmods'.</p> Tue, 31 Oct 2006 08:43:20 +0000 mfoss comment 2478 at https://www.ejabberd.im working, one final question https://www.ejabberd.im/yawspack#comment-2477 <p>Aha! Thank you, everything is working with yaws-1.65 now.</p> <p>I have one final question for now, looking at yaws.app and ejabberd.app I see a "{applications, [kernel, stdlib]}" line. Does this mean that I only need the erlang/lib/{kernel,stdlib} parts of erlang?</p> <p>I'm trying to save space on my install by removing things that are not needed for runtime. Is there an easy way to determine which parts of erlang erts are not needed? Like debugger, edoc, snmp... So far, I have just been deleting some of the larger erts libraries that don't sound necessary (like snmp), but I don't want my server to crash someday because of a missing library.</p> <p>Oh, and one little feature request. If possible, it would be nice to still use a yaws.conf file for the embedded server. So as to be able to add protected directories or other yaws applications to the embedded server without modifying mod_yaws each time.</p> Tue, 31 Oct 2006 00:07:33 +0000 zengargoyle comment 2477 at https://www.ejabberd.im