Open cfanjie opened 8 years ago
Do you see any exceptions in the logs? I use forever which will restart the script if terminated.
Try adding the following to scrape.js:
// Avoid crashing the node process by handling uncaught exceptions
process.on('uncaughtException', function(err) {
console.error('Uncaught exception:', err, err.stack);
});
@sqren solved by adding handling uncaught exceptions.
I run the fb-sleep-stats from Amazon EC2 & Google Cloud VM. I did the following: $ npm start & $ npm run scrape & $ disown
The scrape runs normal in the first 3 hours. But always stop automatically after like 3 hours. As I figured out there's no data coming in, the process is no longer exist in '$ ps -aux'. Any solution or suggestions?