[05:37:39] <groslalo> hi. I am running mongodb version (3.4.10) and using the official C# driver (2.5.0) for operations against it. I am having an issue with capped collection where I am doing bulk-write-inserts. When the collection is nearly full and i add enough data for it to overflow, then the excess data does not show up in the collection. In terms of response returned by the driver, it does say that all inserts were made (number of inserted count
[05:39:24] <groslalo> I have enabled verbose logging but, cannot see any info where the storage writer (wiredtiger) is writing those entries. So, I am wondering how to troubleshoot the situation on the server-side? Would anyone have any guidelines or tips?
[07:56:45] <himanshu> Hi, I am using mongoose and have mongodb running locally. Now I move this database to a third party. So I have changed connection URL provided. But still my server needs local mongodb service to be running. How can I stop that? Please help
[08:03:01] <KekSi> that sounds like you're opening multiple connection pools and one of them is pointing at a local instance
[08:03:19] <KekSi> so either your code or the driver is shit :x
[10:41:10] <doublehp> hello; I ned help to debug a service. mongod is a database for unifi (an other service). the only error message I get is http://paste.debian.net/1014459/ . I know the DB could be corrupted due to "out of disk space"; I do have a backup, but I don't know which files I should restaure , because I don't know where the DB is stored
[10:41:17] <doublehp> and the issue could be on an other file than the DB
[10:41:59] <Derick> doublehp: you need to check the MongoDB log file - usually in /var/log/mongodb
[10:57:47] <doublehp> 2018-03-13T11:57:16.981+0100 I JOURNAL [initandlisten] info preallocateIsFaster couldn't run due to: couldn't open file /var/lib/mongodb/journal/tempLatencyTest for writing errno:9 Bad file descriptor; returning false
[10:57:48] <doublehp> 2018-03-13T11:57:17.038+0100 I STORAGE [initandlisten] exception in initAndListen: 13516 couldn't open file /var/lib/mongodb/journal/j._0 for writing errno:9 Bad file descriptor, terminating
[10:58:20] <Derick> does the mongodb process have permissions to write to /var/lib/mongodb/journal ?
[10:58:47] <doublehp> last debian paste includes a touch-rm test to proove it
[10:59:58] <doublehp> I used to have locking problems with NFS; so, I have moved to sshfs, and my lock tests passed (I have published about it 2y ago somewhere)
[11:01:30] <Derick> sorry, /var/lib/mongodb is on a mounted sshfs?
[11:12:15] <Derick> try stopping the mongodb service, remove the lock file, and start it again?
[11:14:07] <doublehp> trying to move the folder back to local physical disk ...
[11:15:34] <doublehp> interesting; I had forgotten this DB was so ... grrrr http://paste.debian.net/1014466/
[11:16:01] <Derick> 2018-03-13T12:14:59.281+0100 E JOURNAL [initandlisten] Insufficient free space for journal files
[11:16:10] <Derick> I think that was the problem all along then
[11:16:58] <doublehp> remove the journal, same error: info preallocateIsFaster couldn't run due to: couldn't open file /var/lib/mongodb/journal/tempLatencyTest for writing errno:9 Bad file descriptor; returning false
[11:17:46] <doublehp> space issue is when I try using the local physical disk; this issue is the issue why I had moved to NFS/SSHFS
[11:26:46] <Derick> you've now started it with an empty db dir, so it will default to the WiredTiger storage engine
[11:28:00] <Derick> it's odd, it's like your system declines the opening/creation of files
[11:28:32] <doublehp> http://paste.debian.net/1014469/ and this is on local physical storage ... with only 250M free ... so, having 3G available is not as much critical as it claims ...
[11:29:20] <Derick> I don't think it's the freespace, but something else, but I really don't know what.
[11:29:46] <Derick> I have a meeting now. I suggest you email the mongodb-user google groups list with these findings, unless you have a support contract that is.
[11:29:52] <doublehp> shit, I have found a clue ...
[13:14:42] <Robin___> one last question. how can I update to the current date? I thought this would work: db.login.update({ "username": "testuser"}, {$inc: {"login_amounts": 1}}, {$set: {"last_login": new Date()}}); The documentation mentions something about $currentDate, but that one is working as a field?
[13:20:02] <Derick> but using $currentDate is probably better
[13:21:04] <Robin___> thanks. appreciate it. it works great
[16:29:57] <doublehp> Derick: I give up. I disabled all services; I am fed up of having to maintain two daemons with 5 databases that break so easily, consume huge CPU RAM and disk, just t configure a WIFI AP ... so I disabled the services, and if the AP stops working, I through it away
[16:30:20] <Derick> you need a database for a WIFI AP?!
[16:31:34] <doublehp> there are two mongdb daemons (on different ports anddifferent config), with two DB each
[16:31:41] <doublehp> plus a 5th DB inside unifi itself
[16:31:47] <doublehp> plug a java stack consuming RAM
[16:32:28] <doublehp> a classic installation on Windows requires 8 to 40GB of disk; I fought to use only 800M
[16:57:34] <wavenator> Hi everyone. Recently we've got a problem with our deployed mongodb server. Suddenly it just stopped accepting new connections. The last lines from the log were just slow find/update commands. any already-connected client can still talk with the server and run commands. does anyone has any clue what the problem could be?
[17:06:41] <Robin___> I have been trying for an hour to see if a specific person (by _id) liked a post (responds.likes) but cant seem to find the right query. Is it possible with find()? :D https://pastebin.com/ByZd5Z5q
[17:07:29] <Robin___> mongodb is fun but tough sometimes ;D
[17:08:09] <Robin___> I also looked at $elemMatch but it didnt seem to be the right one
[17:57:01] <doublehp> Derick: https://dba.stackexchange.com/questions/186478/mongodb-refuse-to-start-operation-not-permitted mongodb does not support any more ... most kind of mount methods. Had not update since 1 or 2 years, new version is uncompatible with my setup; there are workarounds, I don'tunderstand how to use them
[17:57:48] <doublehp> Derick: in short, even if sshfs is a mount point, it still stinks for mondogb (and NFS sucks even more for other DB services)
[18:38:51] <darshu> 2. whenever i tried to connect /Post data to db, its giving me this error.
[18:38:58] <darshu> (node:23662) DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html