MUC 0.8.0 and Subdomains

James Wilson <[email protected]> Sun, 15 May 2011 12:26:57 +1000
Newsgroups gmane.network.jabber.admin
Message-ID <[email protected]>
--===============0025314870==
Content-type: multipart/alternative;
 boundary="Boundary_(ID_AGeOORjXYzDTDMA2pbgwoQ)"


--Boundary_(ID_AGeOORjXYzDTDMA2pbgwoQ)
Content-type: text/plain; CHARSET=US-ASCII
Content-transfer-encoding: 7BIT

Hi guys,
	Please find below 1x MUC config file and 1x Jabberd2 Configuration snippet and a copy of the log of starting jabberd2.

-- muc.xml: --

<jcr>
  <!-- 
       This is a config file for a copy of MU-Conference, compiled against 
       the Jabber Component Runtime (JCR). This is the same file that I use
       to connect to my development server, running jabberd2 beta2 

       In order to connect to a jabberd v1.4 server, simply change the 
       <name> value to muclinker, and make sure the muclinker section is in
       your main jabber.xml file, as per the MU-Conference README file.
  -->

  <name>conf.im.mysite.id.au</name> <!-- the jid of your component -->
  <host>conf.im.mysite.id.au</host> <!-- this should be the same as above -->
  <ip>localhost</ip> <!-- adress of the jabber server -->
  <port>5347</port>  <!-- port used to connect the service to the jabber server -->
  <secret>secret</secret> <!-- secret shared with the jabber server -->

  <spool>/usr/local/jabberd-2.2.13/var/spool/conf.im.mysite.id.au/</spool> <!-- directory containing the rooms data -->
  <logdir>/usr/local/jabberd-2.2.13/log/</logdir> <!-- directory containing the debug log (the file is called mu-conference.log) -->
  <pidfile>/usr/local/jabberd-2.2.13/var/run/mu-conference.pid</pidfile> <!-- file that will contain the PID of the 
process -->
  
  <!--   <logstderr/> --> <!-- uncomment to also send log to stderr -->
    <loglevel>255</loglevel> <!-- log verbosity, 255 for very verbose, 0 for quiet -->

    <conference xmlns="jabber:config:conference">
      <public/> <!-- rooms are public when created, comment to make them private by default -->
      <!-- the vCard section contains the vCard of the service -->
      <vCard>
        <FN>timeimps jabber server</FN>
        <DESC>For those who respect others.</DESC>
        <URL>http://foo.bar/</URL>
      </vCard>
      <history>40</history> <!-- maximum numbers of history lines send when joining a room -->
      <logdir>/usr/local/jabberd-2.2.13/log/</logdir> <!-- where to store the room logs, comment to disable logging -->
      <logsubdirs/> <!-- uncomment to stores the room logs in subdirs (for example 2007/08/02) -->
      <!--<stylesheet>../style.css</stylesheet>--> <!--URL of the log stylesheet -->
      <!-- default text to send to legacy clients, will also be used in the logs -->
      <notice>
        <join>has become available</join>
        <leave>has left</leave>
        <rename>is now known as</rename>
      </notice>
      <!-- lists of admins of the service, add a <user/> tag by admin -->
      <sadmin>
        <user>[email protected]</user>
      </sadmin>
      <dynamic/><!-- when uncommented, only dynamic rooms can be created -->
      <persistent/><!-- persistent rooms will be created, overide <dynamic/> -->
      <!-- <locknicks/> --> <!-- enforce the user nickname to the user part of his jid -->
      <roomlock/><!-- uncomment to allow only admins to create rooms -->
      <!-- <hideempty/> --> <!-- uncomment to hide rooms with no participants -->
      <!-- configuration of MySQL, only used if the MySQL exports is activated, see README.sql -->
      <!--<mysql>
        <user>root</user>
        <pass/>
        <database>chat</database>
        <host>localhost</host>
      </mysql>-->
    </conference>
</jcr>

-- end muc.xml --

-- jabberd.cfg --

