--upgrade
created a new Superset instance
#31401
-
I wanted to upgrade the Superset instance from version 3.0.0 to 4.1.1. The Superset is located at:
But after I run the command (without
I've got a new instance of Superset in my home dir which is:
And my previous instance could not start. Only server reboot allowed to load version 3.0.0. How did it happen? What is the best option to upgrade my existing instance located at @dosu, fell free to start :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When you run To upgrade the existing system-wide instance of Superset located at sudo pip install apache-superset --upgrade Before proceeding, it's a good practice to back up your current Superset configuration and data. Additionally, after upgrading, you should run the following commands to handle any necessary database migrations and initialization: superset db upgrade
superset init This will ensure that your Superset instance is properly upgraded and configured [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
When you run
pip install
withoutsudo
, it installs packages in the user-specific directory (e.g.,~/.local/lib/python3.9/site-packages/
) instead of the system-wide directory (/usr/local/lib/python3.9/site-packages/
). This is why you see the new instance of Superset in your home directory.To upgrade the existing system-wide instance of Superset located at
/usr/local/lib/python3.9/site-packages/superset/
, you should run thepip install
command withsudo
to ensure it has the necessary permissions to modify the system-wide installation:Before proceeding, it's a good practice to back up your current Superset configuration and data. Additionally, af…