Troubleshooting#
The preflight failed#
The preflight stops a run before any load and says why, with what to do. The usual ones:
| The preflight says | What to do |
|---|---|
| SFTP (or another protocol) does not answer | the address or port is wrong, the server is down, or a firewall is in the way |
| … certificate does NOT match the pin | the server's certificate changed. If that was on purpose, Read the certificate in the server's editor, compare its SHA-256 with the server's own, and save |
| … certificate not trusted by this Java | the certificate's issuer is not in Java's trust store (a self-signed or company certificate). Pin it instead (Servers and TLS) |
| Login over … failed | a user name, the common password or the protocol's port is wrong; the reason after it says which kind (below) |
| Upload folder … does not work | the users may not write or delete there: pick a folder they can |
| The run would get … banned | the run would open more new connections than the server's ban allows (a default CrushFTP server bans an address that opens 100 connections in 10 seconds, 3 for HTTP). Lower the new connections a second cap or the rate, use more load machines (each has its own address), or add the load machines' addresses to the server's never_ban for the test |
| More sessions per address than the server allows | more sessions from one load machine than max_connection_single_ip: fewer sessions, or more load machines |
| Too few users for the logins | the logins would lock the accounts (the server's login limit per account). Give more users, or set an operations cap |
| More sessions than max_users | the server's max_users is lower than the profile's sessions |
| More sessions per load machine than its cap | raise the profile's sessions per load machine cap, or add load machines |
| An earlier run left things to clean up | an earlier run was stopped before it cleaned up: Clean up what CrushTest made in the server's editor |
| Agent … is not connected | start the agent, or untick it on the Run page |
| The back end sees the balancer's address | every load machine's connections count against the balancer's address on the back ends, and a ban would hit every real user behind it: turn on the PROXY protocol between the balancer and the back ends (Load balancers) |
Warnings do not stop the run: a certificate that is not checked (any), a cap that holds the rate back, a server whose admin API cannot be used, a load machine whose clock is more than 2 seconds off.
The run stopped by itself#
A guard stopped it (Safety on production), and the run says which:
| Stopped: … | Means |
|---|---|
| errors passed 5% over the last intervals | the server, or something on the way, is failing operations: see the run's First errors of each kind |
| p99 … stayed above 10x the warm-up's and above 10 s | the server is falling far behind |
| the server machine's CPU stayed above 95% for a minute | the server machine is saturated. The guard reads the whole machine's CPU: CrushTest's own load machines on the server's machine count in it too |
| the server's disk has … free | the server's data disk is nearly full |
| the server is refusing connections as banned | the server banned a load machine's address: the run stops at once |
| the schedule window closed | the run reached its Not after time |
Abort (or Ctrl-C on the command line) stops every load machine at once. Everything CrushTest made is still cleaned up afterwards.
The run is client-bound#
The load machines were the limit, not the server: their CPU, their scheduling, garbage collection, their local ports or open files, or their network link (How it works). The numbers measure the load machines, so Compare and Trend leave the run out. Add load machines, or use Scale check to see whether more machines raise the result.
Errors by kind#
Each failed operation is sorted into one of these kinds. The run's Operations table counts them per operation, and First errors of each kind keeps the first message of each.
| Kind | What happened | What to look at |
|---|---|---|
data_mismatch |
a download (or a resumed upload read back) was not byte for byte what was sent | the server's storage, a proxy or a virus scanner that changes files: this is the one that matters most |
auth |
a login was refused | the user names and the common password; an account locked by the server's login limit |
banned |
the server banned the load machine's address, or an IP restriction refused it | the server's ban settings and never_ban; the preflight's hammering checks |
server_limit |
the server's maximum users, connections or logins was reached | max_users, connections per address, the account's limits |
licence |
the server answered with a license problem | the server's license and its user count |
tls |
a TLS handshake or certificate check failed | the server's certificate and the TLS mode (Servers and TLS) |
host_key |
the SFTP server showed another host key than the one recorded | a changed host key, or another server answering on that address |
refused |
the connection was refused | the server's port, the server is down or restarting |
reset |
the connection was reset or broken | the server, a firewall or a load balancer dropped it |
timeout |
no answer in time | the server is overloaded, or something on the way is dropping packets |
closed |
the server closed the connection | the server's own limits or idle timeouts |
ftp_data |
an FTP data connection could not be opened | the server's passive port range and the firewall in front of it |
refused_by_server |
the server refused the operation (550, 553, 403, permission denied) | the users' rights in the upload folder, quotas |
session_lost |
an HTTP request of a signed-in session was sent back to the login | the server's session timeout |
lb_session_moved |
the same, behind a load balancer: another back end answered | the balancer's session stickiness (Load balancers) |
lb_passive |
an FTP data connection failed behind a load balancer | the balancer must send the passive port to the back end that opened it |
client_ports |
the load machine ran out of local ports | use the keep-alive HTTP client, or more load machines |
client_fds |
the load machine ran out of open files | raise the open-files limit (ulimit -n) of the account that runs CrushTest |
other |
anything else | the message under First errors of each kind |
Other questions#
The License page is all I see. CrushTest runs nothing without a license; activate one (Licensing). Clean-up works without one.
A test user is left on the server. CrushTest removes only what its ledger says it made, and a test user it made expires a day after the run anyway. Clean up what CrushTest made (the server's editor, or the License page without a license) removes what is left; crushtest cleanup --server S does the same on the command line.
Why is the server's CPU per operation empty? CrushMFT 27 reports it to the admin API; CrushFTP 11 needs a monitor on the server's machine. Without an admin URL there are no server-side numbers at all.
Logs. CrushTest's own log is in logs/ in its folder (Files); the Run page shows the latest lines under Log.