Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(401 error) Unable to log into management portal as admin after install #231

Open
sallymoon10 opened this issue Nov 27, 2020 · 4 comments
Open

Comments

@sallymoon10
Copy link

sallymoon10 commented Nov 27, 2020

Thanks a lot for your help with my previous question @yatharthranjan !

I was able to successfully install radar-base on my server (Google Cloud) and access the management portal via browser using http.

When I try to sign in as admin with the password that I set as the MANAGEMENTPORTAL_COMMON_ADMIN_PASSWORD variable in the .env file, it doesn't do anything. From inspecting browser console, I saw that the it was getting 401 errors as shown in the image attached below:
image

Is there anything I'm doing wrong? I attached my .env file for you in case it helps.

env file.txt

Could it be because I am connecting via http and not https? I couldn't get letsencrypt working because it gave me the following error during installation. From further inspection, it seemed like it wasn't going to work because I have a IPV4 address and not a IPV6 address. Is it imperative that https works? Or is http okay?

ailed authorization procedure. mhiatsl.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://mhiatsl.com/
.well-known/acme-challenge/BRQzjQF-o8QdWtqzz-7UUk12LvotXk2X2Snjj6X6D6k [35.203.20.82]: "\r\n<title>404 Not Found</title>\r\n<body bgcolor="white">\r\n

4
04 Not Found

\r\n
"
IMPORTANT NOTES:

  • The following errors were reported by the server:
    Domain: mhiatsl.com
    Type: unauthorized
    Detail: Invalid response from
    http://mhiatsl.com/.well-known/acme-challenge/BRQzjQF-o8QdWtqzz-7UUk12LvotXk2X2Snjj6X6D6k
    [35.203.20.82]: "\r\n<title>404 Not
    Found</title>\r\n<body bgcolor="white">\r\n

    404
    Not Found

    \r\n
    "
    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address.

Thanks so much for your continued support in this project, I really appreciate it!

@sallymoon10
Copy link
Author

Nevermind, worked after a re-install!

@jimmafeni
Copy link

@sallymoon10 please how did you access the management portal via browser? when I run https://servername/managementportal/, I get:

This site can’t be reached servername unexpectedly closed the connection.
Try:

Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_CONNECTION_CLOSED

@jimmafeni
Copy link

@sallymoon10 radar-base installation seems to be successful:

