Cognos Analytics

 View Only
Expand all | Collapse all

Jupyter Notebook install on RHEL

  • 1.  Jupyter Notebook install on RHEL

    Posted Mon June 05, 2023 02:03 PM
    Edited by Diego Campos Mon June 05, 2023 04:37 PM

    Hi, I am trying to install Cognos Jupyter Notebook 11.2.4 on Red Hat Linux 8.8.
    When I start the installer, it stays blank and I can't proceed.

    When I try to run the installer in Console mode but it gives me the following error

    Any ideas?
    Thank you.



    ------------------------------
    Diego Campos
    ------------------------------



  • 2.  RE: Jupyter Notebook install on RHEL

    Posted Tue June 06, 2023 09:47 AM

    Hello Diego,

    IBM doesn't support the console mode installer. They only document the GUI based install or silent installation. My initial thought regarding the blank GUI based installer is that there might be some missing prerequisites. Have you verified them from: https://www.ibm.com/support/pages/ibm-cognos-analytics-premises-112x-supported-software-environments?

    For instance, RedHat 8 says:

    Additional packages

    yum install libXtst
    yum install libX11.so.6
    yum install libnsl
    yum install nspr.i686 nspr.x86_64
    yum install nss.i686 nss.x86_64
    yum install motif.i686 motif.x86_64
    yum install libnsl.so.1
    yum install libstdc++.so.6

    After that I would also double check your soft limits as the defaults typically do not meet requirements: https://www.ibm.com/docs/en/cognos-analytics/11.2.0?topic=settings-set-ulimit-values-unix-linux-operating-systems.



    ------------------------------
    Robert Hofstetter
    ------------------------------



  • 3.  RE: Jupyter Notebook install on RHEL

    Posted Tue June 06, 2023 05:49 PM

    Hello Roberto
    Thanks for the reply.

    I'll investigate the links and then I'll let you know.

    Regards.



    ------------------------------
    Diego Campos
    ------------------------------



  • 4.  RE: Jupyter Notebook install on RHEL

    Posted Tue June 06, 2023 06:58 PM

    Hi.

    I just installed the library dependencies but the error continues.
    Now it doesn't start the installer window.

    Tomorrow I will try to generate a response file to test the silent installation

    Regards.



    ------------------------------
    Diego Campos
    ------------------------------



  • 5.  RE: Jupyter Notebook install on RHEL

    Posted Wed June 07, 2023 09:44 AM

    Invalid magic cookie means that your X authority isn't set up correctly. Curious that didn't appear in your previous screen captures. That likely means xauth is already installed but you might make sure with yum install xauth. If you are in a situation where you have to switch user then you need to transfer your Xauthority over to the target user: https://blog.mobatek.net/post/how-to-keep-X11-display-after-su-or-sudo/. What that boils down to is you need to echo $DISPLAY and capture the display value then xauth list and capture the authority that matches that display value under your initial log in and then once you switch user you need to export DISPLAY='display value' and xauth add 'xauth value'. In a multi-user environment the tail -1 approach from the link may not always work.



    ------------------------------
    Robert Hofstetter
    ------------------------------



  • 6.  RE: Jupyter Notebook install on RHEL

    Posted Wed June 07, 2023 08:43 AM

    Hi.
    Does anyone have an installation Response file as an example, for linux environment?



    ------------------------------
    Diego Campos
    ------------------------------



  • 7.  RE: Jupyter Notebook install on RHEL

    Posted Wed June 07, 2023 10:06 AM

    Templates are provided in the documentation: https://www.ibm.com/docs/en/cognos-analytics/11.2.0?topic=configuration-use-response-file-template. Other than the install path being in UNIX format they really aren't different from a Windows one so you could generate a file from a working environment by running the installer from the command line with -r myresponse.properties as depicted in the documentation: https://www.ibm.com/docs/en/cognos-analytics/11.2.0?topic=configuration-use-silent-installation.



    ------------------------------
    Robert Hofstetter
    ------------------------------



  • 8.  RE: Jupyter Notebook install on RHEL

    IBM Champion
    Posted Thu June 08, 2023 07:00 AM

    I have written a book which covers this, which you might find helpful:

    https://bpbonline.com/en-gb/products/installation-upgradation-and-configuration-of-ibm-cognos-analytics



    ------------------------------
    Alan S Bluck
    Director
    ASB Software Development Limited
    Ringwood, Hampshire, England
    0044 7710612479
    ------------------------------



  • 9.  RE: Jupyter Notebook install on RHEL

    Posted Thu September 07, 2023 06:16 PM
      |   view attached

    Hello everyone.
    After fighting with the installer, I was able to install Cognos Jupyter.
    Currently running on port 8000.


    I have configured the Jupyter service URL in Cognos Analytics.


    When I try to open a new notebook it returns a screen with a warning that it could not communicate with the Jupyter service.


    I tried running the configuration URL (http://cognosjupyter.grupolasegunda.com.ar:8000) and it returns the Jupyter welcome page.

    I have validated ALL the installation guide again and everything would be correct.

    In the same Docker installation, I also have the Image Service (http://cognosjupyter.grupolasegunda.com.ar:9080) configured and running correctly.

    In the Docker log it doesn't show me an error (docker logs ca_jupyter_hub).
    Attached the log file.

    Any ideas or suggestions?.

    Thanks.



    ------------------------------
    Diego Campos
    ------------------------------

    Attachment(s)

    log
    ca_jupyter_hub_docker.log   571 KB 1 version


  • 10.  RE: Jupyter Notebook install on RHEL

    Posted Fri September 08, 2023 03:27 AM

    Hi Diego,

    we had similar issues. In our scenario, we had cognos service running via HTTPand Jupyter on HTTP. The Browser prevented a redirect. This could be seen as an error in developer tools. Depending on your browser, you'd need to allow traffic from secure sources to unsecured sources.

    Regards



    ------------------------------
    Frederik Spang
    ------------------------------



  • 11.  RE: Jupyter Notebook install on RHEL

    Posted Fri September 08, 2023 11:26 AM

    Another thing to validate is that host names resolve through DNS. Containers don't typically inherit hosts files. They do inherit DNS registartion though so cannot resolve hosts unless they are properly registered in DNS. There are other ways that may work such as employing DNSMasq on the host which essentially turns the host into an additional DNS resolver for the container but if this is a production environment it's probably best to just properly register in DNS.



    ------------------------------
    Robert Hofstetter
    ------------------------------



  • 12.  RE: Jupyter Notebook install on RHEL

    Posted Wed September 20, 2023 05:59 PM

    Hi.
    We have added DNS servers to the cognosjupyter server.
    Its full DNS name is: cognosjupyter.lasegunda.com.ar

    I have tried ping and it resolves the name correctly.

    I rebuilt the ca_jupyter_hub container (stop.sh + build.sh + start.sh), but the error is still the same.

    The container's resolv.conf file.

    The Notebook does not start for me.

    I have tried accessing using the gateway (IIS) as well as directly accessing the Dispatcher.

    URL Gateway: https://bi.lasegunda.comar (They use nginx to redirect http requests to https. No ssl certificates were installed in the environment).
    URL Dispatcher: http://caapp1prod.grupolasegunda.com.ar:9300

    I attach the new logs in case you can see any indication of the problem.

    Any ideas?

    Thanks



    ------------------------------
    Diego Campos
    ------------------------------

    Attachment(s)



  • 13.  RE: Jupyter Notebook install on RHEL

    Posted Thu September 21, 2023 03:40 PM

    I assume that is just a typo on the Gateway URL and it should have been https://bi.lasegunda.com.ar. It probably should resolve but did you happen to try resolving both the Gateway and DIspatcher from inside the container?

    If those do resolve then I suspect the issue might be with SSL The following states that you must configure SSL if Cognos Analytics is: Securing Jupyter Notebook Server. However, I wonder if that is intended to mean the Dispatcher URI is using SSL because this one mentions that it communicates with the Dispatcher by default: Configuring Jupyter Notebook Server. See the COGNOS_HOST environment override. That is relatively new and might now allow us to not have to worry about DNS. Still, I would recommend to ensure host names resolve and if they don't you could try that override.



    ------------------------------
    Robert Hofstetter
    ------------------------------



  • 14.  RE: Jupyter Notebook install on RHEL

    Posted Thu September 21, 2023 04:11 PM

    Hi.

    Thanks for the reply.
    In the config.conf file of the Jupyter installation it is the original, that is, do not edit the value of the COGNOS_HOST variable

    The test of starting the Notebook using the dispatcher url (http://caapp1prod.grupolasegunda.com.ar:9300) also does not work and does not use SSL.

    The request from the Dispatcher URL is recorded in the ca_jupyter_hub_new.log file.

    Result of the PING command from the linux server to the windows urls (gateway and dispatcher)

    Regards.



    ------------------------------
    Diego Campos
    ------------------------------



  • 15.  RE: Jupyter Notebook install on RHEL

    Posted Thu September 21, 2023 04:51 PM

    Accessing the ca_jupyter_hub container as root and executing ping against the gateway and dispatcher.



    ------------------------------
    Diego Campos
    ------------------------------