NC24 + EL7: Error: Call to a member function getUID() on null

Ubuntu 20.04 + NC 24.0.1 + EL 7.17.4 + ingest-attachments plugin + Kibana

Indexing has worked for a short time after a fresh install, but after fiddling around with external storage it does not work anymore.

Currently there is no external storage attached again to the NC instance.

occ fulltextsearch:stop
occ fulltextsearch:check
occ fulltextsearch:test

are OK but

occ fulltextsearch:index

does not work.

Options: []
Memory: 37 MB
┌─ Indexing  ────
│ Action: generateIndexFiles
│ Provider: Files                Account: admin
│ Document: 
│ Info: 
│ Title: 
│ Content size: 
│ Chunk:      1/1
│ 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:
Error: Call to a member function getUID() on null in /var/www/clients/client1/web2/web/apps/files_fulltextsearch/lib/Service/FilesService.php:449
Stack trace:
#0 /var/www/clients/client1/web2/web/apps/files_fulltextsearch/lib/Service/FilesService.php(421): OCA\Files_FullTextSearch\Service\FilesService->generateFilesDocumentFromFile()
#1 /var/www/clients/client1/web2/web/apps/files_fulltextsearch/lib/Service/FilesService.php(318): OCA\Files_FullTextSearch\Service\FilesService->generateFilesDocumentFromParent()
#2 /var/www/clients/client1/web2/web/apps/files_fulltextsearch/lib/Provider/FilesProvider.php(269): OCA\Files_FullTextSearch\Service\FilesService->getFilesFromUser()
#3 /var/www/clients/client1/web2/web/apps/fulltextsearch/lib/Service/IndexService.php(183): OCA\Files_FullTextSearch\Provider\FilesProvider->generateIndexableDocuments()
#4 /var/www/clients/client1/web2/web/apps/fulltextsearch/lib/Command/Index.php(416): OCA\FullTextSearch\Service\IndexService->indexProviderContentFromUser()
#5 /var/www/clients/client1/web2/web/apps/fulltextsearch/lib/Command/Index.php(279): OCA\FullTextSearch\Command\Index->indexProvider()
#6 /var/www/clients/client1/web2/web/3rdparty/symfony/console/Command/Command.php(255): OCA\FullTextSearch\Command\Index->execute()
#7 /var/www/clients/client1/web2/web/core/Command/Base.php(168): Symfony\Component\Console\Command\Command->run()
#8 /var/www/clients/client1/web2/web/3rdparty/symfony/console/Application.php(1009): OC\Core\Command\Base->run()
#9 /var/www/clients/client1/web2/web/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#10 /var/www/clients/client1/web2/web/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#11 /var/www/clients/client1/web2/web/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#12 /var/www/clients/client1/web2/web/console.php(99): OC\Console\Application->run()
#13 /var/www/clients/client1/web2/web/occ(11): require_once('/var/www/client...')

How to fix it please?

There is an issue already:

Yes, from me… :wink:

Just change one line in FilesService.php

Thanks a lot but will these also integrated in the next release / upstream?

I just have updated to 24.0.2 and now the integrity check fails:

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- files_fulltextsearch
	- INVALID_HASH
		- lib/Service/FilesService.php

Raw output
==========
Array
(
    [files_fulltextsearch] => Array
        (
            [INVALID_HASH] => Array
                (
                    [lib/Service/FilesService.php] => Array
                        (
                            [expected] => e45dd0cac328973e90eacfd69c42b896aa640aa2b7b657bf5ee3e1b6956f8b17498faee8d4dfbc5c7e041e16f03ef1eb370720fd509e30f52bfb8f5378c61c19
                            [current] => 29f1d05649bd2d3f648e82e38e8070e876c6a918d02b593455a6ffb999f86767b585f737a01582949528e4ea793bf63500f0ceb6186b6ae58400ef90d41d8c02
                        )

                )

        )

)