Skip to content

How to config with mod_archive2 ? #8

@huyd

Description

@huyd

Hi ndl,

I'm working on ejabberd, i want to save archive message with full message stanza.. I found a solution that install mod_archive2. But i can't find any configuration example.
This is my ejabberd.cfg:

{mod_archive2, [{database_type, "mysql"},
                      {default_auto_save, "message"},
                      {read_only, false},
                      {default_expire, infinity},
                      {enforce_min_expire, 0},
                      {enforce_max_expire, infinity},
                      {replication_expire, 31536000},
                      {session_duration, 1800},
                      {wipeout_interval, 86400},
                      {prefs_cache_interval, 86400}]}

But service return this error below:

<body xmlns="http://jabber.org/protocol/httpbind">
   <iq xmlns="jabber:client" from="52d3f1b237b9d2740d73fcaa@192.168.2.91" to="52d3f1b237b9d2740d73fcaa@192.168.2.91/webchat-5830" type="error" id="4881:sendIQ">
      <pref xmlns="http://www.xmpp.org/extensions/xep-0136.html#ns" />
      <error code="503" type="cancel">
         <service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
      </error>
   </iq>
   <presence xmlns="jabber:client" from="52d3f1b237b9d2740d73fcaa@192.168.2.91/webchat-5830" to="52d3f1b237b9d2740d73fcaa@192.168.2.91/webchat-5830" />
</body>

Please help config my ejabberd server to use mod_archive2. Thank you so much

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions