Full Text Search Not Working in NC 15


#1
Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 15
Operating system and version (eg, Ubuntu 17.04): 18.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.29
PHP version (eg, 7.1): 7.2.10

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. click on “Full Text Search”
  2. Search for anything
  3. no results

The output of your Nextcloud log in Admin > Logging:

[no app in context] Info: OCP\AppFramework\QueryException: Could not resolve state! Class state does not exist at <<closure>>

 0. /var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 119
    resolve("state")
 1. /var/www/html/nextcloud/lib/private/ServerContainer.php line 132
    query("state")
 2. /var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 68
    query("state")
 3. /var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 98
    buildClass(ReflectionClass  ... "})
 4. /var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 119
    resolve("OCA\\TwoFactorTOTP\\Settings\\Personal")
 5. /var/www/html/nextcloud/lib/private/ServerContainer.php line 132
    query("OCA\\TwoFactorTOTP\\Settings\\Personal")
 6. /var/www/html/nextcloud/lib/private/Settings/Manager.php line 163
    query("OCA\\TwoFactorTOTP\\Settings\\Personal")
 7. /var/www/html/nextcloud/lib/private/Settings/Manager.php line 283
    getSettings("admin", "logging")
 8. /var/www/html/nextcloud/settings/Controller/AdminSettingsController.php line 73
    getAdminSettings("logging")
 9. /var/www/html/nextcloud/settings/Controller/CommonSettingsTrait.php line 126
    getSettings("logging")
10. /var/www/html/nextcloud/settings/Controller/AdminSettingsController.php line 65
    getIndexResponse("admin", "logging")
11. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 166
    index("logging")
12. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    executeController(OC\Settings\Cont ... {}, "index")
13. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 118
    dispatch(OC\Settings\Cont ... {}, "index")
14. /var/www/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    main("OC\\Settings\\C ... r", "index", OC\AppFramework\ ... {}, {section: "loggi ... "})
15. <<closure>>
    __invoke({section: "loggi ... "})
16. /var/www/html/nextcloud/lib/private/Route/Router.php line 297
    call_user_func(OC\AppFramework\ ... {}, {section: "loggi ... "})
17. /var/www/html/nextcloud/lib/base.php line 987
    match("/settings/admin/logging")
18. /var/www/html/nextcloud/index.php line 42
    handleRequest()

GET /index.php/settings/admin/logging
from 192.168.10.251 by dedwards at 2019-01-10T19:20:46+00:00

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.domain.tld",
            "192.168.XXX.XXX"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "forwarded_for_headers": [
            "HTTP_X_FORWARDED_FOR"
        ],
        "auth.bruteforce.protection.enabled": true,
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "15.0.0.10",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
 "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "forcessl": true,
        "mail_smtpmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "loglevel": 0,
        "theme": "",
        "maintenance": false,
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trashbin_retention_obligation": "5, 10",
        "updatechecker": false,
        "overwrite.cli.url": "https:\/\/cloud.domain.tld",
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "updater.release.channel": "stable",
        "twofactor_enforced": "false",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": []
    },
 "apps": {
        "accessibility": {
            "enabled": "yes",
            "installed_version": "1.1.0",
            "types": ""
        },
        "activity": {
            "enabled": "yes",
            "installed_version": "2.8.2",
            "types": "filesystem"
        },
        "admin_audit": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "logging"
        },
        "admin_dependencies_chk": {
            "enabled": "no",
            "installed_version": "0.02",
            "ocsid": "166041",
            "types": ""
        },
        "audioplayer": {
            "enabled": "no",
            "installed_version": "2.5.1",
            "types": "filesystem"
        },
        "backgroundjob": {
            "lastjob": "6238"
        },
        "bookmarks": {
            "enabled": "no",
            "installed_version": "0.15.1",
            "types": ""
        },
        "bruteForce": {
            "whitelist_1": "192.168.10.0\/24",
            "whitelist_2": "192.168.30.0\/24",
            "whitelist_3": "192.168.40.0\/24"
        },
        "bruteforcesettings": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": ""
        },
        "calendar": {
            "enabled": "yes",
            "installed_version": "1.6.4",
            "types": ""
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "0.1.0",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "logging"
        },
        "contacts": {
            "enabled": "yes",
            "installed_version": "3.0.1",
            "types": ""
        },
        "core": {
 "OC_Channel": "beta",
            "backgroundjobs_mode": "ajax",
            "global_cache_gc_lastrun": "1446123720",
            "installed.bundles": "[\"CoreBundle\"]",
            "installedat": "1409761543.0289",
            "lastcron": "1547148049",
            "lastupdateResult": "[]",
            "lastupdatedat": "1547115766",
            "moveavatarsdone": "yes",
            "oc.integritycheck.checker": "[]",
            "previewsCleanedUp": "1",
            "public_caldav": "calendar\/share.php",
            "public_calendar": "calendar\/share.php",
            "public_documents": "documents\/public.php",
            "public_files": "files_sharing\/public.php",
            "public_gallery": "gallery\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "remote_caldav": "dav\/appinfo\/v1\/caldav.php",
            "remote_calendar": "dav\/appinfo\/v1\/caldav.php",
            "remote_carddav": "dav\/appinfo\/v1\/carddav.php",
            "remote_contacts": "dav\/appinfo\/v1\/carddav.php",
            "remote_dav": "dav\/appinfo\/v2\/remote.php",
            "remote_files": "dav\/appinfo\/v1\/webdav.php",
            "remote_filesync": "files\/appinfo\/filesync.php",
            "remote_webdav": "dav\/appinfo\/v1\/webdav.php",
            "repairlegacystoragesdone": "yes",
            "scss.variables": "eeeb32660a4abcd221f429dd6682225a",
            "shareapi_allow_mail_notification": "yes",
            "shareapi_allow_public_notification": "yes",
            "shareapi_default_expire_date": "yes",
            "shareapi_enforce_links_password": "no",
            "shareapi_expire_after_n_days": "14",
            "umgmt_show_backend": "true",
 "umgmt_show_email": "false",
            "umgmt_show_storage_location": "false",
            "updater.secret.created": "1546443295",
            "vendor": "nextcloud"
        },
        "dav": {
            "OCA\\DAV\\Migration\\ValueFixInsert_ran": "true",
            "buildCalendarSearchIndex": "yes",
            "enabled": "yes",
            "installed_version": "1.8.0",
            "types": "filesystem"
        },
        "deck": {
            "enabled": "yes",
            "installed_version": "0.5.2",
            "types": "logging"
        },
        "documents": {
            "converter": "local",
            "enabled": "no",
            "installed_version": "0.10.2",
            "ocsid": "168711",
            "types": "",
            "unstable": "false"
        },
        "end_to_end_encryption": {
            "enabled": "no",
            "installed_version": "1.0.5",
            "types": "filesystem"
        },
        "external": {
            "enabled": "no",
            "installed_version": "3.1.0",
        "types": ""
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "enabled": "yes",
            "installed_version": "1.10.0",
            "types": "filesystem"
        },
 "files_fulltextsearch": {
            "enabled": "yes",
            "files_audio": "0",
            "files_encrypted": "0",
            "files_external": "1",
            "files_federated": "0",
            "files_group_folders": "0",
            "files_image": "0",
            "files_local": "1",
            "files_office": "1",
            "files_pdf": "1",
            "files_size": "20",
            "installed_version": "1.2.3",
            "types": "filesystem"
        },
        "files_fulltextsearch_tesseract": {
            "enabled": "no",
            "installed_version": "1.0.0",
            "tesseract_enabled": "1",
            "tesseract_lang": "eng",
            "tesseract_psm": "4",
            "types": ""
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": ""
        },
 "files_sharing": {
            "enabled": "yes",
            "installed_version": "1.7.0",
            "types": "filesystem"
        },
        "files_texteditor": {
            "enabled": "yes",
            "installed_version": "2.7.0",
            "types": ""
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "no",
            "installed_version": "1.2.0",
            "types": "filesystem"
        },
        "files_videoplayer": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": ""
        },
        "files_videoviewer": {
            "enabled": "no",
            "installed_version": "0.1.3",
            "ocsid": "166054",
            "types": ""
        },
"firstrunwizard": {
            "enabled": "yes",
            "installed_version": "2.4.0",
            "types": "logging"
        },
        "fulltextsearch": {
            "app_navigation": "1",
            "cron_err_reset": "1547125646",
            "enabled": "yes",
            "installed_version": "1.2.3",
            "provider_indexed": "",
            "search_platform": "OCA\\FullTextSearch_ElasticSearch\\Platform\\ElasticSearchPlatform",
            "types": ""
        },
        "fulltextsearch_elasticsearch": {
            "analyzer_tokenizer": "standard",
            "elastic_host": "http:\/\/localhost:9200",
            "elastic_index": "nextcloud_index",
            "enabled": "yes",
            "installed_version": "1.2.2",
            "types": ""
        },

The output of your Apache/nginx/system log in /var/log/____:

N/A

#2

Anyone have an insight on this?