- Use su with login shell (-) to ensure clean environment - Explicitly set uid/gid to undefined in ecosystem config - This prevents PM2 from trying to parse string UID as integer The error occurred because PM2 was receiving '1002' as a string instead of an integer. By using a login shell and explicitly setting uid/gid to undefined, PM2 won't try to switch users. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>