Originally had the Docker 2.x version which is now upgraded to the Docker 3.x. The application which was initialised earlier with docker had ken the postgres db on the
Tie_ui | File "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 213, in ensure_connection
tie_ui | self.connect()
tie_ui | File "/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py", line 189, in connect
tie_ui | self.connection = self.get_new_connection(conn_params)
tie_ui | File "/usr/local/lib/python2.7/site-packages/django/db/backends/postgresql/base.py", line 176, in get_new_connection
tie_ui | connection = Database.connect(**conn_params)
tie_ui | File "/usr/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 126, in connect
tie_ui | conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
tie_ui | django.db.utils.OperationalError: fe_sendauth: no password supplied
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'project_name',
'USER': 'admin',
'PASSWORD': '<YOUR PASSWORD HERE...>',
'HOST': 'localhost',
'PORT': '5432',
}
}
References:
https://stackoverflow.com/questions/60368999/why-wont-my-docker-postgresql-container-run-anymore
No comments:
Post a Comment