-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbug
Description
Nextcloud 20.0.4, with apps mail 1.7.2, fulltextsearch_elasticsearch 20.0.0, files_fulltextsearch 20.0.0, fulltextsearch 20.0.0 on UBOS (like Arch) on x86_64.
I'm running
sudo -u http php -d memory_limit=512M occ fulltextsearch_elasticsearch:configure '{
"elastic_host": "http://localhost:5001/",
"elastic_index": "nextcloud-a412f14cc997d1d3de69dae416a811ce1e21a7bd8"
}
'
This works fine when app mail is not installed. However, when mail is installed I am getting
An unhandled exception has been thrown:
TypeError: Return value of "OCA\FullTextSearch_Elasticsearch\Command\Configure::execute()" must be of the type int, "null" returned. in /ubos/http/sites/s7febb0b4cd348d86f95b47eb8b1292e220460321/next/apps/mail/vendor/symfony/console/Command/Command.php:266
Stack trace:
#0 /ubos/http/sites/s7febb0b4cd348d86f95b47eb8b1292e220460321/next/core/Command/Base.php(169): Symfony\Component\Console\Command\Command->run()
#1 /ubos/http/sites/s7febb0b4cd348d86f95b47eb8b1292e220460321/next/apps/mail/vendor/symfony/console/Application.php(920): OC\Core\Command\Base->run()
#2 /ubos/http/sites/s7febb0b4cd348d86f95b47eb8b1292e220460321/next/apps/mail/vendor/symfony/console/Application.php(266): Symfony\Component\Console\Application->doRunCommand()
#3 /ubos/http/sites/s7febb0b4cd348d86f95b47eb8b1292e220460321/next/apps/mail/vendor/symfony/console/Application.php(142): Symfony\Component\Console\Application->doRun()
#4 /ubos/http/sites/s7febb0b4cd348d86f95b47eb8b1292e220460321/next/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run()
#5 /ubos/http/sites/s7febb0b4cd348d86f95b47eb8b1292e220460321/next/console.php(100): OC\Console\Application->run()
#6 /ubos/http/sites/s7febb0b4cd348d86f95b47eb8b1292e220460321/next/occ(11): require_once('/ubos/http/site...')
#7 {main}
Looking at the stack trace, it appears that when attempting to configure fulltextsearch_elasticsearch somehow mail code is being invoked. This code path, obviously, doesn't exist when mail is not installed, and so it works fine when then.
I don't understand the internal mechanics enough to have a guess as to why this might be happening, and I cannot tell whether this might be a problem with mail, fulltextsearch_elasticsearch or the server core itself, so I decided to report this here.
Metadata
Metadata
Assignees
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbug