Closed FranciscoG closed 8 years ago
Really I'm just using a stock ubuntu package for pm2, so not much in the way of config. That said, the issues look to be tied more to Ably implementation on DubAPI than anything concerning pm2, and I see you have a ticket open over there already.
My community's over on plug.dj again, so personal dev on dubtrack.fm stuff is pretty much halted for the foreseeable future again.
I'd check to make sure you are using the newest version of plugAPI (npm update) - it looks like there were some updates to the implementation of Ably as recently as Sep 9. Absent that, your ticket on dubAPI is probably where you're going to actually get this solved as it seems to be a bug in the library itself.
I am at the newest version of the DubApi. I was just wondering if there some optimal PM2 settings to compensate for the issues since they switched over to Ably (like increasing max restarts, adding a timeout between restarts, increasing memory, etc). But
I think it's just that Ably sucks compared to PubNub. Oh well, you get what you pay for I guess. (assuming the switch to Ably was to save money)
anyways, thanks and I'll keep checking in on the DubApi issue. 👍 🎃
Got it. May want to look here: http://pm2.keymetrics.io/docs/usage/pm2-doc-single-page/
You can add flags like --max-restarts, though if you're getting that many you may not be able to get out of it.
Another approach might be forcing an older release of DubAPI in your package.json - something like this:
"dubapi": "git://github.com/anjanms/DubAPI.git#v1.6.2",
hey I have my own bot, not based on BeavisBot, but another one. I'm also using PM2 to manage my process. I had a couple questions that I hope you could answer or at least point me in the right direction. I should say that I know JS but I'm newer to running a node server, I've mostly done front-end JS or back-end C#/PHP
I'm running the bot on a Pi and I'm using PM2 and I was using the default settings. I'm considering eventually to move to Digital Ocean droplet but for now the Pi is doing pretty well.
What's your PM2 setup? is it just what I see in your Readme?
Do you find that you encounter Ably WebSocket errors a lot? I think this ends up crashing my bot eventually cause I max out the maxRestarts of PM2. So I might need to increase those
Basically I'm just curious what you might be doing to ensure uptime. I feel like once a day my bot goes down completely and I'm trying to figure out how to stop that.
examples of some errors I get often