Error in MongoDB Pod

Hello Team,

I have installed StackStorm successfully on my servers, and when try to logging into MongoDB pod, I’m getting below error.

$ kubectl exec -it my-st2-mongodb-ha-2 – mongo
MongoDB shell version v3.4.21
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.21
Welcome to the MongoDB shell.
For interactive help, type “help”.
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
2019-07-09T08:57:41.476+0000 I STORAGE [main] In File::open(), ::open for ‘/home/mongodb/.mongorc.js’ failed with No such file or directory
rs0:SECONDARY>

Is this a common error?

Why do you think it’s an error that prevents you to work with the mongo shell?
The mongo terminal works, can accept user input and query the DB.

I just tried that:

$ kubectl exec -it donating-angelfish-mongodb-ha-0 -- mongo mydb -u admin -p *** --authenticationDatabase admin
MongoDB shell version v3.4.20
connecting to: mongodb://127.0.0.1:27017/mydb
MongoDB server version: 3.4.20
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
	http://docs.mongodb.org/
Questions? Try the support group
	http://groups.google.com/group/mongodb-user
2019-07-09T17:54:22.472+0000 I STORAGE  [main] In File::open(), ::open for '/home/mongodb/.mongorc.js' failed with No such file or directory
Server has startup warnings: 
2019-07-09T17:27:30.906+0000 I STORAGE  [initandlisten] 
2019-07-09T17:27:30.906+0000 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2019-07-09T17:27:30.906+0000 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
rs0:PRIMARY> help
	db.help()                    help on db methods
	db.mycoll.help()             help on collection methods
	sh.help()                    sharding helpers
	rs.help()                    replica set helpers
	help admin                   administrative help
	help connect                 connecting to a db help
	help keys                    key shortcuts
	help misc                    misc things to know
	help mr                      mapreduce

	show dbs                     show database names
	show collections             show collections in current database
	show users                   show users in current database
	show profile                 show most recent system.profile entries with time >= 1ms
	show logs                    show the accessible logger names
	show log [name]              prints out the last segment of log in memory, 'global' is default
	use <db_name>                set current database
	db.foo.find()                list objects in collection foo
	db.foo.find( { a : 1 } )     list objects in foo where a == 1
	it                           result of the last line evaluated; use to further iterate
	DBQuery.shellBatchSize = x   set default number of items to display on shell
	exit                         quit the mongo shell
rs0:PRIMARY> show dbs
admin  0.000GB
local  0.001GB
st2    0.003GB
test   0.000GB
rs0:PRIMARY> 
1 Like