Hi,
I would like to understand why docker reternal-c2 stop running.
What's wrong with redis ?
There is a copy of command docker logs reternal-c2, then it's a copy of docker logs reternal-socketio.
Moreover, when I restart all containers, reternal-proxy crash .. don't know why...
Thank you !
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2463, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask_restful/__init__.py", line 269, in error_router
return original_handler(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 38, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask_restful/__init__.py", line 269, in error_router
return original_handler(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 38, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python3.6/site-packages/flask_restful/__init__.py", line 458, in wrapper
resp = resource(*args, **kwargs)
File "/reternal-c2/app/api_pulse.py", line 22, in decorated_function
return f(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/flask/views.py", line 89, in view
return self.dispatch_request(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/flask_restful/__init__.py", line 573, in dispatch_request
resp = meth(*args, **kwargs)
File "/reternal-c2/app/api_pulse.py", line 42, in post
result = get_tasks.get()
File "/usr/local/lib/python3.6/site-packages/celery/result.py", line 226, in get
on_message=on_message,
File "/usr/local/lib/python3.6/site-packages/celery/backends/asynchronous.py", line 188, in wait_for_pending
for _ in self._wait_for_pending(result, **kwargs):
File "/usr/local/lib/python3.6/site-packages/celery/backends/asynchronous.py", line 255, in _wait_for_pending
on_interval=on_interval):
File "/usr/local/lib/python3.6/site-packages/celery/backends/asynchronous.py", line 56, in drain_events_until
yield self.wait_for(p, wait, timeout=1)
File "/usr/local/lib/python3.6/site-packages/celery/backends/asynchronous.py", line 65, in wait_for
wait(timeout=timeout)
File "/usr/local/lib/python3.6/site-packages/celery/backends/redis.py", line 127, in drain_events
message = self._pubsub.get_message(timeout=timeout)
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 3283, in get_message
response = self.parse_response(block=False, timeout=timeout)
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 3169, in parse_response
if not block and not conn.can_read(timeout=timeout):
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 682, in can_read
return self._parser.can_read(timeout)
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 295, in can_read
return self._buffer and self._buffer.can_read(timeout)
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 205, in can_read
raise_on_timeout=False)
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 200, in _read_from_socket
sock.settimeout(self.socket_timeout)
OSError: [Errno 9] Bad file descriptor
172.31.0.8 - - [07/Aug/2019 13:05:19] "POST /api/v1/ping HTTP/1.1" 500 -
172.31.0.8 - - [07/Aug/2019 13:05:26] "POST /api/v1/ping HTTP/1.1" 404 -
172.31.0.8 - - [07/Aug/2019 13:05:26] "POST /api/v1/ping HTTP/1.1" 404 -
172.31.0.8 - - [07/Aug/2019 13:05:26] "POST /api/v1/ping HTTP/1.1" 404 -
172.31.0.8 - - [07/Aug/2019 13:05:27] "POST /api/v1/ping HTTP/1.1" 404 -
172.31.0.8 - - [07/Aug/2019 13:05:27] "POST /api/v1/ping HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2463, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask_restful/__init__.py", line 269, in error_router
return original_handler(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 38, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask_restful/__init__.py", line 269, in error_router
return original_handler(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 38, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python3.6/site-packages/flask_restful/__init__.py", line 458, in wrapper
resp = resource(*args, **kwargs)
File "/reternal-c2/app/api_pulse.py", line 22, in decorated_function
return f(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/flask/views.py", line 89, in view
return self.dispatch_request(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/flask_restful/__init__.py", line 573, in dispatch_request
resp = meth(*args, **kwargs)
File "/reternal-c2/app/api_pulse.py", line 42, in post
result = get_tasks.get()
File "/usr/local/lib/python3.6/site-packages/celery/result.py", line 226, in get
on_message=on_message,
File "/usr/local/lib/python3.6/site-packages/celery/backends/asynchronous.py", line 188, in wait_for_pending
for _ in self._wait_for_pending(result, **kwargs):
File "/usr/local/lib/python3.6/site-packages/celery/backends/asynchronous.py", line 255, in _wait_for_pending
on_interval=on_interval):
File "/usr/local/lib/python3.6/site-packages/celery/backends/asynchronous.py", line 56, in drain_events_until
yield self.wait_for(p, wait, timeout=1)
File "/usr/local/lib/python3.6/site-packages/celery/backends/asynchronous.py", line 65, in wait_for
wait(timeout=timeout)
File "/usr/local/lib/python3.6/site-packages/celery/backends/redis.py", line 127, in drain_events
message = self._pubsub.get_message(timeout=timeout)
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 3283, in get_message
response = self.parse_response(block=False, timeout=timeout)
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 3171, in parse_response
response = self._execute(conn, conn.read_response)
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 3145, in _execute
return command(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 687, in read_response
response = self._parser.read_response()
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 298, in read_response
response = self._buffer.readline()
AttributeError: 'NoneType' object has no attribute 'readline'
172.31.0.8 - - [07/Aug/2019 13:05:28] "POST /api/v1/ping HTTP/1.1" 500 -
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2463, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2449, in wsgi_app
response = self.handle_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask_restful/__init__.py", line 269, in error_router
return original_handler(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1866, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 38, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.6/site-packages/flask_restful/__init__.py", line 269, in error_router
return original_handler(e)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/flask/_compat.py", line 38, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/usr/local/lib/python3.6/site-packages/flask_restful/__init__.py", line 458, in wrapper
resp = resource(*args, **kwargs)
File "/reternal-c2/app/api_pulse.py", line 22, in decorated_function
return f(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/flask/views.py", line 89, in view
return self.dispatch_request(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/flask_restful/__init__.py", line 573, in dispatch_request
resp = meth(*args, **kwargs)
File "/reternal-c2/app/api_pulse.py", line 42, in post
result = get_tasks.get()
File "/usr/local/lib/python3.6/site-packages/celery/result.py", line 226, in get
on_message=on_message,
File "/usr/local/lib/python3.6/site-packages/celery/backends/asynchronous.py", line 188, in wait_for_pending
for _ in self._wait_for_pending(result, **kwargs):
File "/usr/local/lib/python3.6/site-packages/celery/backends/asynchronous.py", line 255, in _wait_for_pending
on_interval=on_interval):
File "/usr/local/lib/python3.6/site-packages/celery/backends/asynchronous.py", line 56, in drain_events_until
yield self.wait_for(p, wait, timeout=1)
File "/usr/local/lib/python3.6/site-packages/celery/backends/asynchronous.py", line 65, in wait_for
wait(timeout=timeout)
File "/usr/local/lib/python3.6/site-packages/celery/backends/redis.py", line 127, in drain_events
message = self._pubsub.get_message(timeout=timeout)
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 3283, in get_message
response = self.parse_response(block=False, timeout=timeout)
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 3171, in parse_response
response = self._execute(conn, conn.read_response)
File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 3145, in _execute
return command(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 687, in read_response
response = self._parser.read_response()
File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 306, in read_response
(str(byte), str(response)))
redis.exceptions.InvalidResponse: Protocol Error: 7, b''
172.31.0.8 - - [07/Aug/2019 13:05:28] "POST /api/v1/ping HTTP/1.1" 404 -
172.31.0.8 - - [07/Aug/2019 13:05:28] "POST /api/v1/ping HTTP/1.1" 404 -
172.31.0.8 - - [07/Aug/2019 13:05:30] "POST /api/v1/ping HTTP/1.1" 404 -
[2019-08-14 13:39:03,701: ERROR/ForkPoolWorker-1] Task api.result[79c8420d-1646-4338-86e4-275667ceb2f5] raised unexpected: AttributeError("'NoneType' object has no attribute 'decode'",)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 385, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 648, in __protected_call__
return self.run(*args, **kwargs)
File "/reternal-backend/app/tasks/listener.py", line 11, in emit_result
task_identity = rsession.get(task_key).decode('utf-8')
AttributeError: 'NoneType' object has no attribute 'decode'
Hi, I would like to understand why docker reternal-c2 stop running. What's wrong with redis ?
There is a copy of command docker logs reternal-c2, then it's a copy of docker logs reternal-socketio.
Moreover, when I restart all containers, reternal-proxy crash .. don't know why...
Thank you !