[ejabberd] SQL Export, ejabberd 17.04

James Tait james.tait at wyrddreams.org
Thu Jun 8 17:24:12 MSK 2017


Hi,

I’m attempting to perform an SQL export of my data in order to migrate
fully from mnesia storage to PostgreSQL. However, I’m getting partial
exports accompanied by an error which suggests that some of the modules
don’t support exporting from mnesia:

|jtait at hostname:~/src/ejabberd$ sudo ejabberdctl status The node
ejabberd at hostname is started with status: started ejabberd 17.04 is
running in that node jtait at hostname:~/src/ejabberd$ sudo ejabberdctl
export2sql hostname /root/snap/ejabberd/common/ejabberd-$(date
-Iseconds)-hostname-dump.sql Problem 'error undef' occurred executing
the command. Stacktrace:
[{mod_announce_mnesia,export,[<<"hostname">>],[]},
{ejd2sql,export,3,[{file,"src/ejd2sql.erl"},{line,86}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1337}]},
{ejd2sql,export,2,[{file,"src/ejd2sql.erl"},{line,69}]},
{ejabberd_ctl,call_command,4,
[{file,"src/ejabberd_ctl.erl"},{line,353}]},
{ejabberd_ctl,try_call_command,4,
[{file,"src/ejabberd_ctl.erl"},{line,322}]}, {ejabberd_ctl,process2,4,
[{file,"src/ejabberd_ctl.erl"},{line,271}]}, {ejabberd_ctl,process,2,
[{file,"src/ejabberd_ctl.erl"},{line,249}]}] |

Is this a known problem? If so, is there a workaround?

Many thanks,

JT

​

-- 
---------------------------------------+--------------------------------
James Tait, BSc                        |    xmpp:jayteeuk at wyrddreams.org
Programmer and Free Software advocate  |        Tel: +44 (0)870 490 2407
---------------------------------------+--------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20170608/76bad754/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: OpenPGP digital signature
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20170608/76bad754/attachment.sig>


More information about the ejabberd mailing list