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

NC29:Fulltextsearch live crash #849

Open
prolibre opened this issue Jul 10, 2024 · 1 comment
Open

NC29:Fulltextsearch live crash #849

prolibre opened this issue Jul 10, 2024 · 1 comment

Comments

@prolibre
Copy link

Running Nextcloud 29.0.3.4

Several times I have had this error (which caused my fulltextsearch:live service to crash) :

Error: Typed property OC\FullTextSearch\Model\IndexDocument::$access must not be accessed before initialization in /nextcloud/lib/private/FullTextSearch/Model/IndexDocument.php:775

Several times I managed to fix the problem with a simple fulltextsearch:index
but on the last crash it didn't work.

It looks a lot like nextcloud/fulltextsearch_elasticsearch#375

To correct the problem I commented this (line 775 of the file /nextcloud/lib/private/FullTextSearch/Model/IndexDocument.php)

public function jsonSerialize(): array {
return [
'id' => $this->getId(),
'providerId' => $this->getProviderId(),
#'access' => $this->access,
'modifiedTime' => $this->getModifiedTime(),
'title' => $this->getTitle(),
'link' => $this->getLink(),
'index' => $this->index,
'source' => $this->getSource(),
'info' => $this->getInfoAll(),
'hash' => $this->getHash(),
'contentSize' => $this->getContentSize(),
'tags' => $this->getTags(),
'metatags' => $this->getMetaTags(),
'subtags' => $this->getSubTags(),
'more' => $this->getMore(),
'excerpts' => $this->getExcerpts(),
'score' => $this->getScore()
];
}

After correction, everything seems OK.

@XueSheng-GIT
Copy link

I had the same issue on a testing instance running NC 29.0.4. Issue occured after I deleted a user. It seems that :live process crashed because fulltextsearch tries to update files of that user which does not exist anymore.
I had to :reset and :index again to solve the issue.

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

No branches or pull requests

2 participants