Open jnweiger opened 2 years ago
occ search:index:update
adds (circa?) one error message per indexable file.Example of an error message in the log:
{
"Exception": "ElasticaExceptionResponseException",
"Message": "unable to authenticate user [elasticxx] for REST request [/oc-ocfa7cgsd87h/_search]",
"Code": 0,
"Trace": "#0 /var/www/owncloud/apps-external/search_elastic/vendor/ruflin/elastica/src/Request.php(178): ElasticaTransportHttp->exec()n#1 /var/www/owncloud/apps-external/search_elastic/vendor/ruflin/elastica/src/Client.php(513): ElasticaRequest->send()n#2 /var/www/owncloud/apps-external/search_elastic/vendor/ruflin/elastica/src/Search.php(278): ElasticaClient->request()n#3 /var/www/owncloud/apps-external/search_elastic/lib/SearchElasticService.php(205): ElasticaSearch->search()n#4 /var/www/owncloud/apps-external/search_elastic/lib/Search/ElasticSearchProvider.php(198): OCASearch_ElasticSearchElasticService->search()n#5 /var/www/owncloud/apps-external/search_elastic/lib/Search/ElasticSearchProvider.php(103): OCASearch_ElasticSearchElasticSearchProvider->fetchResults()n#6 /var/www/owncloud/lib/private/Search.php(67): OCASearch_ElasticSearchElasticSearchProvider->searchPaged()n#7 /var/www/owncloud/core/search/ajax/search.php(56): OCSearch->searchPaged()n#8 /var/www/owncloud/lib/private/Route/Route.php(155): require_once('/var/www/ownclo...')n#9 /var/www/owncloud/lib/private/Route/Router.php(344): OCRouteRoute->OCRoute{closure}(*** sensitive parameters replaced ***)n#10 /var/www/owncloud/lib/base.php(927): OCRouteRouter->match()n#11 /var/www/owncloud/index.php(54): OC::handleRequest()n#12 {main}",
"File": "/var/www/owncloud/apps-external/search_elastic/vendor/ruflin/elastica/src/Transport/Http.php",
"Line": 178
}
'Elastic Search' Test Plan
Template: https://github.com/owncloud/QA/blob/master/Server/Test_Plan_search_elastic.md
Setup XXX
Click here for setup details
* `hetzner_deploy/oc10.sh search_elastic` -> https://oc1091-search-elastic-211-rc1-20220413.jw-qa.owncloud.works - `source env.sh; mkdir proxy; cd proxy; apt install docker-compose` - `/usr/local/bin/mkcert; cp jw-qa-ca.crt /usr/local/share/ca-certificates; update-ca-certificates` - `/usr/local/bin/nginx_ssl_proxy 19443 http://$elastic_host:9200 local_cert.crt local_cert.key` - In admin -> settings -> search also try: `https://localhost:19443` (instead of http://172.17.0.3:9200` ) * `hetzner_deploy/oc10.sh search_elastic` -> https://oc10100-search-elastic-220-rc1-20220628.jw-qa.owncloud.worksTesting functionality
occ search:index:update
before testing the result.occ search:index:update
only updates the index for users, who have edited something.TODO:
occ search:index:reset; occ search:index:rebuild;
- edit a text file in web ui -occ search:index:update
occ app:enable search_elastic
occ app:disable search_elastic
occ search:index:create
occ search:index:rebuild
occ search:index:reset
occ search:index:update
config:app:set search_elastic group --value groupname
config:app:set search_elastic group --value guest_app
nocontent
totrue
(default isfalse
):config:app:set search_elastic nocontent --value true
New test items since 2.1.0
~[x] admin UI elements have choice "No Authentication" and "Username+ and Password"~
[x] admin UI checkbox for external storage does not change after page refresh/reload by itself
[x] admin UI checkbox for external storage remains in sync with database
[x]
occ config:app:set search_elastic scanExternalStorages --value 0
disables indexing of external storages. (1 enables)[x]
occ configreport:generate
does not expose credentials XXX[x] Protocols https/http/none are supported in the server URL XXX
New test items since 2.2.0
[x] admin UI elements have choice "No Authentication" and "Username and Password" and "API Key"