Mongo reported an error when restoring the database

  mongodb, question

At first, the data suddenly disappeared, and then check the log, found only the log of the day, want to ask what’s going on?
Then the error message appears when the data is recovered:
ERROR: trying to write to non-master localhost:27017
isMaster info: { ismaster: false, secondary: false, info: “can’t get local.system.replset config from self or any seed (EMPTYCONFIG)”, isreplicaset: true, maxBsonObjectSize: 16777216, maxMessageSizeBytes: 48000000, localTime: new Date(1483324259039), ok: 1.0 }

Thank you very much!

The mongo you chose to restore is not master?