Giter Club home page Giter Club logo

Comments (3)

fisuda avatar fisuda commented on July 30, 2024

Please check state of nginx and Keyrock processes.
Run the following command in a directory you ran lets-fiware.sh.

make ps

And check a log of nginx.

cat /var/log/fiware/nginx.log

from fiware-big-bang.

fisuda avatar fisuda commented on July 30, 2024

You can get an access token from Keyrock using the following script.

#!/bin/sh
set -eu

if [ ! -e .env ]; then
  echo ".env file not fuond"
  exit 1
fi

. ./.env

curl -sS "https://${KEYROCK}/oauth2/token" \
  --user "${TOKENPROXY_CLIENT_ID}:${TOKENPROXY_CLIENT_SECRET}" \
  --data "grant_type=password" \
  --data "username=${IDM_ADMIN_EMAIL}" \
  --data "password=${IDM_ADMIN_PASS}"
$ ./get-token-keyrock.sh
{"access_token":"61b920637f166191941cf40da6f869754d121614","token_type":"bearer","expires_in":3599,"refresh_token":"a238ba71f3962643ed4d71af1488978935c0d649","scope":["bearer"]}

from fiware-big-bang.

MasazI avatar MasazI commented on July 30, 2024

I appreciate your answer.
I checked the docker process and nginx log,

make ps
sudo /usr/local/bin/docker-compose ps
              Name                            Command                   State                                        Ports                                 
-----------------------------------------------------------------------------------------------------------------------------------------------------------
fiware-big-bang-060_keyrock_1      docker-entrypoint.sh npm start   Up (healthy)     3000/tcp                                                              
fiware-big-bang-060_mongo_1        docker-entrypoint.sh --noj ...   Up               27017/tcp                                                             
fiware-big-bang-060_mysql_1        docker-entrypoint.sh mysqld      Up               3306/tcp, 33060/tcp                                                   
fiware-big-bang-060_nginx_1        /docker-entrypoint.sh ngin ...   Up               0.0.0.0:443->443/tcp,:::443->443/tcp, 0.0.0.0:80->80/tcp,:::80->80/tcp
fiware-big-bang-060_orion_1        sh -c rm /tmp/contextBroke ...   Up               1026/tcp                                                              
fiware-big-bang-060_tokenproxy_1   docker-entrypoint.sh             Up               1029/tcp                                                              
fiware-big-bang-060_wilma_1        docker-entrypoint.sh npm start   Up (unhealthy)   1027/tcp  

It seems good about keryrock and nginx.

cat /var/log/fiware/nginx.log
Nov 10 06:04:32 ip-10-0-1-65 [nginx][3252]: /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
Nov 10 06:04:32 ip-10-0-1-65 [nginx][3252]: /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
Nov 10 06:04:32 ip-10-0-1-65 [nginx][3252]: /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
Nov 10 06:04:32 ip-10-0-1-65 [nginx][3252]: 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
Nov 10 06:04:32 ip-10-0-1-65 [nginx][3252]: 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
Nov 10 06:04:32 ip-10-0-1-65 [nginx][3252]: /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
Nov 10 06:04:32 ip-10-0-1-65 [nginx][3252]: /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
Nov 10 06:04:32 ip-10-0-1-65 [nginx][3252]: /docker-entrypoint.sh: Configuration complete; ready for start up
Nov 10 07:07:18 ip-10-0-1-65 [nginx][3252]: /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
Nov 10 07:07:18 ip-10-0-1-65 [nginx][3252]: /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
Nov 10 07:07:18 ip-10-0-1-65 [nginx][3252]: /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
Nov 10 07:07:18 ip-10-0-1-65 [nginx][3252]: 10-listen-on-ipv6-by-default.sh: info: IPv6 listen already enabled
Nov 10 07:07:18 ip-10-0-1-65 [nginx][3252]: /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
Nov 10 07:07:18 ip-10-0-1-65 [nginx][3252]: /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
Nov 10 07:07:18 ip-10-0-1-65 [nginx][3252]: /docker-entrypoint.sh: Configuration complete; ready for start up
Nov 10 08:32:56 ip-10-0-1-65 [nginx][606]: /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
Nov 10 08:32:56 ip-10-0-1-65 [nginx][606]: /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
Nov 10 08:32:56 ip-10-0-1-65 [nginx][606]: /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
Nov 10 08:32:56 ip-10-0-1-65 [nginx][606]: 10-listen-on-ipv6-by-default.sh: info: IPv6 listen already enabled
Nov 10 08:32:56 ip-10-0-1-65 [nginx][606]: /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
Nov 10 08:32:56 ip-10-0-1-65 [nginx][606]: /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
Nov 10 08:32:56 ip-10-0-1-65 [nginx][606]: /docker-entrypoint.sh: Configuration complete; ready for start up

I guess this log is also no problem.

Anyway, I got a token using your script! Thank you so much.

from fiware-big-bang.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.