You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@streampipes.apache.org by "Canteri, Michele" <Mi...@gft.com> on 2021/06/15 18:22:13 UTC

Streampipes dev and https

Hi everyone,

I've successfully installed and run Streampipes on a Ubuntu 20.04 server using incubator-streampipes-installer-dev.zip file, it runs 0.68 version.
I've followed the instructions about https found on the page: https://streampipes.incubator.apache.org/docs/docs/dev-guide-ssl.html but it doesn't work and tried a couple of variation on that but I still am not able to make it run.

The last configuration that looks partially correct (because I can see that it open the 443 port) is:

./cli/streampipes ps
NAMES                                       IMAGE                                                           STATUS         PORTS
streampipes_ui_1                            apachestreampipes/ui:0.68.0-SNAPSHOT                            Up 7 minutes   0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp

is the one having the file cli/deploy/standalone/ui/docker-compose.yml

version: "3.4"
services:
  ui:
    image: ${SP_DOCKER_REGISTRY}/ui:${SP_VERSION}
    ports:
      - "80:80"
      - "443:443"
    environment:
      - NGINX_SSL=true
    volumes:
      - /etc/letsencrypt/live/(mysite)/privkey.pem:/etc/nginx/ssl/ssl.pem
      - /etc/letsencrypt/live/(mysite)/fullchain.pem:/etc/nginx/ssl/cert.pem
    depends_on:
      - couchdb
      - activemq
      - consul
      - backend
    logging:
      driver: "json-file"
      options:
        max-size: "1m"
        max-file: "1"
    restart: unless-stopped
    networks:
      spnet:

networks:
  spnet:
    external: true

Any help is greatly appreciated.
Best regards,
Michele


Michele Canteri
_________________________________________________________________

GFT Italia S.r.l.
VIA SILE 18 / floor 4
20139 Milano, Italy

T +39 02 58158503
F      +39 02 58158621
Michele.Canteri@gft.com
<http://www.gft.com>www.gft.com/it<https://www.gft.com/it>
https://blog.gft.com
https://www.linkedin.com/company/gft-group/
www.twitter.com/gft_it <https://www.twitter.com/gft_it>

Registered office: GFT Italia S.r.l., Via Sile 18, 20139 Milan (Italy)
VAT Code and number of registration with the Companies' Register of Milan: 00819200478
Corporate capital: Euro 1,000,000 fully paid-in

Company subject to the direction and coordination activity of GFT Technologies SE

Ai sensi del Regolamento UE 2016/679 (GDPR) e delle Linee Guida per posta elettronica ed Internet del Garante Privacy si rende noto che le informazioni contenute nella presente comunicazione e i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente alle persone o alla Societ? sopraindicati. Le stesse non sono da considerarsi comunicazioni personali, quindi eventuali risposte potranno essere conosciute da persone appartenenti all'azienda.

In accordance with Regulation EU 2016/679 (General Data Protection Regulation) and Guidelines Applying to the Use of E-Mails and the Internet in the Employment Context of Italian Data Protection Authority it is announced that the information in this communication (which includes any documents with it) is confidential and meant only for above-mentioned persons and/or Companies; the information is not personal therefore, It is intended for the addressee only and any replies will be known by people belonging to the company.
_________________________________________________________________

RE: Streampipes dev and https

Posted by "Canteri, Michele" <Mi...@gft.com>.
Hi Dominik,

the problem I faced was that the ui wasn't available. Since you validate my configuration I just changed the permissions of the certificate files and then it started correctly.

Thank you for your support,
regards!

Michele


Michele Canteri
_________________________________________________________________

GFT Italia S.r.l.
VIA SILE 18 / floor 4
20139 Milano, Italy

T +39 02 58158503
F      +39 02 58158621
Michele.Canteri@gft.com
<http://www.gft.com>www.gft.com/it<https://www.gft.com/it>
https://blog.gft.com
https://www.linkedin.com/company/gft-group/
www.twitter.com/gft_it <https://www.twitter.com/gft_it>

Registered office: GFT Italia S.r.l., Via Sile 18, 20139 Milan (Italy)
VAT Code and number of registration with the Companies' Register of Milan: 00819200478
Corporate capital: Euro 1,000,000 fully paid-in

Company subject to the direction and coordination activity of GFT Technologies SE

Ai sensi del Regolamento UE 2016/679 (GDPR) e delle Linee Guida per posta elettronica ed Internet del Garante Privacy si rende noto che le informazioni contenute nella presente comunicazione e i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente alle persone o alla Società sopraindicati. Le stesse non sono da considerarsi comunicazioni personali, quindi eventuali risposte potranno essere conosciute da persone appartenenti all'azienda.

In accordance with Regulation EU 2016/679 (General Data Protection Regulation) and Guidelines Applying to the Use of E-Mails and the Internet in the Employment Context of Italian Data Protection Authority it is announced that the information in this communication (which includes any documents with it) is confidential and meant only for above-mentioned persons and/or Companies; the information is not personal therefore, It is intended for the addressee only and any replies will be known by people belonging to the company.
_________________________________________________________________
From: Dominik Riemer <ri...@apache.org>
Sent: martedì 15 giugno 2021 21:34
To: users@streampipes.apache.org
Subject: RE: Streampipes dev and https


[EXTERNAL EMAIL]
This email originated from outside of the organization or was sent unauthenticated. Do not click links or open attachments unless you confirm the sender and know the content is safe.
Hi Michele,

welcome to the list!
I've just tried to reproduce the problem on a plain Azure machine with Letsencrypt - Nginx has first failed to properly read the certificate files from the letsencrypt folder and stopped the container (to me, it seems nginx can't properly read the symlinks from the live folder), but after copying the original certificate files (fullchain + private) from the "archive" folder in /etc/letsencrypt/archive to another folder and referencing them from there, it has worked.

Your config looks good and it seems the UI container is already running - can you please describe the error you're currently experiencing?
Maybe you can also show the log output of the UI (docker-compose logs ui)?

Cheers,
Dominik


From: Canteri, Michele <Mi...@gft.com>>
Sent: Tuesday, June 15, 2021 8:22 PM
To: users@streampipes.apache.org<ma...@streampipes.apache.org>
Subject: Streampipes dev and https

Hi everyone,

I've successfully installed and run Streampipes on a Ubuntu 20.04 server using incubator-streampipes-installer-dev.zip file, it runs 0.68 version.
I've followed the instructions about https found on the page: https://streampipes.incubator.apache.org/docs/docs/dev-guide-ssl.html<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstreampipes.incubator.apache.org%2Fdocs%2Fdocs%2Fdev-guide-ssl.html&data=04%7C01%7CMichele.Canteri%40gft.com%7C87bc281e4eb94006d87e08d9303485b8%7C55a2bc67aec14ad29a9c5b2457b91dcd%7C0%7C0%7C637593824405216342%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=EFcWo68kbnZdpyaXpKyRYqxxLehXvGSPkWvNobWE89o%3D&reserved=0> but it doesn't work and tried a couple of variation on that but I still am not able to make it run.

The last configuration that looks partially correct (because I can see that it open the 443 port) is:

./cli/streampipes ps
NAMES                                       IMAGE                                                           STATUS         PORTS
streampipes_ui_1                            apachestreampipes/ui:0.68.0-SNAPSHOT                            Up 7 minutes   0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp

is the one having the file cli/deploy/standalone/ui/docker-compose.yml

