dosubot[bot] commented on issue #33823:
URL: https://github.com/apache/superset/issues/33823#issuecomment-2986385411

   <!-- Greeting -->
   Hi @chhenning! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.
   
   <!-- Answer -->
   The errors you’re seeing are due to a PostgreSQL version mismatch and 
leftover Docker volumes. The quickstart instructions use a Docker Compose file 
that pulls the latest PostgreSQL 16 image, but if you have an existing Docker 
volume from a previous run (for example, with PostgreSQL 15), the data 
directory will be incompatible and the container will fail to start. This is a 
common issue and is discussed in several threads, including [this 
one](https://github.com/apache/superset/issues/33027).
   
   To fix this, you need to remove the old Docker volume so that a fresh, 
compatible database is initialized. Run:
   
   ```sh
   docker compose -f docker-compose-image-tag.yml down -v
   ```
   
   Then try starting again:
   
   ```sh
   docker compose -f docker-compose-image-tag.yml up
   ```
   
   This will delete the old database volume and allow PostgreSQL 16 to 
initialize a new, compatible data directory.
   
   If you see errors about the hostname `db` not being resolved, it’s usually a 
symptom of the database container failing to start (as above), so fixing the 
volume issue should resolve this as well.
   
   Also, if you cloned the repo with `--depth=1`, you may not have all tags 
available for checkout. Use:
   
   ```sh
   git fetch --tags
   ```
   
   before checking out a specific tag like `4.1.2` 
[reference](https://github.com/apache/superset/issues/33027).
   
   Let me know if you still hit issues after trying these steps!
   
   
   <!-- 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/80df76d4-5298-4d82-a8e7-de32f2f404a2?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/80df76d4-5298-4d82-a8e7-de32f2f404a2?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/80df76d4-5298-4d82-a8e7-de32f2f404a2?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/80df76d4-5298-4d82-a8e7-de32f2f404a2?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/80df76d4-5298-4d82-a8e7-de32f2f404a2?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/80df76d4-5298-4d82-a8e7-de32f2f404a2?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/80df76d4-5298-4d82-a8e7-de32f2f404a2?feedback_type=other)</sup>&nbsp;&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/issues/33823)


-- 
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]

Reply via email to