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

cann't login in #16

Open
widora opened this issue Oct 22, 2016 · 3 comments
Open

cann't login in #16

widora opened this issue Oct 22, 2016 · 3 comments

Comments

@widora
Copy link

widora commented Oct 22, 2016

error: Email address or password is not correct!
my config.js is:
admin:{
'widora@qq.com': '12345678' // Administrator account of IoTgo platform
},

but cann't login.

the log:
root@iZ285zrpk4eZ:~/IoTgo# DEBUG="iotgo" PORT=3000 ./bin/www
iotgo Express server listening on port 3000 +0ms
iotgo Connect to DB successful! +180ms
GET /login 302 12.267 ms - 70
POST /api/user/login 200 28.361 ms - 53

@mohamedmostafaa
Copy link

iotgo Connect to DB failed! +291ms
any help

@mohamedmostafaa
Copy link

iotgo MongoError: auth fails
at Object.toError (/home/pi/IoTgo/node_modules/mongodb/lib/mongodb/utils.js:114:11)
at /home/pi/IoTgo/node_modules/mongodb/lib/mongodb/db.js:1196:31
at /home/pi/IoTgo/node_modules/mongodb/lib/mongodb/db.js:1905:9
at Server.Base._callHandler (/home/pi/IoTgo/node_modules/mongodb/lib/mongodb/connection/base.js:453:41)
at /home/pi/IoTgo/node_modules/mongodb/lib/mongodb/connection/server.js:488:18
at MongoReply.parseBody (/home/pi/IoTgo/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
at . (/home/pi/IoTgo/node_modules/mongodb/lib/mongodb/connection/server.js:446:20)
at emitOne (events.js:96:13)
at emit (events.js:188:7)
at . (/home/pi/IoTgo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:207:13)
at emitTwo (events.js:106:13)
at emit (events.js:191:7)
at Socket. (/home/pi/IoTgo/node_modules/mongodb/lib/mongodb/connection/connection.js:440:22)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:172:18) +6ms

@mohamedmostafaa
Copy link

iotgo Error: failed to connect to [localhost:27017]

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

1 participant