UPDATE: NOTE: some people reported that the following does not work for them, and I re-tested it on another one of my boxes and it did not work on my 2nd box. So, I'm not sure why it worked on one box and not another. Please take that into account.
I keep getting the nasty error where the root user unattaches and i'm trying to use the gunbot proxy as I had a lot of issues with 422s. Is there any way to secure the root user in a better way to try to prevent that?
Also is there any way you can add a helpful section to your initial post about installing gproxy (https://github.com/taniman/gunbotproxycommunity) as it really helps when you are running multiple pairs. Currently i'm at a point where I have the bot working on it's own and the proxy working but then at some point the whole setup crashes and I have to restart leading to errors. Any idea why?
One tip is - the community proxy instructions say to edit the ALLPAIRS to add the snippet for the TLS environment variable at the bottom of the file there:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
However, ginit may overwrite that file, because generator-gunbot doesn't know what changes you're making to the file. And you may use other tools in the future that aren't aware of the modifications you're making.
So, all you need is an environment variable.
You can add "export NODE_TLS_REJECT_UNAUTHORIZED=0" to your shell startup scripts (~/.bashrc for most people if linux), exit all your bash shells and screen sessions once, and then start them over and it will all work fine from then on.
echo "export NODE_TLS_REJECT_UNAUTHORIZED=0" >> ~/.bashrc
This adds that variable to your environment, so that when node runs, it knows to be ok with the man-in-the-middle TLS attack that the proxy does in order to intercept the SSL connection between gunbot and poloniex.
Now you don't have to edit the ALLPAIRS file and generator-gunbot can happily change it and not break your proxy.