Open omarcr opened 3 years ago
After setting these variables in the .env file:
ENABLE_HTTPS=yes
SELF_SIGNED_CERT=no
And rebuilding, I get the following message:
==> Requesting Let's Encrypt SSL certificate for digitalphenotypingmit.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Unable to register an account with ACME server
touch: /etc/openssl/live/digitalphenotypingmit.com/.letsencrypt: No such file or directory
Reloading webserver configuration
### SUCCESS ###
However, this message is strange since I successfully obtained a certificate for the machine:
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/digitalphenotypingmit.com-0001/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/digitalphenotypingmit.com-0001/privkey.pem
Your cert will expire on 2021-03-04. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew *all* of your certificates, run
"certbot renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
I have partially solved the issue by following the steps here: #230
However, the gateway process keeps restarting:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
268f8f160ad3 radarbase/postgres:10.6-alpine-1 "docker-entrypoint.s…" 8 minutes ago Up 8 minutes (healthy) radar-cp-hadoop-stack_radarbase-postgresql_1
1b38e91e1c2a nginx:1.14.0-alpine "nginx -g 'daemon of…" 2 hours ago Up 9 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp radar-cp-hadoop-stack_webserver_1
cb9b5df132be radarcns/radar-dashboard:2.1.0 "./init.sh" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_dashboard_1
c6328aa3dd66 radarbase/radar-hdfs-restructure:0.6.0 "radar-hdfs-restruct…" 2 hours ago Up 18 minutes radar-cp-hadoop-stack_radar-output_1
8693b97f5476 radarbase/radar-connect-hdfs-sink:0.2.1 "/etc/confluent/dock…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_radar-hdfs-connector_1
f66317783673 radarbase/radar-restapi:0.3 "radar-restapi" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_rest-api_1
817c6ec48676 radarbase/radar-backend:0.4.0 "radar-backend-init …" 2 hours ago Up 18 minutes radar-cp-hadoop-stack_radar-backend-stream_1
f5d152616042 radarbase/radar-backend:0.4.0 "radar-backend-init …" 2 hours ago Up 18 minutes radar-cp-hadoop-stack_radar-backend-monitor_1
86a7ace99591 radarbase/kafka-connect-mongodb-sink:0.2.2 "/etc/confluent/dock…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_radar-mongodb-connector_1
7bd6c1ecddf9 radarbase/management-portal:0.5.5 "/bin/sh -c 'echo \"T…" 2 hours ago Up 17 minutes (healthy) 5701/udp, 8080/tcp radar-cp-hadoop-stack_managementportal-app_1
308ce9ca2e21 radarbase/hdfs:3.0.3-alpine "entrypoint.sh datan…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_hdfs-datanode-2_1
fc3a5fff62da radarbase/hdfs:3.0.3-alpine "entrypoint.sh datan…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_hdfs-datanode-1_1
9319b778ae89 radarbase/hdfs:3.0.3-alpine "entrypoint.sh datan…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_hdfs-datanode-3_1
da9446d6183a radarbase/radar-gateway:0.3.9 "radar-gateway /etc/…" 2 hours ago Up 3 minutes (health: starting) radar-cp-hadoop-stack_gateway_1
00481624c6eb confluentinc/cp-kafka-rest:4.1.0 "/etc/confluent/dock…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_rest-proxy-1_1
229c9a6e76bd radarbase/kafka-init:0.5.1 "init.sh topic_init.…" 2 hours ago Exited (0) 8 minutes ago radar-cp-hadoop-stack_kafka-init_1
06734a9e8a93 radarbase/kafka-manager:1.3.3.18 "./entrypoint.sh" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_kafka-manager_1
0759cb20752e namshi/smtp:latest "/bin/entrypoint.sh …" 2 hours ago Up 18 minutes 25/tcp radar-cp-hadoop-stack_smtp_1
23629d91bf30 radarbase/hdfs:3.0.3-alpine "entrypoint.sh namen…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_hdfs-namenode-1_1
e14565d8794c radarbase/radar-hotstorage:0.1 "/entrypoint.sh ./in…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_hotstorage_1
14d0b93e543c radarbase/kafka-init:0.5.1 "init.sh radar-schem…" 2 hours ago Up 17 minutes (healthy) radar-cp-hadoop-stack_catalog-server_1
0c710825229a portainer/portainer:1.22.0 "/portainer --admin-…" 2 hours ago Up 18 minutes radar-cp-hadoop-stack_portainer_1
47523ec4c879 confluentinc/cp-schema-registry:4.1.0 "/etc/confluent/dock…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_schema-registry-1_1
147c2e2d8dbc confluentinc/cp-kafka:4.1.0 "/etc/confluent/dock…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_kafka-2_1
2cf610b3c596 confluentinc/cp-kafka:4.1.0 "/etc/confluent/dock…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_kafka-3_1
06d5e9e74955 confluentinc/cp-kafka:4.1.0 "/etc/confluent/dock…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_kafka-1_1
e9d7e9e92f86 confluentinc/cp-zookeeper:4.1.0 "/etc/confluent/dock…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_zookeeper-2_1
10dd8f813172 confluentinc/cp-zookeeper:4.1.0 "/etc/confluent/dock…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_zookeeper-1_1
9cd7bd2f2bbc confluentinc/cp-zookeeper:4.1.0 "/etc/confluent/dock…" 2 hours ago Up 18 minutes (healthy) radar-cp-hadoop-stack_zookeeper-3_1
Any recommendations on how to fix this?
Can you post the logs of the gateway container? ./bin/radar-docker logs gateway
Can you post the logs of the gateway container?
./bin/radar-docker logs gateway
Yes, here is the most recent output (keeps showing the same):
gateway_1 | 2020-12-07 17:13:54 UTC [in] INFO - Token public key endpoints set to [http://managementportal-app:8080/managementportal/oauth/token_key] [org.radarcns.auth.con
fig.TokenVerifierPublicKeyConfig:85]
gateway_1 | Dec 07, 2020 5:13:55 PM org.glassfish.grizzly.http.server.NetworkListener start
gateway_1 | INFO: Started listener bound to [0.0.0.0:80]
gateway_1 | Dec 07, 2020 5:13:55 PM org.glassfish.grizzly.http.server.HttpServer start
gateway_1 | INFO: [HttpServer] Started.
gateway_1 | 2020-12-07 17:13:55 UTC [in] INFO - Jersey app started on http://0.0.0.0/radar-gateway/.
gateway_1 | Press Ctrl+C to exit... [org.radarcns.gateway:49]
gateway_1 | 2020-12-07 17:18:52 UTC [ok] INFO - Stopping server.. [org.radarcns.gateway:42]
gateway_1 | 2020-12-07 17:18:54 UTC [in] INFO - Reading configuration from /etc/radar-gateway/gateway.yml [org.radarcns.gateway:23]
gateway_1 | 2020-12-07 17:18:55 UTC [in] INFO - RADAR_IS_CONFIG_LOCATION environment variable not set, looking for it on the classpath [org.radarcns.auth.config.TokenVerifi
erPublicKeyConfig:59]
gateway_1 | 2020-12-07 17:18:55 UTC [in] INFO - Token public key endpoints set to [http://managementportal-app:8080/managementportal/oauth/token_key] [org.radarcns.auth.con
fig.TokenVerifierPublicKeyConfig:85]
gateway_1 | Dec 07, 2020 5:18:55 PM org.glassfish.grizzly.http.server.NetworkListener start
gateway_1 | INFO: Started listener bound to [0.0.0.0:80]
gateway_1 | Dec 07, 2020 5:18:55 PM org.glassfish.grizzly.http.server.HttpServer start
gateway_1 | INFO: [HttpServer] Started.
gateway_1 | 2020-12-07 17:18:55 UTC [in] INFO - Jersey app started on http://0.0.0.0/radar-gateway/.
gateway_1 | Press Ctrl+C to exit... [org.radarcns.gateway:49]
gateway_1 | 2020-12-07 17:23:53 UTC [ok] INFO - Stopping server.. [org.radarcns.gateway:42]
gateway_1 | 2020-12-07 17:23:55 UTC [in] INFO - Reading configuration from /etc/radar-gateway/gateway.yml [org.radarcns.gateway:23]
gateway_1 | 2020-12-07 17:23:56 UTC [in] INFO - RADAR_IS_CONFIG_LOCATION environment variable not set, looking for it on the classpath [org.radarcns.auth.config.TokenVerifi
erPublicKeyConfig:59]
gateway_1 | 2020-12-07 17:23:56 UTC [in] INFO - Token public key endpoints set to [http://managementportal-app:8080/managementportal/oauth/token_key] [org.radarcns.auth.con
fig.TokenVerifierPublicKeyConfig:85]
gateway_1 | Dec 07, 2020 5:23:56 PM org.glassfish.grizzly.http.server.NetworkListener start
gateway_1 | INFO: Started listener bound to [0.0.0.0:80]
gateway_1 | Dec 07, 2020 5:23:56 PM org.glassfish.grizzly.http.server.HttpServer start
gateway_1 | INFO: [HttpServer] Started.
gateway_1 | 2020-12-07 17:23:56 UTC [in] INFO - Jersey app started on http://0.0.0.0/radar-gateway/.
gateway_1 | Press Ctrl+C to exit... [org.radarcns.gateway:49]
gateway_1 | 2020-12-07 17:28:54 UTC [ok] INFO - Stopping server.. [org.radarcns.gateway:42]
gateway_1 | 2020-12-07 17:28:55 UTC [in] INFO - Reading configuration from /etc/radar-gateway/gateway.yml [org.radarcns.gateway:23]
gateway_1 | 2020-12-07 17:28:56 UTC [in] INFO - RADAR_IS_CONFIG_LOCATION environment variable not set, looking for it on the classpath [org.radarcns.auth.config.TokenVerifi
erPublicKeyConfig:59]
gateway_1 | 2020-12-07 17:28:56 UTC [in] INFO - Token public key endpoints set to [http://managementportal-app:8080/managementportal/oauth/token_key] [org.radarcns.auth.con
fig.TokenVerifierPublicKeyConfig:85]
gateway_1 | Dec 07, 2020 5:28:56 PM org.glassfish.grizzly.http.server.NetworkListener start
gateway_1 | INFO: Started listener bound to [0.0.0.0:80]
gateway_1 | Dec 07, 2020 5:28:56 PM org.glassfish.grizzly.http.server.HttpServer start
gateway_1 | INFO: [HttpServer] Started.
gateway_1 | 2020-12-07 17:28:56 UTC [in] INFO - Jersey app started on http://0.0.0.0/radar-gateway/.
gateway_1 | Press Ctrl+C to exit... [org.radarcns.gateway:49]
here is my most recent container status:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NA
MES
208ad664014d radarbase/management-portal:0.5.5 "/bin/sh -c 'echo \"T…" 15 minutes ago Up 15 minutes (healthy) 5701/udp, 8080/tcp ra
dar-cp-hadoop-stack_managementportal-app_1
39d3ecbf3ea3 radarbase/postgres:10.6-alpine-1 "docker-entrypoint.s…" 16 minutes ago Up 15 minutes (healthy) ra
dar-cp-hadoop-stack_radarbase-postgresql_1
1b38e91e1c2a nginx:1.14.0-alpine "nginx -g 'daemon of…" 2 days ago Up 3 hours 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp ra
dar-cp-hadoop-stack_webserver_1
cb9b5df132be radarcns/radar-dashboard:2.1.0 "./init.sh" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_dashboard_1
c6328aa3dd66 radarbase/radar-hdfs-restructure:0.6.0 "radar-hdfs-restruct…" 2 days ago Up 3 hours ra
dar-cp-hadoop-stack_radar-output_1
8693b97f5476 radarbase/radar-connect-hdfs-sink:0.2.1 "/etc/confluent/dock…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_radar-hdfs-connector_1
f66317783673 radarbase/radar-restapi:0.3 "radar-restapi" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_rest-api_1
817c6ec48676 radarbase/radar-backend:0.4.0 "radar-backend-init …" 2 days ago Up 3 hours ra
dar-cp-hadoop-stack_radar-backend-stream_1
f5d152616042 radarbase/radar-backend:0.4.0 "radar-backend-init …" 2 days ago Up 3 hours ra
dar-cp-hadoop-stack_radar-backend-monitor_1
86a7ace99591 radarbase/kafka-connect-mongodb-sink:0.2.2 "/etc/confluent/dock…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_radar-mongodb-connector_1
308ce9ca2e21 radarbase/hdfs:3.0.3-alpine "entrypoint.sh datan…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_hdfs-datanode-2_1
fc3a5fff62da radarbase/hdfs:3.0.3-alpine "entrypoint.sh datan…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_hdfs-datanode-1_1
9319b778ae89 radarbase/hdfs:3.0.3-alpine "entrypoint.sh datan…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_hdfs-datanode-3_1
da9446d6183a radarbase/radar-gateway:0.3.9 "radar-gateway /etc/…" 2 days ago Up 3 minutes (health: starting) ra
dar-cp-hadoop-stack_gateway_1
00481624c6eb confluentinc/cp-kafka-rest:4.1.0 "/etc/confluent/dock…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_rest-proxy-1_1
229c9a6e76bd radarbase/kafka-init:0.5.1 "init.sh topic_init.…" 2 days ago Exited (0) 15 minutes ago ra
dar-cp-hadoop-stack_kafka-init_1
06734a9e8a93 radarbase/kafka-manager:1.3.3.18 "./entrypoint.sh" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_kafka-manager_1
0759cb20752e namshi/smtp:latest "/bin/entrypoint.sh …" 2 days ago Up 3 hours 25/tcp ra
dar-cp-hadoop-stack_smtp_1
23629d91bf30 radarbase/hdfs:3.0.3-alpine "entrypoint.sh namen…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_hdfs-namenode-1_1
e14565d8794c radarbase/radar-hotstorage:0.1 "/entrypoint.sh ./in…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_hotstorage_1
14d0b93e543c radarbase/kafka-init:0.5.1 "init.sh radar-schem…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_catalog-server_1
0c710825229a portainer/portainer:1.22.0 "/portainer --admin-…" 2 days ago Up 3 hours ra
dar-cp-hadoop-stack_portainer_1
47523ec4c879 confluentinc/cp-schema-registry:4.1.0 "/etc/confluent/dock…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_schema-registry-1_1
147c2e2d8dbc confluentinc/cp-kafka:4.1.0 "/etc/confluent/dock…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_kafka-2_1
2cf610b3c596 confluentinc/cp-kafka:4.1.0 "/etc/confluent/dock…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_kafka-3_1
06d5e9e74955 confluentinc/cp-kafka:4.1.0 "/etc/confluent/dock…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_kafka-1_1
e9d7e9e92f86 confluentinc/cp-zookeeper:4.1.0 "/etc/confluent/dock…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_zookeeper-2_1
10dd8f813172 confluentinc/cp-zookeeper:4.1.0 "/etc/confluent/dock…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_zookeeper-1_1
9cd7bd2f2bbc confluentinc/cp-zookeeper:4.1.0 "/etc/confluent/dock…" 2 days ago Up 3 hours (healthy) ra
dar-cp-hadoop-stack_zookeeper-3_1
711d7c710539 nginxdemos/hello "nginx -g 'daemon of…" 2 days ago Exited (0) 2 days ago xe
nodochial_black
251f2c476ee0 nginxdemos/hello "nginx -g 'daemon of…" 2 days ago Exited (0) 2 days ago ga
llant_lewin
ubuntu@ip-17
Dear all, we also have to face this issue and cannot find a proper solution on our own and on the #230. Can someone help, to fix this problem? --> Radar base got successfully installed, services are getting loaded, webapplication is briefly online BUT then the Nginx is restarting all the time (webapplication starts in loop). Looking forward hearing from you. BR
-> UPDATE: we fixed this issue by commanding (#) all the lines in the config-file
Dear all, we were able to fix the issue with the nginx but now are facing the problem that the gateway container is NOT HEALTHY - so we can login to the management portal, no error appears BUT nothing can be seen (we can not enter the ManagementPortal). Here is the current output:
2021-01-21 13:52:57 UTC [ok] INFO - Stopping server.. [org.radarcns.gateway:42]
gateway_1 | 2021-01-21 13:53:01 UTC [in] INFO - Reading configuration from /etc/radar-gateway/gateway.yml [org.radarcns.gateway:23]
gateway_1 | 2021-01-21 13:53:04 UTC [in] INFO - RADAR_IS_CONFIG_LOCATION environment variable not set, looking for it on the classpath [org.radarcns.auth.config.TokenVerifierPublicKeyConfig:59]
gateway_1 | 2021-01-21 13:53:04 UTC [in] INFO - Token public key endpoints set to [http://managementportal-app:8080/managementportal/oauth/token_key] [org.radarcns.auth.config.TokenVerifierPublicKeyConfig:85]
gateway_1 | Jan 21, 2021 1:53:05 PM org.glassfish.grizzly.http.server.NetworkListener start
gateway_1 | INFO: Started listener bound to [0.0.0.0:80]
gateway_1 | Jan 21, 2021 1:53:05 PM org.glassfish.grizzly.http.server.HttpServer start
gateway_1 | INFO: [HttpServer] Started.
gateway_1 | 2021-01-21 13:53:05 UTC [in] INFO - Jersey app started on http://0.0.0.0/radar-gateway/.
gateway_1 | Press Ctrl+C to exit... [org.radarcns.gateway:49]
userXX@serverXX:~/RADAR-Docker/dcompose-stack/radar-cp-hadoop-stack$
Looking forward hearing from you!
Best regards kafe
Hello,
Is it possible for someone to look into this? As this is the exact same issues we have in our gateway logs so nothing works
Hello, while installing radar-base to an amazon lightsail ubuntu server I got the following message:
To fix this I installed a let's encrypt certificate, similar as in here: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-using-lets-encrypt-certificates-with-nginx (not a nginx instance)
After successfully installed the certificate I get the following after the installation:
however the nginx service keeps restarting and the gateway service shows as starting:
I cannot access the management portal on my server.
Let me know if you have any advice on how to fix this issue.