CONTAINER ID        IMAGE                                        COMMAND                   CREATED             STATUS                                 PORTS                NAMES
6a9dee84669b        radarbase/postgres:10.6-alpine-1             "docker-entrypoint.s…"    33 minutes ago      Up 33 minutes (healthy)                                     radar-cp-hadoop-stack_radarbase-postgresql_1
cb6bce024e80        nginx:1.14.0-alpine                          "nginx -g 'daemon of…"    21 hours ago        Restarting (1) 44 seconds ago                               radar-cp-hadoop-stack_webserver_1
c8bc968e2fa2        radarcns/radar-dashboard:2.1.0               "./init.sh"               21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_dashboard_1
7090d5425918        radarbase/radar-connect-hdfs-sink:0.2.1      "/etc/confluent/dock…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_radar-hdfs-connector_1
1f8a546c4d47        radarbase/radar-hdfs-restructure:0.6.0       "radar-hdfs-restruct…"    21 hours ago        Up 21 hours                                                 radar-cp-hadoop-stack_radar-output_1
e001c7e77fa9        radarbase/radar-restapi:0.3                  "radar-restapi"           21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_rest-api_1
1cb6f238ba2f        radarbase/radar-backend:0.4.0                "radar-backend-init …"    21 hours ago        Up 21 hours                                                 radar-cp-hadoop-stack_radar-backend-stream_1
a7ccdee7596e        radarbase/radar-backend:0.4.0                "radar-backend-init …"    21 hours ago        Up 21 hours                                                 radar-cp-hadoop-stack_radar-backend-monitor_1
abb1e3e9c241        radarbase/kafka-connect-mongodb-sink:0.2.2   "/etc/confluent/dock…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_radar-mongodb-connector_1
1349f18f9570        radarbase/radar-gateway:0.3.9                "radar-gateway /etc/…"    21 hours ago        Up About a minute (health: starting)                        radar-cp-hadoop-stack_gateway_1
bf14c61492e5        radarbase/hdfs:3.0.3-alpine                  "entrypoint.sh datan…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_hdfs-datanode-2_1
951c0df04800        radarbase/hdfs:3.0.3-alpine                  "entrypoint.sh datan…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_hdfs-datanode-1_1
a73e394bea54        radarbase/hdfs:3.0.3-alpine                  "entrypoint.sh datan…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_hdfs-datanode-3_1
5ff7cc51c44d        radarbase/management-portal:0.5.5            "/bin/sh -c 'echo \"T…"   21 hours ago        Up 21 hours (healthy)                  5701/udp, 8080/tcp   radar-cp-hadoop-stack_managementportal-app_1
a6531d54d8c3        radarbase/kafka-init:0.5.1                   "init.sh topic_init.…"    21 hours ago        Exited (0) 33 minutes ago                                   radar-cp-hadoop-stack_kafka-init_1
4ffcf37f732f        confluentinc/cp-kafka-rest:4.1.0             "/etc/confluent/dock…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_rest-proxy-1_1
266e353146ea        radarbase/kafka-manager:1.3.3.18             "./entrypoint.sh"         21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_kafka-manager_1
c5949d45a5f4        radarbase/kafka-init:0.5.1                   "init.sh radar-schem…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_catalog-server_1
1bc27d472b08        portainer/portainer:1.22.0                   "/portainer --admin-…"    21 hours ago        Up 21 hours                                                 radar-cp-hadoop-stack_portainer_1
b5451f16ef22        radarbase/radar-hotstorage:0.1               "/entrypoint.sh ./in…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_hotstorage_1
2916a28dfa1a        namshi/smtp:latest                           "/bin/entrypoint.sh …"    21 hours ago        Up 21 hours                            25/tcp               radar-cp-hadoop-stack_smtp_1
247908d888aa        radarbase/hdfs:3.0.3-alpine                  "entrypoint.sh namen…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_hdfs-namenode-1_1
5b71189a6a6c        confluentinc/cp-schema-registry:4.1.0        "/etc/confluent/dock…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_schema-registry-1_1
322080f8f4ad        confluentinc/cp-kafka:4.1.0                  "/etc/confluent/dock…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_kafka-3_1
26adcabca667        confluentinc/cp-kafka:4.1.0                  "/etc/confluent/dock…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_kafka-2_1
b8d53dd9c9a0        confluentinc/cp-kafka:4.1.0                  "/etc/confluent/dock…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_kafka-1_1
43d14702eee5        confluentinc/cp-zookeeper:4.1.0              "/etc/confluent/dock…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_zookeeper-1_1
8f0bf5963fbc        confluentinc/cp-zookeeper:4.1.0              "/etc/confluent/dock…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_zookeeper-3_1
08607c1cb64b        confluentinc/cp-zookeeper:4.1.0              "/etc/confluent/dock…"    21 hours ago        Up 21 hours (healthy)                                       radar-cp-hadoop-stack_zookeeper-2_1
3bc197245ba0        hello-world                                  "/hello"                  2 weeks ago         Exited (0) 2 weeks ago                                      recursing_brattain
41d87b42d5f1        hello-world                                  "/hello"                  5 weeks ago         Exited (0) 5 weeks ago                                      ecstatic_engelbart
94f96e9fd3b5        hello-world                                  "/hello"                  5 weeks ago         Exited (0) 5 weeks ago                                      elated_golick
40a5c6c359a2        hello-world                                  "/hello"                  5 weeks ago         Exited (0) 5 weeks ago                                      silly_franklin
bc5cbe1babd4        hello-world                                  "/hello"                  5 weeks ago         Exited (0) 5 weeks ago                                      nostalgic_ritchie

@sallymoon10
Copy link
Author

Hello! hmm I'm not sure if this solved the problem, but for me I just re started my server and reinstalled and it worked. I also had to open ports 80, 443, 8000, and 8080 using iptables. Not sure if that was a part of the solution, but that's what I tried!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants