Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  Jupyter Notebook Kernel not found

    Posted Wed March 25, 2020 10:39 AM
    Hello,

    I have 3 machines

    MachineA (192.168.0.1) : I install Cognos Analytics 11.1.5 on Windows
    MachineB (192.168.0.2) : I install Cognos Notebooks 11.1.5 on ubuntu
    MachineC (192.168.0.3) : My machine Webclient

    cognos configuration
    Gateway/External dispatcher/Internal dispatcher URI : http://machineA:9300/bi/v1/disp
    Dispatcher URI for external app : http://192.168.0.1:9300/bi/v1/disp

    When a open notebook from MachineA by using url : http://192.168.0.1:9300/bi I get a kernel error
    When a open notebook from MachineC by using url : http://192.168.0.1:9300/bi I get a kernel error

    When a open notebook from MachineA by using url : http://machineA:9300/bi it's OK
    When a open notebook from MachineC by using url : http://machineA:9300/bi it's OK

    I cannot figure why. Do you have any ideas ?

    I already have an issue with communication between MachineA and MachineB that's why I use IP in URI for external app. Docker is not able to resolve local machine name.

    thank you,

    ------------------------------
    CC C
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Jupyter Notebook Kernel not found

    Posted Wed March 25, 2020 12:11 PM

    Hi,

    at first glance it looks like your Gateway URI might be incorrect. It needs to match the URI you enter in your browser.

    For example:

    1) Gateway = machineA, Browser = 192.168.0.1 ---> kernel failure (Cross origin security fail)
    2) Gateway = 192.168.0.1, Browser = machineA ---> kernel failure (Cross origin security fail)
    3) Gateway = machineA, Browser = machineA ---> kernel success (matching URIs)
    4) Gateway = 192.168.0.1, Browser = 192.168.0.1 ---> kernel success (matching URIs)

    Let me know if that works for you.

    Additionally, if you can get the docker logs from each docker container, that would be a big help in isolating the problem.

    Regards,
    Rob



    ------------------------------
    ROBERT MCAULEY
    ------------------------------



  • 3.  RE: Jupyter Notebook Kernel not found

    Posted Thu March 26, 2020 04:07 AM
    Hi Robert,


    Thank you for the clarification. I assume the Cross origin mechanism you are describing is : https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
    According the Mozilla document it should work. Does it because docker is involve that mechanism failed ?

    regards,


    ------------------------------
    CC C
    ------------------------------



  • 4.  RE: Jupyter Notebook Kernel not found

    Posted Fri June 26, 2020 10:22 AM
    Hi,

    sorry for the huge delay in getting back to you. 

    Yes the situation is further complicated by the server running in docker. If you ensure that your Cognos URL (protocol, host, and port) matches what's in the
    Gateawy URI (in cognos config) this error should disappear.

    Best,
    Rob


    ------------------------------
    ROBERT MCAULEY
    ------------------------------