Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fulltextsearch brocken in nextcloud 15 #28

Closed
prolibre opened this issue Dec 15, 2018 · 8 comments
Closed

Fulltextsearch brocken in nextcloud 15 #28

prolibre opened this issue Dec 15, 2018 · 8 comments
Labels

Comments

@prolibre
Copy link

prolibre commented Dec 15, 2018

Nextcloud 15 in debian stretch (php 7.2)

Since my switch to nextcloud 15 (stable), fulltext search no longer works:

@joe-speedboat
Copy link

joe-speedboat commented Dec 15, 2018

Same problem for me, I do not find any other problem.
Thanks for helping out!
Installed on centos7 with ansible role: https://github.com/uniQconsulting-ag/ansible.nextcloud

BR
Chris

  - installed: true
  - version: 15.0.0.10
  - versionstring: 15.0.0
  - edition: 
[root@cloud ~]# occ files_external:list
+----------+-------------+---------+---------------------+--------------------------+----------------------+------------------+-------------------+
| Mount ID | Mount Point | Storage | Authentication Type | Configuration            | Options              | Applicable Users | Applicable Groups |
+----------+-------------+---------+---------------------+--------------------------+----------------------+------------------+-------------------+
| 8        | /Data       | Local   | None                | datadir: "\/media\/data" | enable_sharing: true | chris            |                   |
+----------+-------------+---------+---------------------+--------------------------+----------------------+------------------+-------------------+
[root@cloud ~]# occ files_external:verify 8
  - status: ok
  - code: 0
  - message
[root@cloud ~]# occ app:list | egrep -i 'disabled|enabled|search'
Enabled:
  - files_fulltextsearch: 1.2.1
  - fulltextsearch: 1.2.1
  - fulltextsearch_elasticsearch: 1.2.1
Disabled:
[root@cloud ~]# curl -XGET http://localhost:9200/_cat/indices?v 
health status index     pri rep docs.count docs.deleted store.size pri.store.size 
yellow open   nextcloud   5   1          3            0     68.9kb         68.9kb 
[root@cloud ~]# occ fulltextsearch:stop
stopping all running indexes
[root@cloud ~]# occ fulltextsearch:check
Full text search 1.2.1
 
- Search Platform:
Elasticsearch 1.2.1
{
    "elastic_host": [
        "http:\/\/127.0.0.1:9200"
    ],
    "elastic_index": "nextcloud"
} 
 
- Content Providers:
Files 1.2.1
{
    "files_local": "1",
    "files_external": "0",
    "files_group_folders": "0",
    "files_encrypted": "0",
    "files_federated": "0",
    "files_size": "20",
    "files_pdf": "1",
    "files_office": "1",
    "files_image": "0",
    "files_audio": "0"
}
[root@cloud ~]# occ fulltextsearch:test
 
.Testing your current setup:  
Creating mocked content provider. ok  
Testing mocked provider: get indexable documents. (2 items) ok  
Loading search platform. (Elasticsearch) ok  
Testing search platform. ok  
Locking process ok  
Removing test. ok  
Pausing 3 seconds 1 2 3 ok  
Initializing index mapping. ok  
Indexing generated documents. ok  
Pausing 3 seconds 1 2 3 ok  
Retreiving content from a big index (license). (size: 32386) ok  
Comparing document with source. ok  
Searching basic keywords:  
 - 'test' (result: 1, expected: ["simple"]) ok  
 - 'document is a simple test' (result: 2, expected: ["simple","license"]) ok  
 - '"document is a test"' (result: 0, expected: []) ok  
 - '"document is a simple test"' (result: 1, expected: ["simple"]) ok  
 - 'document is a simple -test' (result: 1, expected: ["license"]) ok  
 - 'document is a simple +test' (result: 1, expected: ["simple"]) ok  
 - '-document is a simple test' (result: 0, expected: []) ok  
Updating documents access. ok  
Pausing 3 seconds 1 2 3 ok  
Searching with group access rights:  
 - 'license' - [] -  (result: 0, expected: []) ok  
 - 'license' - ["group_1"] -  (result: 1, expected: ["license"]) ok  
 - 'license' - ["group_1","group_2"] -  (result: 1, expected: ["license"]) ok  
 - 'license' - ["group_3","group_2"] -  (result: 1, expected: ["license"]) ok  
 - 'license' - ["group_3"] -  (result: 0, expected: []) ok  
Searching with share rights:  
 - 'license' - notuser -  (result: 0, expected: []) ok  
 - 'license' - user2 -  (result: 1, expected: ["license"]) ok  
 - 'license' - user3 -  (result: 1, expected: ["license"]) ok  
Removing test. ok  
Unlocking process ok  
 [root@cloud ~]#occ fulltextsearch:index

