Sunday, August 30, 2020

Re: ConnectionResetError: [Errno 104] Connection reset by peer

What deployment are you using ?
 

Garrett <gdowdy3@gmail.com> 于2020年8月31日周一 上午9:16写道:
Hello Django community,

I'm new to Django, and I recently set up an experimental website using AWS's Lightsail service.  I've got the website working in the sense that I can access it from any computer with an internet connection, and the various pages are functioning as designed.  However, when I check Django's log, I notice that there is one particular error message which appears multiple times:

----------------------------------------
Exception happened during processing of request from ('<IP ADDRESS>', <5-digit number>)
Traceback (most recent call last):
  File "/opt/bitnami/python/lib/python3.7/socketserver.py", line 650, in process_request_thread
    self.finish_request(request, client_address)
  File "/opt/bitnami/python/lib/python3.7/socketserver.py", line 360, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/opt/bitnami/python/lib/python3.7/socketserver.py", line 720, in __init__
    self.handle()
  File "/opt/bitnami/apps/django/lib/python3.7/site-packages/Django-2.2.9-py3.7.egg/django/core/servers/basehttp.py", line 169, in handle
    self.handle_one_request()
  File "/opt/bitnami/apps/django/lib/python3.7/site-packages/Django-2.2.9-py3.7.egg/django/core/servers/basehttp.py", line 179, in handle_one_request
    self.raw_requestline = self.rfile.readline(65537)
  File "/opt/bitnami/python/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer
----------------------------------------

The <IP ADDRESS> and <5-digit number> are different in each instance of this error, but the rest of the message is apparently constant.

Unfortunately, I don't know how to produce the error, as I've never caused it myself.  The error is apparently caused by hackers/bots attempting to break the website, given that it appears in the context of other malicious-looking entries in the log.  

I'm concerned that this error message may indicate a security vulnerability in my website.  Can anyone explain to me what it means?

Garrett

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7aca60b9-4ec0-4696-8500-4ccaddba94fbo%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAE1PWwNePQMVEyr8FZyOORHMpdf2_ycqcC0Fz3aTaV6%2Bv3X2g%40mail.gmail.com.

No comments:

Post a Comment