Deploying a module won't work

Dear All,

I'm facing an issue which is causing me the loss of the few hair I had :)

I installed locally a cloud environment which is working properly. I want to create a new package and module. I created my package, my module. Click on deploy and then ... patatra.

I have the following error message :

PHP Fatal error: Uncaught TypeError: Argument 1 passed to Sugarcrm\\Sugarcrm\\Elasticsearch\\Provider\\Visibility\\StrategyCollection::addBeanStrategies() must be an instance of SugarBean, null given, called in /var/www/html/sugar/icade10/src/Elasticsearch/Provider/Visibility/StrategyCollection.php on line 43 and defined in /var/www/html/sugar/icade10/src/Elasticsearch/Provider/Visibility/StrategyCollection.php:51\nStack trace:\n
#0 /var/www/html/sugar/icade10/src/Elasticsearch/Provider/Visibility/StrategyCollection.php(43): Sugarcrm\\Sugarcrm\\Elasticsearch\\Provider\\Visibility\\StrategyCollection->addBeanStrategies(NULL)\n
#1 /var/www/html/sugar/icade10/src/Elasticsearch/Provider/Visibility/Visibility.php(172): Sugarcrm\\Sugarcrm\\Elasticsearch\\Provider\\Visibility\\StrategyCollection->addModuleStrategies(Array)\n
#2 /var/www/html/sugar/icade10/src/Elasticsearch/Provider/Visibility/Visibility.php(185): Sugarcrm\\Sugarcrm\\Elasticsearch\\Provider\\Visibility\\Visibility->getStrategies(Array)\n
#3 /var/www/html/sugar/icade10/src/Elasticsearch/Provider/ in /var/www/html/sugar/icade10/src/Elasticsearch/Provider/Visibility/StrategyCollection.php on line 51, referer: http://localhost/sugar/icade10/index.php?module=ModuleBuilder&action=index&type=mb

Do you have an idea on the root cause ?

Many thanks in advance.

Best regards,

Enes

Parents
  • Hi Enes,

    Along with our Sugar Club Team members, I would like to add few things here. Could you please check the below things.

    1. Please check the Elastic Search Version on your machine and whether its is running or not.

    2. If it is running try to setup cron on the server where you have setup the Sugar Instance and Make Sure that " Elasticsearch Queue Scheduler" is running on your Sugar Instance.

    3. Try Deleting the Cache Folder and create new cache folder in your Sugar root directory and perform the Quick Repair and Rebuild to Sugar Instance and try installing module.

    4. If the issue still persists better to uninstall the Elastic Search and reinstall correctly on your machine once.

Reply
  • Hi Enes,

    Along with our Sugar Club Team members, I would like to add few things here. Could you please check the below things.

    1. Please check the Elastic Search Version on your machine and whether its is running or not.

    2. If it is running try to setup cron on the server where you have setup the Sugar Instance and Make Sure that " Elasticsearch Queue Scheduler" is running on your Sugar Instance.

    3. Try Deleting the Cache Folder and create new cache folder in your Sugar root directory and perform the Quick Repair and Rebuild to Sugar Instance and try installing module.

    4. If the issue still persists better to uninstall the Elastic Search and reinstall correctly on your machine once.

Children