When trying to run the frontend in K8s I am now ha...
# all-things-deployment
s
When trying to run the frontend in K8s I am now having issues with requests
2021/06/18 16:30:50 Problem with dial: dial tcp: missing address. Sleeping 1s
2021/06/18 16:30:50 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:30:50 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
It was working previously. Any suggestions on where to look?
l
@early-lamp-41924 ^
s
DATAHUB_GMS_HOST, KAFKA_BOOTSTRAP_SERVER, and ELASTIC_CLIENT_HOST are all populated.
e
Can you post the list of env variables set for the frontend pod? Are you using our helm charts to deploy to k8s?
s
Yes I am using your helm charts
Copy code
Environment:
      DATAHUB_GMS_HOST:                                 datahub-datahub-gms
      DATAHUB_GMS_PORT:                                 8080
      DATAHUB_SECRET:                                   <set to the key 'datahub.gms.secret' in secret 'datahub-gms-secret'>  Optional: false
      DATAHUB_APP_VERSION:                              1.0
      DATAHUB_PLAY_MEM_BUFFER_SIZE:                     10MB
      KAFKA_BOOTSTRAP_SERVER:                           <http://dev-kafka-node01.cloud.com:9092|dev-kafka-node01.cloud.com:9092>
      ELASTIC_CLIENT_HOST:                              <http://es-eks-dev.elastic.cloud.com|es-eks-dev.elastic.cloud.com>
      ELASTIC_CLIENT_PORT:                              443
      ELASTIC_CLIENT_USE_SSL:                           true
      ELASTIC_CLIENT_SSL_PROTOCOL:                      TLS
      ELASTIC_CLIENT_SSL_SECURE_RANDOM_IMPLEMENTATION:  SHA1PRNG
      ELASTIC_CLIENT_SSL_TRUST_STORE_FILE:              
      ELASTIC_CLIENT_SSL_TRUST_STORE_TYPE:              
      ELASTIC_CLIENT_SSL_TRUST_STORE_PASSWORD:          
      ELASTIC_CLIENT_SSL_KEY_STORE_FILE:                
      ELASTIC_CLIENT_SSL_KEY_STORE_TYPE:                
      ELASTIC_CLIENT_SSL_KEY_STORE_PASSWORD:            
      ELASTICSEARCH_USERNAME:                           <set to the key 'datahub-es-user-name' in secret 'datahub-es-user-name-secrets'>      Optional: false
      ELASTICSEARCH_PASSWORD:                           <set to the key 'datahub-es-password' in secret 'datahub-es-secrets'>                 Optional: false
      ELASTICSEARCH_AUTH_HEADER:                        <set to the key 'datahub-es-auth-header' in secret 'datahub-es-auth-header-secrets'>  Optional: false
      DATAHUB_TRACKING_TOPIC:                           DataHubUsageEvent_v1
      DATAHUB_ANALYTICS_ENABLED:                        false
e
The env looks correct. @big-carpet-38439 @green-football-43791 any idea why this error would pop up on front-end?
Are you testing on local portforward? Are all requests failing with this error?
s
No port forwarding
This is on initially trying to start up in the cluster
g
it sounds like the frontend is having trouble connecting to either Kafka or GMS?
Are those error logs coming from the frontend container?
Out of curiosity- what is the behavior when you access the frontend? can you view entities?
e
What does frontend try to access on start up? Unlike the other pods, it doesn’t use dockerize to wait for other services to start up.
@green-football-43791
s
The error logs are coming from the frontend container
g
and after that, does the container shut down?
or does it continue to wait?
s
It keeps repeating the same errors. Ultimately it will probably timeout but I did not wait that long. I can wait to see if it does.
Copy code
2021/06/18 16:48:18 Problem with dial: dial tcp: missing address. Sleeping 1s
2021/06/18 16:48:18 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:18 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:19 Problem with dial: dial tcp: missing address. Sleeping 1s
2021/06/18 16:48:19 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:19 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:20 Problem with dial: dial tcp: missing address. Sleeping 1s
2021/06/18 16:48:20 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:20 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:21 Problem with dial: dial tcp: missing address. Sleeping 1s
2021/06/18 16:48:21 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:21 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:22 Problem with dial: dial tcp: missing address. Sleeping 1s
2021/06/18 16:48:22 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:22 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:23 Problem with dial: dial tcp: missing address. Sleeping 1s
2021/06/18 16:48:23 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:23 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:24 Problem with dial: dial tcp: missing address. Sleeping 1s
2021/06/18 16:48:24 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:24 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:25 Problem with dial: dial tcp: missing address. Sleeping 1s
2021/06/18 16:48:25 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
2021/06/18 16:48:25 Problem with request: Get http:: http: no Host in request URL. Sleeping 1s
Like @early-lamp-41924 mentioned, is it doing pre-flight checks before loading?
e
Can we also get the image and tag being deployed in this pod?
s
@early-lamp-41924 That is what I needed to find my error. There was some bad copy/paste going on. Thank you.
e
Awesome!!! Glad it worked out
g
great to hear!!