Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Fabb
Partner - Contributor II
Partner - Contributor II

Qlik CLI - time out error

Hello,

I use QLIK-CLI to duplicate applications.

It works fine but for large applications, a time out error occurs: "System.Net.WebException: The operation has timed out"

here is the command used:

 

$AppRecover = Copy-QlikApp -id $AppCurrentId

 

Actually, the error occurs in Powershell windows and so end the script (but the copy ends well several minutes after the error).

How can I configure my script to not have this time out or force the program to wait the end of the copy?

 

regards

fabb

Labels (2)
1 Solution

Accepted Solutions
Levi_Turner
Employee
Employee

I am certainly not seeing timeout issues on my side but I do not have an app which requires 15 minutes to copy 🙂 Here's my flow:

PS C:\> $PSVersionTable

Name                           Value                                                                                                                                              
----                           -----                                                                                                                                              
PSVersion                      5.1.14393.3053                                                                                                                                     
PSEdition                      Desktop                                                                                                                                            
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                            
BuildVersion                   10.0.14393.3053                                                                                                                                    
CLRVersion                     4.0.30319.42000                                                                                                                                    
WSManStackVersion              3.0                                                                                                                                                
PSRemotingProtocolVersion      2.3                                                                                                                                                
SerializationVersion           1.1.0.1

PS C:\> Connect-Qlik
PS C:\> $startTime = (Get-Date)
PS C:\> Copy-QlikApp -id b7913ff2-2294-411c-a998-41f472e54359
PS C:\> $endTime = (Get-Date)
PS C:\> $ElapsedTime = (($endTime-$startTime).TotalSeconds)
PS C:\> echo $ElapsedTime
216.8409133

 

Perhaps https://github.com/ahaydon/Qlik-Cli/issues/56#issuecomment-419014686 can be of some help?

View solution in original post

5 Replies
andoryuu
Creator III
Creator III

How long are we talking here? It sounds like you are exceeding the time allowed by your virtual proxy. You can to go QMC, look at your virtual proxies, and review the session inactivity timeout (minutes). If it's too short and you can't extend it due to environmental constraints you could create a new one that only allows certain traffic and make the timeout longer there. We use Qlik-CLI for everything all day long (i.e. every 5 minutes there are processes that run in all environments that invoke it + tons of other processes that use it less frequently)
Fabb
Partner - Contributor II
Partner - Contributor II
Author

Thank you for your answer,

  • The session inactivity timeout is set to 90 minutes.
  • The time out error occurs in the PowerShell script after about 1,30 - 2 minutes.
  • The application need about 15 minutes to duplicate.

 

Have change something or initialize something in yours script for the timeout?

 

Levi_Turner
Employee
Employee

I am certainly not seeing timeout issues on my side but I do not have an app which requires 15 minutes to copy 🙂 Here's my flow:

PS C:\> $PSVersionTable

Name                           Value                                                                                                                                              
----                           -----                                                                                                                                              
PSVersion                      5.1.14393.3053                                                                                                                                     
PSEdition                      Desktop                                                                                                                                            
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                            
BuildVersion                   10.0.14393.3053                                                                                                                                    
CLRVersion                     4.0.30319.42000                                                                                                                                    
WSManStackVersion              3.0                                                                                                                                                
PSRemotingProtocolVersion      2.3                                                                                                                                                
SerializationVersion           1.1.0.1

PS C:\> Connect-Qlik
PS C:\> $startTime = (Get-Date)
PS C:\> Copy-QlikApp -id b7913ff2-2294-411c-a998-41f472e54359
PS C:\> $endTime = (Get-Date)
PS C:\> $ElapsedTime = (($endTime-$startTime).TotalSeconds)
PS C:\> echo $ElapsedTime
216.8409133

 

Perhaps https://github.com/ahaydon/Qlik-Cli/issues/56#issuecomment-419014686 can be of some help?

rzenere_avvale
Partner - Specialist II
Partner - Specialist II

Good afternoon @Fabb ,

I faced the same timeout issue. With @Levi_Turner 's suggestion I was able to overcome it.

I hope this helps,
Riccardo

Fabb
Partner - Contributor II
Partner - Contributor II
Author

You right, it works for me now, 

Thank you all