question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Transparent mode failure: FileNotFoundError(2, 'No such file or directory')

See original GitHub issue
Steps to reproduce the problem:
  1. start ap and redirect tcp 80/443 stream to 8080
  2. pull and start mitmproxy for raspberrypi model 3
docker run -it --rm -p 8080:8080 mitmproxy/mitmproxy:4.0.3-ARMv7 mitmdump -m transparent -p 8080 -v 

and it shows:

...
clientconnect
Transparent mode failure: FileNotFoundError(2, 'No such file or directory')
ProtocolException("Transparent mode failure: FileNotFoundError(2, 'No such file or directory')",)
clientdisconnect
...
System information
$ uname -a
Linux raspberrypi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv71 GNU/Linux
$ docker run --rm mitmproxy/mitmproxy:4.0.3-ARMv7 mitmproxy --version
Mitmproxy: 4.0.3
Python:       3.6.3
OpenSSL:   OpenSSL 1.0.2o 27 Mar 2018
Platform:     Linux-4.14.34-v7+-armv71-with

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
mhilscommented, Jul 3, 2018

I think --network host may actually work. 😃

1reaction
LaumiHcommented, Jan 28, 2020

The error persists when I use a local Docker container though, so it is nothing k8s specific. I will continue searching, thanks for the hint @mhils ! If I find the solution I will document it here for others to find if this is ok. At least someone seems to have managed to get it working (though on an old k8s and docker version): https://github.com/danisla/kubernetes-tproxy

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Crash Mitmproxy when turn on mode transparent
I was learning about mitmproxy and trying to run it, I realized that when I ran the following command (admin rights): mitmdump --mode...
Read more >
Python FileNotFoundError: [Errno 2] No such file or directory ...
Any message with the contents FileNotFoundError indicates that Python cannot find the file you are referencing. Python raises this error because your program ......
Read more >
Difficulty with ipv6 addresses in transparent proxy - mitmproxy
Because I have the transparent proxy on my own computer rather than a ... mode failure: FileNotFoundError(2, 'No such file or directory').
Read more >
【Mitmproxy】Mac + Python + mitmproxy透明代理配置,拦截 ...
Fire up mitmproxy. mitmdump --mode transparent -s mitmHandler.py # 7. ... failure: filenotfounderror(2, 'no such file or directory').
Read more >
issues with transparent proxy on osx - Google Groups
Without the mitmproxy, I can receive my test ads without any issues. ... 192.168.2.12:33331: 502: Transparent mode failure: could not resolve original ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found