WebFaction
Community site: login faq

I am using version 2.4.4, followed the procedures at http://docs.webfaction.com/software/mongodb.html and am using Mongoid with Ruby on Rails. I also have created a user at the db I am using with the "userAdminAnyDatabase" permission and am using it with this rails mongoid config:

production:
  sessions:
    default:
      database: <table>
      hosts:
        - localhost:<port>
      username: <user>
      password: <password>

but I am still getting: "failed with error 16550: "not authorized for query on

"

Is there something I am missing? Perhaps a special user I need to create?

asked 28 Jun '13, 21:51

Ygam Retuta
136
accept rate: 0%


Can you execute queries directly logged in as that user?

permanent link

answered 29 Jun '13, 17:07

johns
5.4k312
accept rate: 23%

yes. and I am perfectly positive it's the same user I use in my rails app config

(01 Jul '13, 03:05) Ygam Retuta

Trying to log the failing query would be the next step. I have never done this with mongo and rails, there is a module which is available here which seems suited for the task.

(01 Jul '13, 17:09) johns
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:

×81
×29
×28

question asked: 28 Jun '13, 21:51

question was seen: 8,646 times

last updated: 01 Jul '13, 17:09

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