elasticsuite icon indicating copy to clipboard operation
elasticsuite copied to clipboard

Can't install module

Open eBusinessAtlantique opened this issue 3 years ago • 10 comments

Hello

I have M2.4.3-p1 and composer 2.0.

After a composer require smile/elasticsuite ~2.10.0

I do bin/magento setup:upgrade But the process stops with an error starting with :

syntax error, unexpected 'QueryFactory' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)#0 /public_html/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/home/ttt...')

What can go wrong ?

Thnaks

eBusinessAtlantique avatar May 12 '22 16:05 eBusinessAtlantique

Hello @eBusinessAtlantique,

Which version of PHP are you using?

BR, Vadym

vahonc avatar May 12 '22 16:05 vahonc

PHP 7.3. If I use PHP7.4 the error is not present. Good ! But it says : Module 'Magento_Indexer': Running schema recurring... elasticsuite_categories_fulltext view does not exist.

Any hint ? Thanks

eBusinessAtlantique avatar May 12 '22 16:05 eBusinessAtlantique

Did you run bin/magento setup:upgrade before installing ElasticSuite, have you noticed any errors?

Check if your ElasticSearch is installed and running:

$ curl -XGET 'http://localhost:9200' //or use your alias name.

Also, check logs of Elasticsearch (/var/log/elasticsearch/) and Magento.

And the last, try reinstalling ElasticSuite from scratch.

BR, Vadym

vahonc avatar May 12 '22 16:05 vahonc

I had to run setup:upgrade twice to get rid of this error : elasticsuite_categories_fulltext view does not exist. Module seems installed now Thanks !

eBusinessAtlantique avatar May 12 '22 22:05 eBusinessAtlantique

PHP 7.4 Magento 2.4.4 composer require smile/elasticsuite ~2.10.0

Fresh install of magento including sample data. I can confirm that it took 2 setup:upgrade before install was complete. I got the same error the first time.

OvalMedia avatar May 25 '22 13:05 OvalMedia

After running setup:upgrade the second time I got "Asymmetric transaction rollback." Magento 2.4.3 composer require smile/elasticsuite ~2.10.0

radub avatar Jun 28 '22 15:06 radub

Hello @radub,

First of all, the initial issue was resolved and therefore this ticket was closed. If you have the same or similar problem please create a new ticket with a little bit more details, especially about the configuration of your search engine. Because this error occurs in a situation when you have configured an external search engine (Solr or Elasticsearch) and it is unavailable during product/category save or re-indexation, etc.

BR, Vadym

vahonc avatar Jun 30 '22 13:06 vahonc

I'm having this issue running setup:upgrade within our deploy script

jsjsvsvs avatar Nov 21 '22 21:11 jsjsvsvs

@eBusinessAtlantique @vahonc can someone re-open this thread? This is still an issue.

Steps to reproduce:

  1. Remove the extension if you have it installed, by running composer remove
  2. Run setup:upgrade
  3. Set any of Magento indexes to schedule, e.g., bin/magento index:set-mode schedule catalog_product_price
  4. Re-add the extension by running composer require
  5. Run setup:upgrade

The workaround is to set all indexes to realtime, install the extension and then change the indexes back to the original configuration.

ebanolopes avatar May 14 '24 00:05 ebanolopes

Hello @ebanolopes,

Could you specifiy the versions of both Magento and Elasticsuite you are still encountering this issue into ?

Regards,

rbayet avatar May 14 '24 08:05 rbayet