Skip to main content

Troubleshooting

The following table lists common issues encountered during BuildNinja setup and operation, along with their respective solutions.

CategoryProblemSolution
Server IssuesPort already in useChange the port in Environment Variables. Update BN_SERVER_PORT if the default (8800) conflicts with another process.
Server IssuesCannot connect to databaseVerify MongoDB credentials and URI, and ensure the MongoDB server is running and accessible from the BuildNinja server host.
Server IssuesSSL errorsCheck and verify certificate file paths (BN_SERVER_SSL_CERT, BN_SERVER_SSL_KEY) and permissions.
Server IssuesWeb UI not loadingReview firewall settings, ensure the configured port is open, and inspect server logs for startup or network errors.
Agent IssuesPort already in useChange the port defined in BN_AGENT_PORT if it conflicts with another process.
Agent IssuesAgent fails to registerEnsure BN_AGENT_SERVER_URL is correct and reachable from the agent host.
Agent IssuesAgent shows “Offline” in dashboardRestart the agent and check its logs. Verify that BN_AGENT_NAME and BN_AGENT_SELFURL are unique and correctly configured.
Agent IssuesPermission denied on workdirConfirm that the directory specified in BN_AGENT_DATA_DIR has proper read/write permissions.
Network IssuesServer can’t reach agentEnsure the URL in BN_AGENT_SELFURL is accessible from the server (no firewall restrictions, correct IP/domain).
Network IssuesAgent logs show “Connection refused”Confirm the BuildNinja server is running and that BN_AGENT_SERVER_URL is correct.
System IssuesAgent unexpectedly shuts downCheck available disk space and review agent logs for fatal errors or system interruptions.