Troubleshooting XNAT Desktop Uploader
This guide explains how to troubleshoot common connection, authentication, certificate, and upload problems when using XNAT Desktop Uploader with CNDA.
General Prerequisites to Upload Images
Account Activity Requirement
Keep Your CNDA Account Active
Your CNDA account must remain active to upload images.
Accounts are automatically disabled after 12 consecutive months without signing in to the CNDA website.
To keep your account active, sign in to CNDA at least once every 12 months.
If your account has been disabled, email [email protected] to request reactivation.
Alias Token Authentication
XNAT Desktop Uploader and API/script users must authenticate using an XNAT alias token instead of their regular CNDA username and password.
WARNING
Alias Tokens Expire After 90 Days
Alias tokens are valid for 90 days. Once your token expires, generate a new token and update the credentials in your Desktop Uploader or scripts.
Your regular CNDA username and password cannot be used as a substitute.
Need an alias token?
Follow the instructions in Generate and Use an XNAT Alias Token.
CNDA website sign-in uses WashU Key SSO. Never share your alias token password with other users or CNDA support.
Correct CNDA Server Address
The server address in XNAT Desktop Uploader must be exactly:
https://cnda.wustl.edu
There should be nothing after .edu, including slashes or additional URL paths.
Seeing Your CNDA Projects in the Application
If you cannot see your CNDA projects, or your permissions were recently updated, clearing your access cache may resolve the issue.
Clear Cache in the CNDA Website
- Log in to https://cnda.wustl.edu using WashU Key SSO.
- Click Logged in as
your usernamein the top-right corner. - Select Manage Cached Resources.
- Click Reset Access Cache.
Clear Cache in XNAT Desktop Uploader
- Open XNAT Desktop Uploader.
- Log in using your alias token credentials.
- Click the large blue MENU button in the top-left corner.
- Click Flush XNAT User Access Cache.
After clearing the cache, log out and back in before attempting another upload. If projects remain missing, contact CNDA support to verify permissions.
Main Symptoms of Upload Problems
Common symptoms include:
- The upload progress bar does not move.
- The application appears stuck while uploading or archiving.
- The uploaded session never appears in CNDA.
- The application cannot connect to CNDA.
- The application reports
SELF_SIGNED_CERT_IN_CHAINor another certificate error. - The application rejects alias token credentials.
- CNDA projects do not appear in the application.
Step 0 - Use Local Storage for Best Upload Performance
Uploading directly from external drives, network drives, or cloud-synchronized folders does not always fail, but using local storage generally provides better performance and helps avoid file access issues.
For the most reliable upload experience:
- Copy your imaging files to a local folder on your laptop or desktop.
- Make sure all files are fully downloaded and accessible.
- Start the upload using the files in that local folder.
If you experience slow uploads, stalled progress, or file access errors while using external or network storage, try uploading from a local folder instead.
Step 1 - Confirm You Can Log In to CNDA
- Open https://cnda.wustl.edu in your browser.
- Sign in using WashU Key SSO.
- Confirm that you can access your account and projects.
If login works: Proceed to Step 2.
If login fails: Resolve the website authentication or account issue first.
Successful website login does not guarantee that your Desktop Uploader alias token is valid.
Step 2 - Check Desktop Uploader Configuration
- Open XNAT Desktop Uploader normally.
- Confirm that the server address is
https://cnda.wustl.edu. - Log in using your current alias token credentials.
- Confirm that you can:
- Log in successfully.
- View your CNDA projects.
- Load application configuration options.
- Reach the upload screen.
- A message that no anonymization configuration is available may be normal for projects without custom anonymization settings.
Connection Successful
If you can log in, see your projects, and reach the upload screen, your basic Desktop Uploader connection is working.
If the upload itself still fails or becomes stuck, continue to Step 3.
Step 3 - Check Whether the Upload Reaches CNDA
If your upload involves creating a new Subject, you can check whether XNAT Desktop Uploader successfully created it in CNDA.
- Open https://cnda.wustl.edu in your browser.
- Sign in using WashU Key SSO.
- Open the destination project.
- Look for the new Subject created by XNAT Desktop Uploader.
- Check whether the Subject exists and whether an imaging session is present.
Understanding the Results
Subject Exists, but No Imaging Session Appears
The Desktop Uploader successfully created the Subject, but this does not confirm that the imaging ZIP transfer started or completed.
Continue troubleshooting the upload connection and transfer process.
No New Subject Appears
The application may have failed before creating the Subject, or your upload may be using an existing Subject.
Check whether the intended Subject already exists before assuming the upload failed.
Imaging Session Appears in CNDA
The session is visible in CNDA. Verify that the expected imaging data is present before considering the upload successful.
A missing imaging session does not automatically mean your network is blocking POST requests.
Step 4 - Test HTTPS Connectivity and Certificate Trust
Before testing POST requests, verify that your computer can establish a trusted HTTPS connection to CNDA.
These tests do not require your CNDA username, password, or alias token credentials.
Windows (PowerShell)
Open PowerShell and run:
curl.exe -sS -o NUL https://cnda.wustl.edu/
if ($LASTEXITCODE -eq 0) {
Write-Host "CERTIFICATE TRUSTED"
} else {
Write-Host "CERTIFICATE CHECK FAILED"
}
Linux / macOS (Terminal)
Open a terminal and run:
if curl -sS -o /dev/null https://cnda.wustl.edu/; then
echo "CERTIFICATE TRUSTED"
else
echo "CERTIFICATE CHECK FAILED"
fi
Understanding the Results
CERTIFICATE TRUSTED
Your computer successfully established an HTTPS connection to CNDA, and curl accepted the certificate chain.
This confirms that HTTPS connectivity and certificate validation are working for curl.
However, XNAT Desktop Uploader may use a different certificate trust store, so this does not guarantee the application will accept the same certificate.
CERTIFICATE CHECK FAILED
The HTTPS request failed. Check the error message displayed above the result.
Possible causes include:
- An untrusted certificate authority.
- An incomplete certificate chain.
- Institutional HTTPS inspection.
- DNS resolution problems.
- VPN or firewall restrictions.
- Network connectivity problems.
A failed test does not automatically mean CNDA has an invalid certificate.
Common Curl Error Codes
| Error | Meaning |
|---|---|
curl: (6) | DNS resolution failed |
curl: (7) | Connection could not be established |
curl: (28) | Connection timed out |
curl: (35) | SSL/TLS handshake failed |
curl: (56) | Connection interrupted or reset |
curl: (60) | Certificate verification failed |
If you receive curl: (60), investigate the certificate chain and trusted certificate authorities.
If curl succeeds but XNAT Desktop Uploader still reports a certificate error, investigate the application's certificate trust configuration.
Do not disable certificate verification to work around a certificate error.
Step 5 - Check the CNDA Certificate in Your Browser
Some institutional networks use HTTPS inspection, which can replace certificates presented to applications. Comparing the certificate before and after logging in helps identify unexpected changes.
Check Before Logging In
- Open https://cnda.wustl.edu.
- Do not log in yet.
- Click the padlock or connection information icon next to the website address.
- Open the certificate viewer.
- Confirm that your browser reports a secure connection.
- Record the following certificate information:
- Issued To: Certificate subject or Common Name.
- Issued By: Certificate issuer.
- Valid From: Certificate start date.
- Valid Until: Certificate expiration date.
- SHA-256 Fingerprint: If readily available in the certificate viewer.
You do not need to open the advanced certificate details to inspect Subject Alternative Names.
Check After Logging In
- Sign in using WashU Key SSO.
- Return to https://cnda.wustl.edu.
- Open the certificate viewer again.
- Compare the certificate information with what you recorded before login.
- Confirm that the certificate is the same and your browser still reports a secure connection.
Understanding the Results
Certificate Matches Before and After Login
The certificate information matches before and after logging in, and your browser reports a secure connection.
This is the expected result.
WashU Key SSO may redirect you to other websites during authentication. Compare certificates only when viewing cnda.wustl.edu.
If you recorded the SHA-256 certificate fingerprint, an exact match provides the strongest confirmation that both connections presented the same certificate.
Certificate Changes After Login
If the certificate information differs before and after login while visiting cnda.wustl.edu, further investigation may be needed.
Possible explanations include:
- Institutional HTTPS inspection.
- Different proxies or network paths.
- VPN or network connection changes.
- Legitimate certificate renewal or load balancing.
A certificate change does not automatically mean the connection is insecure, but unexpected differences should be investigated.
Contact institutional IT or CNDA support and provide the certificate information from both checks.
If the Browser Works but Desktop Uploader Fails
Even if the certificate matches before and after login, XNAT Desktop Uploader may still encounter certificate validation errors.
Browsers and desktop applications may handle certificate chains differently. For example, a browser may trust a certificate using cached or automatically retrieved intermediate certificates, while the Desktop Uploader may fail if the server does not present the complete chain.
If XNAT Desktop Uploader reports SELF_SIGNED_CERT_IN_CHAIN or another certificate error, continue to Step 6.
Do not bypass certificate warnings or disable certificate verification.
Step 6 - Troubleshoot SELF_SIGNED_CERT_IN_CHAIN
The error SELF_SIGNED_CERT_IN_CHAIN means XNAT Desktop Uploader cannot establish a trusted certificate chain for an HTTPS connection. It does not necessarily mean CNDA uses an invalid or self-signed server certificate.
Common Causes
- An institutional firewall or proxy performs HTTPS inspection.
- The application does not trust the CA used by the institution.
- An intermediate certificate is missing or not trusted.
- The application's certificate trust store differs from the operating system or browser.
Recommended Troubleshooting
- Run the HTTPS test from Step 4.
- Inspect the certificate in the browser using Step 5.
- Confirm the Uploader version is current.
- Ask whether the institution uses HTTPS inspection.
- Contact institutional IT if necessary.
If the browser and curl trust the certificate but the Uploader still fails, investigate the application's certificate trust configuration. Do not disable SSL verification as a permanent workaround.
Step 7 - Test HTTPS POST Requests
If HTTPS connectivity and certificate validation work, test whether authenticated POST requests can reach CNDA. A POST failure does not automatically mean POST traffic is blocked.
Windows (Command Prompt)
Press Win + R, type
cmd, and press Enter.Replace
YOUR_ALIAS_USERNAMEwith the username from your current alias token:curl.exe -i -X POST -u YOUR_ALIAS_USERNAME https://cnda.wustl.edu/data/JSESSIONWhen prompted, enter the password associated with your alias token. The password will not appear as you type.
Linux / macOS (Terminal)
curl -i -X POST -u YOUR_ALIAS_USERNAME https://cnda.wustl.edu/data/JSESSION
Enter your alias token password when prompted. Do not include the password directly in the command.
Understanding the Response
A successful response may include a session identifier, depending on supported authentication behavior, for example:
{"JSESSIONID":"ABC1234567890XYZ"}
Important: CNDA support should confirm that /data/JSESSION accepts alias token credentials and what response it returns before using this as a definitive success test.
| Result | Interpretation |
|---|---|
| Successful authenticated response | The tested HTTPS POST was accepted |
401 Unauthorized | Authentication failed or credentials rejected |
403 Forbidden | Server or intermediary denied access |
404 Not Found | Endpoint not found |
curl: (35) | TLS handshake problem |
curl: (56) | Connection interrupted or reset |
curl: (60) | Certificate verification failed |
| HTML security-blocking page | Proxy or gateway may have intercepted the request |
A successful POST to this endpoint does not prove large imaging uploads will work. Examine failed responses before concluding that an institutional firewall blocks POST traffic.
Step 8 - Clear XNAT Desktop Uploader Application Cache
If authentication and connectivity tests succeed but uploading still fails, clearing the cache may help.
Simple Method
- Open XNAT Desktop Uploader.
- Click the Settings Cogwheel in the top-right corner.
- Select Debug.
- Click Clear Application Cache.
- Completely close the application.
- Reopen it and retry the upload.
Alternative Method for Windows
Use this only if clearing the cache in the application does not resolve the issue.
- Completely close XNAT Desktop Uploader.
- Press Win + R.
- Enter
%AppData%. - Locate the folder
XNAT Desktop Client. - Rename it to
XNAT Desktop Client.backup. - Reopen XNAT Desktop Uploader.
- Remove outdated saved server connections if they remain.
- Add a new server:
cnda.wustl.edu. - Log in using your current alias token credentials.
- Retry the upload.
Renaming preserves a backup but may reset saved connections and preferences. Have your alias token credentials available.
Step 9 - If Uploads Still Fail
Gather the following before contacting CNDA support:
- Operating system: Windows, macOS, or Linux.
- XNAT Desktop Uploader version.
- Exact error message or screenshot.
- Whether the CNDA website works in a browser.
- Whether the alias token is current.
- Whether CNDA projects are visible.
- HTTPS certificate test result.
- POST test result, if performed.
- Whether connected through VPN, institutional network, or home network.
- Whether an empty Subject or partial session appears in CNDA.
Do not include passwords, alias token secrets, or session identifiers in screenshots or support messages.
If the Network Appears to Be Blocking Traffic
Contact institutional IT with the following message:
We are experiencing connectivity or upload problems with XNAT Desktop Uploader when connecting to https://cnda.wustl.edu.
Please investigate whether institutional firewall rules, HTTPS inspection, proxy filtering, or security software are interfering with connections or file uploads to this endpoint.
If HTTPS inspection is causing certificate validation failures, please evaluate whether an appropriate exemption can be configured for cnda.wustl.edu.
If the Problem Appears Specific to XNAT Desktop Uploader
If browser access and curl certificate validation succeed but the application fails, contact [email protected]. Include the error, operating system, application version, and troubleshooting results.
Common Error Messages
Authentication Errors
Invalid username or password: Confirm that you are using alias token credentials rather than regular CNDA login credentials.
Authentication fails after previously working: The alias token may have expired. Tokens are valid for 90 days. Generate a new one and reconnect.
Certificate Errors
SELF_SIGNED_CERT_IN_CHAIN: The application cannot establish a trusted certificate chain. Check for HTTPS inspection or differences between the application and operating system trust stores.
curl: (60) SSL certificate problem: Certificate verification failed; the CA or certificate chain may not be trusted.
schannel: CRYPT_E_NO_REVOCATION_CHECK: Windows could not complete a certificate revocation check, possibly because revocation information is inaccessible. This does not establish that POST traffic is blocked.
Connection Errors
curl: (6) Could not resolve host: DNS could not resolve the server hostname.
curl: (7) Failed to connect: The connection could not be established.
curl: (28) Operation timed out: Network restrictions, connectivity problems, or an unresponsive server may be responsible.
curl: (35) SSL connect error: The TLS handshake failed.
curl: (56) Recv failure: Connection was reset: The connection was interrupted or closed by a proxy, firewall, server, or another network component.
HTTP Errors
401 Unauthorized: Authentication was not accepted.
403 Forbidden: Access was denied by the application or an intermediary. This does not prove all POST requests are blocked.
HTML Access Denied page: A security gateway may have intercepted the request. Record details and contact institutional IT or CNDA support.
Final Notes
- Always connect to
cnda.wustl.edu. - Use alias token credentials for Desktop Uploader authentication.
- Alias tokens expire after 90 days.
- CNDA accounts are disabled after 12 months of inactivity.
- Use WashU Key SSO for the CNDA website.
- Keep imaging files on local storage when troubleshooting.
- Test HTTPS connectivity and certificate trust before investigating POST requests.
- A successful browser connection does not guarantee the Uploader trusts the same certificate.
- A failed POST does not automatically mean POST traffic is blocked.
- Clear application cache after checking basic connectivity and authentication.
- Never disable SSL verification as a permanent workaround.
- Never share alias token passwords or session identifiers.
For assistance, contact [email protected].
