ElasticSearch, Indexing; The indexing should first check the search engine is running and throw an error if not
- Status
- Open
- Subject
- ElasticSearch, Indexing; The indexing should first check the search engine is running and throw an error if not
- Version
- 24.x
- Category
- Bug
- Consistency
- Feature
- Console / Command Line
Search - Resolution status
- New
- Submitted by
- Bernard Sfez / Tiki Specialist
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Description
On a Tiki24 using ElasticSearch(7.x), using the console I recreate the index.
It fails after several minutes with the following error:Copy to clipboardphp console.php i:r -p [2023-04-04 08:39] Started rebuilding index... Unified search -------------- Engine: Elastic 1 min/1 min [====================>-------] -- Processing activity documentsA error was encountered while running a command Argument 1 passed to Search_Type_Json::__construct() must be of the type array, string given, called in /Users/bernardsfez/Documents/Shocksite/www/htdocs/wiki-to-yes.org_tiki24/lib/core/Search/Elastic/TypeFactory.php on line 81 on line 13 of /Users/xxx/xxx/xxx/www/htdocs/xxx_tiki24/lib/core/Search/Type/Json.phpThe error may be or may be not related to the fact that EalsticSearch is not running... that's not the point of the ticket.
When I login as admin I can see that ElasticSearch is visibly not running. ?
(this error too could be improved, connection is not "just" refused, Elasticsearch is not running at all)Copy to clipboardSearch index failure Unable to connect to localhost:9200 . Error #0: stream_socket_client(): unable to connect to localhost:9200 (Connection refused)
After starting Elasticsearch service on the server everything is back to normal.Prior to indexing (or any operation that involve the search engine) there should be a check it is running and if not an appropriate message should be displayed. (with or without fallback set).
- Importance
- 3
- Easy to solve?
- 5
- Priority
- 15
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8372
- Created
- Tuesday 04 April, 2023 07:03:49 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Tuesday 04 April, 2023 07:07:46 UTC