couchdb
couchdb copied to clipboard
search engine clouseau not working with couchdb version 3.2.1 and 3.2.2 (working with version 3.2.0)
Description
my Search Index in couchdb 3.2.0 is working correct, but in version 3.2.1 and 3.2.2 it is not working any more.
Steps to Reproduce
clouseau integration see https://docs.couchdb.org/en/stable/install/search.html
clouseau version i used is 2.21.0 https://github.com/cloudant-labs/clouseau/releases/tag/2.21.0
create a search index on a database
Expected Behaviour
search with te search index and returns results
Your Environment
single node couchdb setup
Working environment {"couchdb":"Welcome","version":"3.2.0","git_sha":"efb409bba","uuid":"6aeec5c8581fff8477eb52da44bbcff3","features":["search","access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}
Not Working environment {"couchdb":"Welcome","version":"3.2.1","git_sha":"efb409bba","uuid":"6aeec5c8581fff8477eb52da44bbcff3","features":["search","access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}
/etc/clouseau.ini [clouseau] [email protected] cookie=testing dir=/var/lib/clouseau max_indexes_open=500
/opt/couchdb/etc/local.d/test.ini
[admins]
admin =
[couchdb]
uuid =
[couch_httpd_auth]
secret =
[chttpd] bind_address = 0.0.0.0 port = 5984
[cluster] n = 1
- CouchDB version used to test is: 3.2.0, 3.2.1 and 3.2.2
Errors that i see with couchdb version 3.2.1 and 3.2.2 is the following:
{{nocatch,{<<"TypeError">>,{[]}}},[{couch_os_process,prompt,2,[{file,"src/couch_os_process.erl"},{line,59}]},{couch_query_servers,proc_prompt,2,[{file,"src/couch_query_servers.erl"},{line,536}]},{dreyfus_index_updater,update_or_delete_index,4,[{file,"src/dreyfus_index_updater.erl"},{line,141}]},{dreyfus_index_updater,load_docs,2,[{file,"src/dreyfus_index_updater.erl"},{line,80}]},{couch_bt_engine,drop_reductions,4,[{file,"src/couch_bt_engine.erl"},{line,1177}]},{couch_btree,stream_kv_node2,8,[{file,"src/couch_btree.erl"},{line,851}]},{couch_btree,stream_kp_node,7,[{file,"src/couch_btree.erl"},{line,778}]},{couch_btree,fold,4,[{file,"src/couch_btree.erl"},{line,224}]}]}
Also, facing the issue with v3.3.2
Here is my setup in Couchdb
[dreyfus]
name = [email protected]
limit = 25
limit_partitions = 2000
max_limit = 1000
max_limit_partitions = 2000
retry_limit = 5
Clouseau service is running
Not showing feature - 'search'
Hurray, Got it working! (CouchDB - v3.3.2 and Clouseau - v2.21.6)
What I have done to fix this
clouseau folder remove file: slf4j-api-1.7.32.jar add files: slf4j-api-2.0.7.jar, slf4j-simple-2.0.7.jar (download from https://download.jar-download.com/cache_jars/org.slf4j/slf4j-simple/2.0.7/jar_files.zip)
change in file clouseau.ini
cookie=monster
(change monster
to we can get cookie value from \etc\vm.args
setcookie's value)