我遵循基本教程使用TurkServer,但我从一开始就收到错误。
我跑步时遇到的错误:meteor --settings settings.json
W20160615-01:19:27.320(-4)? (STDERR)
W20160615-01:19:27.406(-4)? (STDERR) ~/.meteor/packages/meteor-tool/.1.3.3.b5ue33++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20160615-01:19:27.406(-4)? (STDERR)
throw(ex);
W20160615-01:19:27.407(-4)? (STDERR)
^
W20160615-01:19:27.407(-4)? (STDERR) TypeError: Cannot read property 'bcrypt' of undefined
W20160615-01:19:27.407(-4)? (STDERR) at AccountsServer.Accounts._checkPassword (packages/accounts-password/password_server.js:68:33)
W20160615-01:19:27.407(-4)? (STDERR) at ~/interactiveEstimation/.meteor/local/build/programs/server/packages/mizzao_turkserver.js:4881:18
W20160615-01:19:27.407(-4)? (STDERR) at ~/interactiveEstimation/.meteor/local/build/programs/server/boot.js:298:5
=> Exited with code: 8
我的设置文件:
{
"turkserver": {
"adminPassword": "mmaatouq95",
"experiment": {
"limit": {
}
},
"mturk": {
"accessKeyId": "AKIAJDDHTM3IRYMWUX7Q",
"secretAccessKey": "eeTud7Gml3Yz6XD9gWLUZzsJokoie2rEq"
}
}
}
Meteor似乎存在普遍问题,而不是TurkServer(项目文件https://www.dropbox.com/s/ppgbuwv4k3imbt5/interactiveEstimation.zip):
答案 0 :(得分:5)
检查项目时,您的用户不包含bcrypt
条目。
这表示它未正确创建,这会导致所描述的错误。
如果从meteor mongo
数据库控制台中删除用户并重新启动服务器,则应正确创建用户并解决问题。