Elasticsearch - Configuration problem

Hello,

I’m trying to install Elasticsearch on Nextcloud 20 (on a Ubuntu 20, Apache server, installed with Snap).

When I try to start indexing with this command :

sudo -u www-data php /snap/nextcloud/25276/bin/occ fulltextsearch:index

I get this result :

    # shellcheck source=src/mysql/utilities/mysql-utilities

. "$SNAP/utilities/mysql-utilities"

# shellcheck source=src/php/utilities/php-utilities

. "$SNAP/utilities/php-utilities"

# shellcheck source=src/redis/utilities/redis-utilities

. "$SNAP/utilities/redis-utilities"

# shellcheck source=src/nextcloud/utilities/nextcloud-utilities

. "$SNAP/utilities/nextcloud-utilities"

if [ "$(id -u)" -ne 0 ]; then

echo "This utility needs to run as root"

exit 1

fi

wait_for_php

wait_for_redis

wait_for_nextcloud_to_be_configured

run-php "SNAP/htdocs/occ" "SNAP/htdocs/occ""@"

I believe this is not the excepted result, but I’ve no ideas what this mean…

Any ideas ?