-
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
Install 2.4.6-p8 (also 2.4.7-p3) Unable to apply patch #39514
Comments
Hi @hdezela. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hi @hdezela, Thanks for your reporting and collaboration. We have tried to install Magento 2.4.6-p8 and 2.4.7-p3 and we are able to install successfully.Kindly refer the screenshots. Kindly check your system requirements https://experienceleague.adobe.com/en/docs/commerce-operations/installation-guide/system-requirements and let us know if you are still facing any issue. Thanks. |
I have tried again, reconfirming all requirements and made a step by step video showing everything and it still gives me the exact same error at the same step. I'm attaching my configs for the infra and also a dump of the db as it sits (right after the error) to maybe help troubleshoot this. I don't know what else I can say or do, I clearly see your evidence that you can install it but I also clearly see my evidence that I cannot. I did try installing an earlier version (2.4.5) and upgrading that to the latest 2.4.7-p3 and it is working fine, so I can at least confirm that the setup supports Magento running on it, just not a clean install. |
After diving around and echoing everything from everywhere I was able to find a common error that pops up when using PHP 8.2 or higher:
Apparently there has been a change from PHP 8.2 and above in the PDO controller in that it treats commits in some special way (beyond my understanding). This causes Magento to think that a transaction is still pending (because that's what PDO is telling it) but the transaction has actually been executed. Changing the mysql setting "autocommit = 0" to "autocommit = 1" fixes the Magento 2.4.6+ installation issue and some other weird issues I've seen with those versions. If you have a "tuned" mysql config from earlier versions that recommended disabling autocommit you will come upon this error. So basically, if you're upgrading or installing to a Magento 2.4.6 or higher, you need to double-check if autocommit is enabled in your mysql config. |
Preconditions and environment
Steps to reproduce
Expected result
Magento installs
Actual result
Installation fails at:
[Progress: 115 / 1331]
Module 'Magento_InventorySales':
with error:
In PatchApplier.php line 251:
Unable to apply patch Magento\InventorySales\Setup\Patch\Schema\InitializeWebsiteDefaultSock for module Magento_InventorySales. Original exception message: The default website isn't defined. Set the website and try again.
Additional information
I have tried all the fixes shown in this issue but none of them work. I've also tried the patches supplied in this thread and it also does not work.
I've tried disabling the module but it locks out due to dependencies, and patching it to omit the step creates another chain of errors. Also hardcoding the default website in the code so it's not looked up also fails.
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: