Mongod start error question

I was starting the mongod process for the first time.
but, it wasn’t not.
There are any files at data directory.

This is error from the command line.

2021-03-31T10:01:57.685+0900 I STORAGE [main] Engine custom option: log=(archive=true,enabled=true,file_max=300MB,path=/home/test/secondary/log)
about to fork child process, waiting until server is ready for connections.
forked process: 7240
ERROR: child process failed, exited with error number 51
To see additional information in this output, start without the “–fork” option.

This is error from the log file.

2021-03-31T10:01:57.685+0900 I CONTROL [main] ***** SERVER RESTARTED *****
2021-03-31T10:01:57.688+0900 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols ‘none’
2021-03-31T10:01:57.690+0900 I CONTROL [initandlisten] MongoDB starting : pid=7240 port=27017 dbpath=/home/test/secondary/data 64-bit host=localhost.localdomain
2021-03-31T10:01:57.690+0900 I CONTROL [initandlisten] db version v4.0.23
2021-03-31T10:01:57.690+0900 I CONTROL [initandlisten] git version: 07c6611b38d2aacbdb1846b688db70b3273170fb
2021-03-31T10:01:57.690+0900 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
2021-03-31T10:01:57.690+0900 I CONTROL [initandlisten] allocator: tcmalloc
2021-03-31T10:01:57.690+0900 I CONTROL [initandlisten] modules: none
2021-03-31T10:01:57.690+0900 I CONTROL [initandlisten] build environment:
2021-03-31T10:01:57.690+0900 I CONTROL [initandlisten] distmod: rhel70
2021-03-31T10:01:57.690+0900 I CONTROL [initandlisten] distarch: x86_64
2021-03-31T10:01:57.690+0900 I CONTROL [initandlisten] target_arch: x86_64
2021-03-31T10:01:57.690+0900 I CONTROL [initandlisten] options: { config: “/home/test/secondary/mongod.conf”, net: { bindIp: “0.0.0.0”, port: 27017 }, processManagement: { fork: true, pidFilePath: “/home/test/secondary/mongod.pid” }, replication: { replSetName: “replica” }, setParameter: { replWriterThreadCount: “2” }, storage: { dbPath: “/home/test/secondary/data”, directoryPerDB: true, journal: { enabled: true }, syncPeriodSecs: 10.0, wiredTiger: { engineConfig: { configString: “log=(archive=true,enabled=true,file_max=300MB,path=/home/test/secondary/log)” } } }, systemLog: { destination: “file”, logAppend: true, path: “/home/test/secondary/log/mongod.log” } }
2021-03-31T10:01:57.690+0900 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=15430M,cache_overflow=(file_max=0M),session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),log=(archive=true,enabled=true,file_max=300MB,path=/home/test/secondary/log)
2021-03-31T10:01:58.841+0900 I STORAGE [initandlisten] WiredTiger message [1617152518:841074][7240:0x7fc076910b80], txn-recover: Main recovery loop: starting at 2/41316352 to 6/256
2021-03-31T10:01:58.841+0900 I STORAGE [initandlisten] WiredTiger message [1617152518:841326][7240:0x7fc076910b80], txn-recover: Recovering log 2 through 6
2021-03-31T10:01:58.841+0900 E STORAGE [initandlisten] WiredTiger error (2) [1617152518:841692][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __posix_open_file, 672: /home/test/secondary/data/sizeStorer.wt: handle-open: open: No such file or directory Raw: [1617152518:841692][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __posix_open_file, 672: /home/test/secondary/data/sizeStorer.wt: handle-open: open: No such file or directory
2021-03-31T10:01:58.841+0900 E STORAGE [initandlisten] WiredTiger error (2) [1617152518:841716][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __txn_op_apply, 287: operation apply failed during recovery: operation type 4 at LSN 2/41317632: No such file or directory Raw: [1617152518:841716][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __txn_op_apply, 287: operation apply failed during recovery: operation type 4 at LSN 2/41317632: No such file or directory
2021-03-31T10:01:58.841+0900 E STORAGE [initandlisten] WiredTiger error (2) [1617152518:841737][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __wt_txn_recover, 706: Recovery failed: No such file or directory Raw: [1617152518:841737][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __wt_txn_recover, 706: Recovery failed: No such file or directory
2021-03-31T10:01:58.842+0900 E STORAGE [initandlisten] WiredTiger error (0) [1617152518:842098][7240:0x7fc076910b80], connection: __wt_cache_destroy, 350: cache server: exiting with 2 pages in memory and 0 pages evicted Raw: [1617152518:842098][7240:0x7fc076910b80], connection: __wt_cache_destroy, 350: cache server: exiting with 2 pages in memory and 0 pages evicted
2021-03-31T10:01:58.842+0900 E STORAGE [initandlisten] WiredTiger error (0) [1617152518:842118][7240:0x7fc076910b80], connection: __wt_cache_destroy, 358: cache server: exiting with 76358 bytes in memory Raw: [1617152518:842118][7240:0x7fc076910b80], connection: __wt_cache_destroy, 358: cache server: exiting with 76358 bytes in memory
2021-03-31T10:01:58.842+0900 E STORAGE [initandlisten] WiredTiger error (0) [1617152518:842125][7240:0x7fc076910b80], connection: __wt_cache_destroy, 364: cache server: exiting with 76189 bytes dirty and 1 pages dirty Raw: [1617152518:842125][7240:0x7fc076910b80], connection: __wt_cache_destroy, 364: cache server: exiting with 76189 bytes dirty and 1 pages dirty
2021-03-31T10:01:59.611+0900 I STORAGE [initandlisten] WiredTiger message [1617152519:611563][7240:0x7fc076910b80], txn-recover: Main recovery loop: starting at 2/41316352 to 7/256
2021-03-31T10:01:59.611+0900 I STORAGE [initandlisten] WiredTiger message [1617152519:611833][7240:0x7fc076910b80], txn-recover: Recovering log 2 through 7
2021-03-31T10:01:59.612+0900 E STORAGE [initandlisten] WiredTiger error (2) [1617152519:612249][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __posix_open_file, 672: /home/test/secondary/data/sizeStorer.wt: handle-open: open: No such file or directory Raw: [1617152519:612249][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __posix_open_file, 672: /home/test/secondary/data/sizeStorer.wt: handle-open: open: No such file or directory
2021-03-31T10:01:59.612+0900 E STORAGE [initandlisten] WiredTiger error (2) [1617152519:612271][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __txn_op_apply, 287: operation apply failed during recovery: operation type 4 at LSN 2/41317632: No such file or directory Raw: [1617152519:612271][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __txn_op_apply, 287: operation apply failed during recovery: operation type 4 at LSN 2/41317632: No such file or directory
2021-03-31T10:01:59.612+0900 E STORAGE [initandlisten] WiredTiger error (2) [1617152519:612286][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __wt_txn_recover, 706: Recovery failed: No such file or directory Raw: [1617152519:612286][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __wt_txn_recover, 706: Recovery failed: No such file or directory
2021-03-31T10:01:59.612+0900 E STORAGE [initandlisten] WiredTiger error (0) [1617152519:612641][7240:0x7fc076910b80], connection: __wt_cache_destroy, 350: cache server: exiting with 2 pages in memory and 0 pages evicted Raw: [1617152519:612641][7240:0x7fc076910b80], connection: __wt_cache_destroy, 350: cache server: exiting with 2 pages in memory and 0 pages evicted
2021-03-31T10:01:59.612+0900 E STORAGE [initandlisten] WiredTiger error (0) [1617152519:612658][7240:0x7fc076910b80], connection: __wt_cache_destroy, 358: cache server: exiting with 76358 bytes in memory Raw: [1617152519:612658][7240:0x7fc076910b80], connection: __wt_cache_destroy, 358: cache server: exiting with 76358 bytes in memory
2021-03-31T10:01:59.612+0900 E STORAGE [initandlisten] WiredTiger error (0) [1617152519:612665][7240:0x7fc076910b80], connection: __wt_cache_destroy, 364: cache server: exiting with 76189 bytes dirty and 1 pages dirty Raw: [1617152519:612665][7240:0x7fc076910b80], connection: __wt_cache_destroy, 364: cache server: exiting with 76189 bytes dirty and 1 pages dirty
2021-03-31T10:02:00.472+0900 I STORAGE [initandlisten] WiredTiger message [1617152520:472949][7240:0x7fc076910b80], txn-recover: Main recovery loop: starting at 2/41316352 to 8/256
2021-03-31T10:02:00.473+0900 I STORAGE [initandlisten] WiredTiger message [1617152520:473217][7240:0x7fc076910b80], txn-recover: Recovering log 2 through 8
2021-03-31T10:02:00.473+0900 E STORAGE [initandlisten] WiredTiger error (2) [1617152520:473573][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __posix_open_file, 672: /home/test/secondary/data/sizeStorer.wt: handle-open: open: No such file or directory Raw: [1617152520:473573][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __posix_open_file, 672: /home/test/secondary/data/sizeStorer.wt: handle-open: open: No such file or directory
2021-03-31T10:02:00.473+0900 E STORAGE [initandlisten] WiredTiger error (2) [1617152520:473594][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __txn_op_apply, 287: operation apply failed during recovery: operation type 4 at LSN 2/41317632: No such file or directory Raw: [1617152520:473594][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __txn_op_apply, 287: operation apply failed during recovery: operation type 4 at LSN 2/41317632: No such file or directory
2021-03-31T10:02:00.473+0900 E STORAGE [initandlisten] WiredTiger error (2) [1617152520:473606][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __wt_txn_recover, 706: Recovery failed: No such file or directory Raw: [1617152520:473606][7240:0x7fc076910b80], file:sizeStorer.wt, txn-recover: __wt_txn_recover, 706: Recovery failed: No such file or directory
2021-03-31T10:02:00.529+0900 E STORAGE [initandlisten] WiredTiger error (0) [1617152520:529544][7240:0x7fc076910b80], connection: __wt_cache_destroy, 350: cache server: exiting with 2 pages in memory and 0 pages evicted Raw: [1617152520:529544][7240:0x7fc076910b80], connection: __wt_cache_destroy, 350: cache server: exiting with 2 pages in memory and 0 pages evicted
2021-03-31T10:02:00.529+0900 E STORAGE [initandlisten] WiredTiger error (0) [1617152520:529567][7240:0x7fc076910b80], connection: __wt_cache_destroy, 358: cache server: exiting with 76358 bytes in memory Raw: [1617152520:529567][7240:0x7fc076910b80], connection: __wt_cache_destroy, 358: cache server: exiting with 76358 bytes in memory
2021-03-31T10:02:00.529+0900 E STORAGE [initandlisten] WiredTiger error (0) [1617152520:529576][7240:0x7fc076910b80], connection: __wt_cache_destroy, 364: cache server: exiting with 76189 bytes dirty and 1 pages dirty Raw: [1617152520:529576][7240:0x7fc076910b80], connection: __wt_cache_destroy, 364: cache server: exiting with 76189 bytes dirty and 1 pages dirty
2021-03-31T10:02:00.530+0900 W STORAGE [initandlisten] Failed to start up WiredTiger under any compatibility version.
2021-03-31T10:02:00.530+0900 F - [initandlisten] Fatal Assertion 28559 at src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp 68
2021-03-31T10:02:00.530+0900 F - [initandlisten] \n\n***aborting after fassert() failure\n\n
2021-03-31T10:02:00.538+0900 F - [initandlisten] Got signal: 6 (Aborted).
0x559457b712f1 0x559457b70509 0x559457b709ed 0x7fc0750965d0 0x7fc074cf0207 0x7fc074cf18f8 0x5594560c258c 0x5594561d0467 0x5594561a22e8 0x5594561a75a2 0x559456185240 0x5594568d314a 0x559456133af7 0x559456137675 0x5594560c4259 0x7fc074cdc3d5 0x559456131bbf

This is my mongodb configuration file.

#. mongod.conf, Percona Server for MongoDB
#. for documentation of all options, see:
#. http://docs.mongodb.org/manual/reference/configuration-options/

#. Where and how to store data.
storage:
dbPath: /home/test/secondary/data
directoryPerDB: true
syncPeriodSecs: 10
journal:
enabled: true
wiredTiger:
engineConfig:
#. cacheSizeGB: 14
configString: “log=(archive=true,enabled=true,file_max=300MB,path=/home/test/secondary/log)”

#. Two options below can be used for wiredTiger and inMemory storage engines
setParameter:
replWriterThreadCount: 2
#. wiredTigerConcurrentReadTransactions: 128
#. wiredTigerConcurrentWriteTransactions: 128

#. where to write logging data.
systemLog:
destination: file
logAppend: true
path: /home/test/secondary/log/mongod.log

processManagement:
fork: true
pidFilePath: /home/test/secondary/mongod.pid

#. network interfaces
net:
port: 27017
bindIp: 0.0.0.0

#.security:
#. authorization: enabled
#. clusterAuthMode : keyFile
#. keyFile: /home/test/secondary/mongodb.key

replication:
replSetName: replica
oplogSizeMB: 1000

※ I typed “#”. Then the font style was applied in the post, so I used “#.”

had you checked if anything there in datadir /home/test/secondary/data ?

If it’s first time, then delete all from this path and try to start

hi. @ROHIT_KHURANA.
First of all, thank you for your reply.

Unfortunately, the problem has not been resolved.

Try a different dirpath and see if it works or not
or
drop the directory and recreate instead deleting the contents of it

any change in error logs?