1 Reply Latest reply: Jan 4, 2018 6:40 AM by Radovan Oresky RSS

    How to solve the need for restarting Qlik Engine?

    Radovan Oresky

      Hi fellow AAI enthusiasts,

       

      Did anybody solve the need to restart the Qlik Engine service after starting Rserve and AA SSE?

      I'm wandering if there is any elegant solution, like that everything would run in the background and after restarting the server, all services would start in the correct sequence.

      Any advice is appreciated.

       

      Kind regards,

      Radovan

        • Re: How to solve the need for restarting Qlik Engine?
          Radovan Oresky

          Many thanks to ltn for a workaround solution he shared on qlik-branch.slack.com!

           

          When running the SSE plugins in the same machine as Qlik Sense, make use of the servicedispatcher and services.conf that exists in:

          C:\Program Files\Qlik\Sense\ServiceDispatcher\services.conf

           

          Make a backup copy of this file since it is overwritten when upgrading to a newer Qlik Sense version.

          The services specified in that conf file is started in the specified order and if any of the processes is killed it will be started automatically again.

          Simply add your plugin services before the engine service (can be directly after Globals). Example:

           

          [PythonPlugin]

          //Disabled=true

          Identity=Qlik.SSE-Python-Plugin

          DisplayName=Sense SSE Python Plugin

          ExePath=D:\Python\Python36-32\python.exe

           

          [PythonPlugin.parameters]

          D:\dev\python-ext\HelloWorld\ExtensionService_helloworld.py

           

          [RPlugin]

          //Disabled=true

          Identity=Qlik.SSE-R-Plugin

          DisplayName=Sense SSE R Plugin

          ExePath=D:\SSE\R\SSEtoRserve.exe

           

          [engine]

          //Disabled=true

          Identity=Qlik.engine

          DisplayName=Sense Engine

           

          In most cases, if engine have had a connection to the SSE plugin, it usually works to restart the plugin without restarting Qlik Sense Engine service (if the plugin has not changed capabilities).

          Also have a look at the following page: https://github.com/qlik-oss/sse-r-plugin/blob/master/GetStarted.md#configure-ssetorserve

          Here you can for instance specify an Rserve process that SSEtoRserve will start and monitor automatically. Example:

           

          rProcessPathToStart : Default empty (no additional action, SSEtoRserve assumes that Rserve is running already). If you want SSEtoRserve to start any R process during startup then set it to i.e. C:\Program Files\R\R-3.3.3\bin\x64\Rserve.exe or C:\Program Files\Microsoft\R Open\bin\x64\Rterm.exe or C:\Program Files\R\R-3.3.3\bin\x64\Rterm.exe , depending on what you want. If the process dies then SSEtoRserve will try to start it again after ~10 seconds.