PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 6th of December, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[10:14:05] <tangorri> hi
[10:14:11] <Derick> hi
[10:14:24] <tangorri> I try to create user but got `Error: couldn't add user: Use of SCRAM-SHA-256 requires undigested passwords`
[10:15:13] <Derick> interesting that you mention that. I'm just trying to debug that myself
[10:15:32] <tangorri> :)
[10:16:54] <Derick> can you show how you're adding passwords?
[10:17:33] <tangorri> ok succed force (should be default) mechanisms: [ 'SCRAM-SHA-256'], passwordDigestor: 'server'
[10:19:24] <tangorri> hmmm can't connect with it btw
[10:20:20] <tangorri> auth is really complicated with mongo
[10:20:52] <Derick> I know
[10:21:04] <Derick> auth & roles both
[10:27:10] <tangorri> I have done; use dbApp; db.createUser; <= user must be added into their own db right, not in admin ?
[10:27:42] <tangorri> hmmm ok successfully connected with mongo compass
[10:27:49] <tangorri> the cli client must be out of date
[10:28:22] <Derick> I usually would create users in admin
[10:28:27] <Derick> that's perhaps what the CLI expects
[10:28:33] <tangorri> ho
[10:29:53] <tangorri> then the relation with db for the user is on ...roles : [ ..., db: 'here?' ] ?
[10:30:01] <tangorri> I will try that
[10:31:03] <tangorri> how do I remove the user from the dbApp so ?
[10:31:29] <tangorri> googled :d
[10:34:13] <tangorri> do you guys create users on admin db or on dbItself ?
[10:34:18] <tangorri> typically
[10:35:02] <tangorri> hmmm Derick fail anyway using admin db user
[10:35:40] <tangorri> need to get recent mogo client
[10:39:48] <Derick> oh, you have an old client?
[10:39:56] <Derick> tbh, I don't know how auth works either
[12:18:16] <tangorri> Derick, work great from every clients, using users on its own db
[12:18:32] <Derick> ok, so it was just an outdated client?
[12:18:38] <tangorri> yes
[12:18:46] <tangorri> :)
[12:19:14] <Derick> I think that could be my problem too then
[12:19:32] <tangorri> works now great but to answer the question before, seems that user need to exist on its own db
[12:19:36] <Derick> https://evergreen.mongodb.com/task/mongo_php_driver_tests_php5__versions~4.0_php_versions~5.5_os_php5~rhel71_power8_test_replicaset_auth_24d651a689b5f28c34f19fabccb2b74d98f105d8_18_12_04_16_06_07 fails currently with this error:
[12:19:45] <Derick> OperationFailure: Use of SCRAM-SHA-256 requires undigested passwords
[12:19:47] <Derick> 2018-12-04 20:46:27,953 [DEBUG] mongo_orchestration.apps:55 - send_result(500)
[12:19:52] <Derick> So I suppose I have an old py-mongo on that machine
[12:20:11] <tangorri> Derick, I needed to specify mechanism and digester
[12:20:29] <Derick> tangorri: yeah, but for me th eonly place where this fails is on *this* specific host
[12:20:57] <tangorri> this ?
[12:21:10] <tangorri> you mean from php ?
[12:21:35] <tangorri> sry
[12:21:37] <Derick> no, we use pymongo to set-up the environment for testing the PHP driver
[12:22:27] <tangorri> sorry I can't read that log
[12:22:34] <Derick> oh, sorry :-/
[16:36:30] <jim87> Hello! I've got the following update query: db.sampled.update({'profile.generics._id': {$in: ['2854']}}, {$pull: {'profile.generics': {$elemMatch: {'_id': {$in: ['2854']}}}}}, {'multi': true}) - the problem is that it matches the documents, but it will modify no one
[16:36:34] <jim87> How is it possible?
[16:37:19] <jim87> (nMatched: 8, nUpserted: 0, nModified: 0)