OperationsTroubleshooting
Common Issues
Typical installation, startup, and config failures
Common Issues
Command not found (city: command not found / downcity: command not found)
npm config get prefix
echo $PATH
export PATH=$(npm config get prefix)/bin:$PATH
rehash
city --versionOr run directly with:
npx downcity --versionNotes:
cityanddowncityare the same binary.- New installs should not require manual
chmod +x. - If
sudo city ...fails butcity ...works, it is usually asudoPATH issue rather than an install failure.
Port conflict (5314 already in use)
lsof -nP -iTCP:5314 -sTCP:LISTEN
city agent doctor . --fix
city agent restart .city task/chat/... cannot connect
Make sure daemon is running:
city agent start
city service listLLM configuration mismatch
Check:
city model list
city config get model.primaryEnsure:
model.primarypoints to an existing model id in~/.downcity/downcity.db- console-global SQLite providers/models entries are valid
- For Kimi (Moonshot), use
provider.typeasmoonshot-cnormoonshot-ai moonshot-cndefaults tohttps://api.moonshot.cn/v1moonshot-aidefaults tohttps://api.moonshot.ai/v1- Use a model name that matches the target endpoint, such as
kimi-k2-0905-previeworkimi-k2.5