Troubleshooting VSCP-Works: Common Issues and Fixes
1. VSCP-Works won’t start
- Symptom: Application fails to launch or crashes on startup.
- Likely causes: Corrupted installation, missing dependencies, incompatible Qt version, permission issues.
- Fixes:
- Reinstall latest VSCP-Works release for your OS.
- Ensure required Qt runtime is installed (match VSCP-Works build). On Linux, check
lddon binary for missing libs. - Run as administrator/root once to rule out permission issues.
- Start from a terminal to capture error output and inspect logs (look in app data folder or console for stack traces).
- If crash persists, create a clean config (move ~/.vscpor %APPDATA%scp-works to backup) and restart.
2. Cannot connect to VSCP daemon or remote node
- Symptom: Connection refused, timeouts, or “no route” errors.
- Likely causes: Wrong host/port, firewall, daemon not running, TLS/auth mismatch.
- Fixes:
- Verify daemon is running on the server (systemd/service manager or process list).
- Confirm host, port, username/password, and protocol (TCP/UDP/SSL) match client settings.
- Test connectivity with telnet/nc (e.g.,
nc -vz host port) and check firewall rules on both ends. - If using TLS, verify certificates and that both sides accept the chosen cipher/TLS version.
- Check daemon logs for rejected connections or auth failures.
3. Events not appearing in event monitor or UI
- Symptom: Sent events don’t show up; devices appear unresponsive.
- Likely causes: Filter settings, wrong network interface, event queue overflow, incorrect GUIDs/addresses.
- Fixes:
- Remove or widen filters in the event monitor (check class/type filters and source/destination).
- Ensure VSCP-Works is listening on the correct network interface (especially on multi-homed systems).
- Inspect event queue sizes and clear/restart if overflowed.
- Verify device GUIDs, node addresses, and that events are being generated (use packet capture e.g., Wireshark to confirm on the wire).
- Check for duplicate or conflicting plugins that may swallow events.
4. Rules or scripts not triggering
- Symptom: Automation rules, actions, or scripts don’t run when conditions are met.
- Likely causes: Incorrect rule conditions, script errors, disabled rules, or misordered rules.
- Fixes:
- Confirm the rule is enabled and saved.
- Validate the condition (class/type, data content, source) exactly matches incoming events.
- Check script logs or run scripts manually to catch syntax/runtime errors.
- Use logging actions (temporary) at rule start to verify condition matching.
- Ensure rule execution order and priorities aren’t preventing expected behavior.
5. Device/driver plugin problems
- Symptom: Plugins fail to load or behave unpredictably.
- Likely causes: Version incompatibility, missing dependencies, wrong configuration.
- Fixes:
- Confirm plugin is compatible with your VSCP-Works version.
- Check plugin-specific configuration (ports, baud rates, vendor IDs).
- Review plugin logs for load or runtime errors.
- Recompile/reinstall plugin if using locally built binaries.
- Disable other plugins to isolate conflicts.
6. Performance issues or high CPU/memory usage
- Symptom: UI sluggish, CPU spikes, memory growth.
- Likely causes: Large event flood, memory leak in plugin, excessive logging.
- Fixes:
- Reduce event rate (throttle sources) or apply stricter monitor filters.
- Disable verbose logging or rotate logs.
- Restart application to clear transient leaks; update to a release that fixes known leaks.
- Profile plugins by disabling them one at a time to find the culprit.
7. Persistence problems (config not saved)
- Symptom: Settings or rules lost after restart.
- Likely causes: Permission issues, config file corruption, wrong config paths.
- Fixes:
- Verify application has write access to config directories.
- Inspect and repair or delete corrupt config files (keep backups).
- Confirm you use the intended profile if VSCP-Works supports profiles.
8. Debugging checklist (quick steps)
- Reproduce issue and capture exact error messages.
- Check VSCP-Works logs and system logs.
- Run app from terminal for console output.
- Use network tools (ping, nc, Wireshark) for connectivity problems.
- Temporarily simplify setup (single device, minimal rules/plugins).
- Update VSCP-Works and plugins to latest stable versions.
- If unresolved, collect logs, config files, and exact steps and consult project support channels or issue tracker.
If you want, I can produce a checklist tailored to your OS (Windows/macOS/Linux) or help interpret specific log excerpts—paste the error lines and I’ll analyze them.
Leave a Reply