Mongodb startup error report

in the case of mongo with a password, I first remove users directly in admin. Now, if you start without a password, mongo will always restart. How to restore

< H2 > Startup parameters < / H2 >
mongod --bind_ip 10.32.254.4 --port 28011 --dbpath /rs1/mongodb/rs1 --logappend --oplogSize 10000 --storageEngine rocksdb --rocksdbCacheSizeGB 20

< H2 > error log < / H2 >
2019-02-27T18:30:48.109+0800 I STORAGE  [main] [RocksDB] Block Cache Size GB: 20
2019-02-27T18:30:48.109+0800 I STORAGE  [main] [RocksDB] Compression: snappy
2019-02-27T18:30:48.110+0800 I STORAGE  [main] [RocksDB] MaxWriteMBPerSec: 1024
2019-02-27T18:30:48.110+0800 I STORAGE  [main] [RocksDB] Engine custom option:
2019-02-27T18:30:48.110+0800 I STORAGE  [main] [RocksDB] Crash safe counters: 0
2019-02-27T18:30:48.110+0800 I STORAGE  [main] [RocksDB] Counters: 1
2019-02-27T18:30:48.110+0800 I STORAGE  [main] [RocksDB] Use SingleDelete in index: 0
2019-02-27T18:30:48.113+0800 I ACCESS   [main] Initialized External Auth Session
2019-02-27T18:30:48.117+0800 I CONTROL  [initandlisten] MongoDB starting : pid=14071 port=28011 dbpath=/rs1/mongodb/rs1 64-bit host=node4
2019-02-27T18:30:48.117+0800 I CONTROL  [initandlisten] db version v3.4.10-2.10
2019-02-27T18:30:48.117+0800 I CONTROL  [initandlisten] git version: 20ad3d107c73f9d283e0917e18f034123eee80c2
2019-02-27T18:30:48.117+0800 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.2k-fips  26 Jan 2017
2019-02-27T18:30:48.117+0800 I CONTROL  [initandlisten] allocator: tcmalloc
2019-02-27T18:30:48.117+0800 I CONTROL  [initandlisten] modules: none
2019-02-27T18:30:48.117+0800 I CONTROL  [initandlisten] build environment:
2019-02-27T18:30:48.117+0800 I CONTROL  [initandlisten]     distarch: x86_64
2019-02-27T18:30:48.117+0800 I CONTROL  [initandlisten]     target_arch: x86_64
2019-02-27T18:30:48.117+0800 I CONTROL  [initandlisten] options: { net: { bindIp: "10.32.254.4", port: 28011 }, repair: true, replication: { oplogSizeMB: 10000 }, security: { authorization: "disabled" }, storage: { dbPath: "/rs1/mongodb/rs1", engine: "rocksdb", indexBuildRetry: false, rocksdb: { cacheSizeGB: 20 } }, systemLog: { logAppend: true } }
2019-02-27T18:30:48.147+0800 I STORAGE  [initandlisten] 0 dropped prefixes need compaction
2019-02-27T18:30:48.147+0800 I STORAGE  [initandlisten] Repairing catalog metadata
2019-02-27T18:30:48.149+0800 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2019-02-27T18:30:48.150+0800 I CONTROL  [initandlisten]
2019-02-27T18:30:48.150+0800 I CONTROL  [initandlisten]
2019-02-27T18:30:48.150+0800 I CONTROL  [initandlisten] ** WARNING: You are running on a NUMA machine.
2019-02-27T18:30:48.150+0800 I CONTROL  [initandlisten] **          We suggest launching mongod like this to avoid performance problems:
2019-02-27T18:30:48.150+0800 I CONTROL  [initandlisten] **              numactl --interleave=all mongod [other options]
2019-02-27T18:30:48.150+0800 I CONTROL  [initandlisten]
2019-02-27T18:30:48.150+0800 I STORAGE  [initandlisten] repairDatabase admin
2019-02-27T18:30:48.150+0800 I STORAGE  [initandlisten] Repairing collection admin.system.users
2019-02-27T18:30:48.151+0800 I INDEX    [initandlisten] build index on: admin.system.users properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "admin.system.users" }
2019-02-27T18:30:48.151+0800 I INDEX    [initandlisten]      building index using bulk method; build may temporarily use up to 500 megabytes of RAM
2019-02-27T18:30:48.151+0800 I STORAGE  [initandlisten] Repairing collection admin.system.version
2019-02-27T18:30:48.152+0800 I INDEX    [initandlisten] build index on: admin.system.version properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "admin.system.version" }
2019-02-27T18:30:48.152+0800 I INDEX    [initandlisten]      building index using bulk method; build may temporarily use up to 500 megabytes of RAM
2019-02-27T18:30:48.153+0800 I STORAGE  [initandlisten] repairDatabase local
2019-02-27T18:30:48.153+0800 I STORAGE  [initandlisten] Repairing collection local.me
2019-02-27T18:30:48.153+0800 I INDEX    [initandlisten] build index on: local.me properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "local.me" }
2019-02-27T18:30:48.153+0800 I INDEX    [initandlisten]      building index using bulk method; build may temporarily use up to 500 megabytes of RAM
2019-02-27T18:30:48.154+0800 I STORAGE  [initandlisten] Repairing collection local.oplog.rs
2019-02-27T18:30:48.155+0800 I STORAGE  [initandlisten] Repairing collection local.replset.election
2019-02-27T18:30:48.155+0800 I INDEX    [initandlisten] build index on: local.replset.election properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "local.replset.election" }
2019-02-27T18:30:48.155+0800 I INDEX    [initandlisten]      building index using bulk method; build may temporarily use up to 500 megabytes of RAM
2019-02-27T18:30:48.156+0800 I STORAGE  [initandlisten] Repairing collection local.replset.minvalid
2019-02-27T18:30:48.156+0800 I INDEX    [initandlisten] build index on: local.replset.minvalid properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "local.replset.minvalid" }
2019-02-27T18:30:48.156+0800 I INDEX    [initandlisten]      building index using bulk method; build may temporarily use up to 500 megabytes of RAM
2019-02-27T18:30:48.157+0800 I STORAGE  [initandlisten] Repairing collection local.startup_log
2019-02-27T18:30:48.157+0800 I INDEX    [initandlisten] build index on: local.startup_log properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "local.startup_log" }
2019-02-27T18:30:48.157+0800 I INDEX    [initandlisten]      building index using bulk method; build may temporarily use up to 500 megabytes of RAM
2019-02-27T18:30:48.158+0800 I STORAGE  [initandlisten] Repairing collection local.system.replset
2019-02-27T18:30:48.159+0800 I INDEX    [initandlisten] build index on: local.system.replset properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "local.system.replset" }
2019-02-27T18:30:48.159+0800 I INDEX    [initandlisten]      building index using bulk method; build may temporarily use up to 500 megabytes of RAM
2019-02-27T18:30:48.160+0800 I STORAGE  [initandlisten] repairDatabase rs1
2019-02-27T18:30:48.160+0800 I STORAGE  [initandlisten] Repairing collection rs1.rs1
2019-02-27T18:30:48.160+0800 I INDEX    [initandlisten] build index on: rs1.rs1 properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "rs1.rs1" }
2019-02-27T18:30:48.160+0800 I INDEX    [initandlisten]      building index using bulk method; build may temporarily use up to 500 megabytes of RAM
2019-02-27T18:31:00.646+0800 I STORAGE  [initandlisten] finished checking dbs
2019-02-27T18:31:00.646+0800 I NETWORK  [initandlisten] shutdown: going to close listening sockets...
2019-02-27T18:31:00.646+0800 I NETWORK  [initandlisten] shutdown: going to flush diaglog...
2019-02-27T18:31:00.671+0800 I STORAGE  [initandlisten] shutdown: removing fs lock...
2019-02-27T18:31:00.671+0800 I CONTROL  [initandlisten] now exiting
2019-02-27T18:31:00.671+0800 I CONTROL  [initandlisten] shutting down with code:0
Jul.18,2022

start up with the parameter-noauth, you can start normally, and then create the deleted user back.
add-- auth, and start it again and it will work.

Menu