Options: []
Memory: 10 MB
┌─ Indexing  ────
│ Action: generateIndexFiles
│ Provider: Files                Account: admin
│ Document: 
│ Info: 
│ Title: 
│ Content size: 
│ Progress:      0/0
└──
┌─ Results ────
│ Result:      0/0
│ Index: 
│ Status: 
│ Message: 
│ 
│ 
└──
┌─ Errors ────
│ Error:      0/0
│ Index: 
│ Exception: 
│ Message: 
│ 
│ 
└──
## x:first result ## c/v:prec/next result ## b:last result
## f:first error ## h/j:prec/next error ## d:delete error ## l:last error
## q:quit ## p:pause 
An unhandled exception has been thrown:
TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Model\MountPoint::setId() must be of the type integer, string given, called in /srv/nextcloud/html/apps/files_fulltextsearch/lib/Service/GroupFoldersService.php on line 220 and defined in /srv/nextcloud/html/apps/files_fulltextsearch/lib/Model/MountPoint.php:70
Stack trace:
#0 /srv/nextcloud/html/apps/files_fulltextsearch/lib/Service/GroupFoldersService.php(220): OCA\Files_FullTextSearch\Model\MountPoint->setId('1')
#1 /srv/nextcloud/html/apps/files_fulltextsearch/lib/Service/GroupFoldersService.php(123): OCA\Files_FullTextSearch\Service\GroupFoldersService->getMountPoints('admin')
#2 /srv/nextcloud/html/apps/files_fulltextsearch/lib/Service/FilesService.php(211): OCA\Files_FullTextSearch\Service\GroupFoldersService->initGroupSharesForUser('admin')
#3 /srv/nextcloud/html/apps/files_fulltextsearch/lib/Service/FilesService.php(181): OCA\Files_FullTextSearch\Service\FilesService->initFileSystems('admin')
#4 /srv/nextcloud/html/apps/files_fulltextsearch/lib/Provider/FilesProvider.php(228): OCA\Files_FullTextSearch\Service\FilesService->getFilesFromUser('admin', Object(OCA\FullTextSearch\Model\IndexOptions))
#5 /srv/nextcloud/html/apps/fulltextsearch/lib/Service/IndexService.php(179): OCA\Files_FullTextSearch\Provider\FilesProvider->generateIndexableDocuments('admin')
#6 /srv/nextcloud/html/apps/fulltextsearch/lib/Command/Index.php(407): OCA\FullTextSearch\Service\IndexService->indexProviderContentFromUser(Object(OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform), Object(OCA\Files_FullTextSearch\Provider\FilesProvider), 'admin', Object(OCA\FullTextSearch\Model\IndexOptions))
#7 /srv/nextcloud/html/apps/fulltextsearch/lib/Command/Index.php(271): OCA\FullTextSearch\Command\Index->indexProvider(Object(OCA\Files_FullTextSearch\Provider\FilesProvider), Object(OCA\FullTextSearch\Model\IndexOptions))
#8 /srv/nextcloud/html/3rdparty/symfony/console/Command/Command.php(255): OCA\FullTextSearch\Command\Index->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /srv/nextcloud/html/core/Command/Base.php(166): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /srv/nextcloud/html/3rdparty/symfony/console/Application.php(946): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /srv/nextcloud/html/3rdparty/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(OCA\FullTextSearch\Command\Index), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /srv/nextcloud/html/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /srv/nextcloud/html/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /srv/nextcloud/html/console.php(96): OC\Console\Application->run()
#15 /srv/nextcloud/html/occ(11): require_once('/srv/nextcloud/...')
#16 {main}[root@cloud ~]# 

@ArtificialOwl
Copy link
Member

I will release 1.2.2 today, but please create different report for different issues

@ArtificialOwl
Copy link
Member

is this fixed ? can we close the issue ?

@pfaelzerchen
Copy link

For me it is fixed. Fulltextsearch is running fine now.

@prolibre
Copy link
Author

For me it is fixed :-) thanks

@joe-speedboat
Copy link

Hi there
It seems to work now, but I have an other problem, which might be related to the application design.

  • Setup as mentioned above
  • NFS share mounted on nextcloud server
  • NFS share bound as external storage to my user
[root@cloud ~]# find /media/data/ | wc -l
202196
[root@cloud ~]# df -h /media/data/
Filesystem         Size  Used Avail Use% Mounted on
nfs:/srv/nfs/data  985G  720G  265G  74% /media/data

When I start indexing it fills up all the php memory and then it fails with the message that memory got exhausted.
I increased the memory for php up to 2GB, but it still is not enough for the share mentioned above.

From my point of view, this is an general issue and sould get solved on application side if possible.

Is this normal behavior?
Is there any way to change this on my own config?

thanks
chris

@ArtificialOwl
Copy link
Member

@joe-speedboat : please open a new issue with details on what is it trying to do when it crashes.

@joe-speedboat
Copy link

ease open a new issue with details on what is it trying to do when it crashes.

@daita Sure, I will open new issue for that, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants