ERROR: Elasticsearch configuration validation failed in forum container

Hi,

I’m using tutor deployed elastic search with custom CMS & LMS deployments, facing issue while connecting to ES. Attaching logs for reference.

Waiting for mongodb/elasticsearch...
2022/07/07 09:53:09 Waiting for: tcp://mongodb:27017
2022/07/07 09:53:09 Waiting for: http://elasticsearch:9200
2022/07/07 09:53:09 Connected to tcp://mongodb:27017
2022/07/07 09:53:09 Received 200 from http://elasticsearch:9200
W, [2022-07-07T09:53:11.143362 #17]  WARN -- : Overwriting existing field _id in class User.
W, [2022-07-07T09:53:11.170970 #17]  WARN -- : MONGODB | Unsupported client option 'max_retries'. It will be ignored.
W, [2022-07-07T09:53:11.171028 #17]  WARN -- : MONGODB | Unsupported client option 'retry_interval'. It will be ignored.
W, [2022-07-07T09:53:11.171050 #17]  WARN -- : MONGODB | Unsupported client option 'timeout'. It will be ignored.
ERROR: ElasticSearch configuration validation failed. "rake search:validate_indices" failed with the following message: Actual mapping [[]] does not match expected mapping (including order) [[:dynamic, :properties]]

What could be the way out

@Shikhar_Vashistha thanks for joining the community! Regarding your issue, could you please specify the Tutor version you’re using? My suspect is that this is related to the Forum service start-up. When initiating a Tutor environment, there are init tasks that are performed for different services. It seems the initialization for Forum was not run. If you’re running a local deployment you can run tutor local init to make sure all services are properly initialized.
NOTE: starting from tutor 13.0.0, the Forum service was moved to a separate plugin. Forum tasks run on init can be found here

1 Like

I’m using tutor version 14.0.2, running it on k8s. Want to run forum on a separate pod

@Shikhar_Vashistha Tutor runs the Forum service on a separate pod thanks to the Forum plugin. Make sure you have the plugin installed and enabled. Then, you can continue with the guided K8S setup included in the Tutor docs