Troubleshooting SOTI Connect

This section provides information on how to troubleshoot SOTI Connect installation and upgrade errors.

Services Fail to Start During the Installation Process

  • Symptoms: The system encounters a "Cannot start service" error during installation.
    SOTI Connectservice not started
  • Issue Resolution:
    1. Stop any running antivirus programs.
    2. Re-run the SOTI Connect installer.

Unable to Access SATO Printer via Hostname when Using Device Registry

  • Symptoms: IPv4 mode is static, with a specified static IP and a specified hostname. However, the printer is inaccessible by hostname.
  • Issue Resolution: If the hostname is a Dynamic Host Configuration Protocol (DHCP) hostname, set IPv4 mode to DHCP.
    Note: Do not use static mode or static IP with a printer that uses a DHCP hostname. If you use static mode or static IP, the DHCP hostname cannot connect to the printer.

SOTI Connect Becomes Slow or Unresponsive on Windows Virtual Machines

  • Symptoms: The machine gradually becomes slow or unresponsive on a Windows VM that SOTI Connect is running on.
  • Issue Resolution:
    1. Reboot the Windows VM weekly.
    2. Keep the Windows VM updated.
    Tip: Windows operating systems do not always automatically release resources, which can lead to performance degradation. To restore optimal performance, periodically reboot the VM to reset resource allocation.

SOTI Connect Installation Fails During the Database Data Deletion Step, Resulting in a Rollback Error

  • Symptoms: During the SQL connection step, selecting the database data deletion checkbox does not delete data and leads to a rollback error.
    The following entries appear in the installer logs:
    2023-07-25 17:48:59,992 [ERROR] [ 8] Installer - Database migration failed and the
    installation/update cannot be continued. Please contact support for further assistance.
    2023-07-25 17:48:59,992 [ERROR] [ 8] Installer - Installation failed
    System.Exception: Database migration failed and the installation/update cannot be continued.
    Please contact support for further assistance.
  • Issue Resolution: Manually delete the SQL data and log files.
    1. Navigate to the Server Properties panel of the VM hosting SQL and select Database Settings.
    2. Record the location of the data and the logs (blue boxes).
      The Database Settings tab shows the location of data and log files
    3. Navigate to the directories and delete all files in them.
      Note: Delete only the file contents, not the folders themselves.

Unable to Connect SOTI Identity with SOTI Connect

  • Symptoms: While attempting to add SOTI Connect to a SOTI Identity tenant, the following errors occur:
    Error in SOTI Connect:
    SOTI Connect errors
    Affected versions: SOTI Connect 2024.0 and later.
    Error in SOTI Identity (v2024.0.1):
    SOTI Identity errors
  • Issue Resolution:
    1. SOTI Connect may already be registered to another instance of SOTI Identity. Locate the first connection and delete it from the SOTI Identity console.
    2. Check for certificate issues. For example, an expired or invalid GoDaddy certificate on the SOTI Connect MS server.
    3. Verify the Fully Qualified Domain Name (FQDN) in the SOTI Connect installation. For example, "SotiConnect20" instead of "SotiConnect20.soticonnect.com".
      Note: The FQDN is passed to SOTI Identity and SOTI Identity uses it to call back to SOTI Connect. If the FQDN is wrong, SOTI Identity cannot reach SOTI Connect.

Database Migration Fail: 2024.0 to 2024.1.0.7405

  • Symptoms: Upgrading from SOTI Connect 2024.0 to 2024.1.0.7405 may have an edge case that will fail database migration and cause a rollback.
    SOTI Connect upgrade error

    Affected versions: SOTI Connect 2024.0 and later.

  • Issue Resolution: Run the following SQL script to prepare the database before updating SOTI Connect.
    use SotiConnectManagementServer
    
    IF OBJECT_ID('tempdb..#removeJsonMetadata') IS NOT NULL
    	DROP PROCEDURE #removeJsonMetadata
    GO
    
    CREATE PROCEDURE #removeJsonMetadata
    @JsonText nvarchar(max),
    @Result nvarchar(max) OUTPUT
    as 
    	declare @idBegin int = 0;
    	declare @idEnd int = 0;
    	select @idBegin = CHARINDEX('"$id":"', @JsonText, @idBegin)
    	WHILE @idBegin > 0
    	BEGIN
    		select @idEnd = @idBegin +  LEN('"$id":"')
    		select @idEnd = CHARINDEX('"', @JsonText, @idEnd)
    		select @idEnd = case when SUBSTRING(@JsonText, @idEnd + 1, 1) = ',' then @idEnd + 2 else @idEnd + 1 end
    		select @JsonText = REPLACE(@JsonText, SUBSTRING(@JsonText, @idBegin, @idEnd - @idBegin), '');
    		select @idBegin = CHARINDEX('"$id":"', @JsonText, @idBegin)
    	END
    	select @Result = @JsonText
    RETURN
    GO
    
    
    declare @JsonText nvarchar(max)
    
    DECLARE employee_cursor CURSOR FOR
      SELECT RuleJson
      FROM   [SotiConnectManagementServer].[dbo].[Rules]
    
    OPEN employee_cursor;
    FETCH NEXT FROM employee_cursor INTO @JsonText
    WHILE @@FETCH_STATUS = 0
      BEGIN  
    	  exec #removeJsonMetadata @JsonText, @JsonText output
          UPDATE [SotiConnectManagementServer].[dbo].[Rules]
          SET    RuleJson = @JsonText
          WHERE  CURRENT OF employee_cursor;
    
          FETCH NEXT FROM employee_cursor INTO @JsonText
      END;
    CLOSE employee_cursor;
    DEALLOCATE employee_cursor; 

Zebra Device Connection Status Repeatedly Drops to "Device Not Reachable"

  • Symptoms: Zebra ZT421 printers enrolled on SOTI Connect 2024.2 encounter frequent connection drop issues.
    • Affected versions: SOTI Connect 2024.2 and later.
    • Affected devices: Zebra ZT421 printers.
    Error in MQTT Server Event.log:
    2024-05-28 16:11:17,140 - Client ID: UNKNOWN, IP: was disconnected. reason: SSL message transmission failed.
    2024-05-28 16:12:00,095 - Client ID: UNKNOWN, IP: was disconnected. reason: SSL message transmission failed.
    2024-05-28 16:14:03,123 - Client ID: UNKNOWN, IP: was disconnected. reason: SSL message transmission failed.
    2024-05-28 16:14:15,458 - Client ID: UNKNOWN, IP: UNKNOWN disconnected ungracefully.
    2024-05-28 16:14:17,131 - Client ID: UNKNOWN, IP: UNKNOWN was disconnected. reason: SSL message transmission failed.
    2024-05-28 16:14:19,425 - Client ID: UNKNOWN, IP: was disconnected. reason: SSL message transmission failed.
  • Issue Resolution: Increase the MQTT keep-alive time of device to 30—60 seconds.

SOTI Connect URL is not Accessible After Update

  • Symptoms: After upgrading the SOTI Connect instance, the console URL might be inaccessible.
  • Affected versions: SOTI Connect 2024.2 and later.
  • Issue Resolution: Restart the Management Service (MS).