@g0st docker exec -ti [mongo container name] mongo
Ben Lubar
Posts
-
Best way to wipe and start over? -
Docker NodeBB v0.5I have this in my crontab:
42 * * * * cd /home/ben/.nodebb-docker.git && git fetch -p origin > /dev/null 2> /dev/null && git push --mirror > /dev/null 2> /dev/null
You can download the docker image from my repo: https://hub.docker.com/r/benlubar/nodebb/
I documented the commands needed to set up the forum for my community here, but most of them should be pretty easy to adapt for any other community. Ignore the stuff about postgres unless you're importing from a forum that used postgres.
-
Debugging nodejs app.js at 100% -
Infinite loopOkay, strace showed both instances hanging after this:
connect(85, {sa_family=AF_INET, sin_port=htons("[iframely port]"), sin_addr=inet_addr("[iframely IP]")}, 16) = -1 EINPROGRESS (Operation now in progress)
I've blacklisted the forum's hostname from iframely. We'll see if that fixes it.
-
Infinite loopOn what.thedailywtf.com, we've been having trouble with the NodeJS instances stopping handling requests and running at near 100% CPU usage until they are restarted. We run MongoDB for the main database, Redis for clustering support, and 2 NodeBB clustered instances (down from 4 due to this problem).
At this point, I have no idea what could be causing the problem, other than that it started about a week ago. Is there some way to get a stack trace from a running NodeJS instance?
There's no log output during the time the problem occurs. servercooties.com tracks our instance's uptime, so @accalia can probably pinpoint the times when the problem occurred.
/cc @boomzilla @PJH
-
Upgrade "Refresh post-upload associations" in 1.9.x causes errorCommenting out the fast path (these three lines) seems to be working so far (although extremely slowly).
My instance would previously get killed at around 15% (there were a lot of posts from two forum softwares ago when pasting files into a forum wasn't a thing), but now it's at 90%. It's been about 4 hours since I started this attempt.