![]() |
#121 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,355
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I played with Power Search 2.0/Elasticsearch 7.12.0 for a bit. I did the MSI with install as service and no joy. When I try to customize the plugin, clear search index takes about 20 seconds and returns:
calibre, version 5.14.0 ERROR: Power Search: Timed out waiting for ElasticSearch to start. I added a dummy batch file containing "exit 0" to ensure that the attempt to start Elasticsearch returned success and no difference. While waiting for the error message, I opened another tab in Firefox and it seemed to be happy as in the attached image. I tried the zip file install, ran elasticsearch-service.bat install and then start and the service was installed and happily running. I then ran calibre, went into PowerSearch's configuration and exactly the same results. If I try to run PowerSearch, I get a momentary popup and calibre closes. ![]() ![]() |
![]() |
![]() |
![]() |
#122 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,000
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I tried copying the elasticsearch-service.bat files from the zip file to my existing msi installation. I got the usual error.
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#123 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,355
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
If the service is running, running the batch file should not be necessary. What I've found is that PowerSearch does not seem to be detecting the running service even it is started before calibre is launched.
|
![]() |
![]() |
![]() |
#124 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
|
Sorry guys for making so much troubles setting things up. I must admit I didn't use MSI install. Copying elasticsearch-service.bat won't help either because there are some more files that are missing in MSI when you install it without "run as a service" option.
I am checking now how can I fix that. |
![]() |
![]() |
![]() |
#125 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,000
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
The weird thing is that i set it to run as a service and it's working. Just not in Power Search.
Last edited by ownedbycats; 04-03-2021 at 04:56 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#126 | |
Diligent dilettante
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,661
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
|
Quote:
|
|
![]() |
![]() |
![]() |
#127 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
|
|
![]() |
![]() |
![]() |
#128 |
Diligent dilettante
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,661
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
|
|
![]() |
![]() |
![]() |
#129 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Apr 2021
Device: none
|
Timed out waiting for Elastic Search to start
Hi!
I am also experiencing the issue with Power Search unable to connect to Elastic Search. I installed Elastic Search 7.12.0 from the .zip archive. Power Search does start the service if it is stopped but will always end up displaying the dialog with the "Timed out ..." message (after 1 minute). If I start the service prior to opening the Power Search dialog it will not try to start the service again but regardles of which action i perform (search, index books, delete index) I always get the "Timed out..." message. OS: Windows 10 Calibre: 5.14 Elastic Search: 7.12.0 Power Search: 2.0.0 |
![]() |
![]() |
![]() |
#130 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
|
Issues fixed! Please update to version 2.0.1.
|
![]() |
![]() |
![]() |
#131 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
|
I guess many people installed new version of ElasticSearch and the problem was when you try to connect to clean ElasticSearch instance. If you are using same instance as before the update to 2.0.0 it would work normally.
|
![]() |
![]() |
![]() |
#132 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Apr 2021
Device: none
|
More research on the timed out message
I have done some research.... Wireshark shows that there is a conversation between power search and elastic search going on.
power search is issuing a query against elastic search but always receives a 404 not found. query: {"_source": false, "query": {"simple_query_string": {"query": "3f55fa2b-79ac-4f40-9244-6c0d7cbaa416"}}} response: HTTP/1.1 404 Not Found content-type: application/json; charset=UTF-8 content-length: 371 {"error":{"root_cause":[{"type":"index_not_found_exception","reason":"n o such index [library]","resource.type":"index_or_alias","resource.id":" library","index_uuid":"_na_","index":"library"}],"type":"index_not_found_exception","reason":"n o such index [library]","resource.type":"index_or_alias","resource.id":" library","index_uuid":"_na_","index":"library"},"s tatus":404} I think the issue here is the method you are employing to test for the availability of elastic search. I am not a developer, but it looks like the problem is in get_elasticsearch_client(). Not sure why you are using that specific query for the test... On a new system the index has not been created yet, correct? Cheers. |
![]() |
![]() |
![]() |
#133 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
|
Quote:
I just realized that its not always that obvious to detect the moment when ElasticSearch is completely up and running. There is ping method available for that, but even after it succeeds the next search sometimes might fail. So I am doing some fake search to make sure that the service is already responding in expected manner. And 404 error code is OK, i.e. we interpret it as a signal that ElasticSearch is running. Thanks for your research though. It was very close to the actual issue, so in version 2.0.0 HTTP error code 404 was not ignored in some other cases. Last edited by mapozyan; 04-04-2021 at 07:43 AM. |
|
![]() |
![]() |
![]() |
#134 |
Diligent dilettante
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,661
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
|
Ah, but I wasn't using the same inatance. I installed version 2.0.0 of PowerSearch after having completely uninstalled ElasticSearch, including a registry clean. So version 2.0.0 of PowerSearch was connecting to a clean ElasticSearch, with no problems or issues at all. I am now hesitant to update PowerSearch since everything is working just fine as is for me.
|
![]() |
![]() |
![]() |
#135 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Search the Internet | kiwidude | Plugins | 436 | 05-12-2025 09:02 PM |
[GUI Plugin] Clipboard Search | kiwidude | Plugins | 29 | 04-02-2024 10:05 PM |
[GUI Plugin] Recoll Full Text Search | Satas | Plugins | 16 | 08-05-2016 03:54 AM |
[GUI Plugin] Full Text Search (SOLR) | peterpisljar | Plugins | 2 | 08-09-2015 08:16 AM |
Make a simple Plugin for Full Text Search using Recoll | Satas | Development | 9 | 07-20-2013 04:15 PM |