Configure website in Plesk for Windows fails: A specified logon session does not exist

Created:

2016-11-16 12:45:04 UTC

Modified:

2017-06-20 20:21:22 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Configure website in Plesk for Windows fails: A specified logon session does not exist

Applicable to:

  • Plesk for Windows

Symptoms

  1. It is not possible to create a domain in Plesk or upload new certificate due to the following error in GUI:

    Unable to load object of type BsDomain with id=3: Domain does not exist.

    and in %plesk_dir%admin/logs/php_error.log:

    [2017-06-20 23:28:56] ERR [panel] Domain update failed: Unable to update domain data: A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT: 0x80070520)
    In Microsoft.Web.Administration module
    Exception type: System.Runtime.InteropServices.COMException
    at Microsoft.Web.Administration.Interop.IAppHostMethodInstance.Execute()
    at Microsoft.Web.Administration.Binding.AddSslCertificate(Byte[] certificateHash, String certificateStoreName)
    at Microsoft.Web.Administration.BindingManager.Save()
    at Microsoft.Web.Administration.ServerManager.CommitChanges()
    at ServerManagerFactory.commit()
    at IISServerManager.commit(IISServerManager* )
    at addSqlAdminLink(example.com, )(WebServerManager::addSqlAdminLink line 117)
    at execute console command --add-sqladmin-link(vconsoleapp::start line 122)
    at execute "C:\Program Files (x86)\Plesk\admin\bin64\websrvmng" --add-sqladmin-link "--domain-name=example.com"(vconsoleapp::run line 139)
    (Error code 1)
    [2017-06-20 23:28:56] DEBUG [panel] [59493f38b51e2] Asynchronously call interface implementation C:\Program Files (x86)\Plesk\/admin/plib/registry/EventListener/curl.php
    [2017-06-20 23:28:56] DEBUG [panel] Step failed 'applyCreateSubscription'. Unable to load object of type BsDomain with id=3: Domain does not exist.
  2. Plesk upgrade fails with the following error:

    MSI: Error! Critical action 'Configure Parallels Panel site...' failed:
    Command "C:\Program Files (x86)\Parallels\Plesk\admin\bin\websrvmng.exe" --configure-plesk-website failed with code 1.
    Output:
    A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT: 0x80070520)
    In Microsoft.Web.Administration module
    Exception type: System.Runtime.InteropServices.COMException
    at Microsoft.Web.Administration.Interop.IAppHostMethodInstance.Execute()
    at Microsoft.Web.Administration.Binding.AddSslCertificate(Byte[] certificateHash, String certificateStoreName)
    at Microsoft.Web.Administration.BindingManager.BindingTransaction.Commit()
    at Microsoft.Web.Administration.BindingManager.Save()
    at Microsoft.Web.Administration.ServerManager.CommitChanges()
    at ServerManagerFactory.commit()
    at IISServerManager.commit(IISServerManager* )

    Action '<install-msi-package command-line="ADDLOCAL=ALL ALLUSERS=1 ARPSYSTEMCOMPONENT=1 REBOOT=R AUTOINSTALLER=1" />' failed with error 1603(0x00000643)

Cause

The IIS Server SSL certificate is corrupted/expired or its configuration is corrupted.

Resolution

  1. Go to IIS Manager > Server_name > IIS > Server Certificates:

    Screenshot.png

  2. Make sure that the Default Plesk certificate is presented there.

  3. Remove the certificate.

  4. Recreate the certificate by running Plesk Reconfigurator (C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin\\reconfigurator.exe) > Repair Plesk Installation and choosing Plesk Services only.

If the issue persists, perform the following:

  1. Remove all expired certificates using Plesk that found in IIS Manager > Server_name > IIS > Server Certificates.
  2. Make sure that these certificates are removed from IIS, if not, remove them manually.
  3. Make sure that the Default certificate is chosen in Plesk > Tools & Settings > SSL/TLS Certificates > Certificate for securing Plesk.

If the issue still persists create and apply a self-signed certificate:

  1. Go to Plesk > Tools & Settings > SSL/TLS Certificates and press on Add.

  2. Fill needed fields and press on the Self-Signed button:

    Screenshot_2.png
  3. Mark the just created certificate and press on Make Default.

  4. Make sure that the just created certificate is chosen in Plesk > Tools & Settings > SSL/TLS Certificates > Certificate for securing Plesk.

Note: If Default Certificate is also expired, create new one in Tools & Settings > SSL Certificates , make it default, use it to secure the panel and remove the expired one from Plesk and IIS.

Have more questions? Submit a request
Please sign in to leave a comment.