ejabberd - Comments for "Upgrading Ejabberd from 16.06 to 17.04" https://www.ejabberd.im/forum/28726/upgrading-ejabberd-1606-1704 en Ok, in that case mod_roster https://www.ejabberd.im/forum/28726/upgrading-ejabberd-1606-1704#comment-67427 <p>Ok, in that case mod_roster should be using SQL as database, and it requires that table to exist. Does it really exist? Does the mod_roster feature work (add some contact to see if it persists)?</p> Thu, 27 Apr 2017 07:44:55 +0000 badlop comment 67427 at https://www.ejabberd.im I was able to fix the mix-up https://www.ejabberd.im/forum/28726/upgrading-ejabberd-1606-1704#comment-67426 <p>I was able to fix the mix-up issue with 2 versions following your step 1-7. Thank you.</p> <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>The rosterusers table is required for mod_roster. Do you use SQL only for auth? If you also use it for mod_roster, then that missing table is a worrying error.</p> </div> <p>I have the default mod_roster setting with no options:<br /> <code>mod_roster: {}</code><br /> however, I also have:<br /> <code>default_db: sql</code><br /> So it seems mod_roster should be using sql. What do I need to do in this case?</p> Thu, 27 Apr 2017 00:54:23 +0000 koensayr comment 67426 at https://www.ejabberd.im koensayr wrote: I also tried https://www.ejabberd.im/forum/28726/upgrading-ejabberd-1606-1704#comment-67415 <div class="quote-msg"> <div class="quote-author"><em>koensayr</em> wrote:</div> <p>I also tried to do the table alterations under 17.01 - 17.03, however, it failed with the error that rosterusers table does not exist. But since this wasn't required, I tried to start the server. </p></div> <p>The rosterusers table is required for mod_roster. Do you use SQL only for auth? If you also use it for mod_roster, then that missing table is a worrying error.</p> <div class="quote-msg"> <div class="quote-author"><em>koensayr</em> wrote:</div> <p>I am getting the strange problem of ejabberdctl keeps trying to read the .erlang-cookie from the old directory. I tried setting HOME in ejabberdctl.cfg but that doesn't seem to do anything. If I remove the directory of the old 16.06 installation, the server fails to start with a error that points to cookie mismatch. </p></div> <p>It seems you have both installations mixed now. In those situations, what I do is:<br /> 1. Remove all the installed files, config files, logs, mnesia database files, ejabberdctl script from /sbin/ or any other system path. Of course, keeping a good backup of all the good stuff.</p> <p>2. Install the new ejabberd</p> <p>3. Start the new ejabberd, check it works with its default configuration</p> <p>4. Now restore some of the old stuff from my old server, for example certificate files and some basic modules configurations.</p> <p>5. Restart ejabberd, check it works.</p> <p>6. Now restore the SQL database configuration in ejabberd.</p> <p>7. Restart ejabberd, check it works.</p> <p>[Repeat restoring and configuring stuff one by one, until you are happy with it, or until you find a problem]</p> <p>As you can see, it doesn't make sense to bother with 4, 5, ..., until you have 3 done correctly.</p> Mon, 17 Apr 2017 10:24:55 +0000 badlop comment 67415 at https://www.ejabberd.im