New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to connect to data sources after upgrading to version v7.0.0.b17489 #3617
Comments
I think that REDASH_COOKIE_SECRET is wrong |
REDASH_COOKIE_SECRET did not change between deploys. |
What deployment you have; Did you try run your deployment without set REDASH_COOKIE_SECRET? |
I'm deploying this to a kubernetes cluster. Should I deploy 6.0.0.b8537 with REDASH_COOKIE_SECRET set, and then deploy v7.0.0.b17489 without REDASH_COOKIE_SECRET set? |
It should also be noted that we tried to 7.0.0.b17489 first, no upgrading from 6.0.0.b8537, and ran into the same issue. REDASH_COOKIE_SECRET was definitely set. |
I had similar issue. I had to set REDASH_COOKIE_SECRET for both redash worker and server. |
I had same error. I set REDASH_COOKIE_SECRET for worker to solve this error. But the upgrade doc did not metion it. |
You need to set
If you didn't set the COOKIE_SECRET it will use the default one ( The library we use has the ability to update the encryption key, so you will need to use this process to update from the default one to the one you actually use. |
I have my REDASH_COOKIE_SECRET set in my .env file and it appears the upgrade is not using my .env REDASH_COOKIE_SECRET during the upgrade. It appears that its using the default set in the upgrade Python script. I see 0daypwn mentioned setting the REDASH_COOKIE_SECRET for both redash worker and server, can you provide instructions on this since its not the .env file that I expect redash to be reading from. |
I am trying to upgrade my redash setup on docker. I have REDASH_COOKIE_SECRET already set up, and then I tried to insert some row in postgres 'public.data_sources' table through dump commands. |
@arikfr can I ask about how do we change the encryption key? |
I was running into this same token issue after migrating from 7.0.0.b18042 to the same 7.0.0.b18042 on a new host. In my old host, $REDASH_COOKIE_SECRET was defined in containers and populated correctly from env file, however $REDASH_SECRET_KEY was empty and not defined in env. Checking my new install, $REDASH_COOKIE_SECRET was also defined correctly, however $REDASH_SECRET_KEY was a 32 character string that I was not familiar with. By setting $REDASH_SECRET_KEY to the same value as $REDASH_COOKIE_SECRET in env and then issuing Hope this helps someone. |
I'm running into a similar issue. Can you please elaborate a bit more? You set the |
after the ce60d20 commit , the default value 'c292a0a3aa32397cdb050e233733900f' of REDASH_COOKIE_SECRET is removed. if you never set it before and get an error
|
Issue Summary
Unable to query any data source after upgrading from 6.0.0.b8537 to 7.0.0.b17489
Steps to Reproduce
python /app/manage.py db upgrade
Technical details:
I See this stacktrace corresponding to every attempt by the background workers to sync a query
The text was updated successfully, but these errors were encountered: