Closed parasdsingh closed 7 years ago
Ummm.... we had facebook running on AWS for a few months (at least 100 modules installed) without an out of memory crash. Some questions to help us track it down:
auto_restart
installed - on the latest FB integration it is no longer needed and could cause this kind of problem if left for too long.Some side notes:
tmux
instead of screen
? Its under more active development and objectively provides better features.Node version: v7.10.0
I don't have the log file anymore but I did whizz through and most of it was just messages from the facebook
module failing to login
Here are the installed kpm
modules
config
help
ping
kpm
restart
update
shutdown
creator
abstract
humming
uptime
urban
slap
lmgtfy
pun
pickUp
joke
insult
currency
cricket
advice
9gag
boss
auto_restart
test
I'll remove auto-restart
and see if that makes a difference.
One way to reduce the frequency of account blocking on FB is to marry it to another account
Can you expand more on this 😮
tmux
though my usage with screen
has been very straightforward so far and it's served it's purpose well.Given auto_restart
never gives the event loop an opportunity to GC (its entirely sync) I'm going to put this down to that. If it happens again, re-open the bug.
Can you expand more on this 😮
For some reason we discovered that if your bot account is in a relationship with another account on FB, your bot account will not get banned (when changing countries it will still require a once-off manual verification, e.g. changing your hosting from aws to local if you're not located in the US).
In raising this issue, I confirm to the best of my ability the following (please check boxes, e.g. [X]):
Expected Behaviour: Continues to run indefinitely without using up all system resources Actual Behaviour: I believe the process ended up using all of the system's RAM after running for a week. It was ran in an AWS
t2.micro
instance inside ascreen
process. The system was only running concierge and no other user-process. The crash happened after failing to login to facebook for a while (FB had blocked the account) Here's the log.Steps to Reproduce: Unsure if this will work, but let facebook login continuously fail for a long time? The bot was started with the
debug
andlog
arguments