iali9906 opened a new issue, #29619:
URL: https://github.com/apache/superset/issues/29619
### Bug description
Hello,
I entered the variable 'SESSION_SERVER_SIDE = True ' and I encounter the
following error:
```
superset-prod-01 | The session is unavailable because no secret
key was set. Set the secret_key on the application to something unique and
secret.
superset-prod-01 | Traceback (most recent call last):
superset-prod-01 | File
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 1823, in
full_dispatch_request
superset-prod-01 | rv = self.dispatch_request()
superset-prod-01 | File
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 1799, in
dispatch_request
superset-prod-01 | return
self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
superset-prod-01 | File
"/usr/local/lib/python3.9/site-packages/flask_oidc/views.py", line 47, in
login_view
superset-prod-01 | session["next"] =
request.args.get("next", request.root_url)
superset-prod-01 | File
"/usr/local/lib/python3.9/site-packages/flask/sessions.py", line 98, in _fail
superset-prod-01 | raise RuntimeError(
superset-prod-01 | RuntimeError: The session is unavailable
because no secret key was set. Set the secret_key on the application to
something unique and secret.
superset-prod-01 | 2024-07-17
12:04:04,327:ERROR:superset.views.base:The session is unavailable because no
secret key was set. Set the secret_key on the application to something unique
and secret.
superset-prod-01 | Traceback (most recent call last):
superset-prod-01 | File
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 1823, in
full_dispatch_request
superset-prod-01 | rv = self.dispatch_request()
superset-prod-01 | File
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 1799, in
dispatch_request
superset-prod-01 | return
self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
superset-prod-01 | File
"/usr/local/lib/python3.9/site-packages/flask_oidc/views.py", line 47, in
login_view
superset-prod-01 | session["next"] =
request.args.get("next", request.root_url)
superset-prod-01 | File
"/usr/local/lib/python3.9/site-packages/flask/sessions.py", line 98, in _fail
superset-prod-01 | raise RuntimeError(
superset-prod-01 | RuntimeError: The session is unavailable
because no secret key was set. Set the secret_key on the application to
something unique and secret.
```
in my superset_config.py I have the string SECRET_KEY = 'STRONGSTRING'
and logging into the shel with 'docker exec -en superset-prod-01 superset
shell' and running the command “from flask import current_app;
print(current_app.config[”SECRET_KEY“])” returns me the same string that I
entered in superset_config.py
How can I solve it?
### How to reproduce the bug
1) add SESSION_SERVER_SIDE = True in superset_config.py
2) add secret key in superset_config.py
3) restart docker container
### Screenshots/recordings
_No response_
### Superset version
4.0.2
### Python version
I don't know
### Node version
I don't know
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [X] I have searched Superset docs and Slack and didn't find a solution to
my problem.
- [X] I have searched the GitHub issue tracker and didn't find a similar bug
report.
- [X] 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: [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]