You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "cupen (via GitHub)" <gi...@apache.org> on 2025/07/25 16:51:08 UTC
[I] The last docker image doesn't work [superset]
cupen opened a new issue, #34320:
URL: https://github.com/apache/superset/issues/34320
### Bug description
1. Run superset in docker
```
sudo docker run --rm -p 8088:8088 --name ss -e SUPERSET_SECRET_KEY=1 apache/superset:v5.0.0
```
2. Create admin account
```
sudo docker exec -it ss superset fab create-admin \
--username admin \
--email admin@superset.com \
--password admin \
--firstname Superset \
--lastname Admin
```
3. Visit http://127.0.0.1:8088 , then login with `admin` account.
4. BOOM!! Internal server error
### Screenshots/recordings
_No response_
### Superset version
master / latest-dev
### Python version
3.9
### Node version
16
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
--
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: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] The last docker image doesn't work [superset]
Posted by "cupen (via GitHub)" <gi...@apache.org>.
cupen commented on issue #34320:
URL: https://github.com/apache/superset/issues/34320#issuecomment-3121334622
Well, yes. It works after `sudo docker exec -it ss superset init`. Thanks.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] The last docker image doesn't work [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #34320:
URL: https://github.com/apache/superset/issues/34320#issuecomment-3119452257
<!-- Greeting -->
Hi @cupen! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
Superset 5.0.0 Docker images have some breaking changes and new requirements that can cause internal server errors if not handled. After starting the container and creating the admin user, you also need to run both `superset db upgrade` and `superset init` inside the container to ensure the database schema and permissions are up to date—skipping these steps is a common cause of 500 errors on login ([source](https://github.com/apache/superset/issues/31461)). You can do this with:
```
sudo docker exec -it ss superset db upgrade
sudo docker exec -it ss superset init
```
If you are using a database like Postgres or MySQL, make sure the required Python drivers (e.g., `psycopg2` for Postgres) are installed, as recent images do not include them by default. You can add them via a `requirements-local.txt` file or by extending the Docker image ([source](https://github.com/apache/superset/issues/32217)).
If you still see errors, check the Superset logs in the container (`docker logs ss`) for specific stack traces—they will help pinpoint missing dependencies or migration issues. If you upgraded from a previous version, you may need to remove old Docker volumes to avoid migration conflicts ([source](https://github.com/apache/superset/issues/34284)).
Let me know if you see a specific error message in the logs!
<!-- 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/e0e65667-5c30-41ae-b041-4dc45b6ef24c?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/e0e65667-5c30-41ae-b041-4dc45b6ef24c?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/e0e65667-5c30-41ae-b041-4dc45b6ef24c?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/e0e65667-5c30-41ae-b041-4dc45b6ef24c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e0e65667-5c30-41ae-b041-4dc45b6ef24c?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/e0e65667-5c30-41ae-b041-4dc45b6ef24c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e0e65667-5c30-41ae-b041-4dc45b6ef24c?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
b) [](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/issues/34320)
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] The last docker image doesn't work [superset]
Posted by "hainenber (via GitHub)" <gi...@apache.org>.
hainenber closed issue #34320: The last docker image doesn't work
URL: https://github.com/apache/superset/issues/34320
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] The last docker image doesn't work [superset]
Posted by "hainenber (via GitHub)" <gi...@apache.org>.
hainenber commented on issue #34320:
URL: https://github.com/apache/superset/issues/34320#issuecomment-3121300636
You'll need to [initialize the DB](https://superset.apache.org/docs/installation/pypi#installing-and-initializing-superset) if you wish to run Superset as standalone container.
Dosu's comment is correct. I'll be closing off this ticket as I verified manually and found no problem after the DB got initialized. If there's any concerns/queries, please comment it out.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org