Error setting TTL index on collection - mongodb

I'm getting the following issue using KeystoneJs v3.
Hosted on Azure, with a MongoLab hosting the database. I don't get this error whilst accessing the db via KeystoneJs on localhost
I'm pretty fresh to KeystoneJs, node and mongo, so apologies if this has been asked and solved many times before.
Thu Feb 19 2015 21:23:13 GMT+0000 (Coordinated Universal Time): Unaught exception: Error: Error setting TTL index on collection : app_sessions
at D:\home\site\wwwroot\node_modules\connect-mongo\lib\connect-mongo.js:169:23
at D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\db.js:1482:46
at D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\db.js:1615:20
at D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\cursor.js:169:22
at D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\cursor.js:700:39
at Cursor.close (D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\cursor.js:989:5)
at Cursor.wrappedCursorClose [as close] (D:\home\site\wwwroot\node_modules\newrelic\lib\instrumentation\mongodb.js:226:20)
at commandHandler (D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\cursor.js:700:21)
at D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\db.js:1888:9
at Server.Base._callHandler (D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\connection\base.js:453:41)
at D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\connection\server.js:487:18
at MongoReply.parseBody (D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\responses\mongo_reply.js:68:5)
at null.<anonymous> (D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\connection\server.js:445:20)
at emit (events.js:95:17)
at null.<anonymous> (D:\home\site\wwwroot\node_modules\connect-mongo\node_modules\mongodb\lib\mongodb\connection\connection_pool.js:201:13)
at emit (events.js:98:17)

Related

Unable to start keycloak 19 in production mode

we have keycloak 14 connected to an Amazon RDS Aurora PostgreSQL and now trying to update to Keycloak 19 with the same DB but is failing with the below error
2022-09-20 09:54:56,959 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to start server in (production) mode
2022-09-20 09:54:56,960 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: ISPN000324: Cache 'realms' is in 'STOPPING' state and this is an invocation not belonging to an on-going transaction, so it does not accept new invocations. Either restart it or recreate the cache container.
Any help would be appreciated.

Pencilblue installation

I am pretty new to mean stack development, but would like to learn. While trying to run pencilblue using pbctrl start, I get following error:
Error message
Override file [/Users/Illusion/peter/config.js] will be applied.
2015-10-12T12:36:29.683Z - info: [M] SystemStartup: Log Level is: info
2015-10-12T12:36:29.992Z - info: [M] System[M]: 1 workers spawned. Listening for disconnects.
Override file [/Users/Illusion/peter/config.js] will be applied.
2015-10-12T12:36:30.231Z - info: [1] SystemStartup: Log Level is: info
/Users/Illusion/peter/node_modules/mongodb/lib/server.js:228
process.nextTick(function() { throw err; })
^
Error: MongoError: connect ECONNREFUSED 127.0.0.1:27017 - mongodb://127.0.0.1:27017/pencilblue
Is your instance running?
at /Users/Illusion/peter/include/dao/db_manager.js:84:31
at /Users/Illusion/peter/node_modules/mongodb/lib/mongo_client.js:236:20
at /Users/Illusion/peter/node_modules/mongodb/lib/db.js:203:14
at null.<anonymous> (/Users/Illusion/peter/node_modules/mongodb/lib/server.js:226:9)
at g (events.js:260:16)
at emitTwo (events.js:87:13)
at emit (events.js:172:7)
at null.<anonymous> (/Users/Illusion/peter/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:255:68)
at g (events.js:260:16)
at emitTwo (events.js:87:13)
Override file [/Users/Illusion/peter/config.js] will be applied.
2015-10-12T12:36:30.900Z - info: [2] SystemStartup: Log Level is: info
/Users/Illusion/peter/node_modules/mongodb/lib/server.js:228
process.nextTick(function() { throw err; })
Can you please suggest what has been done wrong?
It looks like MongoDB isn't running. ECONNREFUSED 127.0.0.1:27017 means that PencilBlue is trying to access MongoDB on localhost using port 27017. Ensure that MongoDB is running on that port and restart PencilBlue.

MongoDB 2.6.6 crashed with "Invalid access at address"

