I try to install umap on an alwaysdata server. I follow this tutorial : https://umap-project.readthedocs.io/en/latest/install/ At the migrate step
i have this error:
This is my local.py (i have try lot of things for the host:
The alwaysdata team haven't find a solution for my problem. https://forum.alwaysdata.com/viewtopic.php?id=4763 Have you any idea? Thanks a lot. asked 04 Apr '17, 10:37 Suryavarman aseerel4c26 ♦ |
The last three lines of the error message are pretty clear, aren' they? It's expecting to connect to Postgres via a named pipe at /var/run/postgresql/.s.PGSQL.5432, but that file doesn't exist. Does anything named similarly exist in /var/run/postgresql/? Can you see the server running when you type "ps aux | grep postgres"? It looks like umap (which I don't have a clue about, sorry) is actually supposed to use an IP socket to connect but somehow the database adapter is forced to only try the Unix socket. Maybe psycopg2 has some kind of config file? answered 05 Apr '17, 15:22 mbethke |
Thanks a lot for your answer. I'm sorry for the delay. The folder /var/run/postgresql/ doesn't exist. "ps aux | grep postgres" return nothing I haven't find any psycopg2 config file.
From psycopg2/__init_.py
def connect(dsn=None, the inputs values are: user : None password : None database : **** # not the good one host : None I have force the values inside this init.py file: The output error is : django.db.utils.OperationalError: could not translate host name "postgresql−****.alwaysdata.net" to address: Name or service not known answered 21 Apr '17, 15:14 Suryavarman 1
meta: please login and then use the "add new comment" button below mbethke's answer if you are commenting on it. Afterwards please delete this "answer".
(22 Apr '17, 02:38)
aseerel4c26 ♦
|
always data have solve my last bug: postgresql−*.alwaysdata.net has to be ( "−" -> "-" ) postgresql-*.alwaysdata.net answered 22 Apr '17, 10:21 Suryavarman |