SSL errors after upgrading to qcluster version 1.1.0
See original GitHub issueHi,
Is anyone else having SSL Errors when using the new version (1.1.0)? I tried upgrading it in production, but started to get “django.db.utils.OperationalError: SSL error: decryption failed or bad record mac” whenever django ORM’s performs a query from within a django-q task (traceback below).
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/django_q/cluster.py", line 379, in worker
res = f(*task['args'], **task['kwargs'])
File "/home/docker/src/tasks.py", line 8, in wake_up_driver_app
for company in Company.objects.all():
File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 274, in __iter__
self._fetch_all()
File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 1242, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/usr/local/lib/python3.7/site-packages/django/db/models/query.py", line 55, in __iter__
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
File "/usr/local/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1133, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python3.7/site-packages/sentry_sdk/integrations/django/__init__.py", line 446, in execute
return real_execute(self, sql, params)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 67, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 89, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/usr/local/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
django.db.utils.OperationalError: SSL error: decryption failed or bad record mac
Configuration:
- broker: AWS SQS
- database: AWS RDS Postgres 11.5
- Django version: 2.2.10
- Qcluster version: 1.1.0
I found an old similar issue: https://github.com/Koed00/django-q/issues/79 but it seems to have been solved.
Does anyone have a clue on how to investigate this issue? For now I’m keeping the previous version (1.0.2) that doesn’t have those issues but I need some of the fixes that are part of 1.1.0 release.
Thanks in advance!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (2 by maintainers)
Top Results From Across the Web
django-q - Bountysource
Hi,. Is anyone else having SSL Errors when using the new version (1.1.0)? I tried upgrading it in production, but started to get...
Read more >Troubleshooting SSL related issues (Server Certificate)
The "Enabled" DWORD should be set to "1". If "0" then the protocol is disabled. For example, SSL 2.0 is disabled by default....
Read more >Certificate error after upgrade to 20.04 - Ask Ubuntu
I found a solution, according to the accepted answer of this question: Ubuntu 20.04 - how to set lower SSL security level?
Read more >'SSLError' installing with pip - python - Stack Overflow
6) until I upgraded pip from version 20.2.1 to 20.3.1, after which I also got the error: SSL: WRONG_VERSION_NUMBER error. This is reproducible....
Read more >cURL error 60: unable to install Astra Pro plugin
We recommend to update it to atleast Open SSL version 1.1.0 to get the best results.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I had the same issue
psycopg2.OperationalError: SSL error: decryption failed or bad record mac
I was getting the same errors as OP, but thanks to the fix of @cveilleux and @KonstantinSchubert I have create a PR for @Koed00