Running MongoDB on my company's QA env, I ran into this error in the log:
2015-02-22T04:48:06.194-0500 [rsHealthPoll] SEVERE: Invalid access at address: 0
2015-02-22T04:48:06.290-0500 [rsHealthPoll] SEVERE: Got signal: 11 (Segmentation fault).
Backtrace:0xf62526 0xf62300 0xf6241f 0x7fc70b581710 0xca12c2 0xca14e7 0xca3bb6 0xf02995 0xefb6d8 0xf9af1c 0x7fc70b5799d1 0x7fc70a2d28fd
/usr/bin/mongod(_ZN5mongo15printStackTraceERSo+0x26) [0xf62526]
/usr/bin/mongod() [0xf62300]
/usr/bin/mongod() [0xf6241f]
/lib64/libpthread.so.0(+0xf710) [0x7fc70b581710]
/usr/bin/mongod(_ZN5mongo21ReplSetHealthPollTask12tryHeartbeatEPNS_7BSONObjEPi+0x52) [0xca12c2]
/usr/bin/mongod(_ZN5mongo21ReplSetHealthPollTask17_requestHeartbeatERNS_13HeartbeatInfoERNS_7BSONObjERi+0xf7) [0xca14e7]
/usr/bin/mongod(_ZN5mongo21ReplSetHealthPollTask6doWorkEv+0x96) [0xca3bb6]
/usr/bin/mongod(_ZN5mongo4task4Task3runEv+0x25) [0xf02995]
/usr/bin/mongod(_ZN5mongo13BackgroundJob7jobBodyEv+0x128) [0xefb6d8]
/usr/bin/mongod() [0xf9af1c]
/lib64/libpthread.so.0(+0x79d1) [0x7fc70b5799d1]
/lib64/libc.so.6(clone+0x6d) [0x7fc70a2d28fd]
It seems there's some segmentation fault in rsHealthPoll.
This is from a mongod instance running as part of a replica set in a shard-ready cluster (2 mongods + 1 arbiter running with config servers and mongos processes).
This DB mostly receives writes of new records, periodically updating a boolean to True for some records, and some reads, according to user activity querying it. (Single collection at the moment)
Googling this error only gave me other, older, already-solved segmentation fault bugs in MongoDB Jira.
Anyone seen this recently or knows the reason?

Mongo DB Remote Server Connection Issue in Meteor?

I need to know about the Mongo DB Remote Server Connection using in Meteor.As i did something shown below :
database = new MongoInternals.RemoteCollectionDriver("mongodb://x.x.x.x:3001/dbname");
I got the below error :
I20150121-11:51:14.066(5.5)? Exception in callback of async function: Error: failed to connect to [x.x.x.x:3001]
I20150121-11:51:14.066(5.5)? at null.<anonymous> (/home/abc/.meteor/packages/mongo/.1.0.8.hj5n7c++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongodb/connection/server.js:536:74)
I20150121-11:51:14.066(5.5)? at emit (events.js:106:17)
I20150121-11:51:14.066(5.5)? at null.<anonymous> (/home/abc/.meteor/packages/mongo/.1.0.8.hj5n7c++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:150:15)
I20150121-11:51:14.066(5.5)? at emit (events.js:98:17)
I20150121-11:51:14.066(5.5)? at Socket.<anonymous> (/home/abc/.meteor/packages/mongo/.1.0.8.hj5n7c++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongodb/connection/connection.js:516:10)
I20150121-11:51:14.067(5.5)? at Socket.emit (events.js:95:17)
I20150121-11:51:14.067(5.5)? at net.js:440:14
I20150121-11:51:14.067(5.5)? at process._tickCallback (node.js:419:13)
How to solve the above error using Meteor.So please suggest me what to do for this.

Error during mongo startup

When I type mongo on command prompt than output like
~$ mongo
MongoDB shell version: 2.2.3
connecting to: test
But when I type mongo 127.0.0.1:28017/stu1
output :-
MongoDB shell version: 2.2.3
connecting to: 127.0.0.1:28017/stu1
Mon Mar 10 16:56:01 DBClientCursor::init call() failed
Mon Mar 10 16:56:01 Error: Error during mongo startup. :: caused by :: 10276
DBClientBase::findN: transport error: 127.0.0.1:28017 ns: admin.$cmd query: { whatsmyuri: 1 } src/mongo/shell/mongo.js:93
exception: connect failed
OS :- ubuntu 12.04
So please help me to solve this error.
28017 is the default port for the HTTP admin interface, so if your config is allowing HTTP, you should use a web browser to access it http://127.0.0.1:28017/
You're trying to use mongo shell to access HTTP service.
To have access to the database using HTTP protocol then use ~$ mongod --rest to start the db. Now call http://127.0.0.1:28017/stu1/coll_name in the web browser which list all the documents in your collection.