nextcloud / nextcloud/fulltextsearch
Running index raises fclose fwrite expects parameter 1 to be resource, boolean given
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 234
- Forks
- 64
- Avg merge
- 6h 18m
- Merged PRs (30d)
- 10
Description
Running
/usr/bin/php -f /var/www/nextcloud/occ fulltextsearch:index -q
Raises a lot of
{"reqId":"FnfEFhXQeGBwG0jUyIQX","level":3,"time":"2019-03-12T09:27:24+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"\/occ","message":"fwrite() expects parameter 1 to be resource, boolean given at \/path\/to\/nextcloud\/lib\/private\/Files\/Storage\/Common.php#204","userAgent":"--","version":"15.0.5.3"}
{"reqId":"FnfEFhXQeGBwG0jUyIQX","level":3,"time":"2019-03-12T09:27:24+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"\/occ","message":"fclose() expects parameter 1 to be resource, boolean given at \/path\/to\/nextcloud\/lib\/private\/Files\/Storage\/Common.php#205","userAgent":"--","version":"15.0.5.3"}
Nextcloud 15.0.5
Full text search 1.2.5
Full text search - Elasticsearch Platform 1.2.4
Full text search - Files 1.2.6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with /usr/bin/php -f /var/www/nextcloud/occ fulltextsearch:index -q, then inspect lib/private/Files/Storage/Common.php around lines 204-205 to trace why the file operation receives a boolean. Confirm the expected behavior for this indexing failure and add or update coverage for the resulting error handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100