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

AssertionError when stopping a scene after unsuccessful start #808

Open
ZdenekM opened this issue Feb 20, 2023 · 0 comments
Open

AssertionError when stopping a scene after unsuccessful start #808

ZdenekM opened this issue Feb 20, 2023 · 0 comments
Labels
arcor2_arserver bug Something isn't working

Comments

@ZdenekM
Copy link
Member

ZdenekM commented Feb 20, 2023

AssertionError when stopping a scene after unsuccesful start.

tio-arcor-arserver       | 2023-02-20 13:25:07 INFO     Starting the scene_PCB scene.
tio-robot-system-webapi  | LOGGER ERROR MESSAGE: File with configuration does not exists: logger.config - applying default rule
tio-arcor-arserver       | 2023-02-20 13:25:14 WARNING  Failed to get camera pose. arcor2_calibration (NotFound): No marker detected.

tio-arcor-arserver       | 2023-02-20 13:25:27 ERROR    Failed to start the scene. Catastrophic system error.
tio-arcor-arserver       | 2023-02-20 13:25:27 ERROR    Failed to go online.
tio-arcor-arserver       | Traceback (most recent call last):
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/connectionpool.py", line 449, in _make_request
tio-arcor-arserver       |     six.raise_from(e, None)
tio-arcor-arserver       |   File "<string>", line 3, in raise_from
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/connectionpool.py", line 444, in _make_request
tio-arcor-arserver       |     httplib_response = conn.getresponse()
tio-arcor-arserver       |   File "/usr/local/lib/python3.10/http/client.py", line 1374, in getresponse
tio-arcor-arserver       |     response.begin()
tio-arcor-arserver       |   File "/usr/local/lib/python3.10/http/client.py", line 318, in begin
tio-arcor-arserver       |     version, status, reason = self._read_status()
tio-arcor-arserver       |   File "/usr/local/lib/python3.10/http/client.py", line 279, in _read_status
tio-arcor-arserver       |     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
tio-arcor-arserver       |   File "/usr/local/lib/python3.10/socket.py", line 705, in readinto
tio-arcor-arserver       |     return self._sock.recv_into(b)
tio-arcor-arserver       | TimeoutError: timed out
tio-arcor-arserver       | 
tio-arcor-arserver       | During handling of the above exception, another exception occurred:
tio-arcor-arserver       | 
tio-arcor-arserver       | Traceback (most recent call last):
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
tio-arcor-arserver       |     resp = conn.urlopen(
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
tio-arcor-arserver       |     retries = retries.increment(
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/util/retry.py", line 550, in increment
tio-arcor-arserver       |     raise six.reraise(type(error), error, _stacktrace)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/packages/six.py", line 770, in reraise
tio-arcor-arserver       |     raise value
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
tio-arcor-arserver       |     httplib_response = self._make_request(
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/connectionpool.py", line 451, in _make_request
tio-arcor-arserver       |     self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/connectionpool.py", line 340, in _raise_timeout
tio-arcor-arserver       |     raise ReadTimeoutError(
tio-arcor-arserver       | urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='tio-scene-webapi', port=15000): Read timed out. (read timeout=20.0)
tio-arcor-arserver       | 
tio-arcor-arserver       | During handling of the above exception, another exception occurred:
tio-arcor-arserver       | 
tio-arcor-arserver       | Traceback (most recent call last):
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/rest.py", line 258, in call
tio-arcor-arserver       |     resp = method.value(
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/requests/api.py", line 130, in put
tio-arcor-arserver       |     return request("put", url, data=data, **kwargs)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/requests/api.py", line 59, in request
tio-arcor-arserver       |     return session.request(method=method, url=url, **kwargs)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
tio-arcor-arserver       |     resp = self.send(prep, **send_kwargs)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
tio-arcor-arserver       |     r = adapter.send(request, **kwargs)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/requests/adapters.py", line 578, in send
tio-arcor-arserver       |     raise ReadTimeout(e, request=request)
tio-arcor-arserver       | requests.exceptions.ReadTimeout: HTTPConnectionPool(host='tio-scene-webapi', port=15000): Read timed out. (read timeout=20.0)
tio-arcor-arserver       | 
tio-arcor-arserver       | The above exception was the direct cause of the following exception:
tio-arcor-arserver       | 
tio-arcor-arserver       | Traceback (most recent call last):
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/exceptions/helpers.py", line 21, in wrapper
tio-arcor-arserver       |     return func(*args, **kwargs)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/clients/scene_service.py", line 116, in start
tio-arcor-arserver       |     rest.call(rest.Method.PUT, f"{URL}/system/start", timeout=timeout)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/rest.py", line 268, in call
tio-arcor-arserver       |     raise RestException("Catastrophic system error.") from e
tio-arcor-arserver       | arcor2.rest.RestException: Catastrophic system error.
tio-arcor-arserver       | 
tio-arcor-arserver       | The above exception was the direct cause of the following exception:
tio-arcor-arserver       | 
tio-arcor-arserver       | Traceback (most recent call last):
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2_arserver/scene.py", line 489, in _start_scene
tio-arcor-arserver       |     await scene_srv.start()
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/clients/aio_scene_service.py", line 28, in start
tio-arcor-arserver       |     await run_in_executor(scene_service.start)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/helpers.py", line 80, in run_in_executor
tio-arcor-arserver       |     return await asyncio.get_event_loop().run_in_executor(executor, func, *args)
tio-arcor-arserver       |   File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
tio-arcor-arserver       |     result = self.fn(*self.args, **self.kwargs)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/exceptions/helpers.py", line 25, in wrapper
tio-arcor-arserver       |     raise raise_type(message) from e
tio-arcor-arserver       | arcor2.clients.scene_service.SceneServiceException: Failed to start the scene.
tio-arcor-arserver       | 2023-02-20 13:25:27 INFO     Stopping the scene_PCB scene after unsuccessful start.
...
tio-robot-system-webapi starting...
...
tio-arcor-arserver       | 2023-02-20 13:25:48 ERROR    Failed to stop the scene. Catastrophic system error.
tio-arcor-arserver       | Task exception was never retrieved
tio-arcor-arserver       | future: <Task finished name='Task-86497' coro=<start_scene() done, defined at /bin/app/lib/python3.10/site-packages/arcor2_arserver/scene.py:448> exception=AssertionError()>
tio-arcor-arserver       | Traceback (most recent call last):
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/connectionpool.py", line 449, in _make_request
tio-arcor-arserver       |     six.raise_from(e, None)
tio-arcor-arserver       |   File "<string>", line 3, in raise_from
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/connectionpool.py", line 444, in _make_request
tio-arcor-arserver       |     httplib_response = conn.getresponse()
tio-arcor-arserver       |   File "/usr/local/lib/python3.10/http/client.py", line 1374, in getresponse
tio-arcor-arserver       |     response.begin()
tio-arcor-arserver       |   File "/usr/local/lib/python3.10/http/client.py", line 318, in begin
tio-arcor-arserver       |     version, status, reason = self._read_status()
tio-arcor-arserver       |   File "/usr/local/lib/python3.10/http/client.py", line 279, in _read_status
tio-arcor-arserver       |     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
tio-arcor-arserver       |   File "/usr/local/lib/python3.10/socket.py", line 705, in readinto
tio-arcor-arserver       |     return self._sock.recv_into(b)
tio-arcor-arserver       | TimeoutError: timed out
tio-arcor-arserver       | 
tio-arcor-arserver       | During handling of the above exception, another exception occurred:
tio-arcor-arserver       | 
tio-arcor-arserver       | Traceback (most recent call last):
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
tio-arcor-arserver       |     resp = conn.urlopen(
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
tio-arcor-arserver       |     retries = retries.increment(
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/util/retry.py", line 550, in increment
tio-arcor-arserver       |     raise six.reraise(type(error), error, _stacktrace)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/packages/six.py", line 770, in reraise
tio-arcor-arserver       |     raise value
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
tio-arcor-arserver       |     httplib_response = self._make_request(
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/connectionpool.py", line 451, in _make_request
tio-arcor-arserver       |     self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/urllib3/connectionpool.py", line 340, in _raise_timeout
tio-arcor-arserver       |     raise ReadTimeoutError(
tio-arcor-arserver       | urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='tio-scene-webapi', port=15000): Read timed out. (read timeout=20.0)
tio-arcor-arserver       | 
tio-arcor-arserver       | During handling of the above exception, another exception occurred:
tio-arcor-arserver       | 
tio-arcor-arserver       | Traceback (most recent call last):
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/rest.py", line 258, in call
tio-arcor-arserver       |     resp = method.value(
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/requests/api.py", line 130, in put
tio-arcor-arserver       |     return request("put", url, data=data, **kwargs)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/requests/api.py", line 59, in request
tio-arcor-arserver       |     return session.request(method=method, url=url, **kwargs)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
tio-arcor-arserver       |     resp = self.send(prep, **send_kwargs)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
tio-arcor-arserver       |     r = adapter.send(request, **kwargs)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/requests/adapters.py", line 578, in send
tio-arcor-arserver       |     raise ReadTimeout(e, request=request)
tio-arcor-arserver       | requests.exceptions.ReadTimeout: HTTPConnectionPool(host='tio-scene-webapi', port=15000): Read timed out. (read timeout=20.0)
tio-arcor-arserver       | 
tio-arcor-arserver       | The above exception was the direct cause of the following exception:
tio-arcor-arserver       | 
tio-arcor-arserver       | Traceback (most recent call last):
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/exceptions/helpers.py", line 21, in wrapper
tio-arcor-arserver       |     return func(*args, **kwargs)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/clients/scene_service.py", line 116, in start
tio-arcor-arserver       |     rest.call(rest.Method.PUT, f"{URL}/system/start", timeout=timeout)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/rest.py", line 268, in call
tio-arcor-arserver       |     raise RestException("Catastrophic system error.") from e
tio-arcor-arserver       | arcor2.rest.RestException: Catastrophic system error.
tio-arcor-arserver       | 
tio-arcor-arserver       | The above exception was the direct cause of the following exception:
tio-arcor-arserver       | 
tio-arcor-arserver       | Traceback (most recent call last):
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2_arserver/scene.py", line 489, in _start_scene
tio-arcor-arserver       |     await scene_srv.start()
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/clients/aio_scene_service.py", line 28, in start
tio-arcor-arserver       |     await run_in_executor(scene_service.start)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/helpers.py", line 80, in run_in_executor
tio-arcor-arserver       |     return await asyncio.get_event_loop().run_in_executor(executor, func, *args)
tio-arcor-arserver       |   File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
tio-arcor-arserver       |     result = self.fn(*self.args, **self.kwargs)
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2/exceptions/helpers.py", line 25, in wrapper
tio-arcor-arserver       |     raise raise_type(message) from e
tio-arcor-arserver       | arcor2.clients.scene_service.SceneServiceException: Failed to start the scene.
tio-arcor-arserver       | 
tio-arcor-arserver       | During handling of the above exception, another exception occurred:
tio-arcor-arserver       | 
tio-arcor-arserver       | Traceback (most recent call last):
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2_arserver/scene.py", line 505, in start_scene
tio-arcor-arserver       |     ret = await _start_scene()
tio-arcor-arserver       |   File "/bin/app/lib/python3.10/site-packages/arcor2_arserver/scene.py", line 492, in _start_scene
tio-arcor-arserver       |     await stop_scene(scene, str(e), already_locked=True)
tio-arcor-arserver       | AssertionError
@ZdenekM ZdenekM added bug Something isn't working arcor2_arserver labels Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arcor2_arserver bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant