GitHub user dosubot[bot] added a comment to the discussion: Update from 
5.0.0rc2 to 5.0.0 using pip

<!-- Answer -->
Your steps are almost correct, but there's a key migration issue between 
5.0.0rc2 and later versions: two migration scripts present in rc2 were removed 
in rc3 and beyond. If you already ran migrations with rc2, upgrading to rc3 or 
5.0.0 will likely fail with an error like "Can't locate revision identified by 
'32bf93dfe2a4'" unless you manually downgrade your metadata database to 
revision `74ad1125881c` before proceeding. This is a known issue and not 
automatically patched in the final 5.0.0 release 
[[details]](https://github.com/apache/superset/issues/33739).

The safest upgrade path is:

1. Full backup of your metadata database.
2. Activate your venv.
3. Upgrade directly to the target version:  
   `pip install --upgrade apache-superset==5.0.0`
4. If you see a migration error about missing revisions, run:  
   `superset db downgrade 74ad1125881c`
5. Then run:  
   `superset db upgrade`
6. `superset init`
7. `superset assets build` (if you build frontend assets)

You do not need to upgrade through every release candidate; upgrading directly 
to 5.0.0 and running the migration commands is the recommended approach 
[[docs]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docs/docs/installation/upgrading-superset.mdx).
 Backing up first is essential to preserve dashboards, charts, and users. If 
you already hit the migration error, the manual downgrade step above will 
resolve it.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/e33f8bba-9084-4358-942d-90c7c2c8f48d?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/e33f8bba-9084-4358-942d-90c7c2c8f48d?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/e33f8bba-9084-4358-942d-90c7c2c8f48d?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/e33f8bba-9084-4358-942d-90c7c2c8f48d?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/e33f8bba-9084-4358-942d-90c7c2c8f48d?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/e33f8bba-9084-4358-942d-90c7c2c8f48d?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/e33f8bba-9084-4358-942d-90c7c2c8f48d?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34579)

GitHub link: 
https://github.com/apache/superset/discussions/34579#discussioncomment-14022036

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to