Troubleshootingturno doctor
A gateway file belongs to another user
What turno doctor means by "mcpd: <file> belongs to uid <uid>", and the fix.
This page is for when turno doctor reports the finding below: what it means and how to fix it.
What you see
x mcpd: <file> belongs to uid <uid>
fix: sudo chown "$(id -un)" <file>It is a failure; a failure makes turno doctor exit with code 1. Words in angle brackets stand for values from your machine.
Why it happens
The gateway token file belongs to another user, usually after a command was run with sudo.
Fix
Run:
sudo chown "$(id -un)" <file>turno doctor --fix does not run it for you, because it needs a decision or an answer from you.
Then run turno doctor again to see the row turn into ok.
The check lives in packages/turno/src/mcpd/health.ts.