Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Users #68

Closed
gvenka008c opened this issue Mar 16, 2016 · 7 comments
Closed

Add Users #68

gvenka008c opened this issue Mar 16, 2016 · 7 comments

Comments

@gvenka008c
Copy link

Hi All,

I added a new user using Users > Add screen. After i added the users with the details, i am not able to login with that user. It always says "Nope. Incorrect Credentials!". I tried adding couple other accounts but still got the same error. Any thoughts?

[16/Mar/2016:20:38:36 +0000] "POST /auth/password HTTP/1.1" 400 42 "http://96.119.243.254/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:39.0) Gecko/20100101 Firefox/39.0"
[16/Mar/2016:20:38:38 +0000] "POST /auth/password HTTP/1.1" 400 42 "http://96.119.243.254/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:39.0) Gecko/20100101 Firefox/39.0"

Let me know if any details required. Thanks.

@matejkramny
Copy link
Contributor

Can you take a peek at the database?

@gvenka008c
Copy link
Author

@matejkramny how do i connect to the db? can you tell me the tables that i need to look into?

@matejkramny
Copy link
Contributor

mongo ->

db.users.find()

This can verify your users are being created. If they are, then there may be issue with the session store, so check redis works.

@gvenka008c
Copy link
Author

@matejkramny Here is what I see

root@mongodb:/# mongo
MongoDB shell version: 3.2.4
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
Server has startup warnings:
2016-03-16T19:46:29.051+0000 I CONTROL  [initandlisten]
2016-03-16T19:46:29.051+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2016-03-16T19:46:29.051+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2016-03-16T19:46:29.051+0000 I CONTROL  [initandlisten]
2016-03-16T19:46:29.051+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2016-03-16T19:46:29.051+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2016-03-16T19:46:29.051+0000 I CONTROL  [initandlisten]


> db.users.find()   => no results


> db.users.find(gvenka008c)
2016-03-17T00:35:05.802+0000 E QUERY    [thread1] ReferenceError: dbusers is not defined :
@(shell):1:1

@gvenka008c
Copy link
Author

@matejkramny Any updates?

@matejkramny
Copy link
Contributor

Here's a sample of a few commands which will be useful

root@mongodb:/# mongo
> show dbs
< ... list of databases ... >
> use (pick a db!)
> db.users.find()
> db.users.findOne({ username: "ohai" })

@matejkramny
Copy link
Contributor

@gvenka008c let us know if this didn't work.

The issue may be in session storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants