Cognos Analytics

Cognos Analytics

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

 View Only
  • 1.  Jupyter server on Windows 10 issue

    Posted Mon January 27, 2020 12:47 PM
    I'm attempting to install Jupyter server on my Windows 10 system.  I've installed Docker for Windows and verified it is working. I've run the Cognos install for Windows Jupyter, it worked fine although I did see in the command text that it couldn't collect pixiedust, 'No matching distribution found for pixiedust...'.  Not sure what issue that will cause but my main question is about connection error when starting Cognos Analytics V11.1.5 new Notebook.  I receive "An unexpected error occurred. Check the Jupyter server logs.".  Checking the logs I found a 'server: 404 client error: Not found ("no such image: ca_jupyter_server_instance: latest: No such image'.  
    When I ran the 'docker image ls' command I see the following:
    ca_jupyter_viewer                                    latest
    ca_jupyter_hub                                         latest
    ca_jupyter_server_instance_original       11.1.5.xxx
    ca_jupyter_server_instance_original       installed
    ca_jupyter_hub_original                          11.1.5.xxx
    ca_jupyter_hub_original                          installed
    ca_jupyter_viewer_original                     11.1.5.xxx
    ca_jupyter_viewer_original                      installed

    There doesn't seem to be an image file for 'ca_jupyter_server_instance'.  What or why would that be the case and how do I correct that?  I though about renaming the instance_original but I'm not familiar with image files and how they are used so I figured I would screw up the system even worse.  I uninstalled the jupyter server with the script and then restarted but the same errors show up.
    Hope someone can assist me with this issues.

    ------------------------------
    Scott
    Cognos Administrator
    Chelan County PUD
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Jupyter server on Windows 10 issue

    Posted Tue January 28, 2020 02:36 PM

    Hey Scott,

    Thanks for reaching out. I suspect something went wrong in the build process of the docker images, and the image "ca_jupyter_server_instance:latest" 
    was not properly created.

    Would you mind running the script "build.bat" and looking for anything unusual in the logs? 

    Regards,
    Robert



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



  • 3.  RE: Jupyter server on Windows 10 issue

    Posted Tue January 28, 2020 02:42 PM
    The pixiedust error in itself is not a big problem, however that may have caused the build process to halt for the image "ca_jupyter_server_instance:latest".
    I would try removing the package from "dist/scripts/additional_packages.txt" and re-installing the server.

    Let me know if that helps!

    Regards,
    Robert

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



  • 4.  RE: Jupyter server on Windows 10 issue

    Posted Wed January 29, 2020 08:00 PM

    #robert mcauley  Thanks for the info.  I did comment out the pixiedust package and then ​ran the build.bat again.  This time I now see the Docker image "ca_jupyter_server_instance: latest".  I restarted the jupyter server running on my laptop under a 'local System'.  When i run 'new notebook' from Cognos I now receive a different error,"The Cognos Analytics server can't communicate with the Jupyter server."  Check the Jupyter Service Location field.  I did that and confirmed it matched the parameter 'Host_Name' and 'Host_port' in the config.conf file on the laptop.

    I also looked at the log files on Docker and found the following error in the lines:

    [W 2020-01-29 19:16:55.348 SingleUserNotebookApp auth:370] Failed to check authorization: [400] Bad Request

    [W 2020-01-29 19:16:55.348 SingleUserNotebookApp auth:372] {"error": "invalid_request", "error_description": "Invalid authorization code parameter"}

    [W 2020-01-29 19:16:55.349 SingleUserNotebookApp web:1680] 500 GET...

    I'm the Directory Administrator on Cognos so my security should be fine.  I'm also the admin on the laptop.  Can you point me to where I might be missing something on the authentication process?  Should I run Docker on my laptop with a service account or is the local account ok?

    Thanks for your help.



    ------------------------------
    Scott Taylor
    Cognos Administrator
    Chelan County PUD
    Wenatchee WA
    ------------------------------



  • 5.  RE: Jupyter server on Windows 10 issue

    Posted Thu January 30, 2020 11:30 AM
    Edited by System Admin Fri January 20, 2023 04:22 PM
    Hey Scott,

    That's an odd one - you should be fully authenticated to use notebooks.
    There isn't a whole lot involved in the authentication process, other than verifying that the user who is running the notebook is a Cognos user
    and that the request originated from the browser you're in.

    I'd like to investigate further - could you share the entire jupyter hub docker logs with the error in it?
    It'd probably be best to restart the server to reset the logs (by running startup.bat) and attempting to open a new notebook again. 

    Also, just a few follow-up questions:
    1) Are cognos analytics and jupyter notebooks encrypted with SSL?
    2) Is there a gateway in front of Cognos Analytics?

    Thanks,
    Rob

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



  • 6.  RE: Jupyter server on Windows 10 issue

    Posted Fri January 31, 2020 01:15 PM
      |   view attached
    Thanks for the directions Robert.
    Regarding your questions, No we are not using SSL, and Yes we are using a gateway in front of Cognos Analytics

    I did a restart of the server and then did another test from CA to start a new NOTEBOOK.  Received the same error as last time.  I capture all the log files in the attached txt file (Instance log, Hub log, Viewer log).  Hope you see something I've done incorrectly that could fix this.

    Thanks again for taking time to assist me with this problem.  It's great to have expertise like yours in the community to help newbies like me.
    Attached file is "Test_jupyter_20200131_at.txt"

    ------------------------------
    Scott Taylor
    Cognos Administrator
    Chelan County PUD
    Wenatchee WA
    ------------------------------

    Attachment(s)



  • 7.  RE: Jupyter server on Windows 10 issue

    Posted Mon February 03, 2020 10:41 AM
    Thanks for the logs Scott, and sorry for the delayed response!

    So far I haven't been able to reproduce the error you're seeing, but in the meantime I was wondering if you could try two things for me:

    1) Access Cognos Analytics from the browser without going through the gateway, and opening a new notebook. I'd like to see if something in
    your gateway configuration could be causing the error.

    2) Try installing the jupyter server as a windows 10 Admin, if you haven't done so already. This ensures that the processes have adequate permissions. 

    I'll continue investigating in the meantime. Hang tight!

    Regards,
    Rob

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



  • 8.  RE: Jupyter server on Windows 10 issue

    Posted Tue February 04, 2020 07:13 PM
    Thank Robert.  I did test using the app server connection and it seems to connect fine.  I then went back to the Notebook capability and made sure the permissions were set correctly.  It looks like the directory administrators were set with 'assign'.  Changing it to custom and clicking all permissions to grant solved my problem through the gateway server.

    Simple solution and I didn't see the error using 'assign' permission status .  Sorry to ask you to review all my work when it was simple set up problem on my end.

    Thank you very much for taking time to try and find the problem even though it ended up being a user error.  I truly appreciate you for giving your time to others on this site and helping move us all forward.
    Thank you.

    ------------------------------
    Scott
    Cognos Administrator
    Wenatchee WA
    ------------------------------



  • 9.  RE: Jupyter server on Windows 10 issue

    Posted Tue February 04, 2020 07:22 PM
    Thanks Scott for giving closure to the problem!
    It's absolutely my pleasure to help our users with their installation problems. 

    Wishing you the best,
    Rob

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