#
# jabberd config file
#
#
#   This file tells the jabberd wrapper what programs to launch,
# and the config files to launch them with.  If the config file
# is left out, then the system default will be used.
#
#   To run multiple Session Managers, just list them all seperatly
# and provide the path to the appropriate config files.
#
# program   [ path to config file ]
#

router  /usr/local/jabberd-2.2.13/etc/router.xml
sm      /usr/local/jabberd-2.2.13/etc/sm.xml
s2s     /usr/local/jabberd-2.2.13/etc/s2s.xml
c2s     /usr/local/jabberd-2.2.13/etc/c2s.xml
mu-conference /usr/local/jabberd-2.2.13/etc/muc.xml

-- end jabberd.cfg--

When attempting to start /usr/local/jabberd-2.2.13/bin/jabberd -D, the following error appears:

JBRD: debug on
JBRD: version(2.2.13)
JBRD: config_dir(/usr/local/jabberd-2.2.13/etc)
JBRD: LaunchJob: router -> /usr/local/jabberd-2.2.13/bin/router -c /usr/local/jabberd-2.2.13/etc/router.xml -D
JBRD: LaunchJob: sm -> /usr/local/jabberd-2.2.13/bin/sm -c /usr/local/jabberd-2.2.13/etc/sm.xml -D
JBRD: LaunchJob: s2s -> /usr/local/jabberd-2.2.13/bin/s2s -c /usr/local/jabberd-2.2.13/etc/s2s.xml -D
JBRD: LaunchJob: c2s -> /usr/local/jabberd-2.2.13/bin/c2s -c /usr/local/jabberd-2.2.13/etc/c2s.xml -D
JBRD: LaunchJob: mu-conference ->  -c /usr/local/jabberd-2.2.13/etc/muc.xml -D
ERROR: mu-conference died.  Shutting down server.
JBRD: Got a signal... pass it on.
JBRD: It was a TERM.  Shut it all down!


Then, if I try starting it again a few seconds later, this is the result:

JBRD: debug on
JBRD: version(2.2.13)
JBRD: config_dir(/usr/local/jabberd-2.2.13/etc)
JBRD: LaunchJob: router -> /usr/local/jabberd-2.2.13/bin/router -c /usr/local/jabberd-2.2.13/etc/router.xml -D
JBRD: LaunchJob: sm -> /usr/local/jabberd-2.2.13/bin/sm -c /usr/local/jabberd-2.2.13/etc/sm.xml -D
JBRD: LaunchJob: s2s -> /usr/local/jabberd-2.2.13/bin/s2s -c /usr/local/jabberd-2.2.13/etc/s2s.xml -D
JBRD: LaunchJob: c2s -> /usr/local/jabberd-2.2.13/bin/c2s -c /usr/local/jabberd-2.2.13/etc/c2s.xml -D
JBRD: LaunchJob: mu-conference ->  -c /usr/local/jabberd-2.2.13/etc/muc.xml -D

Does this mean there is something wrong with the MUC config? If I start it by running /usr/local/jabberd-2.2.13/bin/mu-conference manually, I can join rooms normally!

-timeimp

--Boundary_(ID_AGeOORjXYzDTDMA2pbgwoQ)
Content-type: text/html; CHARSET=US-ASCII
Content-transfer-encoding: quoted-printable

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; ">Hi guys,<div><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>Please =
find below 1x MUC config file and 1x Jabberd2 Configuration snippet and =
a copy of the log of starting jabberd2.</div><div><br></div><div>-- =
muc.xml: =
--</div><div><br></div><div><div>&lt;jcr&gt;</div><div>&nbsp;&nbsp;&lt;!--=
&nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; This is a config file for a =
copy of MU-Conference, compiled against&nbsp;</div><div>&nbsp;&nbsp; =
&nbsp; &nbsp; the Jabber Component Runtime (JCR). This is the same file =
that I use</div><div>&nbsp;&nbsp; &nbsp; &nbsp; to connect to my =
development server, running jabberd2 =
beta2&nbsp;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; In order =
to connect to a jabberd v1.4 server, simply change =
the&nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &lt;name&gt; value to =
muclinker, and make sure the muclinker section is =
in</div><div>&nbsp;&nbsp; &nbsp; &nbsp; your main jabber.xml file, as =
per the MU-Conference README =
file.</div><div>&nbsp;&nbsp;--&gt;</div><div><br></div><div>&nbsp;&nbsp;&l=
t;name&gt;conf.im.mysite.id.au&lt;/name&gt; &lt;!-- the jid of your =
component =
--&gt;</div><div>&nbsp;&nbsp;&lt;host&gt;conf.im.mysite.id.au&lt;/host&gt;=
 &lt;!-- this should be the same as above =
