GitHub user SB-MFJ closed a discussion: Need help setting up Superset chart in 
AWS EKS behind ALB

Hi all.
I'm trying to set superset up for our org but keep getting a 
`2025-11-26 17:27:37,642:warning:root:Failed to add user to db session: Class 
'werkzeug.local.LocalProxy' is not mapped`
Followed by nothing loading and an eventual gateway timeout.

i've tried adding some logging into logging.py to figure out what's going wrong 
to no avail. It just hangs.

This is behind AWS alb running in k8, if that helps narrow it down.

I've tried 5.0.0 and now on 6.0.0r3 with same results

```sh
superset 10.17.0.219 - - [26/Nov/2025:17:27:37 +0000] "GET / HTTP/1.1" 302 223 
"-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, 
like Gecko) Chrome/142.0.0.0 Safari/537.36"
superset 2025-11-26 
17:27:37,642:DEBUG:root:<flask_login.mixins.AnonymousUserMixin object at 
0x7fef2c2757b0>
superset 2025-11-26 17:27:37,642:WARNING:root:Failed to add user to db session: 
Class 'werkzeug.local.LocalProxy' is not mapped
superset 2025-11-26 17:27:37,645:DEBUG:superset.stats_logger:[stats_logger] 
(incr) welcome
# added debug prints to the classes for the sqlalchemy session and flask global 
context
superset debug_print of: <flask.g of 'superset.app'>
superset                 user: <flask_login.mixins.AnonymousUserMixin object at 
0x7fef2c2757b0>
superset          _login_user: <flask_login.mixins.AnonymousUserMixin object at 
0x7fef2c2757b0>
# this at least confirms that I have a db session
superset debug_print of: <sqlalchemy.orm.scoping.scoped_session object at 
0x7fef2ede8580>
superset      session_factory: sessionmaker(class_='CustomSignallingSession', 
db=<SQLA engine=postgresql+psycopg2://db-sa:***@db.myorg.local:5432/uns>, 
query_cls=<class 'flask_sqlalchemy.BaseQuery'>, bind=None, autoflush=True, 
autocommit=False, expire_on_commit=True)
superset             registry: <sqlalchemy.util._collections.ScopedRegistry 
object at 0x7fef2ede8d00>
superset 10.17.0.219 - - [26/Nov/2025:17:27:37 +0000] "GET /superset/welcome/ 
HTTP/1.1" 302 261 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36"
```

GitHub link: https://github.com/apache/superset/discussions/36296

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to