The environment variable POSTGRES_HOST was missing !!!
Unable to get login web page when using docker-compose up.

OSError: The environment variable POSTGRES_HOST was missing, abort...
superset_1 | ERROR:root:Found but failed to import local superset_config
superset_1 | Traceback (most recent call last):
superset_1 | File "/app/pythonpath/superset_config.py", line 48, in get_env_variable
superset_1 | return os.environ[var_name]
superset_1 | File "/usr/local/lib/python3.6/os.py", line 669, in getitem
superset_1 | raise KeyError(key) from None
superset_1 | KeyError: 'POSTGRES_HOST'
superset_1 |
superset_1 | During handling of the above exception, another exception occurred:
superset_1 |
superset_1 | Traceback (most recent call last):
superset_1 | File "/app/superset/config.py", line 758, in
@bharath0208 have you previously run docker-compose up on the same computer? If so, try running docker-compose up --build to pull in the latest config into the container
@nytai i tried running --build command but still getting the same error. I have cleared all docker images and running containers as well.
@dpgaspar
I tried downloading the latest code and now i see the below error. For some reason its not able to load the loading.png image from the assets folder.
superset_1 | 172.18.0.1 - - [12/Feb/2020 18:58:29] "GET /superset/welcome HTTP/1.1" 200 - superset_1 | INFO:werkzeug:172.18.0.1 - - [12/Feb/2020 18:58:29] "GET /superset/welcome HTTP/1.1" 200 - superset_1 | 172.18.0.1 - - [12/Feb/2020 18:58:29] "GET /static/assets/images/loading.gif HTTP/1.1" 404 - superset_1 | INFO:werkzeug:172.18.0.1 - - [12/Feb/2020 18:58:29] "GET /static/assets/images/loading.gif HTTP/1.1" 404 - superset_1 | 172.18.0.1 - - [12/Feb/2020 18:58:35] "GET /superset/welcome HTTP/1.1" 200 - superset_1 | INFO:werkzeug:172.18.0.1 - - [12/Feb/2020 18:58:35] "GET /superset/welcome HTTP/1.1" 200 - superset_1 | 172.18.0.1 - - [12/Feb/2020 18:58:35] "GET /static/assets/images/loading.gif HTTP/1.1" 404 - superset_1 | INFO:werkzeug:172.18.0.1 - - [12/Feb/2020 18:58:35] "GET /static/assets/images/loading.gif HTTP/1.1" 404 - superset_1 | 127.0.0.1 - - [12/Feb/2020 18:58:47] "GET /health HTTP/1.1" 200 -
#bug
@dpgaspar
I tried downloading the latest code and when i run the docker-compose up command now i see the below error. For some reason its not able to load the loading.png image from the assets folder.
superset_1 | 172.18.0.1 - - [12/Feb/2020 18:58:29] "GET /superset/welcome HTTP/1.1" 200 - superset_1 | INFO:werkzeug:172.18.0.1 - - [12/Feb/2020 18:58:29] "GET /superset/welcome HTTP/1.1" 200 - superset_1 | 172.18.0.1 - - [12/Feb/2020 18:58:29] "GET /static/assets/images/loading.gif HTTP/1.1" 404 - superset_1 | INFO:werkzeug:172.18.0.1 - - [12/Feb/2020 18:58:29] "GET /static/assets/images/loading.gif HTTP/1.1" 404 - superset_1 | 172.18.0.1 - - [12/Feb/2020 18:58:35] "GET /superset/welcome HTTP/1.1" 200 - superset_1 | INFO:werkzeug:172.18.0.1 - - [12/Feb/2020 18:58:35] "GET /superset/welcome HTTP/1.1" 200 - superset_1 | 172.18.0.1 - - [12/Feb/2020 18:58:35] "GET /static/assets/images/loading.gif HTTP/1.1" 404 - superset_1 | INFO:werkzeug:172.18.0.1 - - [12/Feb/2020 18:58:35] "GET /static/assets/images/loading.gif HTTP/1.1" 404 - superset_1 | 127.0.0.1 - - [12/Feb/2020 18:58:47] "GET /health HTTP/1.1" 200 -
#bug
Hi @bharath0208 - is it possible that you're using the old contrib/docker/ system? We have recently updated the docker-compose setup. In the new version, POSTGRES_HOST is no longer referenced. Would you mind sharing the SHA of the commit you are trying to build? That would give me the context to help further.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.