Agent Management does not start / Cannot connect¶
When Agent Management fails to properly start, the following symptoms can happen:
dss startfailsdss statusindicates that some processes are not started“Could not connect to Agent Management server” banner when trying to connect using a browser (HTTP code: 502, type: Gateway error)
“Connection refused” error when trying to connect using a browser
Note
If you are using the Dataiku virtual machine, please see The dedicated documentation for troubleshooting instructions.
Check processes state¶
The first step is to check the state of the Agent Management process:
Go to the Agent Management data directory
Run
./bin/dss status
If all processes are indicated as RUNNING, proceed to the next step
If a process is not in RUNNING state, first try to restart Agent Management:
./bin/dss restart
If it does not help, and some processes are still failing, see “Diagnose process failures” below.
If all processes are now RUNNING and you still get errors when connecting, proceed to the next step
Verify local connectivity¶
From the Agent Management machine, run
curl http://127.0.0.1:DSS_PORT/
If you don’t see HTML code, and the nginx process is correctly running, you might have a local firewall issue
Then run:
curl http://127.0.0.1:DSS_PORT/dip/api/get-configuration
If you don’t see a JSON result, check the status and logs of the backend process
If both of these tests are successful but you can’t connect from your browser, it indicates a network connectivity issue between Agent Management and your browser. Check for firewalls and proxies along the way. Try with another browser or another workstation if applicable.
Agent Management start (or stop) fails¶
It can happen that running ./bin/dss start fails
Server port already in use¶
Before starting, Agent Management checks that all TCP ports required are free. Agent Management requires up to 10 consecutive TCP ports, starting from the base port set at install time. Check that this whole range is available.
This error can also indicate that some stray Agent Management processes are still running, but are not controlled anymore by the Agent Management supervisor. See “Kill all Agent Management processes” below.
Server requires authentication¶
If you receive this message, it generally indicates that you ran the Agent Management installer or a dssadmin command while Agent Management was still running. It won’t be possible to stop Agent Management normally. See “Kill all Agent Management processes” below.
Kill all Agent Management processes¶
If some stray Agent Management processes are still running, you’ll need to kill them.
Run ps -u $USER -f to identify all processes running as the Agent Management service account, and use kill -9 PID to kill all Agent Management processes:
Java processes
Python processes
nginx processes
Diagnose process failures¶
check which process is failing, and check the run/PROCESS.log file, where PROCESS is the name of the failing process.
In particular, if the backend process is failing, check run/backend.log for errors.
Common issues that can prevent Agent Management from starting include:
Out of disk space (“No space left on device”) on the Agent Management data directory
Permissions issues (all files must belong to the Agent Management service account)
Also see Diagnosing and debugging issues and Obtaining support.