You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(venv) C:\superset>superset db upgrade
Usage: superset [OPTIONS] COMMAND [ARGS]...
Try 'superset --help' for help.
Error: Could not locate a Flask application. Use the 'flask --app' option, 'FLASK_APP' environment variable, or a 'wsgi.py' or 'app.py' file in the current directory.
(venv) C:\superset>set FLASK_APP=superset
(venv) C:\superset>superset db upgrade
WARNING
A Default SECRET_KEY was detected, please use superset_config.py to override it.
Use a strong complex alphanumeric string and use a tool to help you generate
a sufficiently random sequence, ex: openssl rand -base64 42
Refusing to start due to insecure SECRET_KEY
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.
The text was updated successfully, but these errors were encountered:
To resolve the "Refusing to start due to insecure SECRET_KEY" error, you need to set a strong, random SECRET_KEY in your superset_config.py file or as an environment variable. Here's how you can do it:
In superset_config.py: Add a strong, random SECRET_KEY to your configuration file like this:
SECRET_KEY='YOUR_OWN_RANDOM_GENERATED_SECRET_KEY'
You can generate a secure key using: openssl rand -base64 42
As an Environment Variable: Alternatively, set the SUPERSET_SECRET_KEY environment variable:
export SUPERSET_SECRET_KEY=YOUR-SECRET-KEY
Ensure Configuration is Loaded: Make sure Superset is correctly reading your superset_config.py file. Set the SUPERSET_CONFIG_PATH environment variable to the path of your configuration file:
I encountered an issue when trying to access the Superset interface. Some elements or data were not visible as they are shown in the provided images. While the system appears to be functioning correctly in the background, not everything is being displayed as expected, similar to how it is shown in the images.
The interface doesn't seem to render all the content as it should, and some parts are either missing or not visible. This might be due to display settings or compatibility issues between the software version and the data.
Bug description
(venv) C:\superset>superset db upgrade
Usage: superset [OPTIONS] COMMAND [ARGS]...
Try 'superset --help' for help.
Error: Could not locate a Flask application. Use the 'flask --app' option, 'FLASK_APP' environment variable, or a 'wsgi.py' or 'app.py' file in the current directory.
(venv) C:\superset>set FLASK_APP=superset
(venv) C:\superset>superset db upgrade
A Default SECRET_KEY was detected, please use superset_config.py to override it.
Use a strong complex alphanumeric string and use a tool to help you generate
a sufficiently random sequence, ex: openssl rand -base64 42
Refusing to start due to insecure SECRET_KEY
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: