# We have installed magento 2.3.4 with parcona xtraDB cluster and we are getting error on cron run

**URL:** <https://forums.percona.com/t/we-have-installed-magento-2-3-4-with-parcona-xtradb-cluster-and-we-are-getting-error-on-cron-run/7881>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [August 11, 2020, 1:21am UTC](https://forums.percona.com/t/we-have-installed-magento-2-3-4-with-parcona-xtradb-cluster-and-we-are-getting-error-on-cron-run/7881 "2020-08-11T01:21:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rupeshgardi](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@Rupeshgardi](https://forums.percona.com/u/Rupeshgardi)\
**Post date:** [August 11, 2020, 1:21am UTC](https://forums.percona.com/t/we-have-installed-magento-2-3-4-with-parcona-xtradb-cluster-and-we-are-getting-error-on-cron-run/7881/1 "2020-08-11T01:21:02Z")

</div>

main.ERROR:&nbsp;SQLSTATE[HY000]:&nbsp;General&nbsp;error:&nbsp;1105&nbsp;Percona-XtraDB-Cluster&nbsp;prohibits&nbsp;use&nbsp;of&nbsp;GET\_LOCK&nbsp;with&nbsp;pxc\_strict\_mode&nbsp;=&nbsp;ENFORCING,&nbsp;query&nbsp;was:&nbsp;SELECT&nbsp;GET\_LOCK(?,&nbsp;?);

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [August 11, 2020, 7:26pm UTC](https://forums.percona.com/t/we-have-installed-magento-2-3-4-with-parcona-xtradb-cluster-and-we-are-getting-error-on-cron-run/7881/2 "2020-08-11T19:26:39Z")

</div>

Hello Rupeshgardi,  
The error message you are receiving is quite self-explanatory. The function GET\_LOCK() is not allowed in PXC while the cluster is in ENFORCING mode. Your options are to change pxc\_strict\_mode=PERMISSIVE, or modify the behavior of the application to stop using GET\_LOCK() functions and use more app-native locking.  
[https://www.percona.com/doc/percona-xtradb-cluster/LATEST/features/pxc-strict-mode.html](https://www.percona.com/doc/percona-xtradb-cluster/LATEST/features/pxc-strict-mode.html)  
The reason this function is prohibited is because this function is not cluster-wide. If your application executes GET\_LOCK() on node1, another connection on node2() can acquire the same lock without conflict. If you are certain that your application is isolated to 1 node, then you should feel safe in turning off this protection.
