Troubleshooting
This page collects problems that come up when installing, simulating, provisioning, and operating NVIDIA FLARE, with the cause traced to the code where possible. For connectivity problems, start with nvflare preflight-check on the affected site.
Installation
nvflare refuses to import on your Python. The package checks the interpreter at import time and supports Python 3.10 to 3.14. Create a virtual environment with a supported version (see Installation).
A recipe or example fails with a missing module (torch, tensorflow, xgboost, ...). Framework dependencies are optional extras. Install the matching extra, or the example's requirements.txt. nvflare recipe list still lists recipes whose dependencies are missing; check the recipe's optional_dependencies in nvflare recipe show <name> --format json.
An example's requirements.txt downgrades or replaces your nvflare. nvflare examples get never rewrites requirement files. Skip any line that installs nvflare or nvflare-nightly when you already have the version you want.
Simulation and POC
Your script's own --log_config argument is always None. Importing nvflare.recipe consumes --export, --export-dir, and --log_config from sys.argv before your own parser sees them. The value still takes effect for FLARE logging, but your argparse default wins. Read the setting from the environment or use a different option name if you need it in your script.
run.get_result() returns a path that does not exist. With PocEnv, get_result(clean_up=True) deletes the POC workspace after the job, including the result folder it just returned. Copy results first, or call it with clean_up=False (see Execution Environments).
A second run with the same PocEnv object fails. A PocEnv instance is single-use. Create a new one for each execute().
Every finished job reports the same status from monitor_job. FLARE API monitor_job returns JOB_FINISHED for any terminal state, including aborted and failed jobs. Check the job's status with get_job_meta (see FLARE API).
Study names rejected in POC but accepted in production (or vice versa). Validation messages differ: PocEnv mentions hyphens only, ProdEnv mentions hyphens and underscores. Stick to lowercase letters, digits, and hyphens for portability.
nvflare poc commands find the wrong workspace. The POC workspace comes from NVFLARE_POC_WORKSPACE, then the saved config (nvflare poc config --pw <dir>), then the default. Run nvflare config with no arguments to print what is in effect.
Provisioning
Your project.yml was replaced with the sample. nvflare provision without -p (and nvflare provision -g) copies the sample file over ./project.yml with no prompt. Restore it from version control and always pass -p (see Provisioning).
Provisioning stops after prod_99. The output folder counter only goes to 99. Delete old prod_NN folders under the workspace project folder.
A client cannot connect after you edited fed_client.json. Startup files in signed kits are covered by signature.json. Revert the edit, change project.yml, and reprovision.
Changing root_valid_days has no effect. The root CA is created once and stored in the workspace state/ folder. The option applies only to a newly created root; use a fresh workspace to create a new CA (which invalidates every existing kit).
nvflare cert approve rejects a request zip. Common reasons: the request's project name differs from the profile's name, or the zip comes from an older release without site_yaml_sha256. Regenerate the request with the current nvflare cert request.
nvflare package says the root CA does not match. The prod_NN folder already contains kits from a different CA. Use a new workspace or deploy version; --force does not bypass this check.
Root certificate subject and issuer differ. Kits made with nvflare cert init --org on NVFLARE 2.8.0 hit a bug that omitted the org from the issuer. Recreate the CA with a new --deploy-version and reissue all kits.
Connections
Preflight reports Can't bind to address (<host>:<port>). On the server, the host name does not resolve to a local interface or the port is in use. Check DNS and free the port.
Preflight reports Can't connect to <scheme> server (<host>:<port>). On a client, the server is not running or not reachable. Start the server first, then check firewalls and that the client resolves the server's name to the right address.
Clients behind a TLS-terminating proxy fail the handshake. Use connection_security: tls and set custom_ca_cert to the proxy's CA (see Security).
nvflare commands exit with code 2. CONNECTION_FAILED or AUTH_FAILED: the admin startup kit could not reach or authenticate with the server. Check which kit is active with nvflare config inspect, and that it belongs to the same project and CA as the server. Exit code 3 is a timeout; raise --connect-timeout (default 5 seconds) for slow links.
Jobs
Job ends in FINISHED:FAILED_TO_RUN
In secure mode, jobs need per-job certificates. Look at job_deploy_detail in nvflare job meta <job_id> --format json:
| Message | Cause | Fix |
|---|---|---|
server startup kit has no job CA (job_ca.crt / job_ca.key) |
Server provisioned before the feature or with enable_job_ca: false. |
Reprovision and redeploy the server kit. |
job CA expires at ... |
Less than one hour of job CA validity left. | Reprovision to renew. |
deploy request carries no valid job credential (client) |
Server and client run different releases. | Run the same release on all sites. |
has no job credential (Docker, Kubernetes, or Slurm launcher) |
Same as above. | Same as above. |
Job stays SUBMITTED, then ends in FINISHED:CAN_NOT_SCHEDULE
The scheduler could not find enough clients able to run the job. Check that min_clients and mandatory_clients match connected clients (nvflare system status), that resource_spec fits each site's resource manager (a client with num_of_gpus: 0 cannot accept a GPU job), and that the server's max_jobs slots are free. After max_schedule_count tries (default 10) the job is abandoned with this status.
Job rejected for its privacy scope
privacy scope '<name>' is not allowed means the site has a privacy.json and the job's scope (or the site's missing default_scope) does not match it (see Security).
Job rejected for a component
Without BYOC rights, every component path must match the site's class_allow_list. Component configs that use name instead of path are always rejected by this check (see Security).
Timeouts
| Symptom | Setting |
|---|---|
| Clients time out fetching large tasks. | recipe.add_client_config({"get_task_timeout": 300}) |
| Training finishes but result upload fails. | recipe.add_client_config({"submit_task_result_timeout": 300}) |
| An external-process trainer never connects (slow imports, big model loads). | ClientAPIExecutor(execution_mode="external_process", launch_timeout=600, ...) |
| A round is cut off before training ends. | The controller's round timeout, for example FedAvg(..., timeout=7200) or ScatterAndGather(train_timeout=...). |
| Clients are marked dead during long rounds. | Raise the heartbeat timeout; the heartbeat interval must stay smaller than the timeout. |
Getting Logs
nvflare job logs <job_id>fetches job logs; its line bounds are applied client-side after download (see job).nvflare system log-config --site <site> DEBUGraises log verbosity at runtime;reloadrestores the site's configured logging.- Each site keeps
log.txtin its workspace and in each job folder.
Getting Help
Search or open an issue at github.com/NVIDIA/NVFlare/issues. Include nvflare --version, the run mode, and the relevant log.txt excerpts.