Hello,
I have SSH tunneling set up in order to enable connection to Amazon Document DB via EC2.
When I use mongosh everything seems to work:
mongosh --ssl --username=username--password=password --sslCAFile=global-bundle.pem --sslAllowInvalidHostnames --authenticationDatabase=admin
While using mongostat I keep getting error.
mongostat --host localhost --port 27017 --username username --password password --authenticationDatabase admin --ssl --sslCAFile=global-bundle.pem --sslAllowInvalidHostnames
2024-06-16T15:28:45.813+0200 WARNING: On some systems, a password provided directly using --password may be visible to system status programs such as `ps` that may be invoked by other users. Consider omitting the password to provide it via stdin, or using the --config option to specify a configuration file with the password.
2024-06-16T15:28:45.814+0200 WARNING: --sslAllowInvalidCertificates and --sslAllowInvalidHostnames are deprecated, please use --tlsInsecure instead
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x101299034]
goroutine 1 [running]:
github.com/mongodb/mongo-tools/mongostat/status.ReadMapped(0x140001a84e0, 0x1400045a240, 0x1012aeb8d?)
/System/Volumes/Data/data/mci/f90a6f95236fc6c209815eeff662d90f/src/github.com/mongodb/mongo-tools/mongostat/status/readers.go:261 +0x24
github.com/mongodb/mongo-tools/mongostat/stat_consumer/line.NewStatLine(0x10146d480?, 0x14000259ad0?, {0x1400030a600, 0x11, 0x140001f7c14?}, 0x140000021a0?)
/System/Volumes/Data/data/mci/f90a6f95236fc6c209815eeff662d90f/src/github.com/mongodb/mongo-tools/mongostat/stat_consumer/line/line.go:42 +0x12c
github.com/mongodb/mongo-tools/mongostat/stat_consumer.(*StatConsumer).Update(0x14000268bd0, 0x1400045a240)
/System/Volumes/Data/data/mci/f90a6f95236fc6c209815eeff662d90f/src/github.com/mongodb/mongo-tools/mongostat/stat_consumer/stat_consumer.go:54 +0x274
github.com/mongodb/mongo-tools/mongostat.(*SyncClusterMonitor).Monitor(0x140001a84f8, 0x1400022fb90?)
/System/Volumes/Data/data/mci/f90a6f95236fc6c209815eeff662d90f/src/github.com/mongodb/mongo-tools/mongostat/mongostat.go:143 +0x178
github.com/mongodb/mongo-tools/mongostat.(*MongoStat).Run(0x140001c8690?)
/System/Volumes/Data/data/mci/f90a6f95236fc6c209815eeff662d90f/src/github.com/mongodb/mongo-tools/mongostat/mongostat.go:416 +0x84
main.main()
/System/Volumes/Data/data/mci/f90a6f95236fc6c209815eeff662d90f/src/github.com/mongodb/mongo-tools/mongostat/main/mongostat.go:220 +0xf74
What can I do to fix it?