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 2019/09/17 10:58:52 UTC

[GitHub] [incubator-superset] Gowtham029 opened a new issue #8235: ERROR: {"error": "Connection failed!\n\nThe error message returned was:\n(psycopg2.OperationalError) could not translate host name \"example.com\" to address: Name or service not known\n (Background on this error at: http://sqlalche.me/e/e3q8)"}

Gowtham029 opened a new issue #8235: ERROR: {"error": "Connection failed!\n\nThe error message returned was:\n(psycopg2.OperationalError) could not translate host name \"example.com\" to address: Name or service not known\n (Background on this error at: http://sqlalche.me/e/e3q8)"}
URL: https://github.com/apache/incubator-superset/issues/8235
 
 
   Hi All,
   I have been trying to connect to postgres, but I am ending up with the error.
   
   
   ````
   ERROR: {"error": "Connection failed!\n\nThe error message returned was:\n(psycopg2.OperationalError) could not translate host name \"example.com\" to address: Name or service not known\n (Background on this error at: http://sqlalche.me/e/e3q8)"}
   ````
   
   ````
   OS : Centos 7
   DB : Postgres 9+
   Name: superset
   Version: 0.28.1
   License: Apache License, Version 2.0
   Location: /home/centos/venv/lib/python3.6/site-packages
   Requires: bleach, boto3, botocore, celery, click, colorama, contextlib2, cryptography, flask, flask-appbuilder, flask-caching, flask-compress, flask-migrate, flask-wtf, flower, future, geopy, gunicorn, humanize, idna, isodate, markdown, pandas, parsedatetime, pathlib2, polyline, pydruid, pyhive, python-dateutil, python-geohash, pyyaml, requests, simplejson, sqlalchemy, sqlalchemy-utils, sqlparse, tableschema, thrift, thrift-sasl, unicodecsv, unidecode
   `````
   
   I have installed the following packages
   ````
   pip install psycopg2
   Version: 2.8.3
   pip install psycopg2-binary
   Version: 2.8.3
   ```` 
   
   DB connection String : 
   1.postgresql://username:password@example.com/test_db
   **The above connection works when I installed superset with Docker.**
   2.postgresql+psycopg2://username:password@example.com/test_db
   
   
   Help me to solve the issue!
   
   Thanks in Advance.
   

----------------------------------------------------------------
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