Troubleshooting
Experiencing issues with the ConHive Agent? Here are some common problems and solutions.
Agent Fails to Start
Section titled “Agent Fails to Start”- Permission Denied (Linux): Ensure the agent binary has execute permissions (
chmod +x ./conhive-agent). Check permissions on theworkdirandconfigsdirectories. - Port Conflict: The agent defaults to port
5050. If another service uses this port, the agent may fail. Check logs for errors like “address already in use”. Change the port in the agent’s configuration (agentmanager.jsonor similar). - Configuration Error: Invalid JSON in a configuration file can prevent startup. Check agent logs for parsing errors. Try running
./conhive-agent config createto reset to defaults (backup your existing configs first!) or validate your JSON files using an online validator. - Missing Dependencies: Although Go binaries are usually self-contained, check if any specific system libraries are unexpectedly required (unlikely but possible).
Agent Service Fails (Linux Systemd)
Section titled “Agent Service Fails (Linux Systemd)”- Check Service Logs: Use
sudo journalctl -u conhive-agent.service -fto see detailed logs. - Check Service Status:
sudo systemctl status conhive-agent.servicemight show error messages. - Incorrect Paths: Ensure the
.servicefile points to the correct binary location andworkdir. - Permissions: The user the service runs as (often
rootor a dedicated user) needs permissions to access the binary,workdir, and any resources the agent manages.
Cannot Access Local API/UI (localhost:5050)
Section titled “Cannot Access Local API/UI (localhost:5050)”- Agent Not Running: Verify the agent process is active (
ps aux | grep conhive-agenton Linux) or the service is running. - Firewall: Check if a local firewall (like
ufwon Linux or Windows Defender Firewall) is blocking port5050. - Incorrect Port/Address: Confirm the listening address and port in the agent’s configuration. It might be configured to listen only on a specific IP address instead of
0.0.0.0(all interfaces) or127.0.0.1(localhost). - Proxy Issues: If you’re using system or browser proxies, ensure they aren’t interfering with access to
localhost.
Connection Issues with ConHive Platform
Section titled “Connection Issues with ConHive Platform”- Incorrect Configuration: Double-check the platform URL, agent ID, and authentication credentials in the relevant configuration file.
- Network/Firewall: Ensure the device can reach the ConHive Platform URL over the network. Check outbound firewall rules on the device and any network firewalls between the agent and the platform.
- Platform Status: Verify the ConHive Platform itself is operational.
High Resource Usage
Section titled “High Resource Usage”- Check Module Configuration: Some modules, if configured aggressively (e.g., very frequent status checks, verbose logging), might consume more CPU/RAM. Adjust intervals or settings.
- Identify Culprit: Use tools like
toporhtop(Linux) or Task Manager (Windows) to see the agent’s resource consumption. Check agent logs for excessive activity. - Memory Leaks: If usage continuously grows over time without bound, it might indicate a bug or memory leak. Report this issue, providing details about the agent version and configuration.
(Add more specific issues and solutions as they become known.)