We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question
0

perseo-core

asked 2018-06-19 09:19:18 +0100

Ignacio gravatar image

Hi,

I'm trying to install perseo following the guide from https://github.com/telefonicaid/perse...

I guess that I have to install perseo-core first and after I have to install perseo-fe. When I'm trying to deploy perseo-core, I'm getting some errors (probably the issue is on my side). When I try docker build -t perseo ., after few warnings, it seems it hangs at some point: http://mirror.uv.es/mirror/CentOS/7.5.1804/os/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.uv.es/mirror/CentOS/7.5.1804/os/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds') Trying other mirror. ftp://ftp.cesca.cat/centos/7.5.1804/extras/x86_64/repodata/repomd.xml: [Errno 12] Timeout on ftp://ftp.cesca.cat/centos/7.5.1804/extras/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds') Trying other mirror. http://ftp.cica.es/CentOS/7.5.1804/extras/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://ftp.cica.es/CentOS/7.5.1804/extras/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds') Trying other mirror. http://mirror.airenetworks.es/CentOS/7.5.1804/extras/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.airenetworks.es/CentOS/7.5.1804/extras/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds') Trying other mirror. http://centos.uvigo.es/7.5.1804/extras/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://centos.uvigo.es/7.5.1804/extras/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds') Trying other mirror. http://ftp.uma.es/mirror/CentOS/7.5.1804/extras/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://ftp.uma.es/mirror/CentOS/7.5.1804/extras/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')

If I try to install it from rpm, I get the next errors:

RPM build errors: Bad exit status from /var/tmp/rpm-tmp.1yMNCh (%prep) [centos@digitanimal-fiware-test-2018 rpm]$ ^C [centos@digitanimal-fiware-test-2018 rpm]$ sudo ./create-rpm.sh 1 0.1 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.iyb82M + umask 022 + cd /home/centos/perseo-core/rpm/BUILD + echo '[INFO] Preparing installation' [INFO] Preparing installation + rm -Rf /home/centos/perseo-core/rpm/BUILDROOT/perseo-cep-core-0.1-1.x86_64 + mkdir -p /home/centos/perseo-core/rpm/BUILDROOT/perseo-cep-core-0.1-1.x86_64 + '[' -d /home/centos/perseo-core/rpm/BUILDROOT/perseo-cep-core-0.1-1.x86_64/usr/share/tomcat/webapps ']' + mkdir -p /home/centos/perseo-core/rpm/BUILDROOT/perseo-cep-core-0.1-1.x86_64/usr/share/tomcat/webapps + cp -ax /home/centos/perseo-core/rpm/../target/perseo-core-0.1.war /home/centos/perseo-core/rpm/BUILDROOT/perseo-cep-core-0.1-1.x86_64/usr/share/tomcat/webapps/perseo-core.war cp: cannot stat '/home/centos/perseo-core/rpm/../target/perseo-core-0.1.war': No such file or directory error: Bad ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2018-07-17 12:56:11 +0100

aarranz gravatar image

I recommend you to use the any of the already provided docker images.

First, Telefónica provides the current "stable" images. See this answer for more details.

We are working on improving Perseo and having it up to date. This version is available at Docker Hub on the FIWARE organization. In this regard, Perseo has been updated to use a recent version of Esper, NodeJS, Java, ... and now comes with support for NGSIv2. If you want to test this version instead, you can use the following docker-compose.yml file:

version: '3.4'
services:

    perseo-core:
        image: fiware/perseo-core
        environment:
            - PERSEO_FE_URL=http://perseo:9090
            - MAX_AGE=6000
        depends_on:
            - mongo

    perseo:
        image: fiware/perseo
        ports:
            - 9090:9090
        depends_on:
            - perseo-core
        environment:
            - PERSEO_MONGO_ENDPOINT=mongo
            - PERSEO_CORE_URL=http://perseo-core:8080
            - PERSEO_LOG_LEVEL=info
            - PERSEO_ORION_URL=http://orion:1026/
            - PERSEO_SMTP_HOST=smtp.gmail.com
            - PERSEO_SMTP_PORT=465
            - PERSEO_SMTP_SECURE=true
            - PERSEO_SMTP_AUTH_USER=XXXXX@XXXXX.com
            - PERSEO_SMTP_AUTH_PASS=XXXXX

    mongo:
        image: mongo:3.4
        volumes:
            - ./oriondata:/data/db
        command: --nojournal

    orion:
        image: fiware/orion
        depends_on:
            - mongo
        ports:
            - 1026:1026
        command: -dbhost mongo
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-06-19 09:19:18 +0100

Seen: 7,174 times

Last updated: Jul 17