Open ezio-melotti opened 5 years ago
This is another error that might be related. There seem to be lot of people connected and some simulations are running fine, but there are timeout errors here and there:
flask-app_1 | 2019-11-25T17:41:25.721774274Z Traceback (most recent call last):
flask-app_1 | 2019-11-25T17:41:25.721821537Z File "/usr/local/lib/python3.6/dist-packages/celery/backends/asynchronous.py", line 255, in _wait_for_pending
flask-app_1 | 2019-11-25T17:41:25.721870616Z on_interval=on_interval):
flask-app_1 | 2019-11-25T17:41:25.721897075Z File "/usr/local/lib/python3.6/dist-packages/celery/backends/asynchronous.py", line 54, in drain_events_until
flask-app_1 | 2019-11-25T17:41:25.721921475Z raise socket.timeout()
flask-app_1 | 2019-11-25T17:41:25.721958594Z socket.timeout
flask-app_1 | 2019-11-25T17:41:25.722003457Z
flask-app_1 | 2019-11-25T17:41:25.722237255Z During handling of the above exception, another exception occurred:
flask-app_1 | 2019-11-25T17:41:25.722323143Z
flask-app_1 | 2019-11-25T17:41:25.722376041Z Traceback (most recent call last):
flask-app_1 | 2019-11-25T17:41:25.722425474Z File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1949, in full_dispatch_request
flask-app_1 | 2019-11-25T17:41:25.722477450Z rv = self.dispatch_request()
flask-app_1 | 2019-11-25T17:41:25.722530095Z File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1935, in dispatch_request
flask-app_1 | 2019-11-25T17:41:25.722581243Z return self.view_functions[rule.endpoint](**req.view_args)
flask-app_1 | 2019-11-25T17:41:25.722635937Z File "/usr/local/lib/python3.6/dist-packages/flask_login/utils.py", line 261, in decorated_view
flask-app_1 | 2019-11-25T17:41:25.722687704Z return func(*args, **kwargs)
flask-app_1 | 2019-11-25T17:41:25.722740441Z File "/simoc/simoc_server/views.py", line 119, in new_game
flask-app_1 | 2019-11-25T17:41:25.722791197Z result = tasks.new_game.delay(get_standard_user_obj().username, game_config).get(timeout=60)
flask-app_1 | 2019-11-25T17:41:25.722867714Z File "/usr/local/lib/python3.6/dist-packages/celery/result.py", line 226, in get
flask-app_1 | 2019-11-25T17:41:25.723017467Z on_message=on_message,
flask-app_1 | 2019-11-25T17:41:25.723103259Z File "/usr/local/lib/python3.6/dist-packages/celery/backends/asynchronous.py", line 188, in wait_for_pending
flask-app_1 | 2019-11-25T17:41:25.723204659Z for _ in self._wait_for_pending(result, **kwargs):
flask-app_1 | 2019-11-25T17:41:25.723436232Z File "/usr/local/lib/python3.6/dist-packages/celery/backends/asynchronous.py", line 259, in _wait_for_pending
flask-app_1 | 2019-11-25T17:41:25.723490403Z raise TimeoutError('The operation timed out.')
flask-app_1 | 2019-11-25T17:41:25.723551548Z celery.exceptions.TimeoutError: The operation timed out.
flask-app_1 | 2019-11-25T17:41:25.723604063Z [2019-11-25 17:41:25 +0000] [10] [ERROR] ERROR: handling exception The operation timed out.
flask-app_1 | 2019-11-25T17:41:25.724770019Z [2019-11-25 17:41:25 +0000] [10] [DEBUG] Closing connection.
When I tried to start a new simulation I got the same error reported in #88, even after logging off and logging in again.
A teacher reported some issues and when I went looking at the logs I found this: