After upgrading to 17.6.3 search returns 500 when zoekt is enabled

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

Not sure if this issue needs any action, creating for reference:

Updated GitLab to 17.6.3 and search returns 500 errors . We disabled zoekt and search starting working again.

{"component": "gitlab","subcomponent":"production_json","method":"GET","path":"/search","format":"html","controller":"SearchController","action":"show","status":500,"time":"2025-01-15T09:41:42.445Z","params":[{"key":"search","value":"[FILTERED]"},{"key":"nav_source","value":"navbar"},{"key":"project_id","value":"123"},{"key":"group_id","value":"8"},{"key":"search_code","value":"[FILTERED]"},{"key":"repository_ref","value":"master"}
...
"exception.message":"undefined method `id' for nil:NilClass","exception.backtrace":["ee/app/services/concerns/search/zoekt_searchable.rb:36:in `zoekt_node_id'"
...

We were able to solve the issue by:

Search::Zoekt::Node.online.count
=> 1
Search::Zoekt::Replica.group(:state).count
=> {"pending"=>82}

and set it to ready

Search::Zoekt::Replica.update_all(state: :ready)

Steps to reproduce

n/a

Edited by 🤖 GitLab Bot 🤖