Intel® Edge Software Hub
Get help on building Edge Software Hub solutions for edge compute node
Announcements
Welcome to the Intel Community! If you like the answer to your question, please mark it as 'Accepted Solution' to help others.

The Edge Software Vision Package for Red Hat Enterprise Linux is now available here.

Learn more about developing on Intel® Hardware and Software here.
293 Discussions

[Edge Software Configurator v4.0] Can't Complete Connection to Node(s)

louisdace
Novice
1,073 Views

How to resolve issue where Edge Software Configurator][v4.0] Can't  Complete Connection to Node(s)?

I have installed Edge Software Configurator][v4.0] and get error when running command

[curl https://192.168.8.4:3002/download/Node-2.sh --cacert /etc/esm/esm-ca.crt | sudo bash -]

curl: (77) error setting certificate verify locations:
CAfile: /etc/esm/esm-ca.crt
CApath: /etc/ssl/certs

See screenshotsScreenshot from 2021-12-08 18-38-45.pngScreenshot from 2021-12-08 18-38-08.png

 

Labels (1)
0 Kudos
1 Solution
JesusE_Intel
Moderator
1,023 Views

Hi louisdace,


Could you check if your network interface has multiple IP addresses? I believe the docker network is not being created because the docker swarm failed to initialize. You can confirm by running docker swarm init and see if you have any errors.


If the errors are related to multiple IP addresses, try disabling ipv6 for the interface or specifying the ip address docker swarm init --advertise-addr 192.168.0.x.


Regards,

Jesus


View solution in original post

4 Replies
JesusE_Intel
Moderator
1,058 Views

Hi louisdace,


Looking at the messages you receive on your Edge node when running the script, it looks like the certificate cannot be found. Could you confirm you ran the additional commands to configure the certificate prior to running the script?


scp pse@ESM-IP-Address:/opt/esm/esm-ca.crt .

sudo mkdir /etc/esm

sudo cp esm-ca.crt /etc/esm/

sudo mkdir /etc/docker/certs.d/<Host_IP_Address>\:5055/

sudo cp ~/esm-ca.crt /etc/docker/certs.d/<Host_IP_Address>\:5055/


Regards,

Jesus



louisdace
Novice
1,046 Views

Hi Jesus,

Yes, the additional commands to configure configure the certificate before executing the copy command.

I verified that esm-ca.crt is present in esm-ca.crt /etc/esm/ and /etc/docker/certs.d/192.168.x.x\:5055.

After executing the curl command 

curl https://192.168.0.164:3002/download/Node-2.sh --cacert /etc/esm/esm-ca.crt | sudo bash - , this is the output:


% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13954 100 13954 0 0 717k 0 --:--:-- --:--:-- --:--:-- 717k
Checking dependencies
Verifying docker
Initialising docker swarm
Pull vm-agent image
latest: Pulling from esc_vm-agent
Digest: sha256:43b25a3c43650dd6dbc6dba6d06b5f637bc232551d0eaf5ed583fd476a6703fa
Status: Image is up to date for 192.168.0.164:5055/esc_vm-agent:latest
192.168.0.164:5055/esc_vm-agent:latest
Pull collectd image
latest: Pulling from esc_collectd
Digest: sha256:72090dab1e955a814e7c702bab3de9301cf724fe2e7a4cfc52b0d24185e4a7ea
Status: Image is up to date for 192.168.0.164:5055/esc_collectd:latest
192.168.0.164:5055/esc_collectd:latest
Creating agent network
Deploying portainer edge agent
Error: No such network: portainer_agent_network
Failed to deploy the portainer agent

 

JesusE_Intel
Moderator
1,024 Views

Hi louisdace,


Could you check if your network interface has multiple IP addresses? I believe the docker network is not being created because the docker swarm failed to initialize. You can confirm by running docker swarm init and see if you have any errors.


If the errors are related to multiple IP addresses, try disabling ipv6 for the interface or specifying the ip address docker swarm init --advertise-addr 192.168.0.x.


Regards,

Jesus


JesusE_Intel
Moderator
934 Views

If you need any additional information, please submit a new question as this thread will no longer be monitored.


Reply