[Solved] How to upgrade from 3.0.x to 5.0.x


Issue Summary

I was having issues upgrading from v3 to v5, specifically with applying the db migrations.

From a clone of the release/5.0.x branch I ran:

bin/run ./manage.py db upgrade

which produced this error:

dashboards.tags does not exist

What Worked for Me

  1. I modified the upgrade script so that it upgraded to v4.0.2 instead.

  2. Place the script alongside the default one.

    sudo cp path-to-modified-upgrade /opt/redash/current/bin/upgrade_v4

  3. Run the modified upgrade script. [Upgrade to V4]

    sudo bin/upgrade_v4

  4. With v4 now installed, run the default upgrade script. [Upgrade to V5]

    sudo bin/upgrade

  5. Voila! You should now be running v5.0.1 (the latest version at this time of writing)

Technical details:

  • Redash Version: v3.0.0
  • Browser/OS: Ubuntu 16.04.3 LTS
  • How did you install Redash: Legacy bootstrap script