Postgres Error Odoo Start 5432?

Odoo Database

Probuse Admin

Error:

File "/usr/share/pyshared/openerp/sql_db.py", line 502, in borrow    result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)  File "

/usr/share/pyshared/psycopg2/__init__.py", line 179

, in connect    connection_factory=connection_factory, async=async)

OperationalError:

 could not connect to server: No such file or directory        Is the server running locally and accepting        connections on Unix domain socket "

/var/run/postgresql/.s.PGSQL.5432

"?

Solution:

sudo /etc/init.d/postgresql start

OR

sudo locale-gen "en_US.UTF-8"

sudo locale-gen "es_CO.UTF-8"

sudo dpkg-reconfigure locales

sudo service postgresql restart

sudo service odoo restart


Ref: https://www.odoo.com/forum/help-1/question/postgres-psycopg2-unix-socket-problemito-52426