--&gt;</div><div>&nbsp;&nbsp;&lt;ip&gt;localhost&lt;/ip&gt; &lt;!-- =
adress of the jabber server =
--&gt;</div><div>&nbsp;&nbsp;&lt;port&gt;5347&lt;/port&gt; &nbsp;&lt;!-- =
port used to connect the service to the jabber server =
--&gt;</div><div>&nbsp;&nbsp;&lt;secret&gt;secret&lt;/secret&gt; &lt;!-- =
secret shared with the jabber server =
--&gt;</div><div><br></div><div>&nbsp;&nbsp;&lt;spool&gt;/usr/local/jabber=
d-2.2.13/var/spool/conf.im.mysite.id.au/&lt;/spool&gt; &lt;!-- directory =
containing the rooms data =
--&gt;</div><div>&nbsp;&nbsp;&lt;logdir&gt;/usr/local/jabberd-2.2.13/log/&=
lt;/logdir&gt; &lt;!-- directory containing the debug log (the file is =
called mu-conference.log) =
--&gt;</div><div>&nbsp;&nbsp;&lt;pidfile&gt;/usr/local/jabberd-2.2.13/var/=
run/mu-conference.pid&lt;/pidfile&gt; &lt;!-- file that will contain the =
PID of the&nbsp;</div><div>process =
--&gt;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;&lt;!-- &nbsp; =
&lt;logstderr/&gt; --&gt; &lt;!-- uncomment to also send log to stderr =
--&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;loglevel&gt;255&lt;/loglevel&gt; =
&lt;!-- log verbosity, 255 for very verbose, 0 for quiet =
--&gt;</div><div><br></div><div>&nbsp;&nbsp; &nbsp;&lt;conference =
xmlns=3D"<a =
href=3D"jabber:config:conference">jabber:config:conference</a>"&gt;</div><=
div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;public/&gt; &lt;!-- rooms are public =
when created, comment to make them private by default =
--&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;!-- the vCard section =
contains the vCard of the service --&gt;</div><div>&nbsp;&nbsp; &nbsp; =
&nbsp;&lt;vCard&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; =
&nbsp;&lt;FN&gt;timeimps jabber server&lt;/FN&gt;</div><div>&nbsp;&nbsp; =
&nbsp; &nbsp; &nbsp;&lt;DESC&gt;For those who respect =
others.&lt;/DESC&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; =
&nbsp;&lt;URL&gt;http://foo.bar/&lt;/URL&gt;</div><div>&nbsp;&nbsp; =
&nbsp; &nbsp;&lt;/vCard&gt;</div><div>&nbsp;&nbsp; &nbsp; =
&nbsp;&lt;history&gt;40&lt;/history&gt; &lt;!-- maximum numbers of =
history lines send when joining a room --&gt;</div><div>&nbsp;&nbsp; =
&nbsp; &nbsp;&lt;logdir&gt;/usr/local/jabberd-2.2.13/log/&lt;/logdir&gt; =
&lt;!-- where to store the room logs, comment to disable logging =
--&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;logsubdirs/&gt; &lt;!-- =
uncomment to stores the room logs in subdirs (for example 2007/08/02) =
--&gt;</div><div>&nbsp;&nbsp; &nbsp; =
&nbsp;&lt;!--&lt;stylesheet&gt;../style.css&lt;/stylesheet&gt;--&gt; =
&lt;!--URL of the log stylesheet --&gt;</div><div>&nbsp;&nbsp; &nbsp; =
&nbsp;&lt;!-- default text to send to legacy clients, will also be used =
in the logs --&gt;</div><div>&nbsp;&nbsp; &nbsp; =
&nbsp;&lt;notice&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; =
&nbsp;&lt;join&gt;has become =
available&lt;/join&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; =
&nbsp;&lt;leave&gt;has left&lt;/leave&gt;</div><div>&nbsp;&nbsp; &nbsp; =
&nbsp; &nbsp;&lt;rename&gt;is now known =
as&lt;/rename&gt;</div><div>&nbsp;&nbsp; &nbsp; =
&nbsp;&lt;/notice&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;!-- lists =
of admins of the service, add a &lt;user/&gt; tag by admin =
--&gt;</div><div>&nbsp;&nbsp; &nbsp; =
&nbsp;&lt;sadmin&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; =
&nbsp;&lt;user&gt;[email protected]&lt;/user&gt;</div><div>&nbsp;&nb=
sp; &nbsp; &nbsp;&lt;/sadmin&gt;</div><div>&nbsp;&nbsp; &nbsp; =
&nbsp;&lt;dynamic/&gt;&lt;!-- when uncommented, only dynamic rooms can =
be created --&gt;</div><div>&nbsp;&nbsp; &nbsp; =
&nbsp;&lt;persistent/&gt;&lt;!-- persistent rooms will be created, =
overide &lt;dynamic/&gt; --&gt;</div><div>&nbsp;&nbsp; &nbsp; =
&nbsp;&lt;!-- &lt;locknicks/&gt; --&gt; &lt;!-- enforce the user =
nickname to the user part of his jid --&gt;</div><div>&nbsp;&nbsp; =
&nbsp; &nbsp;&lt;roomlock/&gt;&lt;!-- uncomment to allow only admins to =
create rooms --&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;!-- =
&lt;hideempty/&gt; --&gt; &lt;!-- uncomment to hide rooms with no =
participants --&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;!-- =
configuration of MySQL, only used if the MySQL exports is activated, see =
README.sql --&gt;</div><div>&nbsp;&nbsp; &nbsp; =
&nbsp;&lt;!--&lt;mysql&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; =
&nbsp;&lt;user&gt;root&lt;/user&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; =
&nbsp;&lt;pass/&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; =
&nbsp;&lt;database&gt;chat&lt;/database&gt;</div><div>&nbsp;&nbsp; =
&nbsp; &nbsp; =
&nbsp;&lt;host&gt;localhost&lt;/host&gt;</div><div>&nbsp;&nbsp; &nbsp; =
&nbsp;&lt;/mysql&gt;--&gt;</div><div>&nbsp;&nbsp; =
&nbsp;&lt;/conference&gt;</div><div>&lt;/jcr&gt;</div></div><div><br></div=
><div>-- end muc.xml --</div><div><br></div><div>-- jabberd.cfg =
--</div><div><div><br></div><div>#</div><div># jabberd config =
file</div><div>#</div><div>#</div><div># &nbsp; This file tells the =
jabberd wrapper what programs to launch,</div><div># and the config =
files to launch them with. &nbsp;If the config file</div><div># is left =
out, then the system default will be used.</div><div>#</div><div># =
&nbsp; To run multiple Session Managers, just list them all =
seperatly</div><div># and provide the path to the appropriate config =
files.</div><div>#</div><div># program &nbsp; [ path to config file =
]</div><div>#</div><div><br></div><div>router =
&nbsp;/usr/local/jabberd-2.2.13/etc/router.xml</div><div>sm &nbsp; =
&nbsp; &nbsp;/usr/local/jabberd-2.2.13/etc/sm.xml</div><div>s2s &nbsp; =
&nbsp; /usr/local/jabberd-2.2.13/etc/s2s.xml</div><div>c2s &nbsp; &nbsp; =
/usr/local/jabberd-2.2.13/etc/c2s.xml</div><div>mu-conference =
/usr/local/jabberd-2.2.13/etc/muc.xml</div></div><div><br></div><div>-- =
end jabberd.cfg--</div><div><br></div><div>When attempting to start =
/usr/local/jabberd-2.2.13/bin/jabberd -D, the following error =
appears:</div><div><br></div><div><meta charset=3D"utf-8"><span =
class=3D"Apple-style-span" style=3D"font-family: sans-serif; color: =
rgb(51, 51, 51); font-size: 13px; "><pre style=3D"font-size: 8pt; =
">JBRD: debug on
JBRD: version(2.2.13)
JBRD: config_dir(/usr/local/jabberd-2.2.13/etc)
JBRD: LaunchJob: router -&gt; /usr/local/jabberd-2.2.13/bin/router -c =
/usr/local/jabberd-2.2.13/etc/router.xml -D
JBRD: LaunchJob: sm -&gt; /usr/local/jabberd-2.2.13/bin/sm -c =
/usr/local/jabberd-2.2.13/etc/sm.xml -D
JBRD: LaunchJob: s2s -&gt; /usr/local/jabberd-2.2.13/bin/s2s -c =
/usr/local/jabberd-2.2.13/etc/s2s.xml -D
JBRD: LaunchJob: c2s -&gt; /usr/local/jabberd-2.2.13/bin/c2s -c =
/usr/local/jabberd-2.2.13/etc/c2s.xml -D
JBRD: LaunchJob: mu-conference -&gt;  -c =
/usr/local/jabberd-2.2.13/etc/muc.xml -D</pre><pre style=3D"font-size: =
8pt; ">ERROR: mu-conference died.  Shutting down server.
JBRD: Got a signal... pass it on.
JBRD: It was a TERM.  Shut it all =
down!</pre></span><div><br></div></div><div><br></div><div>Then, if I =
try starting it again a few seconds later, this is the =
result:</div><div><br></div><div><meta charset=3D"utf-8"><span =
class=3D"Apple-style-span" style=3D"font-family: sans-serif; color: =
rgb(51, 51, 51); font-size: 13px; "><pre style=3D"font-size: 8pt; =
">JBRD: debug on
JBRD: version(2.2.13)
JBRD: config_dir(/usr/local/jabberd-2.2.13/etc)
JBRD: LaunchJob: router -&gt; /usr/local/jabberd-2.2.13/bin/router -c =
/usr/local/jabberd-2.2.13/etc/router.xml -D
JBRD: LaunchJob: sm -&gt; /usr/local/jabberd-2.2.13/bin/sm -c =
/usr/local/jabberd-2.2.13/etc/sm.xml -D
JBRD: LaunchJob: s2s -&gt; /usr/local/jabberd-2.2.13/bin/s2s -c =
/usr/local/jabberd-2.2.13/etc/s2s.xml -D
JBRD: LaunchJob: c2s -&gt; /usr/local/jabberd-2.2.13/bin/c2s -c =
/usr/local/jabberd-2.2.13/etc/c2s.xml -D
JBRD: LaunchJob: mu-conference -&gt;  -c =
/usr/local/jabberd-2.2.13/etc/muc.xml =
-D</pre></span><div><br></div></div><div>Does this mean there is =
something wrong with the MUC config? If I start it by running =
/usr/local/jabberd-2.2.13/bin/mu-conference manually, I can join rooms =
normally!</div><div><br></div><div>-timeimp</div></body></html>=

--Boundary_(ID_AGeOORjXYzDTDMA2pbgwoQ)--

--===============0025314870==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
JAdmin mailing list
FAQ: http://www.jabber.org/discussion-lists/jadmin-faq
Forum: http://www.jabberforum.org/forumdisplay.php?f=19
Info: http://mail.jabber.org/mailman/listinfo/jadmin
Unsubscribe: [email protected]
_______________________________________________

--===============0025314870==--