screepsmod-mongo icon indicating copy to clipboard operation
screepsmod-mongo copied to clipboard

Unabel to run, server get stuck with Redis error

Open FonzySF opened this issue 5 years ago • 2 comments

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 avatar May 21 '20 04:05 FonzySF

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 avatar May 21 '20 14:05 FonzySF

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.

FonzySF avatar May 21 '20 14:05 FonzySF