turms
turms copied to clipboard
Running Spring Boot project directly failed.
I install redis, mongodb locally with binary archive (no pip, no docker). Starting redis, mongodb in default port. Then starting turms-server main method in dev profiles. And it comes out that:
- "com.mongodb.MongoCommandException: Command failed with error 59 (CommandNotFound): 'no such command: 'enableSharding'' on server localhost:27017."
Log file:turms-service_20220720_0.log
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 8
It's a problem related to the config of MongoDB servers. Please ensure:
- Running turms servers with MongoDB sharded clusters
- Configuring turms servers to connect to the
mongos
server instead of themongo
server. For example: (turms-gateway)
(turms-service)
And just try to run turms servers again.
I notice that you have edited your post, and no such command: 'enableSharding'' on server localhost:27017.
just means you connected to the wrong server, and you should connect to the mongos server.