A first experience with Azure IoT, Docker and Raspberry Pi 4

Hi friends,

I obtained recently a Raspberry Pi 4 and started working on small exercices from this wonderful book : Learn Robotics with Raspberry Pi.

I discoverd the power of Python and its simplicity and I am in love with this new language.

On the other hand, Azure IoT Hub is fascinating me and I decided to connect my Raspberry Pi to Azure making it an Azure IoT Hub Edge device. This guide is well done in order to achieve my objective.

And I can see my Raspberry Pi connetced to Aure IoT Hub:

IotEdge

Make sure that the runtime response is OK!

Dokcer is here! Yes, everything running inside your edge device is a module in a container. After joining your device to Azure IoT hub, you have by default 2 modules: the agent and the runtime.

iotmodules

Both of them are running in containers:

iotmodulescontainers

iotmodulescontainers1

Now, let’s get a small project to play with. We want to implement an IoT edge device with a temperature module. Another module will be also developed in order to receive messages from the temperature module and manages two leds. The red led is on when the temperatre is above a threshold. Otherwise, the green led is on. The latest module will also send messages to Azure IoT hub for analysis. (This is another topic that would be covered in a next post incha Ellah).

In my case, I used the simulated temperature module and developed a custom module that intercepts messages from the first module. To manage the leds, I have used this circuit based on a breadboard, 2 leds and 2 resistors:

GPIO-Pinout-Diagram-2

Exif_JPEG_420

Let’s develop our custom module following the steps described in this article. Some changes are necessary:

  • In the main.py file, we have to add these imports and define the leds variables
import time
import gpiozero
import os
import sys
import asyncio
from six.moves import input
import threading
from azure.iot.device.aio import IoTHubModuleClient
import json
led1 = gpiozero.LED(8)
led2 = gpiozero.LED(21)
  • In the main.py file, I changed the code as follows to manage my leds:
  1. # define behavior for receiving an input message on input1
            async def input1_listener(module_client):
               global RECEIVED_MESSAGES
               global TEMPERATURE_THRESHOLD
               while True:
                try:
                    time.sleep(100)
                    RECEIVED_MESSAGES=0
                    input_message = await module_client.receive_message_on_input(“input1”)  # blocking call
                    message = input_message.data
                    size = len(message)
                    message_text = message.decode(‘utf-8’)
                    print ( ”    Data: <<<%s>>> & Size=%d” % (message_text, size) )
                    custom_properties = input_message.custom_properties
                    #print ( ”    Properties: %s” % custom_properties )
                    RECEIVED_MESSAGES += 1
                    print ( ”    Total messages received: %d” % RECEIVED_MESSAGES )
                    data = json.loads(message_text)
                    await module_client.send_message_to_output(input_message, “output1”)
                    if “ambient” in data and “temperature” in data[“ambient”] and data[“ambient”][“temperature”] > TEMPERATURE_THRESHOLD:
                        custom_properties[“MessageType”] = “Alert”
                        print ( “ambient temperature %s exceeds threshold %s” % (data[“ambient”][“temperature”], TEMPERATURE_THRESHOLD))
                        led1.on()
                        led2.off()
                        await module_client.send_message_to_output(“Red LED is ON!”, “output1”)
                    elif “ambient” in data and “temperature” in data[“ambient”] and data[“ambient”][“temperature”] <= TEMPERATURE_THRESHOLD:
                        led2.on()
                        led1.off()
                        await module_client.send_message_to_output(“Green LED is ON!”, “output1”)
                    else :
                        led2.on()
                        led1.on()
                        await module_client.send_message_to_output(“Green & Red LEDs are ON!”, “output1”)
                except Exception as ex:
                    print ( “Unexpected error in input1_listener: %s” % ex )
  • Two packages are added to the requirements.txt file:
azure-iot-device~=2.0.0
gpiozero==1.5.1
RPi.GPIO==0.7.0
  • The DockerFile file has to be changed as follows (the gcc is used to compile rpi.gpio python library) :

FROM arm32v7/python:3.7-slim-buster

WORKDIR /app

COPY requirements.txt ./
RUN apt-get update
RUN apt-get -y install gcc
RUN pip install -r requirements.txt

COPY . .

CMD [ “python3”, “-u”, “./main.py” ]

  • Finally, under the custom module, we hve to cofigure the privileged mode:
