ScreepsMods / screepsmod-mongo

Replace LokiJS with MongoDB and Redis
MIT License
25 stars 9 forks source link

Unabel to run, server get stuck with Redis error #27

Open FonzySF opened 4 years ago

FonzySF commented 4 years ago

engine_main.log: Error while main loop (stage getRooms): ReplyError: WRONGTYPE Operation against a key holding the wrong kind of value at parseError (/home/screeps/world/node_modules/redis-parser/lib/parser.js:179:12)

This is repeated over and over.

Versions: Screeps Server: Server version 4.1.6 Node.js: v12.16.3 Npx version: 6.14.5 Mongo V: MongoDB shell version v4.2.6 Redis server v=3.2.12 gcc (GCC) 10.1.0

Running on CentOS 7

FonzySF commented 4 years ago

So i was messing around did a few system.resetAllData() and now it is working. I am not sure what happened. It is working now.

FonzySF commented 4 years ago

So actually what cause the errors is if you run mongo.importDB() it gets the errors, than when you run system.resetAllData() it startes working. My understanding is mongo.importDB() imports the current game is this correct? Maybe I misunderstand. Thanks.