Closed robaimes closed 1 year ago
Hello @robaimes could you please clarify why there are two different database in the .env file?
@ibraheemnabeelfauzi Same database but 2 different connections. I've later realised that this error occurs regardless. Using only a single connection still yields me this error.
@robaimes thanks and sorry for delay in the response. With that being said, can you please check and see if that's not the case? https://stagebit.com/magento-2/magento-debugging/sqlstatehy000-general-error-1205-lock-wait-timeout-exceeded-try-restarting-transaction-magento/
@ibraheemnabeelfauzi This is a way around the issue, yes. But the Patch script (in this case) is what is creating the lock. I also wouldn't be able to do this during a production deployment like I can a development environment.
Thanks @robaimes let me check into this further.
@robaimes thank you for your patience. I checked with my folks. This is a deadlock, we'll look into changing our code but it may not be the case as we have 1000s of merchant running this without having such issues. We'll have a look and determine a way!
Thank you for raising this!
Great to hear, thank you 🙂
@ibraheemnabeelfauzi If it helps, the following patch allows setup to continue as normal:
@robaimes We will look into this. Thank you for the submission!
Hi @shqsupport
We faced the same issue with the data patch.
Magento 2.4.4 (EE) PHP 8.1
The patch @robaimes provided fixed the issue.
Thanks!
Hi @bawwwa,
Thank you for contacting us regarding this issue you are encountering. We are in the process of looking into it. Have a great day!
Hi all,
Thanks for raising this issue and providing the patch @robaimes
I've just released 20.52.0 of module-shipper which includes the patch as well as a couple of other fixes. Please update and it should resolve this issue
Problem:
Attempting to install the Shipper HQ module produces an error and setup cannot complete.
Reproduction:
composer require shipperhq/module-shipper
bin/magento setup:upgrade
Additional Info
The exact error message spat out by the command line during
bin/magento setup:upgrade
is as below:The specific query is
The issue is present from lines 84 through 89 of
Setup\Patch\Data\InstallDestTypeAttributes
, and the same issue applies to lines 106 through 112.Removing the
$attribute->save()
call allows setup to continue as normal, but without theused_in_forms
data. Perhaps this would be better as a separate patch?