Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 04-01-2021, 05:08 PM   #121
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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.
DNSB is offline   Reply With Quote
Old 04-01-2021, 05:11 PM   #122
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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.
ownedbycats is offline   Reply With Quote
Advert
Old 04-01-2021, 06:20 PM   #123
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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.
DNSB is offline   Reply With Quote
Old 04-03-2021, 04:37 AM   #124
mapozyan
Connoisseur
mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.
 
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.
mapozyan is offline   Reply With Quote
Old 04-03-2021, 04:44 AM   #125
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
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.
Attached Thumbnails
Click image for larger version

Name:	2021-04-03 05_44_31-Services.png
Views:	173
Size:	42.9 KB
ID:	186346  

Last edited by ownedbycats; 04-03-2021 at 04:56 AM.
ownedbycats is offline   Reply With Quote
Advert
Old 04-03-2021, 05:17 AM   #126
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,661
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
Quote:
Originally Posted by mapozyan View Post
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.
I wonder what is different about my configuration that it is running flawlessly as is?
Uncle Robin is offline   Reply With Quote
Old 04-03-2021, 06:04 AM   #127
mapozyan
Connoisseur
mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.
 
Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
Quote:
Originally Posted by Uncle Robin View Post
I wonder what is different about my configuration that it is running flawlessly as is?
Did you update to 2.0.0?
mapozyan is offline   Reply With Quote
Old 04-03-2021, 06:15 AM   #128
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,661
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
Quote:
Originally Posted by mapozyan View Post
Did you update to 2.0.0?
Yes. Power Search 2.0.0 and ElasticSearch 7.12.0, installed via MSI and running as a service. It not only works without any issues, but PowerSearch seems much faster than earlier versions.
Uncle Robin is offline   Reply With Quote
Old 04-03-2021, 12:12 PM   #129
noonoo
Junior Member
noonoo began at the beginning.
 
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
noonoo is offline   Reply With Quote
Old 04-04-2021, 07:09 AM   #130
mapozyan
Connoisseur
mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.
 
Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
Issues fixed! Please update to version 2.0.1.
mapozyan is offline   Reply With Quote
Old 04-04-2021, 07:14 AM   #131
mapozyan
Connoisseur
mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.
 
Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
Quote:
Originally Posted by Uncle Robin View Post
I wonder what is different about my configuration that it is running flawlessly as is?
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.
mapozyan is offline   Reply With Quote
Old 04-04-2021, 07:22 AM   #132
noonoo
Junior Member
noonoo began at the beginning.
 
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.
noonoo is offline   Reply With Quote
Old 04-04-2021, 07:39 AM   #133
mapozyan
Connoisseur
mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.
 
Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
Quote:
Originally Posted by noonoo View Post
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.
All correct, thats an expected behavior.

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.
mapozyan is offline   Reply With Quote
Old 04-04-2021, 08:16 AM   #134
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,661
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
Quote:
Originally Posted by mapozyan View Post
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.
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.
Uncle Robin is offline   Reply With Quote
Old 04-04-2021, 08:28 AM   #135
mapozyan
Connoisseur
mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.mapozyan composes epic poetry in binary.
 
Posts: 77
Karma: 90088
Join Date: Jul 2020
Device: android
Quote:
Originally Posted by Uncle Robin View Post
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.
There might have been some working scenarios like if you did "reindex all" once you reinstalled all the stuff and before doing any search?
mapozyan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 03:42 AM.


MobileRead.com is a privately owned, operated and funded community.