nextcloud / nextcloud/fulltextsearch

full:index not work with OCCweb app in shared hosting

Open
#509 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
234
Forks
64
Avg merge
6h 18m
Merged PRs (30d)
10

Description

Hi,

I use Nextcloud 16.0.1 and fulltextsearch 1.3.3 on shared hosting server (OVH perso, see phpinfo) without ssh access.
For occ command I use OCCweb app.

full:test command work fine but full:index --no-readline only return [object Object]

Log error:

[index] Error: TypeError: stream_set_blocking() expects parameter 1 to be resource, string given at <<closure>>

 0. /home/maracuyavo/nextcloud/apps/fulltextsearch/lib/Command/Index.php line 229
    undefinedundefinedstream_set_blocking("STDIN", false)

 1. /home/maracuyavo/nextcloud/3rdparty/symfony/console/Command/Command.php line 255
    OCA\FullTextSearch\Command\Index->execute(Symfony\Componen ... {}, OCA\OCCWeb\Controller\OccOutput {})

 2. /home/maracuyavo/nextcloud/core/Command/Base.php line 166
    Symfony\Component\Console\Command\Command->run(Symfony\Componen ... {}, OCA\OCCWeb\Controller\OccOutput {})

 3. /home/maracuyavo/nextcloud/3rdparty/symfony/console/Application.php line 901
    OC\Core\Command\Base->run(Symfony\Componen ... {}, OCA\OCCWeb\Controller\OccOutput {})

 4. /home/maracuyavo/nextcloud/3rdparty/symfony/console/Application.php line 262
    Symfony\Component\Console\Application->doRunCommand(OCA\FullTextSearch\Command\Index {}, Symfony\Componen ... {}, OCA\OCCWeb\Controller\OccOutput {})

 5. /home/maracuyavo/nextcloud/3rdparty/symfony/console/Application.php line 145
    Symfony\Component\Console\Application->doRun(Symfony\Componen ... {}, OCA\OCCWeb\Controller\OccOutput {})

 6. /home/maracuyavo/nextcloud/apps/occweb/lib/Controller/OCCApplication.php line 207
    Symfony\Component\Console\Application->run(Symfony\Componen ... {}, OCA\OCCWeb\Controller\OccOutput {})

 7. /home/maracuyavo/nextcloud/apps/occweb/lib/Controller/OccController.php line 61
    OCA\OCCWeb\Controller\OCCApplication->run(Symfony\Componen ... {}, OCA\OCCWeb\Controller\OccOutput {})

 8. /home/maracuyavo/nextcloud/apps/occweb/lib/Controller/OccController.php line 81
    OCA\OCCWeb\Controller\OccController->run(Symfony\Componen ... {})

 9. /home/maracuyavo/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 166
    OCA\OCCWeb\Controller\OccController->cmd("full:index --no-readline")

10. /home/maracuyavo/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OCA\OCCWeb\Contr ... }}, "cmd")

11. /home/maracuyavo/nextcloud/lib/private/AppFramework/App.php line 126
    OC\AppFramework\Http\Dispatcher->dispatch(OCA\OCCWeb\Contr ... }}, "cmd")

12. /home/maracuyavo/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main("OCA\\OCCWeb\\Controller\\OccController", "cmd", OC\AppFramework\ ... {}, {_route: "occweb.occ.cmd"})

13. <<closure>>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "occweb.occ.cmd"})

14. /home/maracuyavo/nextcloud/lib/private/Route/Router.php line 297
    undefinedundefinedcall_user_func(OC\AppFramework\ ... {}, {_route: "occweb.occ.cmd"})

15. /home/maracuyavo/nextcloud/lib/base.php line 975
    OC\Route\Router->match("/apps/occweb/cmd")

16. /home/maracuyavo/nextcloud/index.php line 42
    OC::handleRequest()

POST /apps/occweb/cmd

Any idea where might be the cause of the problem?
Thank for your help

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in apps/fulltextsearch/lib/Command/Index.php at line 229, where full:index --no-readline triggers stream_set_blocking(), and compare its behavior with the working full:test command. Reproduce through the OCCweb app and inspect how STDIN is provided there. Done means indexing no longer raises the reported TypeError or returns only [object Object].

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.