https://datahubproject.io logo
#troubleshoot
Title
# troubleshoot
f

fast-oyster-93603

09/26/2022, 2:34 PM
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

incalculable-ocean-74010

09/26/2022, 2:54 PM
Hello Pedro, Thank you for reporting this! I will try to reproduce this and let you know.
l

late-rocket-94535

09/30/2022, 10:54 AM
I have this error too.
i

incalculable-ocean-74010

09/30/2022, 10:57 AM
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

late-rocket-94535

09/30/2022, 1:33 PM
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

fast-oyster-93603

09/30/2022, 1:52 PM
@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

late-rocket-94535

10/03/2022, 9:07 AM
Thank you, I figured it out, all work now.
55 Views