Comments (3)
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.
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.
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 (20)
- Domain validation fails when a subdomain name contains an IP address
- "Entity could not be retrieved: HTTP status code: 401" from local-installed Node-Red HOT 4
- Cannot get a http root of a Node-RED instance deploying as multi-instance.
- Unable to log out of Zeppelin.
- 401 Unauthorized Error to orion access. HOT 3
- PostgreSQL version update HOT 1
- make get-token fails with special characters in password HOT 3
- lets-fiware.sh script deletes data directory HOT 1
- Cannot create user with "ngsi users create" HOT 4
- Update Keyrock and Wilma to 8.4.0 HOT 1
- Update node-red to 3.x HOT 1
- setup_ngsi_go.sh script builder bug. HOT 1
- Platform Upgrade and Domain Migration from Version 0.17 to 0.27 HOT 2
- Unable to login to Grafana as GRAFANA_CLIENT_ID is not generated. HOT 7
- Sanity check for Cygnus returns 502 Bad Gateway HOT 7
- NODE_RED_INSTANCE_NUMBER out of range with `1` HOT 1
- Add CORS headers to Nginx sites configurations(s) HOT 4
- pwgen command not found HOT 2
- Error in obtaining Let's Encrypt certificate HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fiware-big-bang.