Error Decryption Failed Or Bad Record Mac
Contents |
Sign in Pricing Blog Support Search GitHub This repository Watch
Openssl Decryption Failed Or Bad Record Mac
25 Star 525 Fork 122 ui/django-rq Code Issues 22 get_record decryption failed or bad record mac Pull requests 4 Projects 0 Pulse Graphs New issue OperationalError: SSL error: decryption
Ssl3 Get Record Decryption Failed
failed or bad record mac #123 Closed darkpixel opened this Issue Aug 30, 2015 · 16 comments Projects None yet Labels None ssl_read decryption failed or bad record mac yet Milestone No milestone Assignees No one assigned 6 participants darkpixel commented Aug 30, 2015 Not sure if this is a django-rq issue or python-rq, so I figured I'd start here... My application was working perfectly under Django 1.7.x. I updated to Django 1.8.x sqlalchemy decryption failed or bad record mac and my workers blew up. WARNING 11:29:35 worker 16516 140021590959936 Moving job to u'failed' queue WARNING 2015-08-30 11:29:35,394 worker 16516 140021590959936 Moving job to u'failed' queue ERROR 11:29:35 worker 16518 140021590959936 OperationalError: SSL error: decryption failed or bad record mac Traceback (most recent call last): File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-packages/rq/worker.py", line 568, in perform_job rv = job.perform() File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-packages/rq/job.py", line 495, in perform self._result = self.func(*self.args, **self.kwargs) File "/tank/code/uitintranet/intranet/tasks.py", line 131, in backup_router router = Router.objects.get(pk=router_pk) File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-packages/django/db/models/manager.py", line 127, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-packages/django/db/models/query.py", line 328, in get num = len(clone) File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-packages/django/db/models/query.py", line 144, in __len__ self._fetch_all() File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-packages/django/db/models/query.py", line 965, in _fetch_all self._result_cache = list(self.iterator()) File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-packages/django/db/models/query.py", line 238, in iterator results = compiler.execute_sql() File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 840, in execute_sql cursor.execute(sql, params) File "/home/aaron/.virtualenvs/uitintranet/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute return super(CursorDebugWrapper, self).execute(sql, params)
Sign in Pricing Blog Support Search GitHub This repository Watch 929 Star 21,243 Fork 3,776 kennethreitz/requests Code Issues 285 Pull requests 17 Projects 0
Ssl Decryption Failure
Wiki Pulse Graphs New issue OpenSSL.SSL.Error: [('SSL routines', 'SSL3_GET_RECORD', 'decryption failed ssl3_get_record:decryption failed or bad record mac or bad record mac')] #1906 Closed ssbarnea opened this Issue Feb 7, 2014 · 46 comments Projects None
Ssl Error: Decryption Failed Or Bad Record Mac
yet Labels Needs Info Propose Close Milestone No milestone Assignees No one assigned 10 participants ssbarnea commented Feb 7, 2014 It seems that latest requests (2.2.1) is https://github.com/ui/django-rq/issues/123 also affected by bug: OpenSSL.SSL.Error: [('SSL routines', 'SSL3_GET_RECORD', 'decryption failed or bad record mac')] It seems to be an workaround here http://stackoverflow.com/questions/21497591/urllib2-reading-https-url-failure but I don't know how to apply it to requests. Collaborator Lukasa commented Feb 7, 2014 Thanks for this! Yeah, this isn't really a request bug, as the SO question highlights: it's a Debian or OpenSSL bug. With https://github.com/kennethreitz/requests/issues/1906 that said, a possible workaround would be an extension of the transport adapter demonstrated on my blog, here: https://lukasa.co.uk/2013/01/Choosing_SSL_Version_In_Requests/ ssbarnea commented Feb 7, 2014 It's a real problem and I do not have the confirmation that the workaround works. What is even more awkward is that my automation script that used to query a server every hour for few hundred requests started to fail suddenly, even without me changing anything on the machine. I guess they may have changed the configuration of the web server. Still, still problems occurs on latest distro of Ubuntu, with all patches and the last version of OpenSSL is one year old. We need to implement an workaround for this. Also, I tried the workaround specified on OpenSSL forums but it doesn't work, I will try your approach and see. Collaborator Lukasa commented Feb 7, 2014 I agree that it's a real problem. I do not necessarily agree that Requests needs a workaround for every bug in any of our dependencies. What is not clear to me at this time is how
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions http://askubuntu.com/questions/654904/ssl3-get-recorddecryption-failed-or-bad-record-mac you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. decryption failed Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top SSL3_GET_RECORD:decryption failed or bad record mac up vote 1 down vote favorite On my up-to-date 15.04 VV Ubuntu boxes, I tried to download decryption failed or some VMs. wget -c https://az412801.vo.msecnd.net/vhd/VMBuild_20141027/VirtualBox/IE8/Linux/IE8.Win7.For.Linux.VirtualBox.zip --2015-07-31 09:43:28-- https://az412801.vo.msecnd.net/vhd/VMBuild_20141027/VirtualBox/IE8/Linux/IE8.Win7.For.Linux.VirtualBox.zip Resolving az412801.vo.msecnd.net (az412801.vo.msecnd.net)... 192.229.145.200, 2606:2800:10c:249:f81:1c8d:1178:1364 Connecting to az412801.vo.msecnd.net (az412801.vo.msecnd.net)|192.229.145.200|:443... connected. HTTP request sent, awaiting response... 206 Partial Content Length: 3985616237 (3.7G), 3971559386 (3.7G) remaining [application/x-zip-compressed] Saving to: 'IE8.Win7.For.Linux.VirtualBox.zip’ IE8.Win7.For.Linux. 0%[ ] 14.03M 1.29MB/s in 0.5s 2015-07-31 09:43:29 (1.29 MB/s) - Read error at byte 14712199/3985616237 (error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac). Retrying. I also tried without the '-c' (continue) option, but it gets the same error. In desperation, I've even tried downgrading the SSL security: $wget -c --secure-protocol=SSLv2 https://az412801.vo.msecnd.net/vhd/VMBuild_20141027/VirtualBox/IE8/Linux/IE8.Win7.For.Linux.VirtualBox.zip --2015-07-31 12:52:17-- https://az412801.vo.msecnd.net/vhd/VMBuild_20141027/VirtualBox/IE8/Linux/IE8.Win7.For.Linux.VirtualBox.zip OpenSSL: unimplemented 'secure-protocol' option value 1 Please report this issue to bug-wget@gnu.org Aborted (core dumped) I've used wget to download from this site before. It only seems to be happening on this website. Attempts to download from other SSL-enabled sites work. Tried different machines, tried mainline kernel, same behaviour. Is this the first problem a bug in wget, Ubuntu's SSL library, or the server's SSL library and how does one get arou