Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Databases

jsdevtom
jsdevtom
16,963 Points

How can I (get rid of/ solve) the [initandlisten] errors when starting the Mongo shell?

I'm running Ubuntu 16.04. I had Mongo 3.0 installed. I uninstalled it as per the docs. Then reinstalled it according to the same docs in order to update it to the latest stable version. The errors were there in the previous version as well. It just annoys me that after a fresh install so many errors are showing.

How can I get rid of them/ solve them?

$ mongo
MongoDB shell version: 3.2.9
connecting to: test
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
2016-08-22T10:04:30.263+0200 I STORAGE  [main] In File::open(), ::open for '/home/<Computer name>/.mongorc.js' failed with errno:2 No such file or directory
Server has startup warnings: 
2016-08-22T10:04:26.227+0200 I CONTROL  [initandlisten] 
2016-08-22T10:04:26.227+0200 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2016-08-22T10:04:26.227+0200 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2016-08-22T10:04:26.227+0200 I CONTROL  [initandlisten] 
2016-08-22T10:04:26.227+0200 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2016-08-22T10:04:26.227+0200 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2016-08-22T10:04:26.227+0200 I CONTROL  [initandlisten] 
>