ejabberd - Comments for "migrating mnesia to pgsql and other issues" https://www.ejabberd.im/node/4090 en This is probably the problem, easy to solve https://www.ejabberd.im/node/4090#comment-56022 <div class="quote-msg"> <div class="quote-author"><em>ragged</em> wrote:</div> <p>the ejabberd installation is from the debian sources. i compiled in the erlang modules for postgres/mysql and ejd2odbc.</p> <p>could there be the problem? </p></div> <p>If you downloaded some source code files from <noindex><a href="http://github.com/processone/ejabberd/tree/master/src/odbc/" title="http://github.com/processone/ejabberd/tree/master/src/odbc/" rel="nofollow" >http://github.com/processone/ejabberd/tree/master/src/odbc/</a></noindex> then compiled them and installed in your ejabberd 2.1.*, you will get problems like the one you described, because you mix files from ejabberd 3 with ejabberd 2.</p> <p>Better get the files from here (notice those are for ejabberd 2):<br /> <noindex><a href="http://github.com/processone/ejabberd/tree/2.1.x/src/odbc" title="http://github.com/processone/ejabberd/tree/2.1.x/src/odbc" rel="nofollow" >http://github.com/processone/ejabberd/tree/2.1.x/src/odbc</a></noindex></p> Mon, 07 Jun 2010 13:27:50 +0000 mfoss comment 56022 at https://www.ejabberd.im hi badlop, the ejabberd https://www.ejabberd.im/node/4090#comment-55864 <p>hi badlop,</p> <p>the ejabberd installation is from the debian sources. i compiled in the erlang modules for postgres/mysql and ejd2odbc.</p> <p>could there be the problem?</p> <p>would like to tell you the version number, but ejabberd dont have an options for that. :/</p> <p>here are the mysql files i compiled in</p> <p><noindex><a href="https://svn.process-one.net/ejabberd-modules/mysql/trunk/src/" title="https://svn.process-one.net/ejabberd-modules/mysql/trunk/src/" rel="nofollow" >https://svn.process-one.net/ejabberd-modules/mysql/trunk/src/</a></noindex></p> Mon, 07 Jun 2010 11:43:47 +0000 ragged comment 55864 at https://www.ejabberd.im Are you sure that is ejabberd 2? https://www.ejabberd.im/node/4090#comment-55857 <div class="quote-msg"> <div class="quote-author"><em>ragged</em> wrote:</div> <p>but i get only following output:<br /> Trying to export Mnesia table 'vcard_search' on server 'jabber.domain.tld' to file '/var/lib/ejabberd/vcard_search.txt'<br /> Result: {aborted,<br /> {undef,<br /> [{exmpp_stringprep,nameprep,["jabber.domain.tld"]},<br /> {ejd2odbc,'-export_common/4-fun-1-',4},<br /> {mnesia_tm,apply_fun,3},<br /> {mnesia_tm,execute_transaction,5},<br /> {mod_ctlextra,'-ctl_process/2-fun-0-',3},<br /> {lists,foreach,2},<br /> {mod_ctlextra,ctl_process,2},<br /> {ejabberd_hooks,run_fold1,4}]}} </p></div> <p>It seems you don't have installed ejabberd 2. It seems you have installed ejabberd from the Git repository, 'master' branch; and that is a code still in development.</p> Fri, 04 Jun 2010 18:25:17 +0000 mfoss comment 55857 at https://www.ejabberd.im ragged wrote: i compiled the https://www.ejabberd.im/node/4090#comment-55856 <div class="quote-msg"> <div class="quote-author"><em>ragged</em> wrote:</div> <p>i compiled the erlang pgsql modules from this site http://frihjul.net/pgsql</p></div> <p>For ejabberd, you must get the pgsql available in the ejabberd-modules SVN.</p> Fri, 04 Jun 2010 18:22:12 +0000 mfoss comment 55856 at https://www.ejabberd.im export2odbc, dont work https://www.ejabberd.im/node/4090#comment-55848 <p>ok, i found a way it should work.</p> <p>i try this:<br /> ejabberdctl export2odbc jabber.domain.tld /var/lib/ejabberd/</p> <p>but i get only following output:<br /> Trying to export Mnesia table 'vcard_search' on server 'jabber.domain.tld' to file '/var/lib/ejabberd/vcard_search.txt'<br /> Result: {aborted,<br /> {undef,<br /> [{exmpp_stringprep,nameprep,["jabber.domain.tld"]},<br /> {ejd2odbc,'-export_common/4-fun-1-',4},<br /> {mnesia_tm,apply_fun,3},<br /> {mnesia_tm,execute_transaction,5},<br /> {mod_ctlextra,'-ctl_process/2-fun-0-',3},<br /> {lists,foreach,2},<br /> {mod_ctlextra,ctl_process,2},<br /> {ejabberd_hooks,run_fold1,4}]}}</p> <p>the files get created, but they are empty. so i dont know right know what to do. </p> <p>the DAT and DCD files have content in it. </p> <p>the server on which i try it is new and i loaded a dump of the live system. and then i try the export. is this possible? hope so :/</p> <p>regards</p> Fri, 04 Jun 2010 10:58:41 +0000 ragged comment 55848 at https://www.ejabberd.im