nextcloud / fulltextsearch

🔍 Core of the full-text search framework for Nextcloud
https://apps.nextcloud.com/apps/fulltextsearch
GNU Affero General Public License v3.0
216 stars 51 forks source link

full:index not work with OCCweb app in shared hosting #509

Open Thorkul opened 5 years ago

Thorkul commented 5 years ago

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

Gnork commented 4 years ago

I would like to bump this issue, as I'm facing the same problem. In OCC-Web I can run full:test and fulltextsearch:test, where everything is ok and the fulltextsearch:check command prints my configuration. But when I'm running fulltextsearch:index or fulltextsearch:live only [object Object] is printed and nothing happens. As a result, fulltextsearch does not do anything. Any ideas on how to debug this?