You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start the agent in local mode. After running for a while, the Task failed: redirect daemon exited prematurely. disabled backtrace message is displayed and windows-redirector.exe exits
Steps to reproduce the behavior:
Start mitmdump mitmdump -m local -k --allow-hosts 10.26.18.149
Thanks! This looks good and bad at the same time - it looks like the redirect task is crashing, but we don't capture the process output from that. This is something we need to fix.
I'm way out of my league here, but maybe it'll be helpful. Initially everything was running perfectly, then I installed mitmproxy into system's python venv and started to getting those errors (Task failed: redirect daemon exited prematurely, though, I didn't have stack backtrace)
Then I did pip show mitmproxy
and removed every single dependancy. Now everything works perfectly .
Activity
mhils commentedon Jun 26, 2024
Thank you for the report. Do you have any better ideas how this can be reproduced? What happens if you run it with a RUST_BACKTRACE env var set to 1?
linuxlin365 commentedon Jun 27, 2024
[17:05:26.054] Task failed: redirect daemon exited prematurely.
0: PyInit_pyo3_asyncio
1: PyInit_pyo3_asyncio
2: PyInit_mitmproxy_rs
3:
4:
5: PyInit_pyo3_asyncio
6: PyInit_pyo3_asyncio
7: PyInit_pyo3_asyncio
8: PyInit_pyo3_asyncio
9: PyInit_pyo3_asyncio
10: BaseThreadInitThunk
11: RtlUserThreadStart
Why are there so many DNS connections?
mhils commentedon Jun 28, 2024
Thanks! This looks good and bad at the same time - it looks like the redirect task is crashing, but we don't capture the process output from that. This is something we need to fix.
DokiDoki1103 commentedon Dec 19, 2024
我也遇到了相同的问题,是在捕获本地应用程序时候只要一开启就报错
DokiDoki1103 commentedon Dec 19, 2024
[22:52:40.183] HTTP(S) proxy listening at *:8080.
[22:52:40.187] Web server listening at http://127.0.0.1:8081/
[22:52:44.613][127.0.0.1:53992] client connect
[22:52:45.318] Local redirector started.
[22:52:45.482] Task failed: redirect daemon exited prematurely.
Stack backtrace:
0: PyInit_pyo3_asyncio
1: PyInit_pyo3_asyncio
2:
3:
4: PyInit_pyo3_asyncio
5: PyInit_pyo3_asyncio
6: PyInit_pyo3_asyncio
7: PyInit_pyo3_asyncio
8: PyInit_pyo3_asyncio
9: ExitProcess
10: ExitProcess
11: ZwWaitLowEventPair
0: PyInit_pyo3_asyncio
1: PyInit_pyo3_asyncio
2:
3:
4: PyInit_pyo3_asyncio
5: PyInit_pyo3_asyncio
6: PyInit_pyo3_asyncio
7: PyInit_pyo3_asyncio
8: PyInit_pyo3_asyncio
9: ExitProcess
10: ExitProcess
11: ZwWaitLowEventPair
[22:52:45.878][127.0.0.1:53992] server connect functional.events.data.microsoft.com:443 (20.189.173.9:443)
[22:52:54.266][127.0.0.1:53994] client connect
[22:52:55.584][127.0.0.1:53994] server connect assets.msn.cn:443 (95.100.74.231:443)
Ran-Mewo commentedon Jun 17, 2025
i get this whenever I try to capture local applications
alexdunae commentedon Jul 9, 2025
Same error for me - this is running on Windows in a Parallels VM, so maybe an unsupported configuration?
lior-ps commentedon Aug 27, 2025
@mhils is local mode supported on Windows Arm?
tarasHQ commentedon Nov 19, 2025
I'm way out of my league here, but maybe it'll be helpful. Initially everything was running perfectly, then I installed mitmproxy into system's python venv and started to getting those errors (Task failed: redirect daemon exited prematurely, though, I didn't have stack backtrace)
Then I did
pip show mitmproxyand removed every single dependancy. Now everything works perfectly .