[SERVER-5891] TTLMonitor complains with --auth Created: 21/May/12  Updated: 11/Jul/16  Resolved: 29/May/12

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: None
Fix Version/s: 2.1.2

Type: Bug Priority: Minor - P4
Reporter: Tad Marshall Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Tested on Windows


Operating System: ALL
Participants:

 Description   

Without creating an admin user, start mongod with "--auth". TTLMonitor issues error messages. This may be expected; it just looks funny.

18:59:41.88 G:\MongoDB\tadmarshall\mongo> mongod --auth
db level locking enabled: 1
Mon May 21 18:59:44 [initandlisten] MongoDB starting : pid=1944 port=27017 dbpath=\data\db\ 64-bit host=MissLucy
Mon May 21 18:59:44 [initandlisten]
Mon May 21 18:59:44 [initandlisten] ** NOTE: This is a development version (2.1.2-pre-) of MongoDB.
Mon May 21 18:59:44 [initandlisten] **       Not recommended for production.
Mon May 21 18:59:44 [initandlisten]
Mon May 21 18:59:44 [initandlisten] db version v2.1.2-pre-, pdfile version 4.5
Mon May 21 18:59:44 [initandlisten] git version: 0a5953d46bb50c12095054ab434a56fd9e7f1172
Mon May 21 18:59:44 [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') BOOST_LIB_VERSION=1_49
Mon May 21 18:59:44 [initandlisten] options: { auth: true }
Mon May 21 18:59:44 [initandlisten] journal dir=/data/db/journal
Mon May 21 18:59:44 [initandlisten] recover : no journal files present, no recovery needed
Mon May 21 18:59:44 [websvr] admin web console waiting for connections on port 28017
Mon May 21 18:59:44 [initandlisten] waiting for connections on port 27017
Mon May 21 19:00:44 [TTLMonitor] assertion 10057 unauthorized db:admin ns:admin.system.indexes lock type:0 client:0.0.0.0 ns:admin.system.indexes query:{ expireAfterSeconds: { $exists: true } }
Mon May 21 19:00:44 [TTLMonitor] { $err: "unauthorized db:admin ns:admin.system.indexes lock type:0 client:0.0.0.0", code: 10057 }
Mon May 21 19:00:44 [TTLMonitor] ERROR: backgroundjob TTLMonitorerror: invalid parameter: expected an object ()
Mon May 21 19:00:44 [TTLMonitor] ERROR: Client::shutdown not called: TTLMonitor
Mon May 21 19:00:44 [clientcursormon] mem (MB) res:28 virt:94 mapped:0



 Comments   
Comment by auto [ 29/May/12 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: ttl thread has access to everything SERVER-5891
Branch: master
https://github.com/mongodb/mongo/commit/012f1a16ba2630f16eb4329e37627a4868f6e4c8

Generated at Thu Feb 08 03:10:10 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.