“modules”: {
          “SampleModule”: {
            “version”: “1.0”,
            “type”: “docker”,
            “status”: “running”,
            “restartPolicy”: “always”,
            “settings”: {
              “image”: “${MODULES.SampleModule}”,
              “createOptions”: {
                “HostConfig”: {
                  “Privileged”: true
               }
              }
            }
          },
By running the the build and push action,
BuildPush
an image will be built according to the Dockerfile and pushed to Azure Container Registry:
RPI1
After deploying the modules, we can see the modules in running state:
RPI2
RPI3
The new containers running the modules are created:
RPI5
What about leds? It s working like a charm (as expected, the red led is on when the temperature is above the threshold):
Exif_JPEG_420
The green led is on when the temperature is less than the threshold:
Exif_JPEG_420
The messages are also sent successfully:
Messages
MessageGreen
Enjoy!

Kubernetes HPA (Horizontal Pod Autoscalar); the right way to do it!

Hi again!

I have the honor to be one of the first users of Docker. Swarm was and remains a superb orchestration solution. I learned of course since a long way about Kubernetes, but I hadn’t give it a try. Thanks to my trainings, the love story began and I cannot hide it.

One of the charming features of K8S you can find the autoscaling at different levels : “(1) Pods layer autoscalers, this includes Horizontal Pod Autoscaler (HPA) and Vertical Pod Autoscaler (VPA); both scale available resources for your containers, and (2) cluster level scalability, which managed by the Cluster Autoscaler (CA); it scales up or down the number of nodes inside your cluster.”  (from here).

I hurried up to test the HPA feature but this does not work during a demo in my training course. I was desappointed but I finally found the reason for that. Before, going further, let’s depict some necessary points.

The HPA feature relies on some metrics (by default CPU and RAM) collected from the cAdvisor component in each Kubelet agent. The collected data are sent to the Metrics Server which is a K8S addon that has to be installed in your cluster. “Metrics Server is a cluster-wide aggregator of resource usage data. It collects metrics like CPU or memory consumption for containers or nodes, from the Summary API, exposed by Kubelet on each node.” (from here).

Metrics-server has to be installed using the following steps:

git clone https://github.com/kubernetes-incubator/metrics-server.git
cd metrics-server
kubectl apply -f deploy/1.8+/

You can now collect some metrics about the nodes, the pods, etc.

k8s1

The HPA controller collects data from the Metrics-server and adjusts the scalability of deployments according to HPA policies:

HPA Architecture
HPA Architecture

Ok, let’s give it a try; I have two K8S nodes with a master and a minion. I defined a Nginx deployment using this yaml file :

apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
  name: nginx
spec:
  selector:
    matchLabels:
      app: nginx
  replicas: 2 # tells deployment to run 2 pods matching the template
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80

After creating the nginx service, an hpa policy was created as follows :

# kubectl autoscale deployment nginx –min=1 –max=5 –cpu-percent=50

“The basic parameters that will you need for any HPA are:

  • Scale target: the controller that this HPA will interact with
    • minReplicas: minimum number of pods, the HPA cannot go below this value
    • maxRepicas: maximum number of pods, the HPA cannot go above this value
  • Target metric(s): metric (or metrics) used to evaluate current load and take scaling decisions
    • targetValue: threshold value for the metric. If the metric readings are above this value, and (currentReplicas” (from here).

I used the wrk container to simulate the trafic (the nginx service was published using the nodeport mode with the port 32116):

docker run –rm loadimpact/loadgentest-wrk -c 1200 -t 1200 -d 15m http://172.16.0.4:32116

I noticed the unknown phenomena when running get hpa command to see if my deployment is scaled up:

k8s3

The solution was to define the requests and the limits of deplyments pods. The deployment file was updated to include these information:

apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  selector:
    matchLabels:
      app: nginx
  replicas: 2 # tells deployment to run 2 pods matching the template
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        resources:
          limits:
            100m
          requests:
            50m
        ports:
        - containerPort: 80

In this case, each new pod requets 50m and is limited to 100m. I deleted the old hpa and redefined it again.

Now, the unknown error has disappeared; good shot!:

k8s4

But the good news;  the deployment has been scaled up! Bingo:

k8s5.png

Finally, some useful lessons:

  1. Heapster was the previously the metrics server use dto collect metric data. Today, it is deprecated and is replaced by the Metrics-server addon.
  2. We can use custom metrics and custom metrics sources like Sysdig and Prometheus.

Hope it helped!

SPFx on Docker for Windows lovers

use-spfx-with-docker

Hi Everyone,

SPFx becomes today the best way to develop modern SharePoint Applications as it includes standard dev tools such as npm, TypeScript, Yeoman, webpack, and gulp. Any JS developer can use his favorite fremawork : React, Handlebars, Knockout, Angular,  Vue, and more.

During a discussion with the team, a question was asked if we can use Docker in order to implement sandboxed SPFx environments. The answer was YES as I had the chance to read some articles from the great Waldek Mastykarz before.

The advantages are so interesting:

  • Docker allows you to develop using different versions of SPFx on the same machine.
  • The developer machine remains clean; there is no need to install Node.js, npm and other tools.
  • Developers can reuse the same images from the entreprise registry.
  • SPFx containers are so lightweight with a very small overhead.

SPFx uses standard tools so you can even develop the modules under Linux. For this reason, you can find SPFx Linux containers like the Waldek images.

The developer has to organize his filesystem of his machine and mount the folders in the containers :

types-of-mounts-volume

But what about developers that use Windows?

Docker Desktop allow you to switch to Linux containers and run the Waldek image. But this will use a Linux VM as Docker Server. At a given time you can just use an OS type containers : Windows or Linux.

Can we use SPFx in Windows containers. The answer is Yes. We will use an image that I constructed and you can find it in my Docker hub. The image is based on :

  • nano core 1809
  • Node.JS 10.16
  • SPFx 1.8.2

mydockerhub.png

the size of the image is so light :

myimage

The content of the Dockerfile is as follows :

FROM stefanscherer/node-windows:10.16.0-nanoserver-1809
EXPOSE 5432 4321 35729
RUN npm install -g yo gulp
RUN npm install -g @microsoft/generator-sharepoint
RUN CMD gulp trust-dev-cert
RUN md c:\\SPFx
WORKDIR c:\\SPFx
you can either construct the image or simply download it from Docker Hub using this command :
docker pull ramzivic/ram-spfx:1.8.2
Now we can run the dev SPFx container using this command:
docker run -it --rm --name SPFxContainer -v YOURDIR:c:\spfx -p 5432:5432 -p 4321:4321 -p 35729:35729 ramzivic/ram-spfx:1.8.2 cmd
This will allow you to execute commands inside the created container.
The following options need perhaps further explanations:
  • -it : the container is launched with interactive mode
  • –rm : the container is volatile. After the reboot of the host the container is deleted
  • –name : the name given to the container
  • -v : this option permits to attach a local folder of the Host and map it to an internal folder inside the container
  • -p : this option allows you to map external host ports to internal container ports. Like the 5432 port that is used by the Workbench. And here you have the magic of Docker; you can launch differet SPFx containers with diffrenet ports mapping and multiple workbenches could be launched in parallel.
To create a new SharePoint Framework project in the container the command to execute is as follows:
yo @microsoft/sharepoint

yo

The command will generate errors as it seems that there is a bug on Windows containers with npm that cannot isntall some packages on a shared volume. (This issue does not exist on Linux).

In order to share a project folder, we have created the folder on the host and shared it. Let us suppose that the host ip address is : 172.24.176.1 and the shared project file is \\172.24.176.1\SPFx1 (you can use the container gateway IP address as the Host IP Address if the default NAT network  is used)

Inside the SPFx container execute the mount command :

net use z: \\172.24.176.1\SPFx1 /user:172.24.176.1\user password

mount

The project should be created now, I hae created a WebPart project with no JS Framework and targetting SharePoint 2016:

Pr1

Pr2.png

Emm, according to the messages, there are critical vulnerabilities that have to be resolved. This point is so important for the security of the solution.

What about my Host folder? It contains all the project files:

Pr3

And now you can use your favorite editor to develop your module:

Pr4

Before executing the gulp serve to launch the workbench

gulp serve

We have to configure the ssl and set it to false in the serve.json file

Pr5

This will launch the workbench using this URL in the host as the container ports are mapped to the host:

http://localhost:5432/workbench

This action is applied in order to evict the ERR_SSL_PROTOCOL_ERROR issue. According to the proposed solution, we have to disable the HTTP2 support by setting the NO_NODE_HTTP2 environment variable to 1. I have to apply it in the image as a first fix (ICE)

And here we go :

Pr51

Pr52

In the container we can check the requests:

Pr6

Now, even if you stop or remove your container, the project files are persisted on your local filesystem!!! (Git or similar are a must of course).

Happy coding!

A more advanced Survey List in SharePoint 2013

Hi everyone!

My customer has asked for a solution to evaluate developped applications by the end users. A solution based on Survey template was proposed but the default template is just a form with the questions as fields. The interface is not convivial if we have a long survey!

Let us assume that we have a survey with three questions. The following pictures shows the default NewForm:

Survey11
Enter a caption

What is the difference between a custom list and a survey then? Some interesting features can be cited:

  • The stats part to evaluate the survey.Surevey12
  • The branching feature in the survey that allows to jump to a given step based on what is chosen by the user at the current step.Surevey13

Now, let us develop a more advanced survey using just javascript! We want to achieve these objectives:

  • View just one question at a given step
  • Two buttons to access to the next or the previous question
  • View the Finish button once the user has finished the survey
  • Confirm the answers before saving

3 libraries will be used for different purposes:

  • SP.js for notifications.
  • SPUtilies.js for hiding and showing the questions.
  • JQuery for SPUtilities.

Simply we will write a custom html file that will be referenced into a Content Editor WebPart added on the page NewForm.apsx of your survey:

Survey14

Here is the content of the Quiz.html:

<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!-- Javascript files references -->
    <script type="text/javascript" src="/JS/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" src="/JS/sputility.min.js"></script>
    <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
    <script type="text/javascript" src="/_layouts/15/sp.js"></script>
<meta charset="utf-8" />
    <title></title>
</head>
<body>
    <!-- A table containing the Next and Previous buttons -->
<table class="ms-rteTable-default" cellspacing="0" style="width: 100px;">
<tbody>
<tr>
<td  style="width: 100px; height: 20px;">
<div id="Previous"><<<</div></td>
<td  style="width: 100px; height: 20px;">
<div id="Next">>>></div></td>
</tr>
</tbody>
</table>
<script language="javascript" type="text/javascript">
        //A variable to keep the current position in the survey
        var i = 0;
        //An Arry to store the list of the questions fields
        var fieldsArray = [];
        //This functions is invoked when we click on Finish Button
        function PreSaveItem() {
            var fields = SPUtility.GetSPFields();
            var message = 'Are you sure to save these answers ?\n';
            for (fieldName in fields) {
                message = message + fieldName + ' : ' + 
                SPUtility.GetSPField(fieldName).GetValue() + '\n';

            }

            if (confirm(message)) {

                return PreSaveAction(); // allow save form...
            }
        };
            //Notify the user
            function PreSaveAction() {
                SP.UI.Notify.addNotification('Your Answers are being saved...', 
                                             false);
                return true;
            };
            $(document).ready(function () {
                //Hiding the form toolbar
            $('.ms-formtoolbar').hide();
            var fields = SPUtility.GetSPFields();
            for (fieldName in fields) {   
                //Get the questions list
                fieldsArray.push(SPUtility.GetSPField(fieldName));
                //Hide all question
                SPUtility.HideSPField(SPUtility.GetSPField(fieldName));
            }
                //Show the first question
            SPUtility.ShowSPField(fieldsArray[0]);
            });
        //Next handler
            $("#Next").click(function () {
                //Hide the current question
            SPUtility.HideSPField(fieldsArray[i]);
            
            if (i < fieldsArray.length-1) 
            {                 
                i++;             
            }             
            else             
           {                 
           //Show the form toolbar when we reach the last question                 
            $('.ms-formtoolbar').show();             
            }             
            //Show the next question             
            SPUtility.ShowSPField(fieldsArray[i]);                      
            });         
            //Previous handler         
           $("#Previous").click(function () 
           {             
             //Hide the current question             
             SPUtility.HideSPField(fieldsArray[i]);                          
           if (i > 0) {
                i--;
            }
            //Show the previous question
            SPUtility.ShowSPField(fieldsArray[i]);

        });
    </script>
</body>
</html>

Let us see the results!

Oh yes, the buttons Next and Previous allow you to navigate between the questions:

First Question:

Survey15

Second Question:

Survey16

Thrid Question:

Survey17

Now if we clic on the Next button the Finsih button is shown:

Survey18

Before saving the answers a confirm window is launched to confirm the answers:

Survey19

Finally, a notification label dispalys the message of saving the answers:

Survey20

Ok that’s all! Hope it helps!

 

Docker Cloud; you can deal with different Cloud Providers through a single API! (part2)

Hi again!

The first part of this series depicted the steps to follow in order to create a Docker container hosting a simple Web Application using the Docker Cloud API.

We assume that the hosting nodes are created and the objective is to develop a 3 tiers application:

  1. Haproxy as a load balancer and reverse proxy hosted on a single container
  2. 4 Web applications hosted on 4 containers
  3. Redis server hosted on a single container to provide cache capabilities

Now let’s start:

We can draw our infratsructure using the StackFiles. The syntax is so easy to understand. Let’s see how to define our application

Snap853

As you can see, the labels lb, web and redis define the tiers. the Haproxy load balancer is listening on the port 80 and is directly linked to the Web Tier. Four containers that host our Web Application are linked to the Redis cache tier. It s so simple, isn’t it?

Automatically, the services are created.

Snap854

Using the Stack dashboard, we can start the stack.

Snap855

But you have just to notice the order in which the containers start, Redis, Web and finally the Haproxy load balancer.

Snap856

This example is so simple, the default behaviour of the load balancer is based on the Round Robin algorithm without any session affinity.

For each F5, we visit a given container.

Enjoy!

 

Docker Cloud; you can deal with different Cloud Providers through a single API! (part1)

Hi again!

How Docker is good, is attractive, is … splendid. Just after the Docker Datacenter, Docker Cloud is the new solution to create cluster nodes on different platforms like Azure, containers and Stacks (in Swarm fashion).

Ok today I will show you some steps for two scenarios on Azure:

  1. A simple Web application hosted in a single container (part1).
  2. A 3 tiers application (part 2) based on:
    1. Haproxy as a load balancer and reverse proxy hosted on a single container
    2. 4 Web applications hosted on 4 containers
    3. Redis server hosted on a single container to provide cache capabilities

Let us start with the firts scenario:

  1. First of all, you import a certificate into the settings of your Azure account to authenticate the Docker Cloud API.
  2. You create a cluster of a given number of nodes. You can resize your cluster. However according to Docker Cloud, the first node is free!!!! Yes. You have just to select the template of your service cloud.

Snap843

  1. After that, you will notice that a service cloud and the corresponding virtual machine are created.

Snap844

  1. Ok, now you will create a container that will host the Web Server and the application.

Snap845

Snap846

  1. You select the appropriate image. In my case I choose dockercloud/hello-world image. Here you will notice that you can select a deployment strategy when using a cluster of nodes. You can instanciate a given number of the containers from the same image. You can also define a stack file that draws the composed architecture.

Snap847

  1. On the Ports section you have to publish the default port. In my case I define the default http port. But don’t forget to define an endpoint listening on this port for the virtual machine hosting the containers host.

Snap848

Snap861

Snap862

  1. Now the service is created, we have just to start it.

Snap850

  1. And a beautiful page is dispalyed from your browser.

Snap851

Linux containers vs Windows containers; another eternal war starts!

Hi again!,

Yes the containers are the future. We can develop virtual machines into containers, containers into virtual machines, virtual appliances into containers, containers into virtual machines into containers, etc. You can’t limit imagination.

Containers are not a new technology. As a Microsoft specialist, I had no information about it before because it came from the Unix/Linux world through mecanisms like namespaces, cgroups and capabilities. Microsoft has decided to integrate this beautiful technology into its new OS Windows Server 2016.

You can develop some containers using the CTP4 and Docker engine.

Containers have the ability to start very fast but the question is : are Windows containers faster or slower than Linux containers?

I took two virtual machines on my Laptop with these configurations:

  1. Windows Server Core 2016 CTP 4. 4GB RAM, 2 virtual CPU. Docker version 1.10.0-dev, build e39c811, experimental
  2. Linux Ubuntu 15.04, 4GB RAM, 2 virtual CPU. Docker version 1.10.0-dev, build 59a341e

A container is created based on the underlying OS on each virtual machine. Let us see the starting and stopping times. I noticed that the Linux containers start faster after the first bootstrapping.

Windows Linux
Starting Time : 11-12s

Stopping Time : 12-13s

1st Starting Time : 2-4s, 2nd ST: 1-2s

Stopping Time : 11-12s

What about a more powerful platform like Azure? I have two virtual machines with the same configurations:

Windows Linux
Starting Time : 3-4s

Stopping Time : 2-4s

1st Starting Time : 2-3s, 2nd ST: 0-0.3s!

Stopping Time : 10-10.5s

As a quick conclusion, we can see that Linux containers are 10 times faster than Windows containers.

Microsoft has to deal with the containers performances and has a lot of work. Let us wait for the release version.

–net=Host option not recognized under Windows 2016 CTP4

Hi again,

After docker on Linux, I was playing with the new Windows containers using docker engine.

Before starting, I explain quickly my environment; I have deployed a virtual machine based on Windows Server Core CTP4 and I deployed the containers feature on it. By default the script used to provision a container host “Install-ContainerHost.ps1” creates a virtual switch named Virtual Switch using the NAT connection type; finally this feature is available! Before, we was obliged to use the routing services into an other virtual machine for example.

VSwitch

On Linux I was able to create my containers using the same network stack as my host. So I had just to create ports forwarding rules from my host to my container. To achieve this goal we use –net=Host option.

I created a container from the WindowsServerCore image using this command:

ContError

However this option is not accepted. How to configure my docker network?

Under Windows, a file named “runDockerDaemon.cmd” located under c:\ProgramData\docker folder defines the default VSwitch to use when creating containers.

runDocker

As expected, the “Virtual Switch” switch is defined by default. If you want to use an external vswitch, you have just to define it in the runDockerDaemon file.

@echo off
set certs=%ProgramData%\docker\certs.d

if exist %ProgramData%\docker (goto :run)
mkdir %ProgramData%\docker

:run
if exist %certs%\server-cert.pem (if exist %ProgramData%\docker\tag.txt (goto :secure))

docker daemon -D -b “Virtual Switch”
goto :eof

:secure
docker daemon -D -b “Virtual Switch” -H 0.0.0.0:2376 –tlsverify –tlscacert=%certs%\ca.pem –tlscert=%certs%\server-cert.pem –tlskey=%certs%\server-key.pem

According to Microsoft, “Each container needs to be attached to a virtual switch in order to communicate over a network. A virtual switch is created with the New-VMSwitch command. Containers support a virtual switch with type External or NAT"

I think that with VSwitches containers manage their own networks stacks. An overhead is created consequently. Under Linux, we can bypass this layer and use the host network stack directly.

 

Via docker, I noticed that Mono 4.2.1 is faster than Mono 3.2.8

container

Hi again,

I am developping a prototype of micrsoservices running into docker containers. These micrsoservices process files operations using WCF. It will be perhaps the topic of future articles incha Ellah.

On my Ubuntu 15.04 machine I have installed Mono 3.2.8 shiped with Monodevelop. I installed docker and the latest mono image from the hub.

To study the overhead of my microservice, the same web service was also executed on my host. A windows application was used to consume the web services.

According to my tests when writing sequentially files, I noticed that my docker webservice responded faster than my webservice on the host.

As the docker container is sharing the same kernel as my host, I consulted the version of the mono installed in the image from which I created my container using this command:

docker exec -it “myDockerName or ID” mono –version

Bingo!!! Mono 4.2.1 was installed into my container. To verify that my hypothesis is correct, I updated my Mono on the host. The results were similar finally!

Thank you docker! And thank you Mono!

Certificate validation error can cause broken images in reporting services reports

Hi!

I am so happy to meet WordPress readers again!

In some reports, images components are configured as external links but using https protocol. The links are working fine using different browsers and the public certificate is validated.

However using external links with http protocol are working correctly while executing reports. After googling the issue, I could find some answers speaking about Configuring the Unattended Execution Account to allow access to external ressources from reports like UNC files.

In my case, no proxy, no authentication are required to access web ressources.

On the reporting server, I opened an exetrnal link in the browser and bingo!!!!; my certificate could not be validated. I was obliged to install the root certificate on my server to have the certificate validated.

After that, the images were displayed correctly finally!

Hope it helps!