Обсуждение: BUG #16664: Problem running django

Поиск
Список
Период
Сортировка

BUG #16664: Problem running django

От
PG Bug reporting form
Дата:
The following bug has been logged on the website:

Bug reference:      16664
Logged by:          Kean Dumba
Email address:      keanld1@gmail.com
PostgreSQL version: 9.5.0
Operating system:   OS X
Description:

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    main()
  File "manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/core/management/__init__.py",
line 401, in execute_from_command_line
    utility.execute()
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/core/management/__init__.py",
line 395, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/core/management/base.py",
line 330, in run_from_argv
    self.execute(*args, **cmd_options)
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/core/management/base.py",
line 371, in execute
    output = self.handle(*args, **options)
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/core/management/base.py",
line 85, in wrapped
    res = handle_func(*args, **kwargs)
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/core/management/commands/makemigrations.py",
line 101, in handle
    loader.check_consistent_history(connection)
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/db/migrations/loader.py",
line 290, in check_consistent_history
    applied = recorder.applied_migrations()
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/db/migrations/recorder.py",
line 77, in applied_migrations
    if self.has_table():
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/db/migrations/recorder.py",
line 55, in has_table
    with self.connection.cursor() as cursor:
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/utils/asyncio.py",
line 26, in inner
    return func(*args, **kwargs)
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/db/backends/base/base.py",
line 259, in cursor
    return self._cursor()
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/db/backends/base/base.py",
line 235, in _cursor
    self.ensure_connection()
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/utils/asyncio.py",
line 26, in inner
    return func(*args, **kwargs)
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/db/backends/base/base.py",
line 219, in ensure_connection
    self.connect()
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/db/utils.py",
line 90, in __exit__
    raise dj_exc_value.with_traceback(traceback) from exc_value
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/db/backends/base/base.py",
line 219, in ensure_connection
    self.connect()
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/utils/asyncio.py",
line 26, in inner
    return func(*args, **kwargs)
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/db/backends/base/base.py",
line 200, in connect
    self.connection = self.get_new_connection(conn_params)
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/utils/asyncio.py",
line 26, in inner
    return func(*args, **kwargs)
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/django/db/backends/postgresql/base.py",
line 187, in get_new_connection
    connection = Database.connect(**conn_params)
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/psycopg2/__init__.py",
line 127, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: fe_sendauth: no password supplied

Please advise how to resolve?


Re: BUG #16664: Problem running django

От
"David G. Johnston"
Дата:
On Fri, Oct 9, 2020 at 9:55 AM PG Bug reporting form <noreply@postgresql.org> wrote:
The following bug has been logged on the website:

Bug reference:      16664
Logged by:          Kean Dumba
Email address:      keanld1@gmail.com
PostgreSQL version: 9.5.0

You really need to upgrade.
 
  File
"/Volumes/Projects/project/venv/lib/python3.8/site-packages/psycopg2/__init__.py",
line 127, in connect
    conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: fe_sendauth: no password supplied

Please advise how to resolve?

Supply a password...

This doesn't fall under the category of "bug"; further help on using PostgreSQL from django should be requested via the -general list, not via a bug report.

Thanks!

David J.

Re: BUG #16664: Problem running django

От
Francisco Olarte
Дата:
On Fri, Oct 9, 2020 at 6:55 PM PG Bug reporting form
<noreply@postgresql.org> wrote:
.. very long and seemingly already truncated django/python exception
trace snipped...
>     conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
> django.db.utils.OperationalError: fe_sendauth: no password supplied
> Please advise how to resolve?

Supply a password?

This does not seem like a Pg bug, but a django misconfiguration. Maybe
some django expert is lurking here and can solve it, but it seems like
you have somehow configured django without supplying a password for
the database.


Francisco Olarte.