Troubleshooting
Diagnostics
valsb doctor
Runs a comprehensive check of your environment:
- Environment — user, OS, available service backends
- Kernel — whether sing-box is installed and its path
- Paths — existence and permissions of all directories
- TUN — whether TUN device is available
- Checks — configuration validity, service unit status
Common Issues
"sing-box is not running" after valsb start
- Check the service logs:
journalctl -u valsb-sing-box.service -n 50
- Validate the configuration:
valsb doctor
- Ensure you have an active subscription:
valsb sub list
"no config found"
You need to add a subscription first:
valsb sub add "https://your-provider.com/sub?format=singbox"
"Text file busy" during update
This was a known issue on Linux, now fixed. Update to the latest valsb version. The updater unlinks the running binary before replacing it.
"Clash API unreachable"
The Clash API is only available when sing-box is running. Start the service first:
valsb start
Service status shows "running" but proxy doesn't work
- Check your exit IP:
valsb status
- Try switching to a different node:
valsb node use
- Update your subscription to get fresh configs:
valsb sub update
Root privileges
valsb is a root-only tool. When you invoke it as a regular user it
auto-elevates by re-launching itself under sudo (Linux/macOS) or with a
UAC prompt (Windows), so you normally do not need to type sudo yourself.
If you want to skip the prompt, just run from a root shell or pre-authorize
sudo with sudo -v.