Qlik Community

Qlik NPrinting Discussions

Discussion Board for collaboration on Qlik NPrinting.

Announcements
BI & Data Trends 2021. Discover the top 10 trends emerging in today. Join us on Dec. 8th REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Master III
Master III

Benchmark configuration is throwing error

I am trying to install benchmark in my local machine (connected to VPN), followed all the steps mentioned in the ReadMe.md.

https://community.qlik.com/t5/Qlik-Support-Knowledge-Base/CEF-rendering-errors-in-NPrinting-Troubles...

I get 403 error after I see the message 'Starting tasks'.

Anyone faced similar issue? Looks like an authentication problem but not sure how to fix it!

@Frank_S 

@Lech_Miszkiewicz 

@Andrew_Kruger 

@Ruggero_Piccoli 

*********************

======================================================
====== NPrinting SenseNavigator Probe/Benchmark ======
======================================================

INFO : Exported chart images will be saved in directory C:\tmp

INFO: To connect to Sense 2.2, the QlikClient certificate (client.pfx) must be installed in 'Current User', 'Personal' Store, and the CA Certificate (root.cer) must be installed in 'Local Computer','Trusted Root Certification Authorities'.

INFO: Collecting QlikClient Certificates:
From 'Current User','Personal' Certificate Store.
From *.pfx files in '%ProgramFIles%\NprintingServer\Settings\SenseCertificates'

Found Certificate for : https://<SENSE SERVER>  (updated to hide server location)
Found Certificate for : https://<SENSE SERVER> (updated to hide server location)


Connecting to proxy: <SENSE SERVER> (updated to hide server location)

Found app: App1

....

...

Found app: App 100
Found app: count

Starting tasks. PLEASE WAIT...
Some tasks failed. Exception(s): System.AggregateException: One or more errors occurred. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Engine.Navigator.QlikSense.QlikSenseConnectionString, System.Collections.Generic.IEnumerable`1[Engine.Navigator.QlikSense.ISenseNavigatorFactory])' on type 'QlikSenseContentNavigator'. ---> The remote server returned an error: (403) Forbidden. (See inner exception for details.) ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.
at System.Net.HttpWebRequest.GetResponse()
at Engine.Navigator.QlikSense.SDK.QRSApi.TryGetResponse(HttpWebRequest request)
at Engine.Navigator.QlikSense.SDK.QRSApi.DoPost(QlikSenseConnectionString connectionString, String port, String urlChunk, Boolean addQlikCertificate, String body, Boolean impersonateService)
at Engine.Navigator.QlikSense.SDK.QRSApi.GetValidEngines(QlikSenseConnectionString connectionString)
at Engine.Navigator.QlikSense.SDK.SenseApp.SelectEngine(QlikSenseConnectionString connectionString)
at Engine.Navigator.QlikSense.SDK.SenseApp..ctor(QlikSenseConnectionString connectionString, Int32 renderRequestOverallTimeoutMSec, IQlikSenseNavigatorConfiguration navigatorConfig)
at Engine.Navigator.QlikSense.SDK.SenseNavigator..ctor(QlikSenseConnectionString connectionString, RenderingManager renderingManager, IQlikSenseNavigatorConfiguration navigatorConfig)
at Engine.Navigator.QlikSense.SDK.SenseNavigatorFactory.GetSenseNavigator(QlikSenseConnectionString connectionString)
at Engine.Navigator.QlikSense.QlikSenseContentNavigator.<>c__DisplayClass2_0.<.ctor>b__0(ISenseNavigatorFactory nf)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at Engine.Navigator.QlikSense.QlikSenseContentNavigator..ctor(QlikSenseConnectionString connectionString, IEnumerable`1 navigatorFactories)
at lambda_method(Closure , Object[] )
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
--- End of inner exception stack trace ---
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.ResolveNamed[TService](IComponentContext context, String serviceName, IEnumerable`1 parameters)
at Qlik.Printing.QlikPrintingModule.<>c.<Load>b__0_1(IComponentContext ctx, IEnumerable`1 params)
at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass1`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p)
at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
at lambda_method(Closure , String , Int32 , Double )
at Engine.Navigator.QlikSense.Benchmarks.Program.<>c__DisplayClass11_0.<CreateTask>b__0() in C:\Jws\release-19.9.x-GsL0YuxYW\server\NPrinting\src\Engine.Navigator.QlikSense.Benchmarks\Program.cs:line 391
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of inner exception stack trace ---
---> (Inner Exception #0) Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Engine.Navigator.QlikSense.QlikSenseConnectionString, System.Collections.Generic.IEnumerable`1[Engine.Navigator.QlikSense.ISenseNavigatorFactory])' on type 'QlikSenseContentNavigator'. ---> The remote server returned an error: (403) Forbidden. (See inner exception for details.) ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.
at System.Net.HttpWebRequest.GetResponse()
at Engine.Navigator.QlikSense.SDK.QRSApi.TryGetResponse(HttpWebRequest request)
at Engine.Navigator.QlikSense.SDK.QRSApi.DoPost(QlikSenseConnectionString connectionString, String port, String urlChunk, Boolean addQlikCertificate, String body, Boolean impersonateService)
at Engine.Navigator.QlikSense.SDK.QRSApi.GetValidEngines(QlikSenseConnectionString connectionString)
at Engine.Navigator.QlikSense.SDK.SenseApp.SelectEngine(QlikSenseConnectionString connectionString)
at Engine.Navigator.QlikSense.SDK.SenseApp..ctor(QlikSenseConnectionString connectionString, Int32 renderRequestOverallTimeoutMSec, IQlikSenseNavigatorConfiguration navigatorConfig)
at Engine.Navigator.QlikSense.SDK.SenseNavigator..ctor(QlikSenseConnectionString connectionString, RenderingManager renderingManager, IQlikSenseNavigatorConfiguration navigatorConfig)
at Engine.Navigator.QlikSense.SDK.SenseNavigatorFactory.GetSenseNavigator(QlikSenseConnectionString connectionString)
at Engine.Navigator.QlikSense.QlikSenseContentNavigator.<>c__DisplayClass2_0.<.ctor>b__0(ISenseNavigatorFactory nf)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at Engine.Navigator.QlikSense.QlikSenseContentNavigator..ctor(QlikSenseConnectionString connectionString, IEnumerable`1 navigatorFactories)
at lambda_method(Closure , Object[] )
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
--- End of inner exception stack trace ---
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.ResolveNamed[TService](IComponentContext context, String serviceName, IEnumerable`1 parameters)
at Qlik.Printing.QlikPrintingModule.<>c.<Load>b__0_1(IComponentContext ctx, IEnumerable`1 params)
at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass1`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p)
at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
at lambda_method(Closure , String , Int32 , Double )
at Engine.Navigator.QlikSense.Benchmarks.Program.<>c__DisplayClass11_0.<CreateTask>b__0() in C:\Jws\release-19.9.x-GsL0YuxYW\server\NPrinting\src\Engine.Navigator.QlikSense.Benchmarks\Program.cs:line 391
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()<---

