trouble

23 views
Skip to first unread message

Edem Tsalah

unread,
Jul 25, 2015, 8:55:12 PM7/25/15
to mongodb-dev
i have a series of scripts that a writing to a single mongodb just using pymongo with no orm but after some time the data seems to disappear from their respective collections. The scripts start like four instances of themselves at reboot and wait three minutes before starting to run queries to the database. Sometimes the data randomly comes back and disappears again.

I have tried several approaches to fix the issue but it has the same results. These are what i have tried so far

1. Open one connection every time you want to query the db and close it afterwards. That didn't work because i run out of sockets

2. Open one connection for every instance of a script that is started and never close it. But i read someone that that can also be the issue because the connection that remains open for too long can also cause that issue. That also produced the same result. i should mention that the scripts run continuously till the system goes down or they are killed

The scripts are python 2.7, pymongo 2.*, mongodb 2.4.9. 

However the frontend team is using node and mongoose to access the db.

I really need help and have been stack with this problem for a week now

Asya Kamsky

unread,
Jul 27, 2015, 1:08:35 AM7/27/15
to mongo...@googlegroups.com
This group is for developers *of* MongoDB - you probably want to post this question on MongoDB-user Google group, however to get assistance you will need to provide more information, such as : the version of MongoDB and driver(s) and some example code that sometimes returns data and sometimes doesn't.  Without that at the very least anyone who answers would just be guessing. 

Asya
--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev...@googlegroups.com.
To post to this group, send email to mongo...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-dev.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages