Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socketserver.py Exception #14

Open
todpole3 opened this issue Feb 4, 2017 · 1 comment
Open

Socketserver.py Exception #14

todpole3 opened this issue Feb 4, 2017 · 1 comment

Comments

@todpole3
Copy link
Member

todpole3 commented Feb 4, 2017

I realized that we sometimes got the following socket exception message throwing in the backend from the python library. However, xterm.js can run normally when this message is thrown.

Does anyone know the cause of this problem?

[04/Feb/2017 09:31:28] "GET /static/js/training.js HTTP/1.1" 200 4017
[04/Feb/2017 09:31:28] "GET /favicon.ico HTTP/1.1" 200 2759
[04/Feb/2017 09:31:31] "GET /v-v-study_session-2-training-task-1 HTTP/1.1" 200 11732
[04/Feb/2017 09:31:31] "GET /static/js/training.js HTTP/1.1" 304 0
[04/Feb/2017 09:31:31] "GET /static/img/user_study.png HTTP/1.1" 200 7008
[04/Feb/2017 09:31:32] "GET /get_additional_task_info HTTP/1.1" 200 7752
----------------------------------------
Exception happened during processing of request from ('10.0.2.2', 49308)
Traceback (most recent call last):
----------------------------------------
Exception happened during processing of request from ('10.0.2.2', 49309)
  File "/usr/local/lib/python3.5/socketserver.py", line 625, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/local/lib/python3.5/socketserver.py", line 354, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/lib/python3.5/socketserver.py", line 681, in __init__
    self.handle()
  File "/usr/local/lib/python3.5/site-packages/django/core/servers/basehttp.py", line 159, in handle
    self.raw_requestline = self.rfile.readline(65537)
  File "/usr/local/lib/python3.5/socket.py", line 575, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer
----------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/socketserver.py", line 625, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/local/lib/python3.5/socketserver.py", line 354, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/lib/python3.5/socketserver.py", line 681, in __init__
    self.handle()
  File "/usr/local/lib/python3.5/site-packages/django/core/servers/basehttp.py", line 159, in handle
    self.raw_requestline = self.rfile.readline(65537)
  File "/usr/local/lib/python3.5/socket.py", line 575, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer
----------------------------------------
[04/Feb/2017 09:34:53] "GET / HTTP/1.1" 200 2759
[04/Feb/2017 09:34:54] "GET / HTTP/1.1" 200 2759
[04/Feb/2017 09:34:57] "GET /user_login?access_code=v-v&check_existing_session=true HTTP/1.1" 200 99
/usr/local/lib/python3.5/site-packages/django/db/models/fields/__init__.py:1430: RuntimeWarning: DateTimeField StudySession.end_time received a naive datetime (1111-11-11 00:00:00) while time zone support is active.
  RuntimeWarning)
[04/Feb/2017 09:34:58] "GET /user_login?access_code=v-v&check_existing_session=false HTTP/1.1" 200 29
[04/Feb/2017 09:34:58] "GET /consent HTTP/1.1" 200 9803
[04/Feb/2017 09:35:00] "GET /consent_signed HTTP/1.1" 200 21
[04/Feb/2017 09:35:00] "GET /instruction HTTP/1.1" 200 11553
[04/Feb/2017 09:35:02] "GET /instruction_read HTTP/1.1" 200 44
mkdir: cannot create directory ‘/v-v-study_session-3-training-task-1’: File exists
20480+0 records in
20480+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.0278905 s, 376 MB/s
/home/ubuntu/v-v-study_session-3-training-task-1.ext4 is mounted; will not make a filesystem here!
mount: /home/ubuntu/v-v-study_session-3-training-task-1.ext4 is already mounted
mkdir: cannot create directory ‘/v-v-study_session-3-training-task-1/home’: File exists
chown: invalid user: ‘vagrant:vagrant’
/usr/local/lib/python3.5/site-packages/django/db/models/fields/__init__.py:1430: RuntimeWarning: DateTimeField TaskSession.end_time received a naive datetime (1111-11-11 00:00:00) while time zone support is active.
  RuntimeWarning)
Task session v-v-study_session-3-training-task-1 created
[04/Feb/2017 09:35:03] "GET /go_to_next_task?reason_for_close= HTTP/1.1" 200 103
[04/Feb/2017 09:35:03] "GET /v-v-study_session-3-training-task-1 HTTP/1.1" 200 11732
[04/Feb/2017 09:35:03] "GET /static/css/task.css HTTP/1.1" 304 0
[04/Feb/2017 09:35:03] "GET /static/js/training.js HTTP/1.1" 304 0
[04/Feb/2017 09:35:03] "GET /static/js/interaction.js HTTP/1.1" 304 0
[04/Feb/2017 09:35:03] "GET /static/js/task.js HTTP/1.1" 304 0
[04/Feb/2017 09:35:03] "GET /get_additional_task_info HTTP/1.1" 200 7752
@kvu787
Copy link
Member

kvu787 commented Feb 4, 2017

Look like it has something to do with an HTTP request.

There's some information on this: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=django+socketserver+connection+reset+by+peer

You may want to investigate what this means: Exception happened during processing of request from ('10.0.2.2', 49308)
What is at the address 10.0.2.2:49308?
Also: is it an outgoing to incoming request that is failing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants