Unable to Download Excel Files Generated by Web Application Load Balanced Through NetScaler

Unable to Download Excel Files Generated by Web Application Load Balanced Through NetScaler

book

Article ID: CTX216868

calendar_today

Updated On:

Description

User accesses a web app through a NetScaler Load Balancing Virtual Server. One of the options that the app has is to generate and download an Excel file. The download seems to finish properly, but the file cannot be opened in Excel. The file is corrupted. Comparing the downloaded file between the file obtained by directly accessing the back-end server, the downloaded file is smaller in size.

The trace analysis shows that the NetScaler resets the connection during the download with the code 9205 ("HTTP request/response tracking failed due to chunk tracking failure), in both ways of the communication.

User-added image

Wireshark shows the following information about the last HTTP packet before the RST: Leading CRLF previous message in the stream may have extra CRLF.

Resolution

Create an HTTP profile based on the "nshttp_default_profile" and disable the "Drop extra CRLF" option. Apply this new profile to the NetScaler Load Balancing Virtual Server and the Service Group:

  1. Go to: system >> Profiles >> HTTP profiles.
  2. Select the nshttp_default_profile and click in "Add" to create a new HTTP profile based on the selected one.
  3. Provide a new name, like http_test_profile,
  4. Scroll down to the last options and unchecked "Drop extra CRLF" option.
  5. Apply the HTTP profile to the Load Balance virtual server and the Load Balance service attached to the load balancer.

User-added image

Issue/Introduction

Unable to Download Excel Files Generated by Web Application Load Balanced Through NetScaler