I have…
- [x] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [x] Bug report
- [ ] Performance issue
- [ ] Documentation issue or request
Current behavior
Most operations on a large content item (~10k lines when viewed in Inspect > Flat Data view) fail with MongoDB error (detailed error attached):
Command update failed: Only servers in a sharded cluster can start a new transaction at the active transaction number.
This sometimes happens when trying to create the content (attached detailed error error-during-create.json
) and always happens when trying to change the status (e.g. moving from Draft to Published) (attached detailed error error-during-change-status.json
). Restarting the Squidex instance sometimes help.
Expected behavior
I am able to operate on large content.
Minimal reproduction of the problem
- Create attached schema
schema.json
. - Insert
content-small.json
content into the schema. Publish it. See it working. - Insert
content-large.json
content into the schema. It should fail with the error described here. - If large content creation worked, try to publish it. It should fail with the error described here.
You can see these steps done in the attached video reproduction-steps.mp4
.
Environment
- [x] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [ ] Cloud version
Version: 7.0.3
Browser:
- [x] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge
Others:
- This has only started since upgrading to v7. No such errors where observed on v6 (6.8.0).
- New v7 config in our Squidex:
STORE__MONGODB__VALUEREPRESENTATION=Document
CONTENTS__OPTIMIZEFORSELFHOSTING=true
CLUSTERING__WORKER=false
There’s a separate instance with CLUSTERING__WORKER=true
. Errors described here occur in the instance with CLUSTERING__WORKER=false
.
Errors described here happen even if CONTENTS__OPTIMIZEFORSELFHOSTING=false
or when STORE__MONGODB__VALUEREPRESENTATION=String
or STORE__MONGODB__VALUEREPRESENTATION=Binary
.
- Our MongoDB server is an Atlas M10 cluster (Replica Set - 3 nodes).
- This is really the only thing I could find when Googling “Only servers in a sharded cluster can start a new transaction at the active transaction number.”.