[ejabberd] Migration from mod_privacy to mod_privacy_odbc

Badlop badlop at gmail.com
Mon Dec 14 21:43:28 MSK 2009


2009/12/14 Yann Leboulanger <asterix at lagaule.org>:
> I tried $ ejabberdctl export2odbc example.org /tmp/, as you suggested,
> but I got those errors for each .txt file:
> (mod_admin_extra is enabled)
>
> # ejabberdctl export2odbc domain.org ../
> Trying to export Mnesia table 'last' on Host 'domain.org' to file
> '../last.txt'
>  Result: {'EXIT',{{badmatch,{error,eacces}},
>                   [{ejd2odbc,export_common,4},
>                    {mod_admin_extra,'-export2odbc/2-fun-0-',3},
>                    {lists,foreach,2},
>                    {mod_admin_extra,export2odbc,2},
>                    {ejabberd_ctl,call_command,3},
>                    {ejabberd_ctl,try_call_command,3},
>                    {ejabberd_ctl,process2,3},
>                    {ejabberd_ctl,process,1}]}}
>
> [...]
>
> Any idea what it could be?

eaccess: error accessing the filesystem

You must provide a full path, and better be one that ejabberd can surely write.
For those reasons I said to export to /tmp/, as in:
$ ejabberdctl export2odbc example.org /tmp/
Then you can move the files to your home.

You can also try with /var/lib/ejabberd or /var/log/ejabberd


---
Badlop
ProcessOne


More information about the ejabberd mailing list