Submit a ticketCall us

Have You Auto Renewed? If not, you're missing out.
The SolarWinds Renewal Program comes with a host of benefits including the most recent product updates, 24/7 technical support, virtual instructor-led training and more. Experience all of this with the convenience of Auto Renewal, and never worry about missing any of these great benefits. Learn More.

Home > Success Center > Network Performance Monitor (NPM) > Unable to retrieve the PDF, CSV, or URL of scheduled reports - 404:The server has not found anything matching the requested URI (Uniform Resource Identifier). This is an error returned by the Web server, not by the HTML to PDF converter. Please try to visit the same Url with your browser to verify whether the Url is valid.

Unable to retrieve the PDF, CSV, or URL of scheduled reports - 404:The server has not found anything matching the requested URI (Uniform Resource Identifier). This is an error returned by the Web server, not by the HTML to PDF converter. Please try to visit the same Url with your browser to verify whether the Url is valid.

Updated January 3, 2017

Overview

The following error message appears when receiving or retrieving the PDF or CSV file of a scheduled report:

Unable to retrieve url: http://ServerName:80/Orion/Report.aspx?ReportID=103 using PDF type.

 

When checking ActionExecution.log, you will see this error:

ERROR SolarWinds.Orion.Core.Actions.Utility.WebPageFetcher - FAIL: EO.Pdf.HtmlToPdfException: Failed to convert Url 'http://SERVERNAME:80/Orion/Report.as...5dc0'.(404:The server has not found anything matching the requested URI (Uniform Resource Identifier). This is an error returned by the Web server, not by the HTML to PDF converter. Please try to visit the same Url with your browser to verify whether the Url is valid.)
   at EO.Pdf.Internal.dc.a(String A_0, Boolean A_1)
   at EO.Pdf.Internal.dc.b(HtmlToPdfOptions A_0, String A_1, Boolean A_2)
   at EO.Pdf.Internal.dc.a(br A_0)
   at EO.Pdf.Internal.lr.c.a(Byte[] A_0)
System.Exception: EO.Pdf.HtmlToPdfException: Failed to convert Url 'http://SERVERNAME:80/Orion/Report.as...5dc0'.(404:The server has not found anything matching the requested URI (Uniform Resource Identifier). This is an error returned by the Web server, not by the HTML to PDF converter. Please try to visit the same Url with your browser to verify whether the Url is valid.)

Environment

  • All SAM versions
  • All NPM versions

Cause 

This issue is caused by an incorrect website configuration.

Resolution

  1. There are multiple causes and multiple resolutions for this issue. First you need to check if the URL is valid:
  2. Copy the URL from the e-mail and try to open it in Internet Explorer on the primary Orion server (not on your desktop and not on any other server).
  3. If you cannot load the report, see Incorrect website URL
  4. If you can open the report using this URL on the primary polling engine AND you are sending a PDF report, see PDF conversion issue.
  5. If you can open the report using this URL on the primary polling engine AND you are sending a CSV report, see CSV conversion issue.

Incorrect website URL

Make sure the Default Web Site is not listening on the same port as the Orion website:

  1. Open IIS Manager.
  2. Go to Sites > Default Web Site.
  3. Click on Bindings.
  4. Edit the binding.
  5. Change the IP address to any other IP (this cannot be the same as the Orion web site is listening on).
  6. Save the settings and restart the website.

 

Make sure that the Orion website is listening on all IP addresses:

  1. Open IIS Manager.
  2. Go to Sites > SolarWinds NetPerfMon.
  3. Click on Bindings.
  4. Edit all bindings and make sure that IP address is set to All Unassigned for all of them.
  5. If you made any changes, restart the website.

 

Make sure that the website configuration in the Websites table is correct:

  1. Start > SolarWinds Orion > Advanced Features > Database Manager.
  2. Click on Add default server.
  3. Right-click on SolarWindsOrion database and select New query.
  4. Paste the following query and click on Execute:
           SELECT * FROM Websites
  5. Make sure that the ServerName is correct and the Port is the same as you set in IIS manager. If you are using HTTPS to access the website, make sure that SSLEnabled is set to 1. If you need to change any value here, click Enable table editing, then double-click on the field you want to change.
  6. If that still doesn't work Disable the Require SSL and it will work

PDF conversion issue

If the URL works correctly in Internet Explorer on the primary polling engine, the PDF conversion is probably failing. You will need to enable the alternative PDF conversion engine:

  1. Go to http://wkhtmltopdf.org/downloads.html.   (Content provided by Ashish Kulkarni, originally created by Jakob Truelsen, available at http://wkhtmltopdf.org/, obtained on June 23, 2016.)
  2. Download the 32-bit,  Windows (MSVC 2013) version of the application.
  3. Install the application on the Primary Orion server to the following location: C:\Program Files (x86)\wkhtmltopdf.
  4. **** BEFORE DOING ANYTHING IN THE DB PLEASE MAKE SURE TO HAVE A BACKUP ***
  5. Start > SolarWinds Orion > Advanced Features > Database Manager.
  6. Click on Add default server.
  7. Right-click on SolarWindsOrion database and select New query.
  8. Paste the following query and click on Execute:
       UPDATE WebSettings
       SET SettingValue = 'True'
       WHERE SettingName = 'PdfExport_GenerateInSeparateProcess'
  9. Paste the following query and click on Execute:
       UPDATE WebSettings
       SET SettingValue = 'C:\Program Files (x86)\wkhtmltopdf\bin\wkhtmltopdf.exe'
       WHERE SettingName = 'PdfExport_SecondaryEnginePath'
  10. Paste the following query and click on Execute:
        UPDATE WebSettings
        SET SettingValue= '--no-stop-slow-scripts --javascript-delay 120000 ${URL} ${PDFFileNamePath}'
        WHERE SettingName = 'PdfExport_SecondaryEngineArgsPattern'
  11. Paste the following query and click on Execute:
        UPDATE Settings
        SET CurrentValue = 32
        WHERE SettingID = 'Action-DefaultTimeOut'

CSV conversion issue

Make sure that your report is not a chart and that it contains at least one table:

  • Exporting charts to CSV is not supported
  • Only table data can be exported to CSV

 

If you are using HTTPS, make sure that the certificate you are using is trusted and valid. CSV conversion may fail if the certificate is not valid.

  1. Open the URL from the e-mail in Internet Explorer on the Primary Orion Server - do you get any warnings or errors regarding the invalid certificate?
  2. If the certificate is not trusted, but there is no warning regarding the name of the server:
    a. Open mmc.exe.
    b. File > Add/Remove Snap-in...
    c. Select Certificates and click on Add.
    d. Select Computer account and click on Next.
    e. Select Local computer and click on Finish, then on OK.
    f. On the left side, go to Certificates > Personal > Certificates.
    g. Right-click on the certificate you are using for the web console (you can check this in IIS Manager > Sites > Bindings) and select Copy.
    h. On the left side, go to Certificates > Trusted Root Certification Authorities > Certificates.
    i. Right click on Certificates and select Paste.
  3. If the certificate is trusted, but it was issued for another servername, you will need to do one of the following:
    Generate a new certificate with the correct host names and use it in IIS (please consult your system administrator on how to get a certificate), or
    Use HTTP instead of HTTPS for the website

 

Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment.  You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.

 

 

Last modified

Tags

Classifications

Public