Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
fernando_tonial
Employee
Employee

ERROR Failed to create Qlik app via process

Hello.

My QDC can't create the application in qlik sense.

LOG from Catalina.out

2019-11-12 18:12:01,005 INFO Starting scheduled job of type:podiumDeadJobCleanerSvc, schedule:0 * * * * ?, id:3, @time:Tue Nov 12 18:12:01 BRT 2019 [JobScheduler[Podium-scheduled-1]]
2019-11-12 18:13:01,013 INFO Starting scheduled job of type:podiumDeadJobCleanerSvc, schedule:0 * * * * ?, id:3, @time:Tue Nov 12 18:13:01 BRT 2019 [JobScheduler[Podium-scheduled-1]]
2019-11-12 18:14:01,000 INFO Started scheduling jobs [JobScheduler[Podium-scheduled-1]]
2019-11-12 18:14:01,008 INFO Starting scheduled job of type:podiumDeadJobCleanerSvc, schedule:0 * * * * ?, id:3, @time:Tue Nov 12 18:14:01 BRT 2019 [JobScheduler[Podium-scheduled-1]]
2019-11-12 18:14:01,014 INFO Finished scheduling jobs [JobScheduler[Podium-scheduled-1]]
2019-11-12 18:14:08,597 INFO Qlik application will be created under user:QlikSense@ad.mpsc.mp.br [QlikSenseAppGeneratorSvcImpl[http-bio-8080-exec-1]]
2019-11-12 18:14:08,597 INFO Create Qlik application for user:QlikSense@ad.mpsc.mp.br [QlikSenseAppGeneratorSvcImpl[http-bio-8080-exec-1]]
2019-11-12 18:14:08,607 INFO Using connection at index 0 for entity: Cidade [QlikSenseAppGeneratorSvcImpl[http-bio-8080-exec-1]]
2019-11-12 18:14:08,607 INFO Create Qlik application with no appId [QlikSenseAppGeneratorSvcImpl[http-bio-8080-exec-1]]
2019-11-12 18:14:08,613 INFO Start process to publish to Qlik application [QlikSenseAppGeneratorSvcImpl[http-bio-8080-exec-1]]
2019-11-12 18:15:01,007 INFO Starting scheduled job of type:garbageCollectorSvc, schedule:0 0/5 * * * ?, id:2, @time:Tue Nov 12 18:15:01 BRT 2019 [JobScheduler[Podium-scheduled-1]]
2019-11-12 18:15:01,012 INFO Starting garbage collection for 0 registries. [GarbageCollectorExecutorImpl[Podium-task-71-garbageCollectorSvc-2]]
2019-11-12 18:15:01,012 INFO Finished removing garbage. [GarbageCollectorExecutorImpl[Podium-task-71-garbageCollectorSvc-2]]
2019-11-12 18:15:01,017 INFO Starting scheduled job of type:podiumDeadJobCleanerSvc, schedule:0 * * * * ?, id:3, @time:Tue Nov 12 18:15:01 BRT 2019 [JobScheduler[Podium-scheduled-1]]
2019-11-12 18:15:08,925 ERROR Failed to create Qlik app via process [QlikSenseAppGeneratorSvcImpl[http-bio-8080-exec-1]]
com.podiumdata.base.error.PodiumFault: core.error.code.UNABLE_TO_EXTRACT_APP_ID_FROM_QLIK_SCRIPT - Unable to extract app id from qlik script call return.
at com.nvs.core.service.impl.QlikSenseAppGeneratorSvcImpl.runAppCreationCommand(QlikSenseAppGeneratorSvcImpl.java:316)
at com.nvs.core.service.impl.QlikSenseAppGeneratorSvcImpl.createQlikApplication(QlikSenseAppGeneratorSvcImpl.java:113)
at com.nvs.core.service.impl.QlikSenseAppGeneratorSvcImpl.createApplication(QlikSenseAppGeneratorSvcImpl.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy269.createApplication(Unknown Source)
at com.nvs.ui.controller.QlikSenseAppGenerationController.createApplication(QlikSenseAppGenerationController.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:114)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
at org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:883)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:653)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:115)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:121)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1137)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:319)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
2019-11-12 18:15:08,926 ERROR Message from Qlik script:{ Error: App not found
at Intercept.errorInterceptor (/usr/local/qdc/qlik/node_modules/enigma.js/enigma.js:2305:19)
at process._tickCallback (internal/process/next_tick.js:68:7) code: 1003, parameter: '' }
- ERROR:REQUEST TIMEOUT
[QlikSenseAppGeneratorSvcImpl[http-bio-8080-exec-1]]
2019-11-12 18:15:08,926 ERROR Publish to Qlik process failed [EntityController[http-bio-8080-exec-1]]

 

Best Regards.

Tonial.

Don't Worry, be Qlik.
Labels (1)
1 Solution

Accepted Solutions
lucassad
Employee
Employee

Hi Fernando,

If you check the file createQlikApp.js file you are getting the timeout error when the app is being created:

session.open().then((global) => {
	global.createApp(appname).then((appId) => {             
		setTimeout(function () {
			console.error("REQUEST TIMEOUT");
			session.close();
			process.exit(1);
		}, 60000);

 

So I think you are not pointing the WebSocket session for a server that has a Qlik Engine.

Please try to change the engineHost constant for a host that has a Qlik Engine.
 
Like:

//const engineHost = process.argv[5];
const engineHost = qlikengine01; // or the IP Address

 

Thanks

View solution in original post

2 Replies
lucassad
Employee
Employee

Hi Fernando,

If you check the file createQlikApp.js file you are getting the timeout error when the app is being created:

session.open().then((global) => {
	global.createApp(appname).then((appId) => {             
		setTimeout(function () {
			console.error("REQUEST TIMEOUT");
			session.close();
			process.exit(1);
		}, 60000);

 

So I think you are not pointing the WebSocket session for a server that has a Qlik Engine.

Please try to change the engineHost constant for a host that has a Qlik Engine.
 
Like:

//const engineHost = process.argv[5];
const engineHost = qlikengine01; // or the IP Address

 

Thanks

daniel_dalnekoff
Contributor III
Contributor III

I'm getting a very similar error - tried the suggested resolution, and also tried to adjust the timeout, but still getting the same error - any thoughts?

 

2020-02-19 20:14:57.684: ErrorEvent {
target:
WebSocket {
_events:
[Object: null prototype] {
open: [Function],
close: [Function],
error: [Function],
message: [Function] },
_eventsCount: 4,
_maxListeners: undefined,
readyState: 3,
protocol: '',
_binaryType: 'nodebuffer',
_closeFrameReceived: false,
_closeFrameSent: false,
_closeMessage: '',
_closeTimer: null,
_closeCode: 1006,
_extensions: {},
_isServer: false,
_receiver: null,
_sender: null,
_socket: null,
url:
'wss://<has my server name>:4747/app/4cb2c5d0-b4d8-4805-8696-N63mRTfVHfaU',
_req: null },
type: 'error',
message: 'connect ETIMEDOUT <has my server ip>:4747',
error:
{ Error: connect ETIMEDOUT <has my server ip>:4747
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT',
syscall: 'connect',
address: '<has my server ip>',
port: 4747 } }
- ERROR:
2020-02-19 20:14:57.684: Publish to Qlik application FAILED