ejabberd - Comments for "Moving from 2.1.11 to 15.07" https://www.ejabberd.im/forum/25072/moving-2111-1507 en Don't restore or import a https://www.ejabberd.im/forum/25072/moving-2111-1507#comment-66088 <p>Don't restore or import a backup of an old database into a new ejabberd, do that only with similar ejabberd versions.</p> <p>When moving from old to new ejabberd, let ejabberd use your old database.</p> <p>This way:<br /> 1. Stop the old ejabberd 2.1.11<br /> 2. Copy the Mnesia spool dir (read in the Guide to know what this is) from old ejabberd to new ejabberd directory.<br /> 3. Start the new ejabberd (with the old database)<br /> 4. The new ejabberd will detect that the database has the old format, and will update it:</p> <pre> ... 10:28:48.530 [info] Application p1_iconv started on node ejabberd@localhost 10:28:48.563 [info] Converting 'last_activity' table from strings to binaries. 10:28:49.163 [info] Converting 'muc_room' table from strings to binaries. 10:28:49.595 [info] Converting 'privacy' table from strings to binaries. 10:28:50.123 [error] transaction return internal error: {aborted,{bad_type,{pubsub_state,{{&lt;&lt;&gt;&gt;,&lt;&lt;"pubsub.localhost"&gt;&gt;,&lt;&lt;&gt;&gt;},3},[],owner,[]}}} 10:28:50.125 [error] transaction return internal error: {aborted,{bad_type,{pubsub_state,{{&lt;&lt;&gt;&gt;,&lt;&lt;"pubsub.localhost"&gt;&gt;,&lt;&lt;&gt;&gt;},3},[],owner,[]}}} 10:28:50.127 [info] Binarization of pubsub nodes table... 10:28:50.127 [info] Pubsub nodes table has been binarized: ok 10:28:50.127 [info] Upgrading pubsub states table... 10:28:50.506 [info] Pubsub states table upgraded: ok 10:28:50.509 [info] Converting 'roster' table from strings to binaries. 10:28:51.095 [info] Reusing listening port for 4560 10:28:51.095 [info] Reusing listening port for 5222 10:28:51.096 [info] Reusing listening port for 5269 10:28:51.096 [info] Reusing listening port for 5280 10:28:51.097 [info] Reusing listening port for 5281 10:28:51.097 [info] ejabberd 15.07.68 is started in the node ejabberd@localhost 10:28:51.097 [info] Application ejabberd started on node ejabberd@localhost </pre><p>5. Now login some user to check all is correct, or login to WebAdmin.</p> Fri, 11 Sep 2015 08:36:37 +0000 badlop comment 66088 at https://www.ejabberd.im Hi, I have the exact same https://www.ejabberd.im/forum/25072/moving-2111-1507#comment-66051 <p>Hi,</p> <p>I have the exact same problem when upgrading from ejabberd 2.1.10 to 14.07.</p> <p>I want to move ejabberd to a new host running debian jessie with ejabberd 14.07. I followed this document for the database migration: <a href="https://www.ejabberd.im/migrate-host" title="https://www.ejabberd.im/migrate-host">https://www.ejabberd.im/migrate-host</a></p> <p>However, when I try to restore the database on the new host, I get the following error message:</p> <div class="codeblock"><code>varda ejabberd # ejabberdctl --node ejabberd@varda restore /tmp/ejabberd2.backup <br />Can&#039;t restore backup from &quot;/tmp/ejabberd2.backup&quot; at node ejabberd@varda: Table config does not exist.</code></div> <p>I would appreciate any hints on how to do the database migration.</p> <p>Thanks, Sven.</p> Tue, 01 Sep 2015 11:26:40 +0000 major comment 66051 at https://www.ejabberd.im