magento-cloud-docker icon indicating copy to clipboard operation
magento-cloud-docker copied to clipboard

Docker image 2.3.6-p1 error affecting marketplace module testig

Open maurisource opened this issue 3 years ago • 9 comments

- Summary of the issue

Module submission on the Marketplace. There seems to be an error with that specific image.

- Information on your environment,

This environment is failing:

php_version":"7.3","magento_platform":"M2","magento_edition":"ce","magento_version":"2.3.6-p1","tool":"varnish","vendor":"maurisource","extension":"lightspeed","version":"1.3.62","platform":"m2","magento_cloud_docker":"1.2.1"

- Steps to reproduce

If you check submission ID: 0p8jeuucuj you'll be able to cross-check the error.

- Expected and actual results,

Actual relevant error as seen in the report.json file generated, which is irrelevant to the module.

Researching the error, I've found this possible solution: The issue is because during the install process Magento installs the store data, but then doesn't flush its cache.

n \u001b[37;41m Unable to apply patch Magento\\InventorySales\\Setup\\Patch\\Schema\\I \n nitializeW \u001b[39;49m \n \u001b[37;41m ebsiteDefaultSock for module Magento_InventorySales. Original exc \n eption mes \u001b[39;49m \n \u001b[37;41m sage: The default website isn't defined. Set the website and try \n again. \u001b[39;49m \n \u001b[37;41m

maurisource avatar Apr 06 '21 21:04 maurisource

Got the same issue here !

With environnement {"php_version":"7.3","magento_platform":"M2","magento_edition":"ce","magento_version":"2.3.6-p1","tool":"varnish","vendor":"laposte","extension":"magento2-colissimo-module","version":"1.1.0","platform":"m2","magento_cloud_docker":"1.2.1" and "php_version":"7.4","magento_platform":"M2","magento_edition":"ce","magento_version":"2.4.2","tool":"varnish","vendor":"laposte","extension":"magento2-colissimo-module","version":"1.1.0","platform":"m2","magento_cloud_docker":"1.2.1"

My submission ID is : rr7l1swgkx

sloanfardele avatar Apr 07 '21 07:04 sloanfardele

Hello @maurisource,

Could you provide steps to reproduce? Unfortunately, we do not have an access to submissions

shiftedreality avatar Apr 08 '21 13:04 shiftedreality

Hello @shiftedreality

In terms of reproducing the error, I think it depends on the module being submitted to the Marketplace. For now, as @sloanfardele also is complaining. Module maurisource/lightspeed and laposte/magento2-colissimo-module are being affected

Actions I have performed: Selected those Magento versions for CE (2.3 and 2.4) As you can see, the CE Docker image pertaining those Magento Screen Shot 2021-04-12 at 15 04 44 versions are both failing the technical submission with exit code 1.

"magento_edition":"ce","magento_version":"2.3.6-p1"
"magento_edition":"ce","magento_version":"2.4.2"

on EE, there's no errors at all pertaining Magento version 2.3 and 2.4

I have attached the report.json file and the screenshot of the Installation & Varnish install.

report-11.json.zip

maurisource avatar Apr 12 '21 19:04 maurisource

report.zip

Here is the report.json for laposte/magento2-colissimo-module. Our extension is not compatible with Magento EE, so I can only tell that I got the same errors on Magento CE

sloanfardele avatar Apr 13 '21 10:04 sloanfardele

Assigning to @slitviachenko for investigation

shiftedreality avatar Apr 13 '21 14:04 shiftedreality

@maurisource , @sloanfardele , as I mentioned in https://magentocommeng.slack.com/archives/C7SL5CGDN/p1617935586035800 , I was able to narrow down the root cause, both rr7l1swgkx and 0p8jeuucuj have cli commands, after disabling LaPoste\Colissimo\Console\Command\PurgeOldReturnLabels and LaPoste\Colissimo\Console\Command\PurgeLabelFolder, and Maurisource\Lightspeed\Console\Command\LsSyncAll respectively, I was able to install laposte/magento2-colissimo-module:1.1.0 and maurisource/lightspeed:1.3.62 on Magento 2.4.2 CE on Magento Cloud Docker 1.2.1.

slitviachenko avatar Apr 27 '21 21:04 slitviachenko

^^^ I believe Magento proxies could help to resolve this issue. https://devdocs.magento.com/guides/v2.4/extension-dev-guide/proxies.html

slitviachenko avatar Apr 27 '21 22:04 slitviachenko

@shiftedreality , below are some details:

  • Extensions fail on the
docker-compose -f docker-compose.yml run --rm deploy cloud-deploy

command. The previous

docker-compose -f docker-compose.yml run --rm build cloud-build

command finishes successfully.

  • Extensions are installed successfully on Magento EE.
  • Magento proxies help to resolve this issue. @maurisource created a great article how he solved this issue https://maurisource.com/fixed-magento-marketplace-installation-varnish-test-results-failure/

slitviachenko avatar May 20 '21 20:05 slitviachenko

Thank you for reporting this,

Internal issue: MCLOUD-7964

shiftedreality avatar May 20 '21 21:05 shiftedreality