PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 19th of May, 2020

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:04:57] <kkoomen> Hi. I'm using mongoose.aggregate() and have an issue that I don't know how to fix: I have a field type "[Array]" (so it's 2-dimensional). An example item would be: { targetAreas: [['US'], ['AU']] }. I have a webpage with a campaign, at the bottom we display "related" campaigns, so I need to do something like this for the related campaigns: const related = await campaigns.aggregate([{ $match: {
[01:04:59] <kkoomen> targetAreas: { $in: currentCampaign.targetAreas } } }]) but this doesn't work. How do I do this?
[12:23:25] <dch> got a standalone mongodb4.0 that refuses to start, db repair is clean & returns 0
[12:23:32] <dch> but each time mongodb starts it says 'old lock file: /var/db/mongodb/mongod.lock. probably means unclean shutdown, but there are no journal files to recover.'
[12:24:02] <kali> dch: check that the lock file does not belong to root
[12:24:21] <kali> dch: instead of the user supposed to run mongod
[12:26:15] <dch> kali, god tip, I'm running repair as root, then chowning, and right now running mongod as root too still.
[12:26:22] <dch> so that's not the issue at least
[12:27:08] <dch> https://www.irccloud.com/pastebin/oKxutORa/mongo-startup-fail-hard-such-pain
[12:29:46] <kinlo> do mongodb arbiters store the oplog?
[12:30:21] <dch> re-ran the repair via sudo mongodb and same result (grr)