Skip to main content

mysql to sqlite roundcube script fails

Comments

9 comments

  • cPRex Jurassic Moderator
    Hey there! Can you try running this command on the system first? /usr/local/cpanel/bin/update-roundcube-db --force --foreground and then proceed with the conversion?
    0
  • bloatedstoat
    Hey there! Can you try running this command on the system first? /usr/local/cpanel/bin/update-roundcube-db --force --foreground and then proceed with the conversion?

    Thanks for this, --force option can be dropped as it's not a parameter but after running the command here is the output. Roundcube is configured to use SQLite. This update is for Roundcube using MySQL. Running /usr/local/cpanel/bin/update-roundcube-sqlite-db. Roundcube update from 1.6.0.10-1.cp110~el8 to 1.6.0.10-1.cp110~el8 in progress. info [update-roundcube-sqlite-db] Roundcube will be locked out during this process. Roundcube updated to 1.6.0.10-1.cp110~el8 [root@server~]# /usr/local/cpanel/scripts/convert_roundcube_mysql2sqlite info [convert_roundcube_mysql2sqlite] Roundcube conversion already occurred, bailing out. The message on the destination server remainjs the same within the Transfer Tool after scanning the source. Source: "source.server" Roundcube database type is "mysql" " Target: "destination.server" Roundcube database type is "sqlite" " The source server is not running the same Roundcube database type as the target server. cPanel highly recommends that the source server run the same Roundcube database type at least 24 hours to ensure that email accounts using Roundcube will transfer properly. The question now is, which to believe. Cheers.
    0
  • cPRex Jurassic Moderator
    I'm glad that worked! It does look like we removed the "--force" option, so I just need to update my brain now.
    0
  • bloatedstoat
    I'm glad that worked! It does look like we removed the "--force" option, so I just need to update my brain now.

    Read it again @cPRex, it didn't work, it says it already converted but still throws an error in the Transfer Tool as having not been converted.
    0
  • cPRex Jurassic Moderator
    Ah, I completely misread that when I checked earlier. Since it said "already occurred, bailing out" that would indicate that the conversion didn't need to be run at all, but the Transfer Tool is having trouble detecting the version. One easy way to tell what is happening is to see if there is a Roundcube database in /var/lib/mysql. If so, it likely has not been converted to SQLite as that would be stored in the user's home directory.
    0
  • bloatedstoat
    On the strength of it then the conversion failed as /var/lib/mysql/roundcube exists on the source server with a whole bunch of files still within it. On the destination no roundcube directory exists in /var/lib/mysql. Are you saying once the conversion runs successfully /var/lib/mysql/roundcube is removed? Thank you.
    0
  • cPRex Jurassic Moderator
    I mentioned in an older post here that I've never let that message stop me from doing a migration:
    0
  • bloatedstoat
    I would just do the transfer at this point since everything seems to be in place.

    I have completed the transfer of some accounts that use the old Horde system to test and at this stage it seems that all has gone to plan. Thanks for the help on this. Cheers.
    0
  • cPRex Jurassic Moderator
    I'm glad to hear all went well!
    0

Please sign in to leave a comment.