Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Browsermob-Proxy server process failed to start

I encountered this error when I just start the server. Here's the code:

server = Server(r"path\to\browsermob-proxy")
server.start()

Then it stopped and raised an error like this:

browsermobproxy.exceptions.ProxyServerError: The Browsermob-Proxy server process failed to start. Check <_io.TextIOWrapper name='C:\...\server.log' mode='w' encoding='cp936'>for a helpful error message.

The log file seems not providing anything helpful. It just said that 'java' is not recognized as an internal or external command, operable program, or batch file.

I've been stuck here for too long. Can Anybody give me a feasible solution? Many thanks!!!

like image 684
Dexter Avatar asked Feb 24 '26 18:02

Dexter


1 Answers

This was driving me nuts. Even after installing Java Runtime Environment (and making sure it was in the system path) it didn't fix things. I eventually decided to enter the /full/path/to/browsermob-proxy and voila, it finally worked! Using the relative/path/to/browsermob-proxy failed (even though it found the file and would give another error if the relative path or the filename was incorrect, it wasn't enough without the full path).

like image 76
Tom Davenport Avatar answered Feb 27 '26 09:02

Tom Davenport