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
Transaction numbers are only allowed on a replica set member or mongos #1874
Comments
This error occurs if you are using transactions or retryable writes on a standalone server. From the trace excerpt you screenshotted, I can see a However, there is not enough information to help you with this problem. If you'd like for us to help you investigate this, please create a new issue including information about the versions of this library and the MongoDB driver being used, version and topology of the MongoDB deployment you are connecting to, and the full trace of the error. Without this information, there's nothing we can do. |
But it really strange tho, im not evolving any |
Hello
so i create a simple CRUD with env and database config just like the guide. I can do READ, Update, and Delete but getting this error(of the title) when do INSERT with ->save().
this is the config/database.php
'mongodb' => [
'driver' => 'mongodb',
'host' => env('DB_HOST', '192.168.16.53'),
'port' => env('DB_PORT', 27017),
'database' => env('DB_DATABASE'),
'username' => env('DB_USERNAME'),
'password' => env('DB_PASSWORD'),
'options' => [
'database' => 'admin',
]
],
and the .env
DB_CONNECTION=mongodb
DB_HOST=192.168.16.53
DB_PORT=27017
DB_DATABASE=shoes
DB_USERNAME=mongo-admin
DB_PASSWORD=password
i am using vagrant server for mongodb, and following https://www.linode.com/docs/databases/mongodb/build-database-clusters-with-mongodb/ tutorial for database clustering. only create not working, update read delete works
The text was updated successfully, but these errors were encountered: