Skip to content
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

Cannot start transaction 1 on session bd264219-dc7b-41f7-af63-57436d3588c - +WgOVnKmrMF6/mSQ4vglRC+SRli4twPTLNSeVRPyVy8= because a newer transaction 8 has already started #2181

Closed
unflower123 opened this issue Jan 12, 2021 · 5 comments

Comments

@unflower123
Copy link

unflower123 commented Jan 12, 2021

"jenssegers/mongodb": "3.2.3"
Why does it appear? I didn't use transaction.

@divine
Copy link
Contributor

divine commented Jan 12, 2021

Hello,

How we should determine why it appears? Looks like the MongoDB error not related to this library.

Thanks!

@divine divine closed this as completed Jan 12, 2021
@unflower123
Copy link
Author

MongoDB\Driver\Exception\BulkWriteException Cannot start transaction 1 on session bd264219-dc7b-41f7-af63-57436d3588c - +WgOVnKmrMF6/mSQ4vglRC+SRli4twPTLNSeVRPyVy8= because a newer transaction 8 has already started

that's the question of this libray, can't you see?

@unflower123
Copy link
Author

a part of laravel error info:
#0 /data/wwwroot/project/release/1.7.5/vendor/mongodb/mongodb/src/Operation/InsertMany.php(142): MongoDB\Driver\Server->executeBulkWrite('db_table...', Object(MongoDB\Driver\BulkWrite), Array), #1 /data/wwwroot/project/release/1.7.5/vendor/mongodb/mongodb/src/Collection.php(869): MongoDB\Operation\InsertMany->execute(Object(MongoDB\Driver\Server)), #2 [internal function]: MongoDB\Collection->insertMany(Array), #3 /data/wwwroot/project/release/1.7.5/vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Collection.php(45): call_user_func_array(Array, Array), #4 /data/wwwroot/project/release/1.7.5/vendor/jenssegers/mongodb/src/Jenssegers/Mongodb/Query/Builder.php(538): Jenssegers\Mongodb\Collection->__call('insertMany', Array), #5 [internal function]: Jenssegers\Mongodb\Query\Builder->insert(Array), #6 /data/wwwroot/project/

@xiehongxin
Copy link

I have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants