{"reqId":"8Piq24L5N8ao0WhOlpjY","level":3,"time":"2021-03-26T22:39:48+00:00","remoteAddr":"91.X.X.X","user":"xxxxxxx","app":"PHP","method":"GET","url":"/cbox/ocs/v2.php/search/providers/fulltextsearch/search?term=gazsi&from=%2Fcbox%2Fsettings%2Fapps%2Finstalled%2Fonlyoffice","message":{"Exception":"Error","Message":"Undefined offset: 1 at /var/www/XXXXXXXXXX/web/cbox/apps/fulltextsearch/lib/Search/UnifiedSearchProvider.php#158","Code":0,"Trace":[{"file":"/var/www/XXXXXXXXXX/web/cbox/apps/fulltextsearch/lib/Search/UnifiedSearchProvider.php","line":158,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/XXXXXXXXXX/web/cbox/apps/fulltextsearch/lib/Search/UnifiedSearchProvider.php","line":137,"function":"generateSearchRequest","class":"OCA\\FullTextSearch\\Search\\UnifiedSearchProvider","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/lib/private/Search/SearchComposer.php","line":162,"function":"search","class":"OCA\\FullTextSearch\\Search\\UnifiedSearchProvider","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/core/Controller/UnifiedSearchController.php","line":110,"function":"search","class":"OC\\Search\\SearchComposer","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/lib/private/AppFramework/Http/Dispatcher.php","line":169,"function":"search","class":"OC\\Core\\Controller\\UnifiedSearchController","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/lib/private/AppFramework/App.php","line":152,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/lib/private/Route/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/XXXXXXXXXX/web/cbox/ocs/v1.php","line":88,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/ocs/v2.php","line":24,"args":["/var/www/XXXXXXXXXX/web/cbox/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/XXXXXXXXXX/web/cbox/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Safari/537.36","version":"20.0.8.1"}
{"reqId":"8Piq24L5N8ao0WhOlpjY","level":3,"time":"2021-03-26T22:39:48+00:00","remoteAddr":"91.X.X.X","user":"xxxxxx","app":"PHP","method":"GET","url":"/cbox/ocs/v2.php/search/providers/fulltextsearch/search?term=gazsi&from=%2Fcbox%2Fsettings%2Fapps%2Finstalled%2Fonlyoffice","message":{"Exception":"Error","Message":"Undefined offset: 2 at /var/www/XXXXXXXXXX/web/cbox/apps/fulltextsearch/lib/Search/UnifiedSearchProvider.php#158","Code":0,"Trace":[{"file":"/var/www/XXXXXXXXXX/web/cbox/apps/fulltextsearch/lib/Search/UnifiedSearchProvider.php","line":158,"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/XXXXXXXXXX/web/cbox/apps/fulltextsearch/lib/Search/UnifiedSearchProvider.php","line":137,"function":"generateSearchRequest","class":"OCA\\FullTextSearch\\Search\\UnifiedSearchProvider","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/lib/private/Search/SearchComposer.php","line":162,"function":"search","class":"OCA\\FullTextSearch\\Search\\UnifiedSearchProvider","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/core/Controller/UnifiedSearchController.php","line":110,"function":"search","class":"OC\\Search\\SearchComposer","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/lib/private/AppFramework/Http/Dispatcher.php","line":169,"function":"search","class":"OC\\Core\\Controller\\UnifiedSearchController","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/lib/private/AppFramework/Http/Dispatcher.php","line":100,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/lib/private/AppFramework/App.php","line":152,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/lib/private/Route/Router.php","line":309,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/XXXXXXXXXX/web/cbox/ocs/v1.php","line":88,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/XXXXXXXXXX/web/cbox/ocs/v2.php","line":24,"args":["/var/www/XXXXXXXXXX/web/cbox/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/XXXXXXXXXX/web/cbox/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Safari/537.36","version":"20.0.8.1"}
{"reqId":"8Piq24L5N8ao0WhOlpjY","level":2,"time":"2021-03-26T22:39:48+00:00","remoteAddr":"91.X.X.X","user":"xxxxxxx","app":"fulltextsearch","method":"GET","url":"/cbox/ocs/v2.php/search/providers/fulltextsearch/search?term=gazsi&from=%2Fcbox%2Fsettings%2Fapps%2Finstalled%2Fonlyoffice","message":"Issue while loading Provider: ocsms/OCA\\OcSms\\Provider\\FullTextSearchProvider - OCP\\AppFramework\\QueryException Could not resolve OCA\\OcSms\\Provider\\FullTextSearchProvider! Class OCA\\OcSms\\Provider\\FullTextSearchProvider does not exist","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Safari/537.36","version":"20.0.8.1"}
Important note
This issue is a copy from nextcloud/server nextcloud/server#26329
Originally I posted the issue there and I don't know, how to move here, because it seems it is better fit for fulltextsearch.
Steps to reproduce
Expected behaviour
The two search should provide the same results, in other words, the unified search should show the files instead of no results.
Actual behaviour
As you can see on the screenshot above: the two results of the two searches are different.
Use case
This issue seems complex, due to that, I had two almost identical setup in two different location and after I found this in one site, I was able the exact same fault on the other one. Details below.
Server configuration
Operating system:
Debian 10.
Web server:
Apache
Database:
Mariadb 10.5
PHP version:
7.4
Nextcloud version: (see Nextcloud admin page)
20.0.8
Updated from an older Nextcloud/ownCloud or fresh install:
Regular update.
Onlyoffice
6.3
Documentserver
Standalone documentserver in a different virtual machine, working as expected for months.
Version: onlyoffice-documentserver_6.2.0-123_amd64.deb
Previous version: onlyoffice-documentserver_6.0.0-105_amd64.deb
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
Only local.
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
Client configuration
Browser:
Brave
Operating system:
Linux Mint 20
Logs
Web server error log
Web server error log
There is no error entries in the log.Nextcloud log (data/nextcloud.log)
Nextcloud log
How did I reproduced the steps needed to trigger this problem
The system described above with the standalone installation of onlyoffice documentserver v6.0 was working perfectly.
Fulltextsearch initially indexed, live search was running, elasticsearch contains everything as expected.
The life was just perfect until I decided to upgrade the standalone documentserver only from 6.0 -> 6.2.
Steps:
At this point I checked my other system on a remote site, with the old documentserver (6.0), in other words, the documentserver was in untouched.
The result:
Note for the two systems:
They are not exactly the same, as one of them installed in the root folder of the docroot, the other one one folder deeper and some other kind of options, but the environment pretty much the same:
Question
Where to find help with this strange behaviour?
Here, on the onlyoffice app or where?
Thanks.
Here is the Nextcloud log in case of searching via the search application, which actually can provide the expected result:
Nextcloud log
``` {"reqId":"BYVqKMAqLOG7O4nNi3tx","level":2,"time":"2021-03-27T07:15:09+00:00","remoteAddr":"91.X.X.X","user":"xxxxxx","app":"fulltextsearch","method":"GET","url":"/cbox/index.php/apps/fulltextsearch/v1/search?request=%7B%22providers%22%3A%22all%22%2C%22options%22%3A%7B%22files_local%22%3A%220%22%2C%22files_group_folders%22%3A%220%22%2C%22files_extension%22%3A%22%22%7D%2C%22search%22%3A%22l%C3%B3tet%22%2C%22page%22%3A1%7D","message":"Issue while loading Provider: ocsms/OCA\\OcSms\\Provider\\FullTextSearchProvider - OCP\\AppFramework\\QueryException Could not resolve OCA\\OcSms\\Provider\\FullTextSearchProvider! Class OCA\\OcSms\\Provider\\FullTextSearchProvider does not exist","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Safari/537.36","version":"20.0.8.1"} {"reqId":"2K5s6IGSqDDi7pNsvOyC","level":2,"time":"2021-03-27T07:15:10+00:00","remoteAddr":"91.X.X.X","user":"xxxxxx","app":"fulltextsearch","method":"GET","url":"/cbox/index.php/apps/fulltextsearch/v1/search?request=%7B%22providers%22%3A%22all%22%2C%22options%22%3A%7B%22files_local%22%3A%220%22%2C%22files_group_folders%22%3A%220%22%2C%22files_extension%22%3A%22%22%7D%2C%22search%22%3A%22l%C3%B3tet%C5%B1%22%2C%22page%22%3A1%7D","message":"Issue while loading Provider: ocsms/OCA\\OcSms\\Provider\\FullTextSearchProvider - OCP\\AppFramework\\QueryException Could not resolve OCA\\OcSms\\Provider\\FullTextSearchProvider! Class OCA\\OcSms\\Provider\\FullTextSearchProvider does not exist","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Safari/537.36","version":"20.0.8.1"} ```New experience:
I just restored the old documentserver. It seems this action did not solve the problem, the situation is exactly the same as I described.
So, what I can see: