RADAR-base / RADAR-Docker

Integrated Docker Stack for the RADAR mHealth Streaming Platform Components
https://hub.docker.com/u/radarbase/dashboard/
Apache License 2.0
16 stars 16 forks source link

nginx service keeps restaring #235

Open omarcr opened 3 years ago

omarcr commented 3 years ago

Hello, while installing radar-base to an amazon lightsail ubuntu server I got the following message:

==> Requesting Let's Encrypt SSL certificate for digitalphenotyping.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/digitalphenotyping.com/.letsencrypt: No such file or directory
Reloading webserver configuration
### SUCCESS ###

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:

Step 4/4 : COPY ./on-db-ready /usr/bin/on-db-ready
 ---> 0678a4eb48e1
Successfully built 0678a4eb48e1
Successfully tagged radarbase/postgres:10.6-alpine-1
Recreating radar-cp-hadoop-stack_radarbase-postgresql_1 ... done
Waiting for postgres database...
Database ready.
Multiple database creation requested: managementportal,restsourceauthorizer
Database managementportal already exists
Database restsourceauthorizer already exists
Databases created
--> ECDSA keypair for signing JWTs already exists. Not creating a new one.
--> RSA keypair for signing JWTs already exists. Not creating a new one.
--> Updating public keys of signatures
==> Configuring REST-API
==> Configuring Kafka-manager
==> Configuring nginx
==> Generating self-signed certificate
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.3-184-gffd32bfd09 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.3-183-gcc9ad2b48d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
OK: 9054 distinct packages available
(1/3) Installing libcrypto1.0 (1.0.2t-r0)
(2/3) Installing libssl1.0 (1.0.2t-r0)
(3/3) Installing openssl (1.0.2t-r0)
Executing busybox-1.27.2-r11.trigger
OK: 8 MiB in 16 packages
Generating a RSA private key
....................................................................++++
.......................................++++
writing new private key to 'privkey.pem'
-----
==> Starting RADAR-base Platform
radar-cp-hadoop-stack_zookeeper-2_1 is up-to-date
radar-cp-hadoop-stack_radarbase-postgresql_1 is up-to-date
radar-cp-hadoop-stack_portainer_1 is up-to-date
radar-cp-hadoop-stack_smtp_1 is up-to-date
radar-cp-hadoop-stack_hdfs-namenode-1_1 is up-to-date
radar-cp-hadoop-stack_zookeeper-1_1 is up-to-date
radar-cp-hadoop-stack_hotstorage_1 is up-to-date
radar-cp-hadoop-stack_zookeeper-3_1 is up-to-date
radar-cp-hadoop-stack_catalog-server_1 is up-to-date
radar-cp-hadoop-stack_hdfs-datanode-2_1 is up-to-date
radar-cp-hadoop-stack_hdfs-datanode-1_1 is up-to-date
radar-cp-hadoop-stack_hdfs-datanode-3_1 is up-to-date
radar-cp-hadoop-stack_kafka-3_1 is up-to-date
radar-cp-hadoop-stack_kafka-2_1 is up-to-date
radar-cp-hadoop-stack_kafka-1_1 is up-to-date
radar-cp-hadoop-stack_managementportal-app_1 is up-to-date
radar-cp-hadoop-stack_radar-output_1 is up-to-date
radar-cp-hadoop-stack_schema-registry-1_1 is up-to-date
radar-cp-hadoop-stack_kafka-manager_1 is up-to-date
Starting radar-cp-hadoop-stack_kafka-init_1 ... 
radar-cp-hadoop-stack_rest-api_1 is up-to-date
radar-cp-hadoop-stack_rest-proxy-1_1 is up-to-date
radar-cp-hadoop-stack_dashboard_1 is up-to-date
radar-cp-hadoop-stack_gateway_1 is up-to-date
Starting radar-cp-hadoop-stack_kafka-init_1 ... done
radar-cp-hadoop-stack_radar-backend-stream_1 is up-to-date
radar-cp-hadoop-stack_radar-mongodb-connector_1 is up-to-date
radar-cp-hadoop-stack_radar-backend-monitor_1 is up-to-date
radar-cp-hadoop-stack_radar-hdfs-connector_1 is up-to-date
Self-signed SSL certificate exists, not recreating
### SUCCESS ###

however the nginx service keeps restarting and the gateway service shows as starting:

