trouble enabling HTTP interface

99 views
Skip to first unread message

sd43065

unread,
Jun 16, 2014, 6:31:35 PM6/16/14
to mongod...@googlegroups.com
I'm trying out MongoDB on a Debian Wheezy (v7.5) server but having trouble enabling HTTP interface for monitoring.

The default DB port 27017 seems working fine (I got message "...you are trying to access MongoDB over HTTP..." by visiting http://localhost:27017).

I already added in iptables a rule for opening port 28017 and iptables -L shows the rule does get applied.

However, I can not see http://localhost:28017 ("Unable to connect") and nmap -p 28017 localhost says 443/tcp closed.

Am I missing something?

Please help. Thanks.

sd43065

unread,
Jun 16, 2014, 6:45:39 PM6/16/14
to mongod...@googlegroups.com
By the way. I already set nohttpinterface = false in /etc/mongod.conf.

Tyler Brock

unread,
Jun 16, 2014, 6:56:56 PM6/16/14
to mongod...@googlegroups.com
If you are using MongoDB 2.6 the option has essentially flipped. Now you must specify "httpinterface=true" as it is disabled by default.

Before, it was enabled by default so it was the other way around. Let me know if that works.

-Tyler


On Mon, Jun 16, 2014 at 6:45 PM, sd43065 <sd433...@gmail.com> wrote:
By the way. I already set nohttpinterface = false in /etc/mongod.conf.

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/7446c656-d7fb-4bb8-b368-aacbce515848%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

sd43065

unread,
Jun 16, 2014, 7:34:12 PM6/16/14
to mongod...@googlegroups.com
Hi, Tyler Brock,

Thank you so much! Your tip (using httpinterface=true) really works!

I'm using version 2.6.1. However, mongod.conf still came only with a line for setting nohttpinterface value. I struggled with this issue for quite a few days. I thought it must be my iptables rules not working or something and never guessed it's actually mongodb's configuration.

Thanks again.

Tyler Brock

unread,
Jun 17, 2014, 9:45:55 AM6/17/14
to mongod...@googlegroups.com
Yeah, I totally agree, that is terrible. I made a ticket for this issue: https://jira.mongodb.org/browse/SERVER-14283

You can vote/follow along there.


--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
Reply all
Reply to author
Forward
0 new messages