Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(upgrading): clarify upgrade process #28275

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Conversation

SaTae66
Copy link
Contributor

@SaTae66 SaTae66 commented Apr 30, 2024

Differentiate between upgrading superset docker/native itself and the metadata database to indicate that upgrading the database is necessary in either case.

SUMMARY

Indicate that superset db upgrade and superset init are necessary after upgrading superset, independent of the deployment method.

Personally it was obvious that superset db upgrade was needed, but at that point I already felt the documentation could be clearer. I didn't execute superset init though, as it was not obvious from the Docker Compose section of the upgrade guide. I thought some weird HTTP 403 errors in the SQLLAB were a regression in 4.0.0 until I stumbled upon this line by accident, which, after execution, fixed everything.

Differentiate between upgrading superset docker/native itself and the metadata database to indicate that upgrading the database is necessary in either case.
@github-actions github-actions bot added the doc Namespace | Anything related to documentation label Apr 30, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats on making your first PR and thank you for contributing to Superset! 🎉 ❤️

We hope to see you in our Slack community too! Not signed up? Use our Slack App to self-register.

@rusackas rusackas requested review from sfirke and dpgaspar April 30, 2024 15:14
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running CI 🤞

Changes look good to me, but I'll let others chime in before merging.

@sfirke
Copy link
Member

sfirke commented Apr 30, 2024

Seems like a straightforward improvement to me. Thank you @SaTae66 for the contribution!

@sfirke sfirke merged commit f03de27 into apache:master Apr 30, 2024
31 of 32 checks passed
@sfirke
Copy link
Member

sfirke commented May 1, 2024

Hm @SaTae66 are you running Docker with a single container or Docker Compose?

I upgraded yesterday using Docker Compose. When I run docker compose up, it runs the script at https://github.com/apache/superset/blob/master/docker/docker-init.sh which includes superset_db_upgrade. And when I look at docker logs superset_init | head -n 100 I see that the DB migrations were applied.

So I don't think superset db upgrade is needed necessarily for Docker Compose, but I'd like to learn more. For instance if someone is running with Docker Compose should we make it clearer they need to have this docker-init.sh file in the appropriate path?

Also did you have to enter your container first with docker exec -it ... in order to run superset db upgrade ?

@SaTae66
Copy link
Contributor Author

SaTae66 commented May 2, 2024

Yeah I guess thats on me then lol. I am using the image from dockerhub, patch some stuff in the CI, including a custom entry-point. iirc. back in the days of v2 I had issues when running either superset db upgrade or superset init or both on every startup, so I had to remove that.

jzhao62 pushed a commit to jzhao62/superset that referenced this pull request May 16, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.1.0 labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels doc Namespace | Anything related to documentation size/XS 🚢 4.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants