Triage and troubleshoot

This topic outlines the essential considerations and procedures for effectively troubleshooting and triaging issues related to Citrix Secure Private Access. Admins can use this document as a guide for identifying, diagnosing, and resolving problems, ensuring seamless and secure access for users.

User/client issues in Citrix Secure Access mode

User unable to log in

Things to check:

After confirming what was mentioned earlier, do the following:

  1. Enable debug level logging and collect a support bundle from NetScaler.
  2. Enable verbose logging on the CSA client and collect client logs.
  3. Contact Citrix Support and provide the collected diagnostics.

User unable to launch an app

Things to check:

  • In Citrix Monitor, search for the user UPN and verify that an active Secure Private Access session exists.

    Active sessions in Monitor

    • The launched app must appear under Available apps.
    • An App Launch Allow event for the app must be visible under Launched apps.

    Launched apps

    • If not present, check that the app and access policies are correctly configured for the user in the Secure Private Access admin console.
  • In Citrix Monitor, look for any app launch error event for the app under Launched apps.

    Launched apps error

    • Common errors: DNS resolution failure/TCP connection failure.
    • From the NetScaler CLI, verify connectivity to the app from the appropriate SNIP.

Steps to collect a NetScaler support bundle with debug-level logging

  1. Set debug-level syslog from the CLI.

    set syslogparams loglevel ALL DEBUG

  2. Enable Secure Private Access specific verbose logging from Shell.

    nsapimgr_wr.sh -ys ns_vpn_enable_spa_verbose_logging=1

  3. Collect the support bundle (and optional traces)
  4. Use your standard method to collect the NetScaler support bundle.
  5. Optionally capture additional traces if requested by support.

Important:

Revert verbose logging after collecting the bundle. Leaving verbose logging enabled can generate excessive logs and impact performance. Always revert verbose logging once the collection is complete.

Revert verbose logging

  1. Restore syslog level from the CLI.

    set syslogparams loglevel ALL

  2. Disable Secure Private Access specific verbose logging from Shell.

    nsapimgr_wr.sh -ys ns_vpn_enable_spa_verbose_logging=0

Additional References:

Tools that help to troubleshoot

Triage and troubleshoot