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

[rare bug] pexpect: Could not terminate child #176

Open
klieret opened this issue Feb 26, 2025 · 0 comments
Open

[rare bug] pexpect: Could not terminate child #176

klieret opened this issue Feb 26, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@klieret
Copy link
Member

klieret commented Feb 26, 2025

Very rare bug

28108 2025-02-26 09:42:10,892 - ERROR - swea-run - Traceback (most recent call last):
28109   File "/home/klieret/SWE-agent/sweagent/run/run_batch.py", line 300, in run_instance
28110     result = self._run_instance(instance)
28111   File "/home/klieret/SWE-agent/sweagent/run/run_batch.py", line 360, in _run_instance
28112     env.close()
28113     ~~~~~~~~~^^
28114   File "/home/klieret/SWE-agent/sweagent/environment/swe_env.py", line 163, in close
28115     asyncio.run(self.deployment.stop())
28116     ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
28117   File "/opt/miniconda3/envs/swea13/lib/python3.13/asyncio/runners.py", line 194, in run
28118     return runner.run(main)
28119            ~~~~~~~~~~^^^^^^
28120   File "/opt/miniconda3/envs/swea13/lib/python3.13/asyncio/runners.py", line 118, in run
28121     return self._loop.run_until_complete(task)
28122            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
28123   File "/opt/miniconda3/envs/swea13/lib/python3.13/asyncio/base_events.py", line 721, in run_until_complete
28124     return future.result()
28125            ~~~~~~~~~~~~~^^
28126   File "/home/klieret/swe-rex/src/swerex/deployment/docker.py", line 245, in stop
28127     await self._runtime.close()
28128   File "/home/klieret/swe-rex/src/swerex/runtime/remote.py", line 216, in close
28129     return self._request("close", None, CloseResponse)
28130            ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28131   File "/home/klieret/swe-rex/src/swerex/runtime/remote.py", line 162, in _request
28132     self._handle_response_errors(response)
28133     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
28134   File "/home/klieret/swe-rex/src/swerex/runtime/remote.py", line 118, in _handle_response_errors
28135     self._handle_transfer_exception(exc_transfer)
28136     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
28137   File "/home/klieret/swe-rex/src/swerex/runtime/remote.py", line 112, in _handle_transfer_exception
28138     raise exception from None
28139 pexpect.exceptions.ExceptionPexpect: Could not terminate the child.
28140
28141 2025-02-26 09:42:10,904 - ERROR - swea-run -Failed on pydata__xarray-6400: Could not terminate the child.
28142 2025-02-26 09:42:13,238 - INFO - swea-run - Running on instance astropy__astropy-14566
28143 2025-02-26 09:42:14,336 - DEBUG - config-django__django-12406 - Choosing API key 1 for thread ThreadPoolExecutor-9_12 (idx 1)
28144 2025-02-26 09:42:15,407 - ERROR - swea-run - Traceback (most recent call last):
28145   File "/home/klieret/SWE-agent/sweagent/run/run_batch.py", line 300, in run_instance
28146     result = self._run_instance(instance)
28147   File "/home/klieret/SWE-agent/sweagent/run/run_batch.py", line 360, in _run_instance
28148     env.close()
28149     ~~~~~~~~~^^
28150   File "/home/klieret/SWE-agent/sweagent/environment/swe_env.py", line 163, in close
28151     asyncio.run(self.deployment.stop())
28152     ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
28153   File "/opt/miniconda3/envs/swea13/lib/python3.13/asyncio/runners.py", line 194, in run
28154     return runner.run(main)
28155            ~~~~~~~~~~^^^^^^
28156   File "/opt/miniconda3/envs/swea13/lib/python3.13/asyncio/runners.py", line 118, in run
28157     return self._loop.run_until_complete(task)
28158            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
28159   File "/opt/miniconda3/envs/swea13/lib/python3.13/asyncio/base_events.py", line 721, in run_until_complete
28160     return future.result()
28161            ~~~~~~~~~~~~~^^
28162   File "/home/klieret/swe-rex/src/swerex/deployment/docker.py", line 245, in stop
28163     await self._runtime.close()
28164   File "/home/klieret/swe-rex/src/swerex/runtime/remote.py", line 216, in close
28165     return self._request("close", None, CloseResponse)
28166            ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28167   File "/home/klieret/swe-rex/src/swerex/runtime/remote.py", line 162, in _request
28168     self._handle_response_errors(response)
28169     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
28170   File "/home/klieret/swe-rex/src/swerex/runtime/remote.py", line 118, in _handle_response_errors
28171     self._handle_transfer_exception(exc_transfer)
28172     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
28173   File "/home/klieret/swe-rex/src/swerex/runtime/remote.py", line 112, in _handle_transfer_exception
28174     raise exception from None
28175 pexpect.exceptions.ExceptionPexpect: Could not terminate the child.
28176
@klieret klieret added the bug Something isn't working label Feb 26, 2025
@klieret klieret changed the title pexpect: Could not terminate child [rare bug] pexpect: Could not terminate child Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant