You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/02/10 22:45:41 UTC
[GitHub] [incubator-superset] bharath0208 opened a new issue #9113: The
environment variable POSTGRES_HOST was missing !!!
bharath0208 opened a new issue #9113: The environment variable POSTGRES_HOST was missing !!!
URL: https://github.com/apache/incubator-superset/issues/9113
Unable to get login web page when using docker-compose up.
<img width="718" alt="Screen Shot 2020-02-10 at 5 44 04 PM" src="https://user-images.githubusercontent.com/44377322/74197260-20750280-4c2d-11ea-9b60-505333fa273d.png">
OSError: [The environment variable POSTGRES_HOST was missing,]([url](url)) 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 <module>
superset_1 | from superset_config import * # pylint: disable=import-error,wildcard-import,unused-wildcard-import
superset_1 | File "/app/pythonpath/superset_config.py", line 61, in <module>
superset_1 | POSTGRES_HOST = get_env_variable("POSTGRES_HOST")
superset_1 | File "/app/pythonpath/superset_config.py", line 56, in get_env_variable
superset_1 | raise EnvironmentError(error_msg)
superset_1 | OSError: The environment variable POSTGRES_HOST was missing, abort...
superset_1 | ERROR:superset.app:Failed to create app
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-worker_1 | ERROR:root:Found but failed to import local superset_config
superset-worker_1 | Traceback (most recent call last):
superset-worker_1 | File "/app/pythonpath/superset_config.py", line 48, in get_env_variable
superset-worker_1 | return os.environ[var_name]
superset-worker_1 | File "/usr/local/lib/python3.6/os.py", line 669, in __getitem__
superset-worker_1 | raise KeyError(key) from None
superset-worker_1 | KeyError: 'POSTGRES_HOST'
superset-worker_1 |
superset-worker_1 | During handling of the above exception, another exception occurred:
superset-worker_1 |
superset-worker_1 | Traceback (most recent call last):
superset-worker_1 | File "/app/superset/config.py", line 758, in <module>
superset-worker_1 | from superset_config import * # pylint: disable=import-error,wildcard-import,unused-wildcard-import
superset-worker_1 | File "/app/pythonpath/superset_config.py", line 61, in <module>
superset-worker_1 | POSTGRES_HOST = get_env_variable("POSTGRES_HOST")
superset-worker_1 | File "/app/pythonpath/superset_config.py", line 56, in get_env_variable
superset-worker_1 | raise EnvironmentError(error_msg)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] bharath0208 edited a comment on issue #9113:
The environment variable POSTGRES_HOST was missing !!!
Posted by GitBox <gi...@apache.org>.
bharath0208 edited a comment on issue #9113: The environment variable POSTGRES_HOST was missing !!!
URL: https://github.com/apache/incubator-superset/issues/9113#issuecomment-585364396
> @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
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] nytai commented on issue #9113: The
environment variable POSTGRES_HOST was missing !!!
Posted by GitBox <gi...@apache.org>.
nytai commented on issue #9113: The environment variable POSTGRES_HOST was missing !!!
URL: https://github.com/apache/incubator-superset/issues/9113#issuecomment-584400863
@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
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] willbarrett commented on issue #9113: The
environment variable POSTGRES_HOST was missing !!!
Posted by GitBox <gi...@apache.org>.
willbarrett commented on issue #9113: The environment variable POSTGRES_HOST was missing !!!
URL: https://github.com/apache/incubator-superset/issues/9113#issuecomment-596794397
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 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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] bharath0208 commented on issue #9113: The
environment variable POSTGRES_HOST was missing !!!
Posted by GitBox <gi...@apache.org>.
bharath0208 commented on issue #9113: The environment variable POSTGRES_HOST was missing !!!
URL: https://github.com/apache/incubator-superset/issues/9113#issuecomment-584474305
@nytai i tried running --build command but still getting the same error. I have cleared all docker images and running containers as well.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] bharath0208 commented on issue #9113: The
environment variable POSTGRES_HOST was missing !!!
Posted by GitBox <gi...@apache.org>.
bharath0208 commented on issue #9113: The environment variable POSTGRES_HOST was missing !!!
URL: https://github.com/apache/incubator-superset/issues/9113#issuecomment-585364302
@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
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] bharath0208 commented on issue #9113: The
environment variable POSTGRES_HOST was missing !!!
Posted by GitBox <gi...@apache.org>.
bharath0208 commented on issue #9113: The environment variable POSTGRES_HOST was missing !!!
URL: https://github.com/apache/incubator-superset/issues/9113#issuecomment-585364396
> @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
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] stale[bot] closed issue #9113: The environment variable POSTGRES_HOST was missing !!!
Posted by GitBox <gi...@apache.org>.
stale[bot] closed issue #9113:
URL: https://github.com/apache/incubator-superset/issues/9113
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [incubator-superset] stale[bot] commented on issue #9113: The environment variable POSTGRES_HOST was missing !!!
Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #9113:
URL: https://github.com/apache/incubator-superset/issues/9113#issuecomment-626084888
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.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org