Failed to load resource error When I open Datasets page #3563
-
| 
         When I initially overload the Datasets page, the error  But when I do a hard reload of the Datasets page one or more times or I go to the datasets page through the organizations page, falling into the datasets that are assigned to the organization, then everything loads normally and after that I can already go directly to the datasets page and everything loads without the 500 error. Tell me please what is the problem here and how to fix it ?  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
| 
        
 Magda uses Elasticsearch/OpenSearch as the search engine. Magda’s search API’s default timeout time is 30 seconds, which means if it can’t get a response from the search engine within 30s, you will get 500 errors. This config can be adjusted via helm chart config  What happened behind the longer-than-usual query time is: Regarding why the search engine could take longer than usual when processing your first request after some idle time is: Elasticsearch / OpenSearch will move shards to an "idle" state when an index has not been queried for some time For most use case, this won’t be an issue unless your application doesn’t have too many visitor and are rarely accessed for more than 30s. If this is the case, I’d suggest:  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Has been addressed in Magda v5.0.0 release via this ticket: #3576  | 
  
Beta Was this translation helpful? Give feedback.
Hi @IDPogolovkin
Magda uses Elasticsearch/OpenSearch as the search engine.
Magda’s search API’s default timeout time is 30 seconds, which means if it can’t get a response from the search engine within 30s, you will get 500 errors.
This config can be adjusted via helm chart config
search-api.appConfig.akka.http.server.request-timeout.What happened behind the longer-than-usual query time is:
Regarding why the search engine could take longer than usual when processing your first request after some idle time is:
Elasticsearch / OpenSearch will move shards to an "idle" state when an index has not been queried for some time
This behaviour is controlled by config
index.search.idle.afterYou ca…