Closed nimishainjava closed 5 months ago
~ % gcc --version
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
~ % uname -mrs
Darwin 23.2.0 arm64
~ % system_profiler SPSoftwareDataType
Software:
System Software Overview:
System Version: macOS 14.2.1 (23C71)
Kernel Version: Darwin 23.2.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Computer Name: <redacted>
User Name: <<redacted>
Secure Virtual Memory: Enabled
System Integrity Protection: Enabled
Time since boot: 1 hour, 42 minutes
@nimishainjava hmm.. try V6_0_12 .. V6_0 should work, but i guess its a bug.
The version used in my project was 4.7.0 So, i bumped it to the latest i.e. 4.12.0, in which v6_0 points to V6_0_12 internally. But still the same issue persists.
@nimishainjava ah.. sorry.. one minute please
@nimishainjava there is no package of mongodb for debian11 on arm, only for x86
@nimishainjava i guess you are using docker with an arm debian image.. you may choose an x86 version instead to run mongodb on debian.. or chose one of ubuntu, centos or amazon .. see supported list here: https://www.mongodb.com/try/download/community
@nimishainjava .. did this solve your issue?
@michaelmosmann no the issue is still the same.
I have tried using the following mongo images:
1) using platform amd64 and creating the relevant archive path at osxmongodb-macos-x86-64-6-0-6-tgz
(did not work- still the same error) using flapdoodle version 4.7.0
mongo:
image: mongo:6.0.6
platform: linux/amd64
2) using arm64v8 image as well and creating the relevant archive path at osxmongodb-macos-arm64-6-0-12-tgz
using flapdoodle version 4.12.0
mongo:
image: arm64v8/mongo:6.0.12
platform: linux/64/v8
(does not work and gives the same error)
Am I proceeding in the right direction?
@nimishainjava this is really some kind of strange..
ok.. what you may try: log into this docker images, download a matching mongodb version for this image from mongodb server (use the tgz archive version, no dep package or else), extract the archive, execute the binary.. i would expect, that this will get you some log messages directly from the binary.. or not (which i hope will not happen). This way we removed a lot of things which can go wrong.
With this we may find a mongodb version that's work and may find why its not working if my library tries to start this process..
this is the output of logs that I get when i try to run the binary file:
/Users/ngp1041/Downloads/mongodb-macos-aarch64-6.0.12/bin/mongod ; exit;
ngp1041@WHWMQXQ5L6 ~ % /Users/ngp1041/Downloads/mongodb-macos-aarch64-6.0.12/bin/mongod ; exit;
{"t":{"$date":"2024-01-17T15:17:48.817+05:30"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"thread2","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2024-01-17T15:17:48.821+05:30"},"s":"I", "c":"NETWORK", "id":4915701, "ctx":"thread2","msg":"Initialized wire specification","attr":{"spec":{"incomingExternalClient":{"minWireVersion":0,"maxWireVersion":17},"incomingInternalClient":{"minWireVersion":0,"maxWireVersion":17},"outgoing":{"minWireVersion":6,"maxWireVersion":17},"isInternalClient":true}}}
{"t":{"$date":"2024-01-17T15:17:48.822+05:30"},"s":"I", "c":"NETWORK", "id":4648602, "ctx":"thread2","msg":"Implicit TCP FastOpen in use."}
{"t":{"$date":"2024-01-17T15:17:48.823+05:30"},"s":"I", "c":"REPL", "id":5123008, "ctx":"thread2","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationDonorService","namespace":"config.tenantMigrationDonors"}}
{"t":{"$date":"2024-01-17T15:17:48.823+05:30"},"s":"I", "c":"REPL", "id":5123008, "ctx":"thread2","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"TenantMigrationRecipientService","namespace":"config.tenantMigrationRecipients"}}
{"t":{"$date":"2024-01-17T15:17:48.823+05:30"},"s":"I", "c":"REPL", "id":5123008, "ctx":"thread2","msg":"Successfully registered PrimaryOnlyService","attr":{"service":"ShardSplitDonorService","namespace":"config.tenantSplitDonors"}}
{"t":{"$date":"2024-01-17T15:17:48.823+05:30"},"s":"I", "c":"CONTROL", "id":5945603, "ctx":"thread2","msg":"Multi threading initialized"}
{"t":{"$date":"2024-01-17T15:17:48.823+05:30"},"s":"I", "c":"CONTROL", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":93975,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"WHWMQXQ5L6"}}
{"t":{"$date":"2024-01-17T15:17:48.823+05:30"},"s":"I", "c":"CONTROL", "id":23352, "ctx":"initandlisten","msg":"Unable to resolve sysctl {sysctlName} (number) ","attr":{"sysctlName":"hw.cpufrequency"}}
{"t":{"$date":"2024-01-17T15:17:48.823+05:30"},"s":"I", "c":"CONTROL", "id":23351, "ctx":"initandlisten","msg":"{sysctlName} unavailable","attr":{"sysctlName":"machdep.cpu.features"}}
{"t":{"$date":"2024-01-17T15:17:48.823+05:30"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"6.0.12","gitVersion":"21e6e8e11a45dfbdb7ca6cf95fa8c5f859e2b118","modules":[],"allocator":"system","environment":{"distarch":"aarch64","target_arch":"aarch64"}}}}
{"t":{"$date":"2024-01-17T15:17:48.823+05:30"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Mac OS X","version":"23.2.0"}}}
{"t":{"$date":"2024-01-17T15:17:48.823+05:30"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{}}}
{"t":{"$date":"2024-01-17T15:17:48.824+05:30"},"s":"I", "c":"NETWORK", "id":5693100, "ctx":"initandlisten","msg":"Asio socket.set_option failed with std::system_error","attr":{"note":"acceptor TCP fast open","option":{"level":6,"name":261,"data":"00 04 00 00"},"error":{"what":"set_option: Invalid argument","message":"Invalid argument","category":"asio.system","value":22}}}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"E", "c":"CONTROL", "id":20557, "ctx":"initandlisten","msg":"DBException in initAndListen, terminating","attr":{"error":"NonExistentPath: Data directory /data/db not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the 'storage.dbPath' option in the configuration file."}}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"REPL", "id":4784900, "ctx":"initandlisten","msg":"Stepping down the ReplicationCoordinator for shutdown","attr":{"waitTimeMillis":15000}}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"REPL", "id":4794602, "ctx":"initandlisten","msg":"Attempting to enter quiesce mode"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"-", "id":6371601, "ctx":"initandlisten","msg":"Shutting down the FLE Crud thread pool"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"COMMAND", "id":4784901, "ctx":"initandlisten","msg":"Shutting down the MirrorMaestro"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"SHARDING", "id":4784902, "ctx":"initandlisten","msg":"Shutting down the WaitForMajorityService"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"NETWORK", "id":20562, "ctx":"initandlisten","msg":"Shutdown: going to close listening sockets"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"NETWORK", "id":4784905, "ctx":"initandlisten","msg":"Shutting down the global connection pool"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"CONTROL", "id":4784906, "ctx":"initandlisten","msg":"Shutting down the FlowControlTicketholder"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"-", "id":20520, "ctx":"initandlisten","msg":"Stopping further Flow Control ticket acquisitions."}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"NETWORK", "id":4784918, "ctx":"initandlisten","msg":"Shutting down the ReplicaSetMonitor"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"SHARDING", "id":4784921, "ctx":"initandlisten","msg":"Shutting down the MigrationUtilExecutor"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"ASIO", "id":22582, "ctx":"MigrationUtil-TaskExecutor","msg":"Killing all outstanding egress activity."}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"COMMAND", "id":4784923, "ctx":"initandlisten","msg":"Shutting down the ServiceEntryPoint"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"CONTROL", "id":4784928, "ctx":"initandlisten","msg":"Shutting down the TTL monitor"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"CONTROL", "id":6278511, "ctx":"initandlisten","msg":"Shutting down the Change Stream Expired Pre-images Remover"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"CONTROL", "id":4784929, "ctx":"initandlisten","msg":"Acquiring the global lock for shutdown"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"-", "id":4784931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"initandlisten","msg":"Now exiting"}
{"t":{"$date":"2024-01-17T15:17:48.825+05:30"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":100}}
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...none found.
@nimishainjava but you did not run this inside your docker image (you should download the debian version inside your docker image)?
Maybe we should recheck what we are at. So i guess you are working in an macos machine and running your test inside a docker image. Your docker image is based on debian 11.
Is this correct?
@nimishainjava i will close this issue.. reopen if needed..
Hello,
I am not able to resolve the below error:
Caused by: java.lang.IllegalArgumentException: could not resolve package for V6_0:Platform{operatingSystem=Linux, architecture=ARM_64, distribution=Debian, version=DEBIAN_11}
Please do let me know if I am missing anything.