ubuntu@ip-172-26-11-12:~/RADAR-Docker/dcompose-stack/radar-cp-hadoop-stack$ docker ps -a
CONTAINER ID        IMAGE                                        COMMAND                   CREATED             STATUS                             PORTS                NAMES
598e0bf7dab0        radarbase/kafka-init:0.5.1                   "init.sh topic_init.…"    9 seconds ago       Up 8 seconds                                            radar-cp-hadoop-stack_kafka-init_run_946baf2acc47
67c7c214b2ec        radarcns/radar-dashboard:2.1.0               "./init.sh"               11 minutes ago      Up 11 minutes (healthy)                                 radar-cp-hadoop-stack_dashboard_1
7fb80578975d        radarbase/management-portal:0.5.5            "/bin/sh -c 'echo \"T…"   12 minutes ago      Up 12 minutes (healthy)            5701/udp, 8080/tcp   radar-cp-hadoop-stack_managementportal-app_1
4fd7bc1a3a35        radarbase/postgres:10.6-alpine-1             "docker-entrypoint.s…"    12 minutes ago      Up 12 minutes (healthy)                                 radar-cp-hadoop-stack_radarbase-postgresql_1
3f3ae9f1124c        nginx:1.14.0-alpine                          "nginx -g 'daemon of…"    About an hour ago   Restarting (1) 21 seconds ago                           radar-cp-hadoop-stack_webserver_1
8999406b7b40        radarbase/radar-connect-hdfs-sink:0.2.1      "/etc/confluent/dock…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_radar-hdfs-connector_1
a17bf3e0c86f        radarbase/radar-hdfs-restructure:0.6.0       "radar-hdfs-restruct…"    About an hour ago   Up 20 minutes                                           radar-cp-hadoop-stack_radar-output_1
1a4c14642e53        radarbase/radar-restapi:0.3                  "radar-restapi"           About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_rest-api_1
0d03bd3e25f7        radarbase/kafka-connect-mongodb-sink:0.2.2   "/etc/confluent/dock…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_radar-mongodb-connector_1
e7f6a2ae36de        radarbase/radar-backend:0.4.0                "radar-backend-init …"    About an hour ago   Up 20 minutes                                           radar-cp-hadoop-stack_radar-backend-monitor_1
81717c4052ab        radarbase/radar-backend:0.4.0                "radar-backend-init …"    About an hour ago   Up 20 minutes                                           radar-cp-hadoop-stack_radar-backend-stream_1
591358aa5e98        radarbase/hdfs:3.0.3-alpine                  "entrypoint.sh datan…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_hdfs-datanode-3_1
e803aa5e7a61        radarbase/hdfs:3.0.3-alpine                  "entrypoint.sh datan…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_hdfs-datanode-1_1
7d2f38f10f44        radarbase/hdfs:3.0.3-alpine                  "entrypoint.sh datan…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_hdfs-datanode-2_1
aee10f836893        radarbase/radar-gateway:0.3.9                "radar-gateway /etc/…"    About an hour ago   Up 15 seconds (health: starting)                        radar-cp-hadoop-stack_gateway_1
b902e7362869        confluentinc/cp-kafka-rest:4.1.0             "/etc/confluent/dock…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_rest-proxy-1_1
a6155beb92b0        radarbase/kafka-init:0.5.1                   "init.sh topic_init.…"    About an hour ago   Exited (0) 11 minutes ago                               radar-cp-hadoop-stack_kafka-init_1
c6f2c8068a97        radarbase/kafka-manager:1.3.3.18             "./entrypoint.sh"         About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_kafka-manager_1
3365b51a914f        portainer/portainer:1.22.0                   "/portainer --admin-…"    About an hour ago   Up 20 minutes                                           radar-cp-hadoop-stack_portainer_1
299c7a8402eb        radarbase/kafka-init:0.5.1                   "init.sh radar-schem…"    About an hour ago   Up 19 minutes (healthy)                                 radar-cp-hadoop-stack_catalog-server_1
26a1061f0bad        radarbase/hdfs:3.0.3-alpine                  "entrypoint.sh namen…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_hdfs-namenode-1_1
53029e16ad61        radarbase/radar-hotstorage:0.1               "/entrypoint.sh ./in…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_hotstorage_1
7676f91aaf7c        namshi/smtp:latest                           "/bin/entrypoint.sh …"    About an hour ago   Up 20 minutes                      25/tcp               radar-cp-hadoop-stack_smtp_1
fbae77d351e8        confluentinc/cp-schema-registry:4.1.0        "/etc/confluent/dock…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_schema-registry-1_1
5418b0ebe562        confluentinc/cp-kafka:4.1.0                  "/etc/confluent/dock…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_kafka-2_1
e4ced12cbfa4        confluentinc/cp-kafka:4.1.0                  "/etc/confluent/dock…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_kafka-1_1
1c29c9e4c78e        confluentinc/cp-kafka:4.1.0                  "/etc/confluent/dock…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_kafka-3_1
bfb553791d96        confluentinc/cp-zookeeper:4.1.0              "/etc/confluent/dock…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_zookeeper-1_1
914b8534e357        confluentinc/cp-zookeeper:4.1.0              "/etc/confluent/dock…"    About an hour ago   Up 20 minutes (healthy)                                 radar-cp-hadoop-stack_zookeeper-3_1
2790cd1ac132        confluentinc/cp-zookeeper:4.1.0              "/etc/confluen

I cannot access the management portal on my server.

Let me know if you have any advice on how to fix this issue.

omarcr commented 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
omarcr commented 3 years ago

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?

yatharthranjan commented 3 years ago

Can you post the logs of the gateway container? ./bin/radar-docker logs gateway

omarcr commented 3 years ago

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] 
omarcr commented 3 years ago

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
kafe09 commented 3 years ago

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

kafe09 commented 3 years ago

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

JustSamzy commented 3 years ago

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