-
Notifications
You must be signed in to change notification settings - Fork 645
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
[5.x]: Mutex exception because of propagation method "Only save entries to the site they were created in" after upgrade from 4.x #16487
Comments
Update: |
Hi, thanks for getting in touch. To start with, can you please post a full stack trace for the error you’re getting? Also, are you using a custom mutex component? |
We do not have a custom mutex entry in the app.php. Stacktrace:
|
How exactly are you coming to the conclusion that the section’s propagation method is the culprit here? Have you tried changing the section’s propagation method? Or are you just not seeing the same issue with other sections (which have different propagation methods selected)? I’m not able to reproduce the error regardless of propagation method. The stack trace says the error is happening here: cms/src/services/Structures.php Lines 508 to 512 in 40fb91c
Which is only going to get called once regardless of propagation method. Most likely, the database has a lock on |
We nailed it down to a field. Then we removed the field and it does work. After adding it again it is failing again, so we tried to change the propagation method and as I mentioned above if we choose the ""Save entries to all sites the owner element is saved in" id does work, but for all other on this field it does not. Here is a screenshot of our field which causes this behavior. As mentioned above, we could also provide a database dump. We also restartet our system and also destroyed all containers, even the db container, since we are on aws. |
Can you send your database and Composer files into support@craftcms.com so we can look into it from our end? |
Sent you the required files to the mail mentioned. |
What happened?
Description
After upgrading from version 4.12.3 to 5.6.0.2, we encountered a mutex exception when creating a new page entry. This issue arises due to the propagation method "Only save entries to the site they were created in" on a field used in the entry type. If we switch to another propagation method, it works correctly. Previously, this field used a Super Table in version 4.x, and in version 5.x, we are using Matrix instead of the Super Table. We performed the migration through the console to migrate all Super Table fields.
Steps to reproduce
Expected behavior
Should open me the entry and I should be able to fill out the the data
Actual behavior
Mutex Exception – craft\errors\MutexException
Unable to acquire a lock for the structure 1
Craft CMS version
Craft Pro 5.6.0.2
PHP version
8.3.16
Operating system and version
Linux 5.10.228-219.884.amzn2.x86_64
Database type and version
PostgreSQL 14.12
Image driver and version
GD 8.3.16
Installed plugins and versions
The text was updated successfully, but these errors were encountered: