ejabberd - Comments for "Domain name upgrade" https://www.ejabberd.im/forum/28767/domain-name-upgrade en That's what I meant, yes. https://www.ejabberd.im/forum/28767/domain-name-upgrade#comment-67460 <p>That's what I meant, yes. And it worked like a charm, thanks, even while upgrading from 2.1.10 to 14.07. :)</p> <p>For search's sake, <code>ejabberdctl restore NEWDB</code> will lead to the following errorĀ :</p> <div class="codeblock"><code>Problem &#039;error {case_clause,{aborted,{file_error,&quot;ejab.new&quot;,eacces}}}&#039; occurred executing the command.<br />Stacktrace: [{ejabberd_admin,restore_mnesia,1,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{file,&quot;src/ejabberd_admin.erl&quot;},{line,441}]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ejabberd_ctl,call_command,3,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{file,&quot;src/ejabberd_ctl.erl&quot;},{line,293}]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ejabberd_ctl,try_call_command,3,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{file,&quot;src/ejabberd_ctl.erl&quot;},{line,269}]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ejabberd_ctl,process2,3,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{file,&quot;src/ejabberd_ctl.erl&quot;},{line,218}]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {ejabberd_ctl,process,1,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{file,&quot;src/ejabberd_ctl.erl&quot;},{line,203}]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {rpc,&#039;-handle_call_call/6-fun-0-&#039;,5,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{file,&quot;rpc.erl&quot;},{line,205}]}]</code></div> <p>This is because the right syntax for loading text-dumped DB is <code>ejabberdctl load NEWDB</code>, not <code>restore</code>.</p> Mon, 15 May 2017 16:00:40 +0000 Skippy comment 67460 at https://www.ejabberd.im > Can I just replace the old https://www.ejabberd.im/forum/28767/domain-name-upgrade#comment-67449 <p>&gt; Can I just replace the old domain name in the Mnesia DB ?</p> <p>The erlang/mnesia node name has nothing to do with the XMPP domain name.</p> <p>In order to change the XMPP domain name, you have to change the elements in the Mnesia database. One way is to dump the mnesia database to a text file. Then edit the text file to change the names. Then delete the old tables contents, and finally load the modified text file.</p> Fri, 12 May 2017 09:24:19 +0000 badlop comment 67449 at https://www.ejabberd.im