SQL Local DB 2017 - Capture Services Fails to Start/Crashes - PSIcapture 7.8+

Overview

 

This article is a troubleshooting guide for PSIGEN support staff or authorized PSIGEN partners and IT associates representing customers. It covers the installation of SQL Local Database (DB) as a critically necessary component of PSIcapture. Explore the guide below to determine the best method for ensuring that SQL Local DB is properly installed on your system.

 

Important Note:

Multiple instances of SQL Local DB may or may not be supported at this time. Install the relevant SQL Local DB Instance for your version of PSIcapture and OS. If you encounter problems while multiple SQL Local DB instances are present, see the note "Encountering Errors" below.

 

PSIcapture 7.4+ requires the specific SQL Local DB Version listed below on the corresponding operating systems:

Windows 10 - SQL Local DB 2017
Server 2016 - SQL Local DB 2017
Server 2019 - SQL Local DB 2017

 

Please use the method below to troubleshoot this issue.

 

CMD Method

The standard CMD line method is as follows:

  1. In Windows Services (services.msc), stop the Capture Services service if it is running.
  2. If this is a new implementation of PSIcapture, skip to step 6; if batches or Capture Profiles already exist in this environment, continue with step 3.
  3. In Windows File Explorer, navigate to C:\ProgramData\PSIGEN\Capture.Services\configuration.
  4. Rename configuration.mdf and .ldf.
    Example: configuration_OLD.mdf
  5. Repeat steps 3 and 4 for BatchManager.mdf and .ldf found at C:\ProgramData\PSIGEN\Capture.Services\Batch Manager.
  6. Still in File Explorer, navigate to C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft.
    Note: Since config and systemprofile are protected directories, it may be necessary to start at the System32 directory and then double-click each additional directory; if prompted, click to allow access to the directory.
  7. Rename the Microsoft SQL Server Local DB directory.
  8. Download and extract PSTools link: DOWNLOAD
  9. Open a command prompt and type the following:
    NOTE: The syntax for the SQL Local DB 2014 and 2017 are identical, using "MSSQLLocalDB" as the instance name. This can cause some problems in some environments, as stated below.
    cd [extracted PSTools path]

         psexec -i -s cmd.exe

         (on the subsequent CMD window, elevated to NT AUTHORITY)
    sqllocaldb info "MSSQLLocalDB"

         (If this shows "Instance not created" continue with:)
         sqllocaldb create "MSSQLLocalDB"

    (If this shows "Instance is corrupted" continue with:)
    sqllocaldb delete "MSSQLLocalDB"
    sqllocaldb create "MSSQLLocalDB"
         
  10. Restart Capture Servicess in Windows Services. After several moments, new configuration and BatchManager files should be created in the directories noted in steps 2 and 4.
  11. If this is a new implementation, skip to step 17. If not, continue with step 12.
  12. In Windows Services, stop the Capture Services.
  13. In File Explorer, under C:\ProgramData\PSIGEN\Capture.Services\configuration, delete the newly-created configuration.mdf and .ldf files.
  14. Rename the original configuration.mdf and .ldf files to their former names.
    Example: configuration_OLD.mdf to configuration.mdf
  15. Repeat steps 14 and 15 for the BatchManager files under C:\ProgramData\PSIGEN\Capture.Services\Batch Manager.
  16. Start the Capture Services.
  17. Try to open PSIcapture again, and it should now launch successfully.

Encountering Errors:

If encountering errors during the CMD prompt entries like so:

sql1.png

There may be another instance of SQL Local DB present that is throwing these errors. Check your Windows Event Viewer logs for entries from SQL Local DB instances that do not align with your version.

 

Was this article helpful?
4 out of 4 found this helpful

Comments

0 comments

Article is closed for comments.