Skip to Content

Troubleshootingturno doctor

The gateway cannot tell which user a connection comes from

What turno doctor means by "mcpd: cannot tell which user a connection comes from (<s>), so it refuses no ...", and the fix.

View source

This page is for when turno doctor reports the finding below: what it means and how to fix it.

What you see

  !  mcpd: cannot tell which user a connection comes from (<s>), so it refuses no other user's process and relies on the tokens alone
     manual: nothing to change on a machine only you use; on a shared machine, keep mcpd running so no other process can hold its port

It is a warning; warnings do not change the exit code. Words in angle brackets stand for values from your machine.

Why it happens

mcpd refuses connections from other users' processes when the system names the user behind each connection: /proc on Linux, netstat and ps (or lsof for your own processes) on macOS. When it starts, mcpd tests this with a connection to itself. The test failed, so mcpd lets every local connection reach the token check, as it does on systems without user ids.

Fix

Nothing to change on a machine only you use; on a shared machine, keep mcpd running so no other process can hold its port.

No single command fixes this one, so doctor names the manual step.

The row changes only when mcpd starts again and its test succeeds: run turno mcp daemon restart once the system can list mcpd's connections (a readable /proc/net/tcp on Linux; /usr/sbin/netstat or /usr/sbin/lsof on macOS), then turno doctor. If it still warns, the system does not report connections to mcpd, and the tokens remain its protection.

The check lives in packages/turno/src/mcpd/health.ts.

On this page