PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 8th of August, 2019

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[07:40:22] <benoitc> anyone has some experience to embed mongodb in gitlab ci? anyway to check it is running after launching it as a service?
[13:28:49] <lope> I've installed mongodb-org (4.0) in debian 9 stretch after adding the mongo repo. the apt install completed successfully, and dpkg shows mongodb-org status is ii which means it's installed. However I can't find the mongo service, looking via either `systemctl list-units --all | grep mongo` or `ls /etc/init.d/` any ideas?
[14:46:12] <Jackneill> hi
[14:47:23] <Jackneill> when i find() having an empty string vs with "omitempty" not having it is the same, when i search for a value with a filter? like myval=="", would an empty string satisfy the condition?
[14:47:34] <Jackneill> i mean the lack of the column.
[14:52:14] <mainnet> Hey! What are some of the ways we can backup mongodb? Would copying the `var/lib/mongo` over to another computer seem sensible?
[15:01:22] <synthmeat> mainnet: mongodump with oplog replay or backup at (journaling) file system level (say, xfs)
[15:05:45] <mainnet> synthmeat, Yeah, I tried mongodump but that just gave me "Failed: error getting database names: not authorized on admin to execute command" and also what would happend if I populate my `var/lib/mongo` with the remote mongodb's ?
[15:07:05] <synthmeat> mainnet: i'm not sure what would happen tbh. you should use mongorestore for that. and figure out syntax issue you're having with mongodump, it's essential part of working with mongo, imho.
[15:08:04] <synthmeat> (i.e. i'm fairly sure mongodump is working properly, and you're just running wrong param/uri)
[15:08:46] <synthmeat> your authentication database is probably different from the database you intend to use
[15:10:19] <mainnet> synthmeat, Okay, lemme go check that again
[18:58:02] <ober> pwd
[21:50:45] <Rashad> Hello. I am fooling around with the transactions API. I am trying to execute two or more transactions at the same time, but I get the error "Transaction already in progress"
[21:51:48] <Rashad> I am not sure if I am doing something wrong or if I actually need to check in my code if another transaction is in progress and only if none exists I shall commence the new transaction.