Network Management
IIS failed to create website with the error: A specified logon session does not exist. It may already have been terminated
When you use the https protocol, the website unexpectedly crashes and stay inaccessible. The Configuration wizard cannot create the IIS website and dispalys the following error: Cannot create new IIS website. The error is also present in Configuration wizard logs or while assigning certificates in IIS: A specified logon session does not exist. It may already have been terminated.
First published date
Last published date
Overview
When you use the HTTPS protocol, the website unexpectedly crashes and stays inaccessible. The Configuration Wizard cannot create the IIS website and displays the following error:
The ERROR seen in ConfigurationWizard.log (C:\ProgramData\SolarWinds\Logs\Orion):
Error 1: (pertains to https enabled in Config wizard but no SSL Cert selected both in IIS binding or in Config wizard)
ERROR Iis8Configurator - Unable to create Orion website: System.Runtime.InteropServices.COMException (0x80070520): A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT: 0x80070520) ERROR Iis8Configurator - Cannot create new IIS website.
Error 2:(pertains to SWnetperfmon site is locked)
ERROR Iis8Configurator - Unable to update find Orion web site. ERROR Iis8Configurator - Failure updating IIS website configuration settings. ERROR TaskAdapter - Error running task Orion.ConfigureWebsite Orion Website SolarWinds.ConfigurationWizard.Common.ConfigurationException: Failure updating IIS website configuration settings. at SolarWinds.ConfigurationWizard.Common.WebHelper.Iis8Configurator.ConfigureWebsite(IWebsiteInfo website, String& userName, ConfigurationProgressDelegate progress, ConfigurationLogDelegate logger) at SolarWinds.ConfigurationWizard.Common.IisHelper.ConfigureWebsite(IWebsiteInfo website, String& userName, ConfigurationProgressDelegate progress, ConfigurationLogDelegate logger)
Product section
Cause
- The issue is caused by a broken SSL certificate
- Broken IIS
- Missing SSL cert in IIS but Enable HTTPS & Skip Website binding selected during Configuration Wizard
- If running into this error on 2022.x and newer, it could be due to configuration wizard parallelism.
Resolution
Verify that you selected the correct options during Configuration wizard, the error is seen if you have below selection i.e Enable HTTPS, Skip Website binding is selected but no SSL cert is selected from drop down either due to missing cert or is not visible here.
- This is a known bug and it will be fixed in future release of Solarwinds Platform.
Workaround:
1. Add the https binding entry in IIS manager if it is missing and select a valid SSL certificate.
2. Manually create an entry in websites table in SolarwindsOrionDB via Database manager or SQL studio. Contact Solarwinds support to assist you with this.
3. Restart Solarwinds Netperfmon website.
If the above scenario does not apply to you, you may continue below steps:
- Rebuild the SolarWinds Platform Website with port 80 bindings using the http protocol. This will clarify if the issue is caused by the certificate or IIS.
- Check in IIS binding if Correct SSL cert is available for use over https protocol. Re-import the certificate correctly this blog will help
- Get a new SSL certificate and import the certificate correctly following the blog post in point 2 above, or try to reinstall IIS in that order after testing with:
a. Assigning IIS bindings.
b. Run the SolarWinds Platform Configuration Wizard