GitHub user dosubot[bot] added a comment to the discussion: How to install and configure superset step by step??
<!-- Answer --> Your error is caused by a mismatch between the PostgreSQL version used to initialize the data directory (v16) and the version currently running in your container (v15.13). PostgreSQL data directories are not backward compatible, so the database container can't start, which also causes the "could not translate host name 'db'" error in Superset because the database isn't available. To fix this, you need to remove the existing Docker volume that holds the old PostgreSQL data so the container can initialize a new, compatible data directory. **Warning:** This will delete all existing Superset metadata and dashboards unless you have a backup. Run these commands from your Superset project directory: ```sh docker compose -f docker-compose-image-tag.yml down -v docker compose -f docker-compose-image-tag.yml up ``` This will remove the incompatible database volume and start fresh. After this, Superset should start successfully and the errors should disappear. [Reference](https://github.com/apache/superset/issues/33823) If you need to preserve your data, back up your PostgreSQL database before running these commands. <!-- 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/ff1d0362-fd71-443c-99c3-7b3918220033?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/ff1d0362-fd71-443c-99c3-7b3918220033?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/ff1d0362-fd71-443c-99c3-7b3918220033?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/ff1d0362-fd71-443c-99c3-7b3918220033?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ff1d0362-fd71-443c-99c3-7b3918220033?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/ff1d0362-fd71-443c-99c3-7b3918220033?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/ff1d0362-fd71-443c-99c3-7b3918220033?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34439) GitHub link: https://github.com/apache/superset/discussions/34439#discussioncomment-13953293 ---- 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]
