WebFaction
Community site: login faq

I followed the guide at https://docs.webfaction.com/software/mongodb.html to set up MongoDB. Ultimately, my hope was to make the DB available remotely so I could do remote development against it. I created a new website and tied the MongoDB app to my domain at http://mongo.domain.com. I added users to the DB and set up auth (I think). I then started MongoDB using:

mongod --dbpath $HOME/webapps/mongodb/data/ --port number --auth

Now when I visit http://mongo.domain.com in a browser, I see the following message:

You are trying to access MongoDB on the native driver port.
For http diagnostic access, add 1000 to the port number

So everything seems to be wired up correctly. Now, in my code to connect to the DB I point to port 80 since that's the port exposed by WebFaction externally. However, when I try to connect to the DB I get an error that "ids don't match."

Am I missing something in my config? Can I expose MongoDB in this way on WebFaction?

asked 13 Apr '12, 13:40

tylerbutler
312
accept rate: 0%


On our servers you can not connect to non-HTTP ports remotely unless we open them. Submit a support ticket and we can open the port the application is assigned to on a dedicated IP address.

permanent link

answered 13 Apr '12, 17:17

johns
5.4k312
accept rate: 23%

You can also setup a tunnel through SSH like so:

ssh user@user.webfactional.com -L 27017:localhost:27017 -N
permanent link

answered 06 May '12, 07:52

Grepsy
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×29

question asked: 13 Apr '12, 13:40

question was seen: 5,705 times

last updated: 06 May '12, 07:52

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM