Hello again,
Tried to create the container with both service, with no luck, cannot get it to start both services. so I´m back to the sidecar. and tried the solution with the mongoLocation: and still getting an error. when i try to execute the binary inside the node container it can win.
configfile:
storage:
type: filesystem
filesystem:
path: /opt/backup/
restore:
mongodLocation: /usr/bin/mongod
[mongodb@mongodb_backup_cfg_server1 /]$ cat /opt/xci/percona/storage.yaml
storage:
type: filesystem
filesystem:
path: /opt/xci/backup/
restore:
mongodLocation: /usr/bin/mongod
PBM LOGS:
[mongodb@mongodb_backup_cfg_server1 /]$ pbm logs
2023-10-09T10:25:17Z I [mongo_conf/mongodb_content_cfg_server3:27017] [restore/2023-10-09T10:25:17.375588822Z] backup: 2023-10-06T09:25:38Z
2023-10-09T10:25:17Z I [mongo_conf/mongodb_content_cfg_server1:27017] [restore/2023-10-09T10:25:17.375588822Z] recovery started
2023-10-09T10:25:17Z I [mongo_conf/mongodb_content_cfg_server3:27017] [restore/2023-10-09T10:25:17.375588822Z] recovery started
2023-10-09T10:25:17Z I [mongo_conf/mongodb_content_cfg_server2:27017] got command restore [name: 2023-10-09T10:25:17.375588822Z, snapshot: 2023-10-06T09:25:38Z] <ts: 1696847117>
2023-10-09T10:25:17Z I [mongo_conf/mongodb_content_cfg_server2:27017] got epoch {1696832006 5}
2023-10-09T10:25:17Z E [mongo_conf/mongodb_content_cfg_server1:27017] [restore/2023-10-09T10:25:17.375588822Z] restore: check mongod binary: run: fork/exec /usr/bin/mongod: no such file or directory. stderr:
2023-10-09T10:25:17Z I [mongo_conf/mongodb_content_cfg_server2:27017] [restore/2023-10-09T10:25:17.375588822Z] backup: 2023-10-06T09:25:38Z
2023-10-09T10:25:17Z E [mongo_conf/mongodb_content_cfg_server3:27017] [restore/2023-10-09T10:25:17.375588822Z] restore: check mongod binary: run: fork/exec /usr/bin/mongod: no such file or directory. stderr:
2023-10-09T10:25:17Z I [mongo_conf/mongodb_content_cfg_server2:27017] [restore/2023-10-09T10:25:17.375588822Z] recovery started
2023-10-09T10:25:17Z E [mongo_conf/mongodb_content_cfg_server2:27017] [restore/2023-10-09T10:25:17.375588822Z] restore: check mongod binary: run: fork/exec /usr/bin/mongod: no such file or directory. stderr:
2023-10-09T10:25:17Z I [mongo_data_rs1/mongodb_content_rs1n1:27017] got command restore [name: 2023-10-09T10:25:17.375588822Z, snapshot: 2023-10-06T09:25:38Z] <ts: 1696847117>
2023-10-09T10:25:17Z I [mongo_data_rs1/mongodb_content_rs1n1:27017] got epoch {1696832006 5}
2023-10-09T10:25:17Z I [mongo_data_rs1/mongodb_content_rs1n1:27017] [restore/2023-10-09T10:25:17.375588822Z] backup: 2023-10-06T09:25:38Z
2023-10-09T10:25:17Z I [mongo_data_rs1/mongodb_content_rs1n1:27017] [restore/2023-10-09T10:25:17.375588822Z] recovery started
2023-10-09T10:25:18Z E [mongo_data_rs1/mongodb_content_rs1n1:27017] [restore/2023-10-09T10:25:17.375588822Z] restore: check mongod binary: run: fork/exec /usr/bin/mongod: no such file or directory. stderr:
2023-10-09T10:25:18Z I [mongo_data_rs2/mongodb_content_rs2n1:27017] got command restore [name: 2023-10-09T10:25:17.375588822Z, snapshot: 2023-10-06T09:25:38Z] <ts: 1696847117>
2023-10-09T10:25:18Z I [mongo_data_rs2/mongodb_content_rs2n1:27017] got epoch {1696832006 5}
2023-10-09T10:25:18Z I [mongo_data_rs2/mongodb_content_rs2n1:27017] [restore/2023-10-09T10:25:17.375588822Z] backup: 2023-10-06T09:25:38Z
2023-10-09T10:25:18Z I [mongo_data_rs2/mongodb_content_rs2n1:27017] [restore/2023-10-09T10:25:17.375588822Z] recovery started
2023-10-09T10:25:18Z E [mongo_data_rs2/mongodb_content_rs2n1:27017] [restore/2023-10-09T10:25:17.375588822Z] restore: check mongod binary: run: fork/exec /usr/bin/mongod: no such file or directory. stderr:
when running command in the node container:
[mongodb@mongodb_content_rs1n1 /]$ whoami
mongodb
[mongodb@mongodb_content_rs1n1 /]$ /usr/bin/mongod
{“t”:{“$date”:“2023-10-09T10:26:58.385+00:00”},“s”:“I”, “c”:“CONTROL”, “id”:23285, “ctx”:“main”,“msg”:“Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols ‘none’”}
{“t”:{“$date”:“2023-10-09T10:26:58.388+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:4648601, “ctx”:“main”,“msg”:“Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize.”}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:4615611, “ctx”:“initandlisten”,“msg”:“MongoDB starting”,“attr”:{“pid”:157,“port”:27017,“dbPath”:“/data/db”,“architecture”:“64-bit”,“host”:“mongodb_content_rs1n1”}}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“W”, “c”:“CONTROL”, “id”:20720, “ctx”:“initandlisten”,“msg”:“Available memory is less than system memory”,“attr”:{“availableMemSizeMB”:16384,“systemMemSizeMB”:96575}}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“CONTROL”, “id”:23403, “ctx”:“initandlisten”,“msg”:“Build Info”,“attr”:{“buildInfo”:{“version”:“4.4.23-22”,“gitVersion”:“6dbe14d25e2a4ba0515610749b1afe4119b06c42”,“openSSLVersion”:“OpenSSL 1.1.1k FIPS 25 Mar 2021”,“modules”:,“allocator”:“tcmalloc”,“environment”:{“distarch”:“x86_64”,“target_arch”:“x86_64”}}}}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“CONTROL”, “id”:51765, “ctx”:“initandlisten”,“msg”:“Operating System”,“attr”:{“os”:{“name”:“Oracle Linux Server release 8.8”,“version”:“Kernel 5.4.0-139-generic”}}}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“CONTROL”, “id”:21951, “ctx”:“initandlisten”,“msg”:“Options set by command line”,“attr”:{“options”:{}}}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“E”, “c”:“STORAGE”, “id”:20568, “ctx”:“initandlisten”,“msg”:“Error setting up listener”,“attr”:{“error”:{“code”:9001,“codeName”:“SocketException”,“errmsg”:“Address already in use”}}}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“REPL”, “id”:4784900, “ctx”:“initandlisten”,“msg”:“Stepping down the ReplicationCoordinator for shutdown”,“attr”:{“waitTimeMillis”:10000}}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“COMMAND”, “id”:4784901, “ctx”:“initandlisten”,“msg”:“Shutting down the MirrorMaestro”}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“SHARDING”, “id”:4784902, “ctx”:“initandlisten”,“msg”:“Shutting down the WaitForMajorityService”}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:4784905, “ctx”:“initandlisten”,“msg”:“Shutting down the global connection pool”}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“NETWORK”, “id”:4784918, “ctx”:“initandlisten”,“msg”:“Shutting down the ReplicaSetMonitor”}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“SHARDING”, “id”:4784921, “ctx”:“initandlisten”,“msg”:“Shutting down the MigrationUtilExecutor”}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“CONTROL”, “id”:4784925, “ctx”:“initandlisten”,“msg”:“Shutting down free monitoring”}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:4784927, “ctx”:“initandlisten”,“msg”:“Shutting down the HealthLog”}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:4784929, “ctx”:“initandlisten”,“msg”:“Acquiring the global lock for shutdown”}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“-”, “id”:4784931, “ctx”:“initandlisten”,“msg”:“Dropping the scope cache for shutdown”}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“FTDC”, “id”:4784926, “ctx”:“initandlisten”,“msg”:“Shutting down full-time data capture”}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“CONTROL”, “id”:20565, “ctx”:“initandlisten”,“msg”:“Now exiting”}
{“t”:{“$date”:“2023-10-09T10:26:58.389+00:00”},“s”:“I”, “c”:“CONTROL”, “id”:23138, “ctx”:“initandlisten”,“msg”:“Shutting down”,“attr”:{“exitCode”:48}}
[mongodb@mongodb_content_rs1n1 /]$
what am i doing wrong?