version: "3.4"
services:
  ui:
    image: ${SP_DOCKER_REGISTRY}/ui:${SP_VERSION}
    ports:
      - "80:80"
      - "443:443"
    environment:
      - NGINX_SSL=true
    volumes:
      - /etc/letsencrypt/live/(mysite)/privkey.pem:/etc/nginx/ssl/ssl.pem
      - /etc/letsencrypt/live/(mysite)/fullchain.pem:/etc/nginx/ssl/cert.pem
    depends_on:
      - couchdb
      - activemq
      - consul
      - backend
    logging:
      driver: "json-file"
      options:
        max-size: "1m"
        max-file: "1"
    restart: unless-stopped
    networks:
      spnet:

networks:
  spnet:
    external: true

Any help is greatly appreciated.
Best regards,
Michele


Michele Canteri
_________________________________________________________________

GFT Italia S.r.l.
VIA SILE 18 / floor 4
20139 Milano, Italy

T +39 02 58158503
F      +39 02 58158621
Michele.Canteri@gft.com<ma...@gft.com>
www.gft.com/it<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.gft.com%2Fit&data=04%7C01%7CMichele.Canteri%40gft.com%7C87bc281e4eb94006d87e08d9303485b8%7C55a2bc67aec14ad29a9c5b2457b91dcd%7C0%7C0%7C637593824405216342%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3taltrVvtsgx3S7BbCKaWBsXX2jKkeGgXt03EOGxMEY%3D&reserved=0>
https://blog.gft.com<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fblog.gft.com%2F&data=04%7C01%7CMichele.Canteri%40gft.com%7C87bc281e4eb94006d87e08d9303485b8%7C55a2bc67aec14ad29a9c5b2457b91dcd%7C0%7C0%7C637593824405226296%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=MbgydUik5xqadnDIZa0WjS6p8F6cP2v6NSO88oAx0pE%3D&reserved=0>
https://www.linkedin.com/company/gft-group/<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fgft-group%2F&data=04%7C01%7CMichele.Canteri%40gft.com%7C87bc281e4eb94006d87e08d9303485b8%7C55a2bc67aec14ad29a9c5b2457b91dcd%7C0%7C0%7C637593824405236251%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Sz6iIgtzE48H1xfwlr2Hg8s0luFHsyyqmr3iT0JXjbc%3D&reserved=0>
www.twitter.com/gft_it <https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.twitter.com%2Fgft_it&data=04%7C01%7CMichele.Canteri%40gft.com%7C87bc281e4eb94006d87e08d9303485b8%7C55a2bc67aec14ad29a9c5b2457b91dcd%7C0%7C0%7C637593824405236251%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=dXDbzDO1Ud3XqqR51WP%2F%2Bcb%2FmwZs353UMGIaKgIMlL4%3D&reserved=0>

Registered office: GFT Italia S.r.l., Via Sile 18, 20139 Milan (Italy)
VAT Code and number of registration with the Companies' Register of Milan: 00819200478
Corporate capital: Euro 1,000,000 fully paid-in

Company subject to the direction and coordination activity of GFT Technologies SE

Ai sensi del Regolamento UE 2016/679 (GDPR) e delle Linee Guida per posta elettronica ed Internet del Garante Privacy si rende noto che le informazioni contenute nella presente comunicazione e i relativi allegati possono essere riservate e sono, comunque, destinate esclusivamente alle persone o alla Società sopraindicati. Le stesse non sono da considerarsi comunicazioni personali, quindi eventuali risposte potranno essere conosciute da persone appartenenti all'azienda.

In accordance with Regulation EU 2016/679 (General Data Protection Regulation) and Guidelines Applying to the Use of E-Mails and the Internet in the Employment Context of Italian Data Protection Authority it is announced that the information in this communication (which includes any documents with it) is confidential and meant only for above-mentioned persons and/or Companies; the information is not personal therefore, It is intended for the addressee only and any replies will be known by people belonging to the company.
_________________________________________________________________

RE: Streampipes dev and https

Posted by Dominik Riemer <ri...@apache.org>.
Hi Michele,

 

welcome to the list! 

