dosubot[bot] commented on issue #32375:
URL: https://github.com/apache/superset/issues/32375#issuecomment-2681908411
<!-- Greeting -->
Hey @Lowsp00f! I'm here to help you with any issues you're experiencing
while upgrading Superset. I can assist with bug fixes, answer questions, and
guide you on becoming a contributor. Let's tackle this together!
<!-- Answer -->
To resolve the `UnicodeDecodeError` and 'Invalid decryption key' error when
upgrading Superset from version 4.0.1 to 5.0 using Docker Compose, you need to
ensure that you provide the correct previous secret key during the
re-encryption process. The `re_encrypt_secrets` command requires a valid
`previous_secret_key` to successfully migrate secrets.
Here's how you can do it:
1. **Provide the Previous Secret Key**: When running the
`re_encrypt_secrets` command, make sure to provide the correct previous secret
key. You can do this by either setting the `PREVIOUS_SECRET_KEY` in your
configuration or by passing it as an option to the command.
Example command:
```bash
superset re_encrypt_secrets --previous_secret_key=your_previous_secret_key
```
2. **Check Configuration**: Ensure that the `PREVIOUS_SECRET_KEY` is
correctly set in your Superset configuration if you are not passing it directly
via the command line.
If the previous secret key is incorrect or not provided, you will encounter
errors such as 'Invalid decryption key'
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/cli/update.py)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great
Response](https://app.dosu.dev/response-feedback/96148d63-2968-49ee-b3f6-18142444afa4?feedback_type=great_response)
| [Irrelevant
Answer](https://app.dosu.dev/response-feedback/96148d63-2968-49ee-b3f6-18142444afa4?feedback_type=irrelevant_answer)
| [Incorrect
Sources](https://app.dosu.dev/response-feedback/96148d63-2968-49ee-b3f6-18142444afa4?feedback_type=incorrect_sources)
| [Too
Verbose](https://app.dosu.dev/response-feedback/96148d63-2968-49ee-b3f6-18142444afa4?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/96148d63-2968-49ee-b3f6-18142444afa4?feedback_type=hallucination)
| [Bug
Report](https://app.dosu.dev/response-feedback/96148d63-2968-49ee-b3f6-18142444afa4?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/96148d63-2968-49ee-b3f6-18142444afa4?feedback_type=other)</sup>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]