Closed Code-Slave closed 3 years ago
Annoying, I thought this was fixed. I'll check it again. Thanks.
I'll close this as a dupe of #135 and re-open that.
I've just disabled the keep-alives for Postgres as it probably doesn't need them. Wait for the image to build then give :latest
a go and see if it's fixed it for you.
that seems to have fixed it Thanks
I just pulled latest docker image and on startup this error pops up. On postgres
Traceback (most recent call last):
File "/app/manage.py", line 18, in
File "/app/manage.py", line 14, in main
File "/usr/local/lib/python3.7/dist-packages/django/core/management/init.py", line 419, in execute_from_command_line
File "/usr/local/lib/python3.7/dist-packages/django/core/management/init.py", line 413, in execute
File "/usr/local/lib/python3.7/dist-packages/django/core/management/base.py", line 354, in run_from_argv
File "/usr/local/lib/python3.7/dist-packages/django/core/management/base.py", line 398, in execute
File "/usr/local/lib/python3.7/dist-packages/background_task/management/commands/process_tasks.py", line 123, in handle
File "/usr/local/lib/python3.7/dist-packages/background_task/management/commands/process_tasks.py", line 105, in run
File "/usr/local/lib/python3.7/dist-packages/background_task/tasks.py", line 137, in run_next_task
File "/usr/local/lib/python3.7/dist-packages/background_task/tasks.py", line 261, in run_next_task
File "/usr/local/lib/python3.7/dist-packages/background_task/tasks.py", line 245, in get_task_to_run
File "/usr/local/lib/python3.7/dist-packages/background_task/models.py", line 57, in find_available
File "/usr/local/lib/python3.7/dist-packages/django/db/models/query.py", line 412, in count
File "/usr/local/lib/python3.7/dist-packages/django/db/models/sql/query.py", line 519, in get_count
File "/usr/local/lib/python3.7/dist-packages/django/db/models/sql/query.py", line 504, in get_aggregation
File "/usr/local/lib/python3.7/dist-packages/django/db/models/sql/compiler.py", line 1173, in execute_sql
File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 26, in inner
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 259, in cursor
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 235, in _cursor
File "/app/tubesync/dbutils.py", line 20, in ensure_connection
File "/usr/local/lib/python3.7/dist-packages/django/utils/asyncio.py", line 26, in inner
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 201, in connect
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/base/base.py", line 415, in set_autocommit
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/postgresql/base.py", line 277, in _set_autocommit
File "/usr/local/lib/python3.7/dist-packages/django/db/utils.py", line 90, in exit
File "/usr/local/lib/python3.7/dist-packages/django/db/backends/postgresql/base.py", line 277, in _set_autocommit
django.db.utils.ProgrammingError: set_session cannot be used inside a transaction