[redash upgrade script] get_latest_release_from_ci() function cannot fetch V4 version


I am new to redash and I have to upgrade redash to the latest version and for that as I understood it has to be done step by step.

But the upgrade script is unable to find the v4 version, however it can find v5 or higher.

I have trie different solutions:

change release = response.json()[0] to release = response.json()[between 0 & 4 (can't go higher otherwise)]

Modify your upgrade script, particularly the get_release method, with something like this:

def get_release(channel):
    if channel == 'ci':
        return get_latest_release_from_ci()

    response = requests.get('https://version.redash.io/api/releases?channel={}'.format(channel))
    # release = response.json()[0]

    ### CUSTOM ###
    # hardcode to v4.0.2
    release = [r for r in response.json() if r['version'] == '4.0.2']

    if len(release) == 0:

    release = release[0]
    ### END CUSTOM ###

    filename = release['download_url'].split('/')[-1]
    release = Release(release['version'], release['download_url'], filename, release['description'])

    return release

still can’t find the v4 version… Maybe it’s not available on the circleci artifact anymore ?
cc @arikfr ?

Technical details:

  • Redash Version: v3.0.0
  • Browser/OS: Ubuntu 16.04 LTS (Upgraded to 20.04 LTS)
  • How did you install Redash: Legacy bootstrap script

Any help would be very appreciate.

Many Thanks

I don’t have a solution for you. But I see the same issue.

latest package available on the s3 bucket is https://s3.amazonaws.com/redash-releases/redash.5.0.1.b4851.tar.gz

if a team member can upload a v4 package to the bucket it will solve my issue…