-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup Install 2.4.6 Only Possible with OpenSearch #37236
Comments
Hi @laurnts. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Dash. Thank you for working on this issue.
|
yes, just tested with elasticsearch 8.6: |
At first, try installing the official magento 2 Elasticsearch 8 Module:
Then, try installing with following parameters:
After setup is done, enable modules again (Dont enable Magento_OpenSearch again):
Change default search engine to elasticsearch 8: Start Magento Setup: (ElasticSearch 8 Service should run while starting setup again ;) )
Good Luck! |
this must be in documentation, not hidden somewhere in github issue. i think installation must be also very simple. then opensearch also have issues with security plugin enabled. the only working installation with proper authentication is elasticsearch 7 |
I can confirm the issue in v2.4.6, even integration tests are failing in setup if you have ElasticSearch 8 installed and not ElasticSearch7 or OpenSearch. |
feels like issue is coming from adobe commerce cloud platform, they run opensearch without security plugin |
Completely agree with MagenX here. The setup install of Magento2 provide the option to use elasticsearch and opensearch respectively (unlike the previous version before where it gets mixed). Thus the installation should be straight forward. Also the xpack security enabled needed to be disabled (false). Else the node cluster canno't be found error will get triggered. Aside from that (not related to this ticket). varnish.vcl can only export version 6 while in 2.4.6 Varnish 7 is supported. |
i wasted all weekend to find out this, running different setups like crazy. |
Such oversight makes me want to rant now... I find this happens with almost every single release they come out with. I've upgraded from 2.4.0 to each release to now 2.4.5 (I will not be updating to .6 until .6-p1) and every single "major" release (.1, .2, .3, .4, .5) has had some profoundly surprising bugs that makes you wonder who tests these releases. Almost like they test with one setup and say "good to go". It's absolutely absurd and can destroy businesses. I wonder if paying the $1500+ per month for "Adobe Commerce" has less bugs. Highly doubt it. The sad part? It's released only two weeks prior to GA (general availability) for "testing" even to those paying customers. Like really? I swear, whoever came up with the release schedule for this system should be fired. It's just simply not the way to do it. Smaller, quicker releases are MUCH smarter and better to do. For instance, WooCommerce (which has like 100x more store running it, like 10m compared to 500k for Magento) does releases like once per month. Those releases are MUCH smaller. Easier to deal with bugs and testing - they will also release fixes quickly after instead of making the merchant wait 4-5 months. It's also available for testing WHILE it's being developed. Adobe, for reasons unknown (probably greed somehow) keeps the testing of the dev version behind closed doors (like all those "jira" bug reports require you to be an "Adobe staff member" - like really?? thought this was open-source) so the only REAL testing is done in the two weeks prior to GA. Like how dumb. Then problems like this arises. Problems that should not even have happened if it were tested better. But now stores that rely on a stable eCommerce system so they can make MONEY deal with major site breaking bugs. That is explicitly why most Magento stores pay like $5k for "upgrade" teams - because of the garbage QC (quality control) that Adobe does. It's sad because overall I think the features and usual stability of Magento is above most others, but during release time it's always a disaster. Always. So...the trick I think I'm learning? ALWAYS wait for the "p" release. Then move to that one, which should HOPEFULLY have the major release's bugs fixed. Because again, with their garbage release schedule they don't release minor point releases to fix problems like this. This major issue, and others, will only be [hopefully] fixed now 4-5 months from now with the "p" release - though knowing them, they will say "this fix is targeted for 2.4.7" or "2.4.8", at the end of 2023 or this time next year - which is just insane. Instead of doing what many other sane companies do and just come out with a minor point release (2.4.6.1) fixing major issues like this. Gah rant over. Good luck to anyone that updated. I will be waiting, and will always do with this system. Never have I before seen such garbage QC every release. Every...single...time. Really wish WooCommerce was more like this system (features, stability, etc.) because I would just stick with that, I trust their new releases so much more. The garbage Adobe pulls every time with these releases sours my outlook on Magento so much 😡 |
Incase this helps anyone:
It looks like by default the install is now using OpenSearch and not ElasticSearch7? I can't comment on ElasticSearch 8 but hopefully the above may help some people. |
We decided to migrate M2.4.6 on CentOS 7 to Oracle Linux 8. As part of the migration effort we took the opportunity to switch from ElasticSearch (v7.17 on CentOS) to OpenSearch (v2.6 on OL). Attempting a straightforward install of M2.4.6 using a script that ran fine on the existing server with ElasticSearch, I discovered M2.4.6 would not install on the new server running OpenSearch, returning the "No alive nodes found" error. The cause was OpenSearch had been installed taking the configuration defaults which included enabling ssl/https. Checking the installation of OpenSearch with this console command, the version number of OpenSearch was returned as expected: curl -XGET --insecure -u 'admin:admin' 'https://localhost:9200' Eventually, we discovered by disabling the OpenSearch security that Magento 2.4.6 would then install as expected. See https://opensearch.org/docs/1.1/security-plugin/configuration/disable/ The command to check OpenSearch as Magento 2.4.6 seems to require it to be configured changes https to http: curl -XGET 'http://localhost:9200' Is it possible that M2.4.6 has a compatibility issue with the OpenSearch security-plugin enabled by default? Is it also possible, as per the @FadedOut rant above, that M2.4.6 was never tested with the security-plugin of OpenSearch that is enabled by default? |
working self hosted configuration for Magento 2.4.6
|
Just to add someting about ES 8, some manual steps need to be taken before Magento 2.4.6 can work with it. Out of the box it doesn't come with ES 8 support, you need to install a new composer package first: https://experienceleague.adobe.com/docs/commerce-operations/upgrade-guide/prepare/prerequisites.html?lang=en#upgrade-elasticsearch |
Hi @laurnts , Issue Confirmed, Verified the issue 2.4.6 magento instance and the issue is reproducible,Hence we are confirming the issue. Preconditions: Steps to reproduce:
KIndly refer the below screenshots: We are getting actual result which is Could not validate a connection to the OpenSearch. No alive nodes found ,Hence we are confirming the issue. Regards, |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-8398 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Dash. Thank you for verifying the issue. |
@engcom-Dash: out of curiosity: after your second step, so before the |
It's a good find, I will test it out if it works.
I confirm that swapping the elasticsearch8 to elasticsearch7 does work (by means of using older elasticsearch version). However I also think I've tried once running elasticsearch8 and using the install flag elasticsearch7 does work too |
I have to say I completely agreed with you. Upgrading on minor releases were ok, but big major release with major changes always a hassle. Waiting for the patch version is one of the safest, most easy solution to go with unless there are some imminent issues to be fixed. |
Hi @laurnts , Verified the issue in 2.4.6 in magento instance and issue is not reproducible after installing magento package ES8 and Kindly refer the below screenshots.We can able run the search engine of ES 8 with following command. "php bin/magento setup:install --search-engine=elasticsearch 8" We can successfully the run above mentioned the command without any issue . Thanks, |
I am using this preparation docker build:
this elastic search setup:
this sample installation
I am sure that connection to elasticsearch8 works properly as i can access it through the browser and i can see everything in kibana. For the record i tried also with
and i am able to do
or
and result is
also tried to install using --disable-modules=Magento_InventoryElasticsearch,Magento_Elasticsearch8,Magento_Elasticsearch,Magento_OpenSearch and later allow it RUN bin/magento module:enable Magento_InventoryElasticsearch Magento_Elasticsearch8 Magento_Elasticsearch but it does not work as well, and throws error
|
Hi @laurnts , We have noticed that this issue has not been updated for a period of 14 Days. Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this. Thanks. |
I have an issue with the stated resolution. I was unable to find the es8 magento package following the links provided by @engcom-Dash. ![]() Edit: I am working with the default 2.4-develop branch |
I am having same issue as @Chris25602. |
@aashishgurung: the correct command is And over here that command works both in Magento 2.4.6 and 2.4.6-p1... |
@hostep Thanks for correcting the option. But the issue here is that the package itself is not found. I tried again, got the same result. My Magento is 2.4.6.
You can check the screenshot posted by @Chris25602. |
@aashishgurung: The only thing I can come up with is that you guys are not using repo.magento.com for your composer packages repository and that this repository hasn't got this package yet. Is that the problem maybe? Have you defined an alternative repository in your You can probably figure this out by enabling more verbose output:
|
I think we need a detailed explanation/documentation on how to configure magento 2 with elasticsearch 8 and opensearch with security enabled. Otherwise I had to switch to opensearch and use also, suffered from https://magento.stackexchange.com/a/323415 and this error: and obviously required to enable Here's a quick how-to with security disabled and opensearch 2.5.x on ubuntu and magento 2.4.6
|
something tells me we're missing the part where we add the self signed ssl certificate to be trusted as verified in php or in the server OS. something like https://stackoverflow.com/questions/21187946/curl-error-60-ssl-certificate-issue-self-signed-certificate-in-certificate-cha some setting in php.ini ? like https://serverfault.com/questions/633644/adding-a-self-signed-cert-to-the-trusted-certs-within-curl-in-windows I wonder if hacking this configuration to disable ssl verification in file
|
I wholeheartedly agree. As someone coming from the Drupal ecosystem, Magento makes Drupal look like the Rolls-Royce of open source software. This is not the way to do open source properly. |
@medigeek I have tried with your instructions how-to with security disabled and opensearch magento 2.4.6 php -d memory_limit=-1 composer.phar install ( shows the following error_ and Does anyone got any solution for this. |
@preetkakkar any solution for your problem please |
Preconditions and environment
Steps to reproduce
Expected result
A successful Magento2 setup installation while using elasticsearch as the search engine
Actual result
Could not validate a connection to the OpenSearch. No alive nodes found
Additional information
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: