From owner-freebsd-ports-bugs@freebsd.org Mon Apr 23 12:47:27 2018 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8C525FB98B4 for ; Mon, 23 Apr 2018 12:47:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 248D973BF5 for ; Mon, 23 Apr 2018 12:47:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id DA010FB98B3; Mon, 23 Apr 2018 12:47:26 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8051FB98B2 for ; Mon, 23 Apr 2018 12:47:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5531973BF4 for ; Mon, 23 Apr 2018 12:47:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 5CD0E314B for ; Mon, 23 Apr 2018 12:47:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3NClPiU080498 for ; Mon, 23 Apr 2018 12:47:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3NClPgX080497 for ports-bugs@FreeBSD.org; Mon, 23 Apr 2018 12:47:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 227716] databases/mongodb36: createUser fails Date: Mon, 23 Apr 2018 12:47:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vermaden@interia.pl X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2018 12:47:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227716 Bug ID: 227716 Summary: databases/mongodb36: createUser fails Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: vermaden@interia.pl CC: dev@dudu.ro Flags: maintainer-feedback?(dev@dudu.ro) CC: dev@dudu.ro Created attachment 192746 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D192746&action= =3Dedit truss output Hi, I am trying to create 5 node replica set (4 data nodes + 1 arbiter). FreeBSD 11.1-RELEASE. Nodes have connectivity, I am able to form the cluster but it fails when I = want to add user. Truss output attached. root@mongo0:~ # mongo MongoDB shell version v3.6.3 connecting to: mongodb://127.0.0.1:27017 MongoDB server version: 3.6.3 Server has startup warnings:=20 2018-04-23T16:06:53.312+0200 I CONTROL [initandlisten]=20 2018-04-23T16:06:53.312+0200 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. 2018-04-23T16:06:53.312+0200 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. 2018-04-23T16:06:53.312+0200 I CONTROL [initandlisten]=20 > use admin switched to db admin > rs.initiate( ... { ... _id : "replica0", ... members: [ ... { _id: 0, host: "mongo0:27017" }, ... { _id: 1, host: "mongo1:27017" }, ... { _id: 2, host: "mongo2:27017" }, ... { _id: 3, host: "mongo3:27017" } ... ] ... } ... ) { "ok" : 1, "operationTime" : Timestamp(1524492742, 1), "$clusterTime" : { "clusterTime" : Timestamp(1524492742, 1), "signature" : { "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA=3D"= ), "keyId" : NumberLong(0) } } } replica0:SECONDARY>=20 replica0:SECONDARY>=20 replica0:SECONDARY>=20 replica0:SECONDARY>=20 replica0:SECONDARY>=20 replica0:SECONDARY>=20 replica0:SECONDARY>=20 replica0:SECONDARY>=20 replica0:PRIMARY>=20 replica0:PRIMARY>=20 replica0:PRIMARY>=20 replica0:PRIMARY>=20 replica0:PRIMARY> db.createUser( ... { ... user: "admin", ... pwd: "ADMIN-PASSWORD", ... roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] ... } ... ) 2018-04-23T16:12:56.169+0200 E QUERY [thread1] Error: error doing query: failed: network error while attempting to run command 'createUser' on host '127.0.0.1:27017' : DB.prototype.runCommand@src/mongo/shell/db.js:168:1 DB.prototype.createUser@src/mongo/shell/db.js:1420:19 @(shell):1:1 2018-04-23T16:12:56.177+0200 I NETWORK [thread1] trying reconnect to 127.0.0.1:27017 (127.0.0.1) failed 2018-04-23T16:12:56.178+0200 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(connect), reason: Connection refused 2018-04-23T16:12:56.178+0200 I NETWORK [thread1] reconnect 127.0.0.1:27017 (127.0.0.1) failed failed=20 > use admin switched to db admin > db.createUser( ... { ... user: "admin", ... pwd: "ADMIN-PASSWORD", ... roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] ... } ... ) 2018-04-23T16:13:23.675+0200 I NETWORK [thread1] trying reconnect to 127.0.0.1:27017 (127.0.0.1) failed 2018-04-23T16:13:23.676+0200 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(connect), reason: Connection refused 2018-04-23T16:13:23.676+0200 I NETWORK [thread1] reconnect 127.0.0.1:27017 (127.0.0.1) failed failed=20 2018-04-23T16:13:23.677+0200 E QUERY [thread1] Error: socket exception [CONNECT_ERROR] for couldn't connect to server 127.0.0.1:27017, connection attempt failed : runClientFunctionWithRetries@src/mongo/shell/session.js:346:31 runCommand@src/mongo/shell/session.js:412:25 DB.prototype._runCommandImpl@src/mongo/shell/db.js:145:16 DB.prototype.runCommand@src/mongo/shell/db.js:161:20 DB.prototype.createUser@src/mongo/shell/db.js:1420:19 @(shell):1:1 >=20 >=20 bye root@mongo0:~ # mongo MongoDB shell version v3.6.3 connecting to: mongodb://127.0.0.1:27017 2018-04-23T16:13:27.198+0200 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(connect), reason: Connection refused 2018-04-23T16:13:27.201+0200 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed : connect@src/mongo/shell/mongo.js:251:13 @(connect):1:6 exception: connect failed root@mongo0:~ # serv root@mongo0:~ # tail /var/log/messages Apr 23 16:00:00 mongo0 newsyslog[64007]: logfile turned over due to size>10= 0K Apr 23 16:12:56 mongo0 kernel: pid 84290 (mongod), uid 922: exited on signa= l 6 root@mongo0:~ # mongo --host 10.0.10.13 MongoDB shell version v3.6.3 connecting to: mongodb://10.0.10.13:27017/ MongoDB server version: 3.6.3 Server has startup warnings:=20 2018-04-23T14:34:46.957+0200 I CONTROL [initandlisten]=20 2018-04-23T14:34:46.957+0200 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. 2018-04-23T14:34:46.957+0200 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. 2018-04-23T14:34:46.958+0200 I CONTROL [initandlisten]=20 > use admin switched to db admin > rs.initiate( ... { ... _id : "replica0", ... version: 1, ... members: [ ... { _id: 0, host: "mongo0:27017" }, ... { _id: 1, host: "mongo1:27017" }, ... { _id: 2, host: "mongo2:27017" }, ... { _id: 3, host: "mongo3:27017" } ... ] ... } ... ) { "ok" : 1, "operationTime" : Timestamp(1524487027, 1), "$clusterTime" : { "clusterTime" : Timestamp(1524487027, 1), "signature" : { "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA=3D"= ), "keyId" : NumberLong(0) } } } replica0:SECONDARY>=20 replica0:SECONDARY>=20 replica0:SECONDARY>=20 replica0:SECONDARY>=20 replica0:SECONDARY>=20 replica0:SECONDARY>=20 replica0:PRIMARY>=20 replica0:PRIMARY>=20 replica0:PRIMARY>=20 replica0:PRIMARY>=20 replica0:PRIMARY>=20 replica0:PRIMARY>=20 replica0:PRIMARY>=20 replica0:PRIMARY>=20 replica0:PRIMARY>=20 replica0:PRIMARY> use admin switched to db admin replica0:PRIMARY> db.createUser( ... { ... user: "admin", ... pwd: "ADMIN-PASSWORD", ... roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] ... } ... ) 2018-04-23T14:37:54.460+0200 E QUERY [thread1] Error: error doing query: failed: network error while attempting to run command 'createUser' on host '10.0.10.13:27017' : DB.prototype.runCommand@src/mongo/shell/db.js:168:1 DB.prototype.createUser@src/mongo/shell/db.js:1420:19 @(shell):1:1 2018-04-23T14:37:54.528+0200 I NETWORK [thread1] trying reconnect to 10.0.10.13:27017 (10.0.10.13) failed 2018-04-23T14:37:54.528+0200 W NETWORK [thread1] Failed to connect to 10.0.10.13:27017, in(connect), reason: Connection refused 2018-04-23T14:37:54.528+0200 I NETWORK [thread1] reconnect 10.0.10.13:27017 (10.0.10.13) failed failed=20 2018-04-23T14:37:54.538+0200 I NETWORK [thread1] trying reconnect to 10.0.10.13:27017 (10.0.10.13) failed 2018-04-23T14:37:54.539+0200 W NETWORK [thread1] Failed to connect to 10.0.10.13:27017, in(checking socket for error after poll), reason: Connect= ion refused=20 2018-04-23T14:37:54.539+0200 I NETWORK [thread1] reconnect 10.0.10.13:27017 (10.0.10.13) failed failed=20 Regards. --=20 You are receiving this mail because: You are the assignee for the bug.=