*** ERROR:One or more errors occurred.
*** STACKTRACE: at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Engine.Navigator.QlikSense.Benchmarks.Program.<>c__DisplayClass10_0.<Main>b__2(Task`1 t) in C:\Jws\release-19.9.x-GsL0YuxYW\server\NPrinting\src\Engine.Navigator.QlikSense.Benchmarks\Program.cs:line 307
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at Engine.Navigator.QlikSense.Benchmarks.Program.Main(String[] args) in C:\Jws\release-19.9.x-GsL0YuxYW\server\NPrinting\src\Engine.Navigator.QlikSense.Benchmarks\Program.cs:line 309
*** INNER EXCEPTION:An exception was thrown while invoking the constructor 'Void .ctor(Engine.Navigator.QlikSense.QlikSenseConnectionString, System.Collections.Generic.IEnumerable`1[Engine.Navigator.QlikSense.ISenseNavigatorFactory])' on type 'QlikSenseContentNavigator'. ---> The remote server returned an error: (403) Forbidden. (See inner exception for details.)
*** INNER EXCEPTION STACKTRACE: at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.ResolveNamed[TService](IComponentContext context, String serviceName, IEnumerable`1 parameters)
at Qlik.Printing.QlikPrintingModule.<>c.<Load>b__0_1(IComponentContext ctx, IEnumerable`1 params)
at Autofac.Builder.RegistrationBuilder.<>c__DisplayClass1`1.<ForDelegate>b__0(IComponentContext c, IEnumerable`1 p)
at Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters)
at lambda_method(Closure , String , Int32 , Double )
at Engine.Navigator.QlikSense.Benchmarks.Program.<>c__DisplayClass11_0.<CreateTask>b__0() in C:\Jws\release-19.9.x-GsL0YuxYW\server\NPrinting\src\Engine.Navigator.QlikSense.Benchmarks\Program.cs:line 391
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
Stopping networking.

THERE WERE ERRORS. PLEASE COPY ERROR MESSAGES AND SEND TO R&D.

COMPLETED. Press ENTER to Quit.

 

Thanks,

Digvijay

 

 

 

 

 

Labels (2)
7 Replies
Highlighted
Employee
Employee

Hi,

From the log you posted it seems that you are using Qlik Sense 2.2 that is not supported by Qlik NPrinting June 2019. Refer to https://help.qlik.com/en-US/nprinting/June2019/Content/NPrinting/DeployingQVNprinting/Supported-unsu... : "As of Qlik NPrinting June 2018, Qlik NPrinting is not compatible with Qlik Sense 2.2. If you are using an unsupported version of Qlik Sense, you should update your installation, even if it seems to be working.".

So I suggest you to start by upgrading your installation to supported versions.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Highlighted

Qlik Sense 2.2 😂😂🤣 - dinosaur!!!

 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Highlighted
Master III
Master III

Thanks @Ruggero_Piccoli  for checking on this.

Thats strange! We have Feb 2020 Patch 2. Where exactly you see 2.2 version or what indicates that? 

Thanks<

DJ

Highlighted
Master III
Master III

I never got chance to work in 2.2, the day I was moved from Qlikview to Qlik Sense project, it was 3.0 for me. 🙂

Highlighted
Employee
Employee

Hi,

At the beginning, but maybe I misunderstood the logs 😞

aaa.png

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Highlighted
Master III
Master III

 

@Ruggero_Piccoli 

Yeah, I see that, I guess its not updated may be in the code since long. 

It connects fine to Sense and shows all the apps but fails in the process after showing - Starting tasks. PLEASE WAIT...

Thanks,

DJ

Highlighted
Employee
Employee

Hi,

The error: "The remote server returned an error: (403) Forbidden." typically appears if:

  • there is an issue with the certificates
  • the user that runs the benchmark is not RootAdmin in Qlik Sense

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.