I’ve just tried to reproduce the problem on a plain Azure machine with
Letsencrypt – Nginx has first failed to properly read the certificate files
from the letsencrypt folder and stopped the container (to me, it seems nginx
can’t properly read the symlinks from the live folder), but after copying
the original certificate files (fullchain + private) from the “archive”
folder in /etc/letsencrypt/archive to another folder and referencing them
from there, it has worked.

 

Your config looks good and it seems the UI container is already running –
can you please describe the error you’re currently experiencing?

Maybe you can also show the log output of the UI (docker-compose logs ui)? 

 

Cheers,

Dominik

 

 

From: Canteri, Michele <Mi...@gft.com> 
Sent: Tuesday, June 15, 2021 8:22 PM
To: users@streampipes.apache.org
Subject: Streampipes dev and https

 

Hi everyone,

 

I’ve successfully installed and run Streampipes on a Ubuntu 20.04 server
using incubator-streampipes-installer-dev.zip file, it runs 0.68 version.

I’ve followed the instructions about https found on the page:
https://streampipes.incubator.apache.org/docs/docs/dev-guide-ssl.html but it
doesn’t work and tried a couple of variation on that but I still am not able
to make it run.

 

The last configuration that looks partially correct (because I can see that
it open the 443 port) is:

 

./cli/streampipes ps

NAMES                                       IMAGE
STATUS         PORTS

streampipes_ui_1
apachestreampipes/ui:0.68.0-SNAPSHOT                            Up 7 minutes
0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp

 

is the one having the file cli/deploy/standalone/ui/docker-compose.yml 

 

version: "3.4"

services:

  ui:

    image: ${SP_DOCKER_REGISTRY}/ui:${SP_VERSION}

    ports:

      - "80:80"

      - "443:443"

    environment:

      - NGINX_SSL=true

    volumes:

      - /etc/letsencrypt/live/(mysite)/privkey.pem:/etc/nginx/ssl/ssl.pem

      - /etc/letsencrypt/live/(mysite)/fullchain.pem:/etc/nginx/ssl/cert.pem

    depends_on:

      - couchdb

      - activemq

      - consul

      - backend

    logging:

      driver: "json-file"

      options:

        max-size: "1m"

        max-file: "1"

    restart: unless-stopped

    networks:

      spnet:

 

networks:

  spnet:

    external: true

 

Any help is greatly appreciated.

Best regards,

Michele

 

Michele Canteri
_________________________________________________________________

GFT Italia S.r.l.
VIA SILE 18 / floor 4
20139 Milano, Italy

T +39 02 58158503
F      +39 02 58158621
Michele.Canteri@gft.com <ma...@gft.com> 
 <https://www.gft.com/it> www.gft.com/it
https://blog.gft.com
https://www.linkedin.com/company/gft-group/
www.twitter.com/gft_it  <https://www.twitter.com/gft_it> 

Registered office: GFT Italia S.r.l., Via Sile 18, 20139 Milan (Italy)
VAT Code and number of registration with the Companies' Register of Milan:
00819200478
Corporate capital: Euro 1,000,000 fully paid-in

Company subject to the direction and coordination activity of GFT
Technologies SE

Ai sensi del Regolamento UE 2016/679 (GDPR) e delle Linee Guida per posta
elettronica ed Internet del Garante Privacy si rende noto che le
informazioni contenute nella presente comunicazione e i relativi allegati
possono essere riservate e sono, comunque, destinate esclusivamente alle
persone o alla Società sopraindicati. Le stesse non sono da considerarsi
comunicazioni personali, quindi eventuali risposte potranno essere
conosciute da persone appartenenti all’azienda. 

In accordance with Regulation EU 2016/679 (General Data Protection
Regulation) and Guidelines Applying to the Use of E-Mails and the Internet
in the Employment Context of Italian Data Protection Authority it is
announced that the information in this communication (which includes any
documents with it) is confidential and meant only for above-mentioned
persons and/or Companies; the information is not personal therefore, It is
intended for the addressee only and any replies will be known by people
belonging to the company.
_________________________________________________________________