Yes when i have talked about running in background, it is like running the report through a schedule for example. So happy to know that it works for you so i will continue to search why it doesn't work in that case for me.
As i said it works perfectly when i execute it with the action "Run the report" alone (interactive).
I assume also that the docker container resolved localhost to itself and not to the cognos server ip of the dispatcher.
Thanks for your quick answer.
Original Message:
Sent: Thu January 30, 2025 02:30 AM
From: Samy Elshamy
Subject: Cognos 12.0.4 - Image Service - Report export in PDF
Hi,
what do you mean with execute the report in the background? Like running it through a schedule? That works here as well. What do the logfiles of the image service say?
Jumping back to the other problem: So I assume the issue was that the docker container resolved localhost to itself and not to the ip of the dispatcher, right?
Best
Samy
------------------------------
Samy
Original Message:
Sent: Wed January 29, 2025 01:26 PM
From: LOIC POTIN
Subject: Cognos 12.0.4 - Image Service - Report export in PDF
Hello Samy,
It works in interactive mode but still doesn't work when i execute the report in background.
Can you tell me if it is the same for you ?
Best
------------------------------
LOIC POTIN
Original Message:
Sent: Wed January 29, 2025 12:21 PM
From: LOIC POTIN
Subject: Cognos 12.0.4 - Image Service - Report export in PDF
Hello Samy,
Finally it works, I got my custom visualization in my PDF thanks to the image service server.
I connect to the Cognos portal with
htttp://host.docker.internal:9300/bi
instead of
http://localhost:9300/bi
and it helps to generate, in the container, the following URL
http://host.docker.internal:9300/bi/v1/visualizations/customvis.catalog.risk-matrix/content/vizdef.xml
instead of
http://localhost:9300/bi/v1/visualizations/customvis.catalog.risk-matrix/content/vizdef.xml
And this link doesn't fail !
Many thanks.
Best
------------------------------
LOIC POTIN
Original Message:
Sent: Tue January 28, 2025 08:59 AM
From: Samy Elshamy
Subject: Cognos 12.0.4 - Image Service - Report export in PDF
Hey,
I am running an on prem installation on Ubuntu 22.04.4. I think it is okay that resourced are not accessible directly through the dispatcher without any authorization. But you should be able to access the resource through the gateway once you are logged in to your instance: http://localhost/ibmcognos/bi/v1/visualizations/customvis.catalog.risk-matrix/content/manifest.xml
Can you try that? If that works there is probably some authorization issue.
Best
Samy
------------------------------
Samy
Original Message:
Sent: Wed January 15, 2025 02:57 AM
From: LOIC POTIN
Subject: Cognos 12.0.4 - Image Service - Report export in PDF
Hello Samy, Hello All,
Glad to see that it works for you and that you confirm that Custom visualization works with Image Services. Unfortunately it is not working for me. So i have some questions, which platform do you use ? I use Cognos Analytics on prem on my laptop with Windows 11 professional, it is a Cognos Easy installation and Docker Engine v27.3.1.
When i analyse docker log, it appears that when i use an out of the box bullet visualization we use :
http://localhost:3000/client/node_modules/@vida/vida/com/ibm/vida/vizbundles/vizbundle-vida-bullet/manifest.xml
message: 'Request to fetch files',
When i analyse docker log, it appears that when i use a customvisualization we use :
http://localhost:9300/bi/v1/visualizations/customvis.catalog.risk-matrix/content/manifest.xml
message: " Proxy request to fetch bundle'
So the request type is not the same.
One other things i have seen is that under the ca_vida_image_component_server container , when i try to reach with a curl command the manifest.xml of the bullet visualization it is ok :
curl http://localhost:3000/client/node_modules/@vida/vida/com/ibm/vida/vizbundles/vizbundle-vida-bullet/manifest.xml
When i do the same for the risk matrix, it fails and I got the message Unauthorized - Authentication required.sh
And if i test the same URL on a web browser, i got the same message

It seems that there is a problem with the access of this ressource...
Any idea ? Can you do the same test and identify the difference between your situation and mine.
Thanks for your help and suggestions.
Best.
------------------------------
LOIC POTIN
Original Message:
Sent: Thu January 09, 2025 11:48 AM
From: Samy Elshamy
Subject: Cognos 12.0.4 - Image Service - Report export in PDF
Hi @LOIC POTIN,
I just had a quick look at a 12.0.4 system and could generate the PDF from a report with the sample data that is coming with the visualization without a problem.


So in general it works to convert a report with this visualization into a PDF. Could you try if that works on your end? Just to make sure.
On the accelerator catalog page of the risk matrix are two notes and the second reads: "If there is no Internet connection in your environment, (e.g. Intranet, restricted environment) then the visualization will fail.".
The logfile (lines 599 and the following) from docker actually looks like there is a problem accessing "http://localhost:9300/bi/v1/visualizations/customvis.catalog.risk-matrix/content/manifest.xml" from the docker container . Can you make sure that the file is accessible at all and especially that the docker container can reach the dispatcher and specifically the requested file?
Best
Samy
------------------------------
Samy Elshamy
Original Message:
Sent: Tue December 31, 2024 09:07 AM
From: LOIC POTIN
Subject: Cognos 12.0.4 - Image Service - Report export in PDF
Hello all,
I have tried the image service to render in HTML/ PDF the bullet, marimekko, treemap and it works But if i add a Risk Matrix (a custom visualisation from the IBM accelerator catalog) it fails.
Out of the box visualization (Bullet, Marimekko, Treemap)
HTML :

PDF :

With Custom visualisation (Risk matrix)
HTML :

PDF :
Failed with the following message in the attached file "error message"
Here below the logs of the docker container, file "docker_logs"
The custom visualization was enabled

I have tested with another custom visualization and i got the same error.
- Is there any other parameter to enable ?
- Are the custom visualization really supported by Image Service ?
- Did i miss a step with the custom visualization ?
- Did the custom visualization have to be updated in order to be supported by the image service (any specific declaration..) ?
Any help would be welcome ?
Happy new year !
------------------------------
LOIC POTIN
------------------------------