ejabberd - Comments for "Epeios + mod_profile" https://www.ejabberd.im/node/2815 en Hm... https://www.ejabberd.im/node/2815#comment-51746 <div class="quote-msg"> <div class="quote-author"><em>kael</em> wrote:</div> <p>I queried disco#items and disco#info on example.net, kael @ example.net, epeios.example.net and kael @ epeios.example.net with both namespaces (the one used in the XEP and the other user by jabber.se), but I can't find how to upload a profile.</p> <p>In sys.config.mk, I added a line :</p> <div class="codeblock"><code>{mod_profile, []},</code></div> <p>But it doesn't seem enough, does it ?</p></div> <p>Hm… I really don't know much about Epeios, but I'm not sure if it's possible to use it for something like mod_profile, which handles requests on behalf of users. It's theoretically possible, but the protocol that Epeios uses (<noindex><a href="http://www.xmpp.org/extensions/xep-0114.html" rel="nofollow" >XEP-0114</a></noindex>) doesn't allow a component to install an IQ handler in the server, as you've already noticed; even making the component respond on its own address would need some black magic, I guess…</p> <div class="quote-msg"> <div class="quote-author"><em>kael</em> wrote:</div> <p>And a last question : how to launch Epeios without process output, with a "nohup ... &amp;" like ? </p></div> <p>I prefer "screen" and detaching ☺ Running <code>erl</code> with the <code>-detached</code> option might work, though.</p> Wed, 06 Feb 2008 09:09:47 +0000 legoscia comment 51746 at https://www.ejabberd.im Epeios + mod_profile : How to set up User-Profile ? https://www.ejabberd.im/node/2815#comment-51727 <div class="quote-msg"> <div class="quote-author"><em>legoscia</em> wrote:</div> <p>Here we see that the stringprep module couldn't load its shared library, <code>stringprep_drv.so</code>. Maybe setting the environment variable <code>EJABBERD_SO_PATH</code> would help? </p></div> <p>Thank you very much for the clue.</p> <p>The EPEIOS_ROOT path was correctly set, but the epeios_lib_path was uncorrectly set to :</p> <div class="codeblock"><code>{epeios_lib_path, &quot;/opt/epeios-1.0.0/lib/darwin-x86&quot;}</code></div> <p>instead of :</p> <div class="codeblock"><code>{epeios_lib_path, &quot;/opt/epeios-1.0.0/lib/linux-x86&quot;}</code></div> <p>I then copied mod_profile.erl in /opt/epeios-1.0.0/modules, launched epeios :</p> <div class="codeblock"><code>$ priv/epeios.start <br />Erlang (BEAM) emulator version 5.5.2 [source] [async-threads:0] [kernel-poll:false] <p>Eshell V5.5.2&nbsp; (abort with ^G)<br />1&gt; </p></code></div> <p>and Epeios works and appears in the component session interface. Thank you very much. :)</p> <p>Now, I'm searching how to use mod_profile with Epeios, following xmpp://jabber.se mod_profile :</p> <div class="codeblock"><code>&lt;iq type=&#039;get&#039;<br />&nbsp;&nbsp;&nbsp; to=&#039;kael@jabber.se&#039;<br />&nbsp;&nbsp;&nbsp; id=&#039;disco1&#039;&gt;<br />&nbsp; &lt;query xmlns=&#039;http://jabber.org/protocol/disco#info&#039;/&gt;<br />&lt;/iq&gt;</code></div> <div class="codeblock"><code>&lt;iq from=&quot;kael@jabber.se&quot; to=&quot;kael@example.net/Gajim&quot; id=&quot;disco1&quot; type=&quot;result&quot;&gt;<br />&lt;query xmlns=&quot;http://jabber.org/protocol/disco#info&quot;&gt;<br />&lt;identity category=&quot;pubsub&quot; type=&quot;pep&quot;/&gt;<br />&lt;feature var=&quot;vcard-temp&quot;/&gt;<br />&lt;feature var=&quot;http://jabber.org/protocol/profile&quot;/&gt;<br />&lt;feature var=&quot;http://jabber.org/protocol/commands&quot;/&gt;<br />&lt;/query&gt;<br />&lt;/iq&gt;</code></div> <div class="codeblock"><code>&lt;iq type=&#039;get&#039;<br />&nbsp;&nbsp;&nbsp; to=&#039;kael@jabber.se&#039;<br />&nbsp;&nbsp;&nbsp; id=&#039;iq1&#039;&gt;<br />&nbsp; &lt;profile xmlns=&#039;http://jabber.org/protocol/profile&#039;/&gt;<br />&lt;/iq&gt;</code></div> <div class="codeblock"><code>&lt;iq from=&quot;kael@jabber.se&quot; to=&quot;kael@example.net/Gajim&quot; id=&quot;iq1&quot; type=&quot;result&quot;&gt;<br />&lt;x xmlns=&quot;jabber:x:data&quot; type=&quot;result&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;field var=&quot;FORM_TYPE&quot; type=&quot;hidden&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;http://jabber.org/protocol/profile&lt;/value&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;field var=&quot;nickname&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;Hamlet&lt;/value&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;field var=&quot;country&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;DK&lt;/value&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;field var=&quot;locality&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;Elsinore&lt;/value&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;field var=&quot;email&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;value&gt;hamlet@denmark.lit&lt;/value&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/field&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/x&gt;<br />&lt;/iq&gt;</code></div> <p>I queried disco#items and disco#info on example.net, kael @ example.net, epeios.example.net and kael @ epeios.example.net with both namespaces (the one used in the XEP and the other user by jabber.se), but I can't find how to upload a profile.</p> <p>In sys.config.mk, I added a line :</p> <div class="codeblock"><code>{mod_profile, []},</code></div> <p>But it doesn't seem enough, does it ?</p> <p>What am I missing ?</p> <p>And a last question : how to launch Epeios without process output, with a "nohup ... &amp;" like ? </p> <p>Cheers.</p> <p>N.B.: I'm a not pro of Ejabberd and Erlang, though.</p> Sun, 03 Feb 2008 16:29:27 +0000 kael comment 51727 at https://www.ejabberd.im stringprep_drv.so https://www.ejabberd.im/node/2815#comment-51726 <div class="quote-msg"> <div class="quote-author"><em>kael</em> wrote:</div> <div class="codeblock"><code>=CRASH REPORT==== 29-Jan-2008::22:28:11 ===<br />&nbsp; crasher:<br />&nbsp;&nbsp;&nbsp; pid: &lt;0.92.0&gt;<br />&nbsp;&nbsp;&nbsp; registered_name: stringprep<br />&nbsp;&nbsp;&nbsp; error_info: {{case_clause,{error,{open_error,-10}}},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{stringprep,init,1},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {gen_server,init_it,6},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {proc_lib,init_p,5}]}<br />&nbsp;&nbsp;&nbsp; initial_call: {gen,init_it,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [gen_server,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;0.48.0&gt;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {local,stringprep},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; stringprep,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [],<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; []]}<br />&nbsp;&nbsp;&nbsp; ancestors: [&lt;0.48.0&gt;]<br />&nbsp;&nbsp;&nbsp; messages: []<br />&nbsp;&nbsp;&nbsp; links: []<br />&nbsp;&nbsp;&nbsp; dictionary: []<br />&nbsp;&nbsp;&nbsp; trap_exit: false<br />&nbsp;&nbsp;&nbsp; status: running<br />&nbsp;&nbsp;&nbsp; heap_size: 377<br />&nbsp;&nbsp;&nbsp; stack_size: 21<br />&nbsp;&nbsp;&nbsp; reductions: 160<br />&nbsp; neighbours:</code></div> </div> <p>Here we see that the stringprep module couldn't load its shared library, <code>stringprep_drv.so</code>. Maybe setting the environment variable <code>EJABBERD_SO_PATH</code> would help?</p> Sat, 02 Feb 2008 20:52:07 +0000 legoscia comment 51726 at https://www.ejabberd.im