Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dstqlik
Partner - Contributor
Partner - Contributor

QLIKsense Enterprise - ConnectQlik, SetQlikLicense. [error]

 

Version : Utilizing QLIK-Enteprise Feb2019

Platform AWS ec2 instance Windows 2016

 

ISSUE : When utilizing QLIK powershell modules as shown below in a script we receive the following error.

 

SCRIPT involving QLIK powershell modules (utilized in ansible)

# Import Qlik Cli Module
Import-Module Qlik-Cli

# Connect to Qlik
#Connect-Qlik https://localhost/ -TrustAllCerts -Username {{ Qlik_user_with_domain }}
Connect-Qlik localhost -TrustAllCerts -UseDefaultCredentials

# Set the license information
Set-QlikLicense -serial "{{ SerialNumber }}" -control "{{ ControlNumber }}" -name "{{ LicenseName }}" -organization "{{ Organization }}"

 

ERROR RECEIVED

 

\f0\b \cf0 ERROR MESAGE\ \f3\b0 Invoke-RestMethod : The underlying connection was closed: A connection that was expected to be kept alive was closed by the \ server.\ At C:\\Program Files\\WindowsPowerShell\\Modules\\Qlik-Cli\\functions\\core.ps1:32 char:15\ + ... $result = Invoke-RestMethod -Method $method -Uri $path @params -Web ...\ + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExceptio \ n\ + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

 

0 Replies