Troubleshooting
Common issues and solutions for cykani-stealth.
Binary Issues
Binary not found
Error: CYKANI_BINARY_PATH environment variable is required or pass entity.binary
Fix: Either set the env var or pass binary in the launch options:
const session = await strike({
binary: "/path/to/chrome",
});Binary download fails
Error: Network timeout during first launch
Fix:
- Check internet connectivity
- Try downloading the binary manually from GitHub Releases
- Set
CYKANI_BINARY_PATHto the local copy
Wrong architecture
Error: Binary fails to start on ARM when using x64 binary
Fix: Use the correct binary for your platform. Currently supported: x64 only.
Detection Issues
navigator.webdriver still true
Cause: Using page.addInitScript() instead of context.addInitScript()
Fix: cykani handles this automatically. If you're connecting via CDP, make sure to use the session's built-in stealth injection.
Pixelscan shows "Incognito Window"
Cause: Headless mode uses a temp profile
Fix: Use headed mode for sessions that need to pass incognito detection:
const session = await strike({ headless: false });HeadlessChrome in User-Agent
Cause: Chromium's headless mode adds "HeadlessChrome" to the UA
Fix: cykani automatically overrides this. If you see it, make sure you're using the latest version.
Connection Issues
Playwright connection refused
Error: connect ECONNREFUSED 127.0.0.1:9222
Fix:
- Check the binary path is correct
- Ensure no other Chrome instances are using the same port
- Try killing existing Chrome processes
Session closes immediately
Cause: Browser process exits due to missing dependencies (Linux)
Fix: Install required system libraries:
# Ubuntu/Debian
sudo apt-get install -y libnss3 libatk-bridge2.0-0 libdrm2 libxkbcommon0 \
libxcomposite1 libxdamage1 libxrandr2 libgbm1 libasound2 libpango-1.0-0 \
libcairo2 libatspi2.0-0 libcups2Performance Issues
Slow launch
Cause: Binary download on first run, or cold filesystem cache
Fix:
- First launch is slower (binary download). Subsequent launches are fast.
- On Linux, keep the binary on an SSD
High memory usage
Cause: Multiple concurrent sessions
Fix: Close sessions promptly. Each session holds a browser process.
Getting Help
If your issue isn't covered here:
- Check the GitHub Issues
- Run with verbose logging
- Share the error message and your launch options