Superset 6.1.0.rc2 not using postgres as meta database #39787
Replies: 1 comment 2 replies
-
|
Hi @echidnal! I'm Dosu and I’m helping the superset team. The issue is that Superset does not read You need to set SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://CUSTOMUSER:CUSTOMPASSWORD@superset-db:5432/superset'Or, if you prefer to keep credentials in environment variables and reference them from the config: import os
SQLALCHEMY_DATABASE_URI = os.getenv(
'SQLALCHEMY_DATABASE_URI',
'postgresql+psycopg2://CUSTOMUSER:CUSTOMPASSWORD@superset-db:5432/superset'
)This is the same pattern used in Superset's own Docker reference config, which explicitly reads environment variables like Your intuition about To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I'm assuming I have a config wrong but can't find it. I'm trying to spin up a more production worthy docker setup. I've built my own image and made sure the postgres db driver is installed. And confirmed this by binding a database and data set to the same postgres db in the docker it should be using for the meta database.
The docker-compose.yml and the custom superset_config.py are being pulled in by Git to the docker server.
Based on what I am seeing -- empty postgres db AND the logs -- it seems to me that Superset is using SQLite DB and not connecting to the postgres db for the meta database. Though I can't find a 100% way to confirm this.
I'm editing and modifying a docker-compose.yml I found on the internet.
My docker-compose.yml:
And here is where I may be making a mistake. I thought the superset_config.py is more of an override than needing ALL the settings in it. I have only put in items I know I need to set and removed the rest. I'm wondering if I need more in this file and that may be my issue:
And lastly the logs of the container:
Any insight into what is going on would be much appreciated?
Beta Was this translation helpful? Give feedback.
All reactions