--- name: diagnose description: Run a full diagnostic check on the Archipelago dev server allowed-tools: Bash --- SSH into the dev server and run a comprehensive diagnostic. Use `ssh -i ~/.ssh/archipelago-deploy archipelago@192.168.1.228` for all commands. ## Checks to run 1. **Services**: `systemctl is-active archipelago nginx` 2. **Backend status**: `sudo systemctl status archipelago --no-pager` 3. **Containers**: `sudo podman ps -a` 4. **Backend logs** (last 50): `sudo journalctl -u archipelago -n 50 --no-pager` 5. **Nginx errors**: `sudo tail -20 /var/log/nginx/error.log` 6. **RPC test**: `curl -s -X POST http://127.0.0.1:5678/rpc/v1 -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1,"method":"echo","params":{}}'` 7. **Tor hostname**: `sudo cat /var/lib/archipelago/tor/hidden_service_archipelago/hostname` 8. **Disk space**: `df -h /` 9. **Memory**: `free -h` Report findings clearly and suggest fixes for any issues found. If $ARGUMENTS is provided, focus the diagnosis on that specific area.