Hi, after upgrading to v0.8.45 (using datahub-helm...
# troubleshoot
f
Hi, after upgrading to v0.8.45 (using datahub-helm v0.2.106), elasticsearch-setup-job is failing with the following error:
Copy code
2022/09/26 14:28:36 Waiting for: <http://elasticsearch-master:9200>
2022/09/26 14:28:41 Received 200 from <http://elasticsearch-master:9200>
Going to use protocol: http
Going to use default elastic headers
Create datahub_usage_event if needed against Elasticsearch at elasticsearch-master:9200
Going to use index prefix::
curl: option -k <http://elasticsearch-master:9200/_ilm/policy/datahub_usage_event_policy>: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
Policy GET response code is
/create-indices.sh: line 41: [: -eq: unary operator expected
/create-indices.sh: line 45: [: -eq: unary operator expected
/create-indices.sh: line 47: [: -eq: unary operator expected
Got response code while creating policy so exiting.
2022/09/26 14:28:41 Command exited with error: exit status 1
Any idea how to solve it?
plus1 2
i
Hello Pedro, Thank you for reporting this! I will try to reproduce this and let you know.
l
I have this error too.
i
This should no longer be a problem using the latest docker images
@fast-oyster-93603 & @late-rocket-94535 can you try and change the image tags in your deployments to
79575b2
?
l
To my pity I see:
Copy code
2022/09/30 13:31:47 Waiting for: <http://elasticsearch-master:9200>
2022/09/30 13:31:47 Received 200 from <http://elasticsearch-master:9200>
Going to use protocol: http
Going to use default elastic headers
Create datahub_usage_event if needed against Elasticsearch at elasticsearch-master:9200
Going to use index prefix::
curl: option -k <http://elasticsearch-master:9200/_ilm/policy/datahub_usage_event_policy>: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
Policy GET response code is 
/create-indices.sh: line 41: [: -eq: unary operator expected
/create-indices.sh: line 45: [: -eq: unary operator expected
/create-indices.sh: line 47: [: -eq: unary operator expected
Got response code  while creating policy so exiting.
2022/09/30 13:31:47 Command exited with error: exit status 1
My values settings:
Copy code
elasticsearchSetupJob:
  image:
    imagePullPolicy: "Always"
    tag: "79575b2"
f
@incalculable-ocean-74010 using 79575b2 solved the problem, thanks. @late-rocket-94535 make sure helm is using the values settings correctly, try running the helm command with "--debug --dry-run" flags and check the source for "datahub/templates/elasticsearch-setup-job.yml".
l
Thank you, I figured it out, all work now.