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

I get an error as soon as I start indexing. #480

Closed
totoli78 opened this issue Apr 2, 2019 · 2 comments
Closed

I get an error as soon as I start indexing. #480

totoli78 opened this issue Apr 2, 2019 · 2 comments

Comments

@totoli78
Copy link

totoli78 commented Apr 2, 2019

Do you know the error resolution?
please answer about my question.


OS ubntu 18.04-2 x64
PHP 7.2
NextCloud 1.5

Full text search 1.2.5

  • Search Platform:
    Elasticsearch 1.2.4
    {
    "elastic_host": [
    "http://127.0.0.1:9200"
    ],
    "elastic_index": "nextcloud"
    }

  • Content Providers:
    Bookmarks 1.2.0
    {
    "bookmarks_ttl": "5"
    }
    Files 1.2.6
    {
    "files_local": "1",
    "files_external": "2",
    "files_group_folders": "1",
    "files_encrypted": "0",
    "files_federated": "0",
    "files_size": "20",
    "files_pdf": "1",
    "files_office": "1",
    "files_image": "0",
    "files_audio": "0"
    }


An unhandled exception has been thrown:
TypeError: Argument 1 passed to Symfony\Component\Console\Helper\ProgressBar::setMessage() must be of the type string, integer given, called in /var/www/nextcloud/apps/fulltextsearch/lib/Service/CliService.php on line 228 and defined in /var/www/nextcloud/apps/files_external_gdrive/vendor/symfony/console/Helper/ProgressBar.php:151
Stack trace:
#0 /var/www/nextcloud/apps/fulltextsearch/lib/Service/CliService.php(228): Symfony\Component\Console\Helper\ProgressBar->setMessage(0, 'errorCurrent')
#1 [internal function]: OCA\FullTextSearch\Service\CliService->onInfoUpdated(Array)
#2 /var/www/nextcloud/apps/fulltextsearch/lib/Model/Runner.php(306): call_user_func(Array, Array)
#3 /var/www/nextcloud/apps/fulltextsearch/lib/Model/Runner.php(223): OCA\FullTextSearch\Model\Runner->infoUpdated()
#4 /var/www/nextcloud/apps/fulltextsearch/lib/Command/Index.php(616): OCA\FullTextSearch\Model\Runner->setInfoArray(Array)
#5 /var/www/nextcloud/apps/fulltextsearch/lib/Command/Index.php(259): OCA\FullTextSearch\Command\Index->displayError()
#6 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\FullTextSearch\Command\Index->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/nextcloud/core/Command/Base.php(166): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/nextcloud/3rdparty/symfony/console/Application.php(946): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/nextcloud/3rdparty/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(OCA\FullTextSearch\Command\Index), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/nextcloud/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/nextcloud/console.php(96): OC\Console\Application->run()
#13 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')

----------------------------------------------------------------------- end error message.

@totoli78
Copy link
Author

totoli78 commented Apr 2, 2019

/var/www/nextcloud/apps/fulltextsearch/lib/Service/CliService.php(228)
$this->display->setMessage((string)$info[$k],(string)$k);

it work!!

@lavdnone
Copy link

lavdnone commented Apr 2, 2019

Similar thing here on Docker fpm-15.0.5
$index->setOptions(json_decode($data['options'], true)); catches Null json_decode(NULL, true) in function parseIndexesSelectSql probably result of old sql (err log below)

occ fulltextsearch:stop
occ fulltextsearch:reset
fixed it

TypeError: json_decode() expects parameter 1 to be string, null given in /var/www/html/custom_apps/fulltextsearch/lib/Db/IndexesRequestBuilder.php:123
Stack trace:
#0 /var/www/html/custom_apps/fulltextsearch/lib/Db/IndexesRequestBuilder.php(123): json_decode(NULL, true)
#1 /var/www/html/custom_apps/fulltextsearch/lib/Db/IndexesRequest.php(327): OCA\FullTextSearch\Db\IndexesRequestBuilder->parseIndexesSelectSql(Array)
#2 /var/www/html/custom_apps/fulltextsearch/lib/Service/IndexService.php(276): OCA\FullTextSearch\Db\IndexesRequest->getIndexesFromProvider('files')

@totoli78 totoli78 closed this as completed Apr 2, 2019
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