Where can I config MongoDB connectionTimeout or connection pool?

384 views
Skip to first unread message

Sangwon Lee

unread,
Dec 9, 2014, 7:55:55 PM12/9/14
to meteo...@googlegroups.com

I am running a Meteor app on Phusion Passenger environment

I got an error as following:

======================

Raw process output:

Exception in callback of async function: Error: No primary found in set

at /home/www/bookpal/site_www/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/repl_set/repl_set.js:449:45

at null.<anonymous> (/home/www/bookpal/site_www/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/server.js:499:7)

at emit (events.js:95:17)

at null.<anonymous> (/home/www/bookpal/site_www/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:178:15)

at emit (events.js:98:17)

at Socket.<anonymous> (/home/www/bookpal/site_www/programs/server/npm/mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:501:10)

at Socket.emit (events.js:92:17)

at Socket._onTimeout (net.js:326:8)

at Timer.unrefTimeout [as ontimeout] (timers.js:427:13)

======================


I think the cause is related with database connection.

So I want to change database configuration such as connection pool size, connection timeout, etc.

How can I change them?


Sangwon Lee

unread,
Dec 10, 2014, 12:11:48 AM12/10/14
to meteo...@googlegroups.com
I got the workaround.

The cause of the error is Kadira.
Disabling 'Kadira' made all works well.

There is another error in the log file:
==========

Error: EACCES, permission denied

App 34327 stderr:   at [object Object].SystemModel.buildPayload (/home/www/bookpal/site_www/programs/server/packages/meteorhacks_kadira.js:1082:28)

App 34327 stderr:   at Object.Kadira._buildPayload (/home/www/bookpal/site_www/programs/server/packages/meteorhacks_kadira.js:1341:42)

App 34327 stderr:   at /home/www/bookpal/site_www/programs/server/packages/meteorhacks_kadira.js:1420:26

===========

It seems as following:

1. Kadira tried to write something in the webapp directory but fail.
2. Passenger restart the app immediately. 
3. DB connection do not works well.

It is not certain, just my conjecture.

2014년 12월 10일 수요일 오전 9시 55분 55초 UTC+9, Sangwon Lee 님의 말:

Arunoda Susiripala

unread,
Dec 10, 2014, 12:21:58 AM12/10/14
to meteo...@googlegroups.com
Hey, not sure about the exact issue.
But does not write or do anything to your files on the disk.

I believe this is due to the way how passenger install meteor packages. Again, I'm not sure about that too.

--
You received this message because you are subscribed to the Google Groups "meteor-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meteor-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meteor-talk/3510c024-cb54-4533-b1e9-fd5cf90f6b91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arunoda Susiripala

unread,
Dec 10, 2014, 12:23:17 AM12/10/14
to meteo...@googlegroups.com
BTW: We'll continue this discussion on the Kadira git repo.

Sangwon Lee

unread,
Dec 11, 2014, 4:11:51 AM12/11/14
to meteo...@googlegroups.com
After various test, I got to know that it is not related with kadira.

I made the same error without kadira.

The cause of the error may be database connection problem.


2014년 12월 10일 수요일 오전 9시 55분 55초 UTC+9, Sangwon Lee 님의 말:

I am running a Meteor app on Phusion Passenger environment

Reply all
Reply to author
Forward
0 new messages