返回 Skill 列表
extension
分类: 开发与工程无需 API Key

server-status

检查服务器状态和交易机器人运行情况。使用此技能当:- 检查机器人是否运行 - 查看服务日志 - 监控系统健康 - 检查进程状态 - 排查服务问题 关键词:状态, 日志, 健康, 监控, 进程, 运行, 服务

person作者: jakexiaohubgithub

Server Status Check

Server Information

| Item | Value | |------|-------| | IP | 139.180.157.152 | | User | linuxuser | | Service | nautilus-trader | | Path | /home/linuxuser/nautilus_AItrader |

Check Commands

Service Status

sudo systemctl status nautilus-trader

View Logs

# Last 50 lines
sudo journalctl -u nautilus-trader -n 50 --no-hostname

# Real-time follow
sudo journalctl -u nautilus-trader -f --no-hostname

Check Processes

ps aux | grep main_live.py

Status Indicators

✅ Normal Operation

🚀 *Strategy Started*
📊 *Instrument*: BTCUSDT-PERP
Active: active (running)

❌ Common Errors

| Error | Cause | Solution | |-------|-------|----------| | can't open file 'main.py' | Wrong entry file | Change ExecStart to main_live.py | | EOFError: EOF when reading a line | Missing env var | Add Environment=AUTO_CONFIRM=true | | telegram.error.Conflict | Telegram conflict | Does not affect trading, can ignore |

Quick Diagnosis

If service is abnormal, check in this order:

  1. Service Status: sudo systemctl status nautilus-trader
  2. Recent Logs: sudo journalctl -u nautilus-trader -n 100 --no-hostname
  3. Config File: cat /etc/systemd/system/nautilus-trader.service
  4. Entry File: Confirm it's main_live.py