Troubleshooting

Use this guide to diagnose common issues with server startup, network reachability, remote host tunnels, SDR USB permissions, and user access control.

Startup Issues

serverrf Not Found or Fails to Bind Ports

If serverrf is not found or exits immediately on startup, verify that the remoterf-server Conda environment is active and that the configured TCP ports are unprivileged (1024 or higher):

conda activate remoterf-server
serverrf config list
serverrf --serve

If socket binding fails with Address already in use, check whether another serverrf --serve instance is already running in another terminal or tmux/screen session.

Network Connectivity

Clients or Hosts Cannot Reach the Server

When serverrf --serve is running cleanly on the server but client machines or remote hosts time out connecting, test both the main gRPC port and the certificate port using nc (replace 192.168.1.50 and 61005/61006 with your server’s IP and configured ports):

# 1. Test locally on the server machine:
nc -vz 192.168.1.50 61005
nc -vz 192.168.1.50 61006

# 2. Run the same test from a second machine on the network:
nc -vz 192.168.1.50 61005
nc -vz 192.168.1.50 61006

If the local check succeeds on the server but fails from a second computer, check:

  • Local firewall rules on the server (sudo ufw status or iptables/nftables)
  • Campus VLAN isolation between Wi-Fi, wired LAN, and VPN subnets
  • Whether the server’s TLS certificate was generated for the current static IP (serverrf certs list)
  • Whether users and hosts were given the main port (61005) in remoterf -c -a / hostrf --config --addr, and that the adjacent certificate port (61006) is also open

Host Tunnels & Inventory

Host Tunnel Does Not Appear in hosts status

A RemoteRF host appears in the server shell only after hostrf --serve connects to the server’s main gRPC port, authenticates with its host token, and maintains its heartbeat stream.

On the host, inspect the saved configuration:

hostrf --config --show
hostrf --host --show
hostrf --device --show
  • hostrf --config --show must point REMOTERF_ADDR at <server_ip>:<main_port>.
  • hostrf --host --show must list the expected HOST_ID and a configured token.

If the server rejects the host token, generate a fresh token on the server and apply it on the host:

# On the server:
serverrf hosts token lab-host-01 --force

# On the host:
hostrf --host --set lab-host-01 "TOKEN_FROM_SERVER"
hostrf --config --addr <server_ip>:<main_port>
hostrf --serve

Then check hosts status and devices list in the server@remoterf: shell.

Host Connects, but Host-Attached SDRs Are Missing

When a host appears as online in hosts status but its SDRs do not appear in devices list, either the host failed to open the hardware locally or its device_id conflicted with another device on the server.

  1. Confirm that the host’s inventory is saved at ~/.config/remoterf/host/devices.yml (custom schema .py files still go in ~/.config/remoterf/drivers/).
  2. Verify that every device_id in ~/.config/remoterf/host/devices.yml is globally unique across the server and all hosts.
  3. To change a conflicting device_id on a host:
hostrf --device --remove <old_id>
hostrf --device --add --pluto "<new_id>:<device_name>:<serial>"
hostrf --device --show
hostrf --serve

Device Detection & USB Access

SDR Only Appears Under sudo

If hardware discovery tools (iio_info -s, uhd_find_devices, hackrf_info, or rtl_test -t) only detect the radio when run with sudo, serverrf and hostrf will not be able to open the USB device as your normal user account.

For an ADALM-PLUTO, install libiio-utils and configure the plugdev udev rule:

conda install -y -c conda-forge libiio libusb
sudo apt install -y libiio-utils

sudo groupadd -f plugdev
sudo usermod -aG plugdev "$USER"

sudo tee /etc/udev/rules.d/53-adi-usb.rules >/dev/null <<'EOF'
SUBSYSTEM=="usb", ATTR{idVendor}=="0456", MODE="0660", GROUP="plugdev"
EOF

sudo udevadm control --reload-rules
sudo udevadm trigger

Unplug and reconnect the USB cable, log out and log back in (or reboot), and confirm that iio_info -s succeeds without sudo. For USRP, HackRF, and RTL-SDR permissions, see the respective guide under Device Setup.

Configured Device Still Shows Offline

If local USB or Ethernet discovery works without sudo but the device is missing or offline in devices list, check:

  • device_id uniqueness: No two devices across the server and hosts may share the same integer device_id.
  • device_type string: Must match the registered schema (adalm_pluto, adalm_pluto_mimo, bluetooth, gps, hackrf, krakensdr, rfbeam_kmd7, rtlsdr, ti_awr6843, usrp, usrp_phaser, wifi, or your custom @idl_register(...) name).
  • Hardware selector: init.serial (or init.addr for N210) must match the exact string reported by the native discovery tool.
  • Automated hardware self-test (diag): Run serverrf diag (or diag at the server@remoterf: console) to execute automated hardware self-tests across all local and host-attached SDRs and inspect per-device failures (--copy copies the diagnostic report to your clipboard).
  • Process restart: If you edited devices.yml or a file in drivers/ manually, restart serverrf -s or hostrf -s.

User Accounts & Permissions

Users Cannot Register or Cannot Reserve a Device

If a student or researcher cannot register an account or cannot see/reserve a specific SDR, inspect the server state from the server@remoterf: prompt:

devices list
groups list
codes list
reservations list
  • Enrollment code rejected: Run codes list to check whether the code has already reached its maximum uses or expired. Generate additional codes with codes create.
  • Device missing for a user: Run groups list and check that the user’s group includes the target device_id in its devices_whitelist. Update the whitelist in place with groups edit.
  • Device busy: Run reservations list to check whether another user holds an active reservation on that device.