confluentinc / cp-ansible

Ansible playbooks for the Confluent Platform
Apache License 2.0
37 stars 406 forks source link

confluent-control-center sends ERR_INVALID_HTTP_RESPONSE #83

Closed mz-jy closed 5 years ago

mz-jy commented 5 years ago

Hi there.

I used these ansible playbooks to set up my confluent platform with 7 EC2 provisioned in AWS.

Currently, the Kafka and Zookeepers are accessible from my local machine, which is fine. However when trying to open the confluent control center, [Exact address is http://ec2-34-243-126-24.eu-west-1.compute.amazonaws.com:9021/], it sends back a ERR_INVALID_HTTP_RESPONSE.

I logged into the machine of the control center and issued the following commands: systemctl status confluent-control-center gave me:

● confluent-control-center.service - Confluent Control Center
   Loaded: loaded (/lib/systemd/system/confluent-control-center.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/confluent-control-center.service.d
           └─override.conf
   Active: active (running) since Fri 2019-02-08 16:00:03 UTC; 4min 36s ago
     Docs: http://docs.confluent.io/
 Main PID: 29496 (java)
    Tasks: 79
   Memory: 515.6M
      CPU: 1min 1.796s
   CGroup: /system.slice/confluent-control-center.service
           └─29496 java -cp /usr/share/java/confluent-control-center/*:/usr/share/java/monitoring-interceptors/*:/usr/share/java/rest-utils/*:/usr/share/java/confluent-common/*: -Xmx6g -server -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark -XX:+DisableExplicitGC -D

Feb 08 16:00:56 ip-172-31-23-230 control-center-start[29496]: Feb 08, 2019 4:00:56 PM org.glassfish.jersey.internal.inject.Providers checkProviderRuntime
Feb 08 16:00:56 ip-172-31-23-230 control-center-start[29496]: WARNING: A provider io.confluent.controlcenter.rest.ClusterResource registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider io.confluen
Feb 08 16:00:56 ip-172-31-23-230 control-center-start[29496]: Feb 08, 2019 4:00:56 PM org.glassfish.jersey.internal.inject.Providers checkProviderRuntime
Feb 08 16:00:56 ip-172-31-23-230 control-center-start[29496]: WARNING: A provider io.confluent.controlcenter.rest.StatusResource registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider io.confluent
Feb 08 16:00:56 ip-172-31-23-230 control-center-start[29496]: Feb 08, 2019 4:00:56 PM org.glassfish.jersey.internal.inject.Providers checkProviderRuntime
Feb 08 16:00:56 ip-172-31-23-230 control-center-start[29496]: WARNING: A provider io.confluent.controlcenter.rest.MetricsResource registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider io.confluen
Feb 08 16:00:56 ip-172-31-23-230 control-center-start[29496]: Feb 08, 2019 4:00:56 PM org.glassfish.jersey.internal.inject.Providers checkProviderRuntime
Feb 08 16:00:56 ip-172-31-23-230 control-center-start[29496]: WARNING: A provider io.confluent.controlcenter.rest.AuthResource registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider io.confluent.c
Feb 08 16:00:56 ip-172-31-23-230 control-center-start[29496]: Feb 08, 2019 4:00:56 PM org.glassfish.jersey.internal.inject.Providers checkProviderRuntime
Feb 08 16:00:56 ip-172-31-23-230 control-center-start[29496]: WARNING: A provider io.confluent.controlcenter.rest.CommandResource registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider io.confluen
root@ip-172-31-23-230:/var/log/confluent/control-center# 

# curl localhost:9021 gave me a single P.

Additional Information

####### Zookeeper 1 + Broker 1
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1287/sshd       
tcp6       0      0 :::9092                 :::*                    LISTEN      29767/java      
tcp6       0      0 :::2181                 :::*                    LISTEN      29047/java      
tcp6       0      0 172.31.15.21:3888       :::*                    LISTEN      29047/java      
tcp6       0      0 :::44438                :::*                    LISTEN      29767/java      
tcp6       0      0 :::22                   :::*                    LISTEN      1287/sshd       
tcp6       0      0 :::33335                :::*                    LISTEN      29047/java      

####### Zookeeper 2 + Broker 2
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1300/sshd       
tcp6       0      0 :::46173                :::*                    LISTEN      26737/java      
tcp6       0      0 :::9092                 :::*                    LISTEN      27472/java      
tcp6       0      0 :::2181                 :::*                    LISTEN      26737/java      
tcp6       0      0 172.31.11.9:2888        :::*                    LISTEN      26737/java      
tcp6       0      0 172.31.11.9:3888        :::*                    LISTEN      26737/java      
tcp6       0      0 :::22                   :::*                    LISTEN      1300/sshd       
tcp6       0      0 :::41561                :::*                    LISTEN      27472/java      

####### Confluent Controll Center
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1262/sshd       
tcp6       0      0 :::9021                 :::*                    LISTEN      29496/java      
tcp6       0      0 :::41120                :::*                    LISTEN      29496/java      
tcp6       0      0 :::22                   :::*                    LISTEN      1262/sshd       

####### Zookeeper 3 + Broker 3
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1297/sshd       
tcp6       0      0 :::9092                 :::*                    LISTEN      27430/java      
tcp6       0      0 :::2181                 :::*                    LISTEN      26686/java      
tcp6       0      0 :::44133                :::*                    LISTEN      26686/java      
tcp6       0      0 :::38921                :::*                    LISTEN      27430/java      
tcp6       0      0 172.31.0.127:3888       :::*                    LISTEN      26686/java      
tcp6       0      0 :::22                   :::*                    LISTEN      1297/sshd       

####### Rest Proxy + Kafka Connect
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1261/sshd       
tcp6       0      0 :::46823                :::*                    LISTEN      22618/java      
tcp6       0      0 :::38802                :::*                    LISTEN      26780/java      
tcp6       0      0 :::8082                 :::*                    LISTEN      22618/java      
tcp6       0      0 :::8083                 :::*                    LISTEN      26780/java      
tcp6       0      0 :::22                   :::*                    LISTEN      1261/sshd       

####### Schema Registry
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1300/sshd       
tcp6       0      0 :::38051                :::*                    LISTEN      24588/java      
tcp6       0      0 :::8081                 :::*                    LISTEN      24588/java      
tcp6       0      0 :::22                   :::*                    LISTEN      1300/sshd       

####### KSQL server
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1266/sshd       
tcp6       0      0 :::38892                :::*                    LISTEN      24714/java      
tcp6       0      0 :::22                   :::*                    LISTEN      1266/sshd       
tcp6       0      0 :::8088                 :::*                    LISTEN      24714/java    

Any help will be appreciated! :)

mz-jy commented 5 years ago

Sorry, I should've visited https://.