health-es
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health-es] instalacion - no password supplied


From: Claudio Prados
Subject: [Health-es] instalacion - no password supplied
Date: Mon, 20 Jan 2020 12:11:46 -0300

Hola.
Buen año.
Nuevamente intentando instalar un servidor de gnuhealth.

gnuhealth@rene:~/gnuhealth/tryton/server/trytond-5.0.17/bin $ python3 ./trytond-admin --all --database=health
Traceback (most recent call last):
  File "./trytond-admin", line 21, in <module>
    admin.run(options)
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.17/trytond/admin.py", line 25, in run
    with Transaction().start(db_name, 0, _nocache=True):
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.17/trytond/transaction.py", line 93, in start
    database = Database(database_name).connect()
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-5.0.17/trytond/backend/postgresql/database.py", line 125, in __new__
    **cls._connection_params(name))
  File "/home/gnuhealth/.local/lib/python3.7/site-packages/psycopg2/pool.py", line 161, in __init__
    self, minconn, maxconn, *args, **kwargs)
  File "/home/gnuhealth/.local/lib/python3.7/site-packages/psycopg2/pool.py", line 58, in __init__
    self._connect()
  File "/home/gnuhealth/.local/lib/python3.7/site-packages/psycopg2/pool.py", line 62, in _connect
    conn = psycopg2.connect(*self._args, **self._kwargs)
  File "/home/gnuhealth/.local/lib/python3.7/site-packages/psycopg2/__init__.py", line 126, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: fe_sendauth: no password supplied

Busque una respuesta anterior en el grupo y modifique con el usuario postgres;
vi /etc/postgresql/11/main/pg_hba.conf

quedo del siguiente modo:
# Database administrative login by Unix domain socket
local   all             postgres                                peer

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                    trust
# IPv4 local connections:
host    all             all             127.0.0.1/32           trust
# IPv6 local connections:python --version
host    all             all             ::1/128                 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     peer
host    replication     all             127.0.0.1/32            md5


Estas son mis versiones:
root@rene:~# cat /etc/*relea*
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

postgres@rene:~$ psql --version
psql (PostgreSQL) 11.5 (Debian 11.5-1+deb10u1)
postgres@rene:~$

root@rene:~# python --version
Python 2.7.16

Es correcto el formato de pg_hba.conf?

Saludos y gracias

reply via email to

[Prev in Thread] Current Thread [Next in Thread]