pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #16664: Problem running django
3+ messages / 3 participants
[nested] [flat]

* BUG #16664: Problem running django
@ 2020-10-09 16:51  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 2 replies; 3+ messages in thread

From: PG Bug reporting form @ 2020-10-09 16:51 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: keanld1@gmail.com

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?



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #16664: Problem running django
@ 2020-10-09 17:04  David G. Johnston <david.g.johnston@gmail.com>
  parent: PG Bug reporting form <noreply@postgresql.org>
  1 sibling, 0 replies; 3+ messages in thread

From: David G. Johnston @ 2020-10-09 17:04 UTC (permalink / raw)
  To: keanld1@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>

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.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #16664: Problem running django
@ 2020-10-09 17:05  Francisco Olarte <folarte@peoplecall.com>
  parent: PG Bug reporting form <noreply@postgresql.org>
  1 sibling, 0 replies; 3+ messages in thread

From: Francisco Olarte @ 2020-10-09 17:05 UTC (permalink / raw)
  To: keanld1@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>

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.





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2020-10-09 17:05 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-10-09 16:51 BUG #16664: Problem running django PG Bug reporting form <noreply@postgresql.org>
2020-10-09 17:04 ` David G. Johnston <david.g.johnston@gmail.com>
2020-10-09 17:05 ` Francisco Olarte <folarte@peoplecall.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox