Unable to process GET request to elasticsearch URL

  • Used Zammad version: current
  • Used Zammad installation type: source
  • Operating system: ubuntu 20.04
  • Browser + version: all

Actual behavior:

Unable to process GET request to elasticsearch URL

Status Code: 500

Unable to process GET request to elasticsearch URL 'https://mydomainame:443/zammad_production_ticket/_search'. Check the response and payload for detailed information:

Response:
#<UserAgent::Result:0x00007f911c28a6e0 @success=false, @body=nil, @data=nil, @code="404", @content_type=nil, @error="No such file https://itsupport.cuca.ac.ae/zammad_production_ticket/_search, 404!", @header={"date"=>"Thu, 03 Aug 2023 10:03:19 GMT", "server"=>"Apache", "x-frame-options"=>"SAMEORIGIN", "x-xss-protection"=>"1; mode=block", "x-content-type-options"=>"nosniff", "x-download-options"=>"noopen", "x-permitted-cross-domain-policies"=>"none", "referrer-policy"=>"strict-origin-when-cross-origin", "content-type"=>"application/json; charset=utf-8", "vary"=>"Accept", "csrf-token"=>"N3T1GK48hcNTXdQaXbMjN5k2hkeLYNdjHZOstRNJkusHCDqg1yq6iP9n7h1HXmNQPjsGe491pdloV245veKQXw", "cache-control"=>"no-cache", "content-security-policy"=>"base-uri 'self' https://itsupport.cuca.ac.ae; default-src 'self' ws: wss: https://images.zammad.com; font-src 'self' data:; img-src * data:; object-src 'none'; script-src 'self' 'unsafe-eval' 'nonce-DOTDfY7o1yKZU4eDtYKsGA=='; style-src 'self' 'unsafe-inline'; frame-src www.youtube.com player.vimeo.com", "x-request-id"=>"e82492fe-19fa-4cd9-90d5-f0ddb8e6e893", "x-runtime"=>"0.020285", "set-cookie"=>"_zammad_session_a138cfd0f37=89414d53f5a098f7f703833311fc0693; path=/; secure; HttpOnly; SameSite=Lax", "connection"=>"close", "transfer-encoding"=>"chunked"}>

Payload:
{"size":0,"query":{"bool":{"must":[{"range":{"created_at":{"from":"2022-12-31T20:00:00Z","to":"2023-12-31T19:59:59Z"}}},{"bool":{"must":[{"bool":{"must_not":[{"term":{"state.name.keyword":"merged"}}]}}]}}]}},"aggs":{"time_buckets":{"date_histogram":{"field":"created_at","calendar_interval":"month","time_zone":"Asia/Dubai"}}},"sort":[{"updated_at":{"order":"desc"}},"_score"]}

Payload size: 0M

image

Hi @azhab98.

What’s the output of rails r 'pp Setting.get("es_url")' and rails r 'pp Setting.get("es_index")'?

actually i tried to reinstall elasticsearch but now its showing like this

No idea what you are doing there, sorry.

Output:
Your Ruby version is 2.7.0, but your Gemfile specified 3.1.3

Please, use a package install of Zammad. It seems that you don’t have that much experience.

it worked after running below
zammad run rake zammad:searchindex:rebuild

Did you change your Ruby version or are you still using 2.7.0?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.