psycopg2.OperationalError: fe_sendauth: no password supplied

Hello, I am trying to execute a similar command but it asks me for a password.

In which file should it be supplied?

Traceback (most recent call last):
  File "/usr/local/bin/trytond-console", line 22, in <module>
  File "/usr/local/lib/python3.7/dist-packages/trytond/", line 45, in run
    with Transaction().start(db_name, 0, readonly=True):
  File "/usr/local/lib/python3.7/dist-packages/trytond/", line 107, in start
    database = backend.Database(database_name).connect()
  File "/usr/local/lib/python3.7/dist-packages/trytond/backend/postgresql/", line 232, in __new__
  File "/usr/lib/python3/dist-packages/psycopg2/", line 161, in __init__
    self, minconn, maxconn, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/psycopg2/", line 58, in __init__
  File "/usr/lib/python3/dist-packages/psycopg2/", line 62, in _connect
    conn = psycopg2.connect(*self._args, **self._kwargs)
  File "/usr/lib/python3/dist-packages/psycopg2/", line 130, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: fe_sendauth: no password supplied

You need to supply the password as described in trytond configuration.

You can either create a configuration file which supplies the password, or you can pass it through an environment variable, ex. TRYTOND_DATABASE__URI.

The simplest is probably to use the config file, with trytond-console -c trytond.conf -d databasename.