Skip to content

Local Model Error: Failed to establish connection to macOS system extension (deadline has elapsed) #7236

@Bojun-Feng

Description

@Bojun-Feng

Problem Description

I installed mitmproxy and it ran wonderfully for around a day.
Then it suddenly stopped to work and instead gave the following error in local mode:

> mitmproxy --mode local
Error logged during startup:
failed to establish connection to macOS system extension

Caused by:
    deadline has elapsed

This only happens in the local mode on my MacBook, it still works when I connect my phone to it.

Steps to reproduce the behavior:

I ran the same command several times (continuously, without modifying any settings), and the it just suddenly stopped working on the last try. The error message was rather mysterious and I'm a bit lost on what might have gone wrong.

The exact command was:

mitmproxy --mode local --set console_mouse=false --view-filter '(~m POST | ~m PUT)' -s script.py

Here is a list of information that might be helpful:

System Information

Mitmproxy: 11.0.0 binary
Python:    3.12.6
OpenSSL:   OpenSSL 3.3.2 3 Sep 2024
Platform:  macOS-14.5-arm64-arm-64bit

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions