ssh root@123.123.123.123
curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/install.sh | bash -- && exec bash
ginit
glog BTC_LTC
ERROR! - There was an error starting GUNBOT for BTC_EXP:
1
pgrep -f PM2 | xargs kill -9
pgrep -f gunthy
If the dont stop, also kill thempgrep -f gunthy | xargs kill -9
rm -r ~/.pm2/*
Select the 512MG Ram option for ~5 running bots, or 1GB for ~10 running bots
running bot means 1 currency pair?
Unsure of how to detach from the bot and do not want to accidentally close PuTTY and lose myself BTCI understand your concerns, but do not worry. The bot is running on your server and if you close putty, all you do is close your connection to the server, but not the server itself. It is like having your PC running and turning of your monitor - the PC still run's but you do not see it. :)
For example:
After I have typed "glog BTC-XRP" and it shows me the real time logs but how do I leave one log to check a different log.
How long does it take for the bot to start trading as the logs I have checked are empty?Depending on the strategy, the strategy settings and most important, the market. If the prices on the market are not low enough, the GUNBOT will not buy.
PriceToBuy 33.333 priceToSell --not set--
LP 44.0000000 > prBuy 33.333
That means the GUNBOT wants to buy at 33.333 but the current price is to high (44.000)Is there any way for me to integrate this into a webserver so I can monitor profit/ losses?
How can I change bot settings?
ERROR! - There was an error starting GUNBOT for BTC_EXP:
1
I have this error everytime I want to run it. Any Idea?
It's quite lovely! Especially the interface to add coins. Thank you.Thanks. :) I plan to extend the 'gadd' interface to be able to change the strategy and strategy settings for each trade pair you want to add.
It was relatively painless, but I had to restart the script a bit. The first time it didn't get all the dependencies and my apt-get got itself stuck, and I also had this "1" error. I rebooted the VPS and ran the script again and it went smoothly then. I am running AWS t2.micro so perhaps the initial configuration is a tad different than your provider.Interesting. I will try AWS later this week. Thanks for your feedback!
(https://i.imgur.com/gvO6VRd.png)ERROR! - There was an error starting GUNBOT for BTC_EXP:
1
I have this error everytime I want to run it. Any Idea?
1. How many trade pairs are you going to start?
2. If you enter "gl", is there an empty list or is BTC_EXP in the list, but stopped?
3. Is there a log file for BTC_EXP? (enter "tail -n 30 /opt/gunbot/poloniex-BTC_EXP-log.txt" to see the last 30 lines, if it exists)
4. Is there a config file for BTC_EXP? (enter "ll /opt/gunbot/*BTC_EXP*" to see all files for that pair)
npm -g list generator-gunbot
npm -g install generator-gunbot
How can I update to the new version from repo without messing things up?
curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/update.sh | bash --
3. Run againginit
4. Press ENTER for every question (it will use your last settings)cp /opt/gunbot-backup-<NUMBER>/poloniex-BTC_XXX-config.js /opt/gunbot/
gstart BTC_XXX
--------conflict ALLPAIRS-params.js
? Overwrite ALLPAIRS-params.js? (Ynaxdh)
root@gunny:/opt/gunbot# sudo apt install multitail
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
multitail
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 121 kB of archives.
After this operation, 322 kB of additional disk space will be used.
Get:1 http://mirrors.digitalocean.com/ubuntu xenial/universe amd64 multitail amd64 6.4.2-1build1 [121 kB]
Fetched 121 kB in 0s (1,258 kB/s)
Selecting previously unselected package multitail.
(Reading database ... 62956 files and directories currently installed.)
Preparing to unpack .../multitail_6.4.2-1build1_amd64.deb ...
Unpacking multitail (6.4.2-1build1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up multitail (6.4.2-1build1) ...
#include:/etc/multitail.conf
#check_mail:0
colorscheme:gunbot
cs_re:red,magenta:< prBuy
cs_re:red,white:<= prBuy
cs_re:red,white:>= prSell
cs_re:red,yellow:> prSell
cs_re:red,yellow:Sell order placed
cs_re:red,yellow:.*ORDER INFORMATION.*
cs_re:red,yellow:.*profit.*
cs_re:white:.*MinPriceToSell.*
cs_re:white:.*MaxPriceToBuy.*
cs_re:white:.*MaxPriceToSell.*
cs_re:white:.*MinPriceToBuy.*
cs_re:yellow:^Direction:\s+\d+
cs_re:white,blue:Activating hot reconfig...
cs_re:white,red:INVALID LICENSE
cs_re:white,red:Rate limit exceeded
cs_re:white,red:Not enough BTC
cs_re:red:iInvalid nonce\!*
cs_re:red:ESOCKETTIMEDOUT\!*
cs_re:red:returned error\!*
cs_re:red:Error\!*
cs_re:red:.*failed.*
cs_re:red:.*no altcoins.*
cs_re:red:statusCode (.*)
cs_re:magenta:.*buy.*
cs_re:cyan:Open orders
cs_re:cyan:.*sell.*
cs_re:red:falls\syes
cs_re:green:grows\syes
cs_re:green:falls\sno
cs_re:yellow:Has order:.*
cs_re:yellow:.*have altcoins.*
cs_re:white:\:\:.*
#!/bin/sh
multitail -Z red,black,inverse --config multitail.conf -CS gunbot -x "%m %u@%h %f (%t) [%l]" -b 4 -s 2 -m 0 -n 100 \
--mark-interval 200 \
-Ev "before to buy" \
-Ev "Cannot sell" \
-Ev "price to buy" \
-Ev "MaxPriceToBuy" \
-Ev "Last price <=" \
-Ev "Last price >=" \
-Ev "Last price >" \
-Ev "Last price >" \
-Ev "price grows \(" \
-Ev "price falls \(" \
-Ev "^need " \
-Ev "^Callback:" \
-Ev "no altcoins" \
-Ev "Altcoin Balance" \
-Ev "\+\+\+"\
-Ev "\[\]"\
-Ev "-------" \
-Ev "is too high" \
-Ev "price is too low" \
-Ev "price too high" \
-Ev "waiting to sell" \
-Ev "Creating market client" \
-Ev "Loading config" \
-Ev "Not supergun:" \
-Ev "Supergun: " \
-Ev "avCoins" \
-Ev "CANCEL sell orders" \
-Ev "CANCEL buy orders" \
-Ev "SEll on start" \
-Ev "^$" \
-Ev "^\s+\d+\.\d+$" \
-Ev "No order" \
-Ev ":::" \
-Ev "Error\!\!\! statusCode 422" \
-Ev "Will repeat" \
-Ev "cycle" \
-Ev "No basePrice" \
-Ev "need_" \
-Ev "Response:" \
-Ev "Bot responsed" \
-Ev "next delay" \
-Ev "^\*" \
-Ev "\*\*" \
/root/.pm2/logs/*-out*.log
root@gunny:/opt/gunbot# chmod +x ./stat.sh
./stat.sh
I'm extremely impressed by your startup script.
Can you please check again? I'm running the same droplet (2GB) with 16 pairs and my load is at 2% (Stepgain) to 4% (BB).
Could it also create a swap virtual RAM, so you could run 50 pairs on a 5$ Setup, instead of just 5.Not sure about the performance. I would go the easy way and just order a VPS with lots of RAM. Take a look here: https://gunthy.org/index.php?topic=298.0 and https://gunthy.org/index.php?topic=166.0
I do have a problem though, I'm trying to increase the buy limit without doing the install all over again, but it's not working. I've tried running ginit again and setting the buy limit higher while keeping everything the same, but it still trades with the old limit. I've also tried editing the config files directly, but still no change. I figured it wasn't reloading the configs so I tried to restart the pairs buy using gstop and gstart, but then I run into another problem where I can't start the pair after I stop it..Hm, 'ginit' should work... I try it my self. I'll come back to you later.
gstart BTC_XXX
Does this mean the installer does not include the latest fix yet?I just updated the install and update script. It installs the latest binary files from the GUI version now. Check this post for the update instructions:
I was thinking to update the installer script myself using only the latest release just to be sure...
I checked my CPU again and sure enough, it quieted down a lot. it's between 1-2%8)
I do have a problem though, I'm trying to increase the buy limit without doing the install all over again, but it's not working. I've tried running ginit again and setting the buy limit higher while keeping everything the same, but it still trades with the old limit. I've also tried editing the config files directly, but still no change. I figured it wasn't reloading the configs so I tried to restart the pairs buy using gstop and gstart, but then I run into another problem where I can't start the pair after I stop it..Hm, 'ginit' should work... I try it my self. I'll come back to you later.
If you enter 'gl', do you see stopped bots? TryCode: [Select]gstart BTC_XXX
BK
Yeah, it stops the pairs fine, just won't start again. Says process x isn't found. I've tried starting it with BTC_XXX and with the process id
pm2 restart BTC_DASH
gcd
pm2 delete BTC_DASH
pm2 start ./gunthy-linuxx64 --name BTC_DASH -- BTC_DASH poloniex
I'm trying to increase the buy limit without doing the install all over again, but it's not working. I've tried running ginit again and setting the buy limit higher while keeping everything the same, but it still trades with the old limit.Works for me. I did run 'ginit' again and changed the trading value and all buys after that change using the new value. Do you have any settings in the poloniex-BTC-XXX-config.js (I do not, all is in ALLPAIRS)?
I'm trying to increase the buy limit without doing the install all over again, but it's not working. I've tried running ginit again and setting the buy limit higher while keeping everything the same, but it still trades with the old limit.Works for me. I did run 'ginit' again and changed the trading value and all buys after that change using the new value. Do you have any settings in the poloniex-BTC-XXX-config.js (I do not, all is in ALLPAIRS)?
gcd
gstop all
ginit
Hello everybody.
First of all: Thanks a lot for all the tutorials in this forum, they helped me a lot! And of course thanks to Gunthar for this nice bot!
To have a better understanding of the GUNBOT and to have an easy start using it, I created
1. an installer to only use one command to setup GUNBOT 3.2 on a fresh virtual server and
2. a generator to init and start all the trade pair configs I want to use.
From creating a new server at DigitalOcean to let the bot start trading it takes less than 5 min. :D
But:
I'm new to GUNBOT. So my approach has some downsides - for now ;)
Installer:
1. The installer only works on Debian / Ubuntu
2. You need to be root user
3. I recommend a fresh virtual server
Generator:
1. Only supports Poloniex
2. Only supports trade pairs BTC to XXX
3. You can only change a few settings of the trade pair config
4. The other settings are predefined and very likely not perfect - but a good start
How does it work
Installer
The installer is basically a bash script. That script will
- update the system (apt upgrade),
- install node 7.x (for the generator and pm2),
- install required tools (yo, pm2, unzip),
- install the GUNBOT 3.2,
- creates some handy aliases,
- install the generator
You can view the whole script here: https://github.com/BeerK0in/generator-gunbot/blob/master/install.sh (https://github.com/BeerK0in/generator-gunbot/blob/master/install.sh)
Generator
The generator is using a tool called yeoman to create the trade pair config files and optionally starts the GUNBOT for the pairs.
It will ask you some questions you need to answer. Like:
- Your Poloniex API key
- Your Poloniex API secret
- Max amount of BTC used by each pair per trade
- What BUY strategy do you want to use
- What SELL strategy do you want to use
- Questions about the selected strategies
- Select the currencies you want to trade
- Select the trade pair currencies you want to automatically start
And than it creates the config files and starts GUNBOT using pm2.
Aliases
The installer also sets up some aliases to do more with less. :)
- gcd: Go to the folder GUNBOT is installed
- gadd: Use the generator to add a new pair (*)
- gl: Get a list of all running GUNBOTs
- glog [botname or id]: Shows the log of the selected bot (botname = BTC_XXX, use gl to get id)
- gstop [botname or id]: Stops a running bot (botname = BTC_XXX, use gl to get id)
- gstart [botname or id]: Starts a stopped bot (botname = BTC_XXX, use gl to get id)
- gsys: Show free memory and CPU load
(*) For now gadd will use the same settings as defined in the first run of the generator. A next version will allow you to set specific strategies for new trade pairs.
Let's do it
1. New VPS. (optional)
I use DigitalOcean a lot, so I can give a brief tutorial:
- Login
- Create Droplet
- Select Ubuntu
- Select the 512MB RAM option for ~3 running trade pairs, 1GB for ~8 pairs or 2GB for ~17 pairs
- Choose San Francisco 2 as location
- Give it a name like 'my-gunbot'
- Click create
Here is an image of the whole creation page: https://i.imgur.com/4uxqjBJ.png
Next you get an email with the IP address of the new server and a password. Looks like this: https://i.imgur.com/LTxIos9.png
Use SSH to connect to this new server:Code: [Select]ssh root@123.123.123.123
- Accept the authenticity of the host (enter "yes")
- Set a new root password
- Done
Looks like this: https://i.imgur.com/lpsPoYS.png
If you want to create a VPS at DigitalOcean, you can use this affiliate link to get $10 credit at DigitalOcean: https://m.do.co/c/fade3d3435ba
Of course you can use any server you like.
2. Installer
After you connected via ssh to your new server (must be running Debian or Ubuntu) just run this command:Code: [Select]curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/install.sh | bash -- && exec bash
Two minutes later the installer is done.
3. Generator
Now run this command:Code: [Select]ginit
Enter your Poloniex API key and the secret, answer the questions and you are done.
Hint for 3.2: on a machine with 1GB start 8 or less bots.
You can run 'gl' to see all GUNBOTs.
=> That's it. :)
Here a screen how it looks like. Depending on your selected strategy and trade pairs, it will look a little bit different.
(https://i.imgur.com/VLICPOF.png)
To access the log of a bot simply enterCode: [Select]glog BTC_LTC
Or the id of that bot. In my example I could also just run 'glog 2'.
Maybe this helps some people to get into the GUNBOT.
BK
What is "Watching disabled"? And can it be enabled? If so how?
First of all: Great job mate!1. Thx. :)
Second: how can we add more pairs after the initial setup?
Third: please release that update you posted a screenshot above, looks awesome :D
? Select the trade pair currencies you want to automatically start right now: BTS, BURST, CLAM, DASH, DGB, DOGE
identical ALLPAIRS-params.js
identical poloniex-BTC_BTS-config.js
identical poloniex-BTC_BURST-config.js
identical poloniex-BTC_CLAM-config.js
identical poloniex-BTC_DASH-config.js
identical poloniex-BTC_DGB-config.js
identical poloniex-BTC_DOGE-config.js
ERROR! - There was an error starting GUNBOT for BTC_BTS:
1
::::2017/05/23 13:27:17 Error statusCode 429
so just had thebad idea of adding a new pair... MY VPS went nuts on CPU power and crashed :(
any help?
gstart BTC_BTS
free -m
(last column "available")pm2 delete all
pm2 start ./gunthy-linuxx64 --name BTC_DASH -- BTC_DASH poloniex
Yeah, it stops the pairs fine, just won't start again. Says process x isn't found. I've tried starting it with BTC_XXX and with the process id
You can try this, but i guess it will not work:Code: [Select]pm2 restart BTC_DASH
If it is not working, remove the process from pm2 and add it again:Code: [Select]gcd
pm2 delete BTC_DASH
pm2 start ./gunthy-linuxx64 --name BTC_DASH -- BTC_DASH poloniex
It will get a new id that way.I'm trying to increase the buy limit without doing the install all over again, but it's not working. I've tried running ginit again and setting the buy limit higher while keeping everything the same, but it still trades with the old limit.Works for me. I did run 'ginit' again and changed the trading value and all buys after that change using the new value. Do you have any settings in the poloniex-BTC-XXX-config.js (I do not, all is in ALLPAIRS)?
BK
gcd
pm2 delete BTC_DASH
pm2 start ./gunthy-linuxx64 --name BTC_DASH -- BTC_DASH poloniex
Which deleted the pair, and it said it started successfully, but it didn't show up in glI'm trying to increase the buy limit without doing the install all over again, but it's not working. I've tried running ginit again and setting the buy limit higher while keeping everything the same, but it still trades with the old limit.Works for me. I did run 'ginit' again and changed the trading value and all buys after that change using the new value. Do you have any settings in the poloniex-BTC-XXX-config.js (I do not, all is in ALLPAIRS)?
Could be this:
'ginit' does not restart already running bots AND GUNBOT 3.2 does not hot reload config changes in ALLPAIRS AND the generator only modifies ALLPAIRS.
So the quick solution is:Code: [Select]gcd
gstop all
ginit
It is not perfect, I know. I'm busy with the monitor right now, but will come back to the generator and improve it. Thanks for all the use cases! :)
BK
gcd
gstop all
ginit
but I was getting this error Code: [Select]pm2 start ./gunthy-linuxx64 --name BTC_DASH -- BTC_DASH poloniex
hope that was the correct way... now all seems ok again...
I have 1 GB somehow the CPU went nuts but now i have 10 pairs and its working fine with 222 delay. (770Mb used of ram)Strange... What VPS service do you use?
but I was getting this errorHm, somehow the rights to write to the ALLPAIRS file have changed. Thank you for all your input. Will help to make the generator better!
but I was getting this errorHm, somehow the rights to write to the ALLPAIRS file have changed. Thank you for all your input. Will help to make the generator better!
chmod +x /opt/gunbot/gunthy-*
as a last desperate attempt, but it didn't work so I just started fresh lol
Great tool but any news about making support for Bittrex & Kraken also?
How to start it on Bittrex? I already put api keys in config. Then what?
Can manually start it on bittrex?
pm2 start ./gunthy-linuxx64 --name BTC_XXX -- BTC_XXX bittrex
how to clean this list?
pm2 delete all
Are there any updated defaults I should be aware off? I only updated the gunthylinuxx86 and restarted everything.
Is there a way to start pairs with different API keys? I do not use the same API for all my pairs.
Can I also import my own config files and how would I start.
pm2 start ./gunthy-linuxx64 --name BTC_XXX -- BTC_XXX poloniex
for every pair you want to start. delay every start by ~10 seconds.ubuntu@ip-172-31-3-90:~$ curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/install.sh | bash -- && exec bash
============================================================
GUNBOT 3.2 SETUP started
This will take a few seconds
============================================================
(1/6) Update the base system
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(2/6) Install nodejs 7.x
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(3/6) Install tools
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(4/6) Install GUNBOT
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bash: line 47: unzip: command not found
mkdir: cannot create directory ‘/opt/GUNBOT_v3.2_GUI_edition_all_CPU’: Permission denied
cp: cannot stat ‘/opt/unzip-tmp/gunthy-*’: No such file or directory
ln: failed to create symbolic link ‘/opt/gunbot’: Permission denied
rm: cannot remove ‘/opt/GUNBOT_v3.2_GUI_edition_all_CPU.zip’: No such file or directory
rm: cannot remove ‘/opt/unzip-tmp’: No such file or directory
chmod: cannot access ‘/opt/gunbot/gunthy-*’: No such file or directory
(5/6) Add GUNBOT aliases
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(6/6) Init generator
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
chmod: changing permissions of ‘/root’: Operation not permitted
chmod: cannot access ‘/opt/gunbot’: No such file or directory
mkdir: cannot create directory ‘/root’: Permission denied
bash: line 90: /root/.config/configstore/insight-yo.json: Permission denied
chmod: cannot access ‘/root/.config’: Permission denied
chmod: cannot access ‘/root/.config/configstore’: Permission denied
chmod: cannot access ‘/root/.config/configstore/*’: Permission denied
mkdir: cannot create directory ‘/root’: Permission denied
bash: line 102: /root/.pm2/touch: Permission denied
chmod: cannot access ‘/root/.pm2’: Permission denied
chmod: cannot access ‘/root/.pm2/*’: Permission denied
============================================================
GUNBOT SETUP complete!
Please run this command to init the GUNBOT:
ginit
============================================================
I am getting this errors. What I am doing wrong?
cd
curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/update.sh | bash --
3. Run 'ginit' again to start all bots with delaygcd
ginit
4. Press ENTER for every question (it will use your last settings)cp /opt/gunbot-backup-<NUMBER>/poloniex-BTC_XXX-config.js /opt/gunbot/
8. Controll with 'gl' or 'gmon' if all bots are running. If not enter 'gstart BTC_XXX' to start the stopped botconflict ALLPAIRS-params.js
? Overwrite ALLPAIRS-params.js? (Ynaxdh)
This is very nice - my hat's off to you. I decided to give this a try, even though I have my own servers, equipment and typically do everything by hand, and I'm a big fan of GNU screen, so didn't know what could be better than it. Besides, why would I pay for something in the cloud for something I have "for free" at home?
However, I'm always looking to learn new things, and I've seen people talking about "pm2" and wondered what it was all about. Plus, even though what I have at home is "free", $10/mo isn't too bad given what I make with gunbot, and there is the convenience factor of better 24x7 uptime. Then again, on one server at home, I'm able to run 50 pairs and the box is still only at 5% CPU (against three exchanges)... so we'll have to see and compare later about the costs... but that's a different story.
So I went through the installation instructions and they were perfect. I'm extremely impressed by your startup script. Easy to use, easy to understand, and fast response. Good job.
I now understand better what pm2 does - it obviates the need for screen. While I see the benefits that has... I also see that I lose some control that screen gives me. For one, I no longer see the console output I had, and I see to lose the direct interaction with the STDIN/STDOUT (but I may just be missing that - or maybe that's what "glog" does....)
Once I realized how incredibly valuable your startup scripts were, I had to add in my multitail pieces.... since pm2 takes care of the "tee" and "screen" parts! (written up in this post: https://gunthy.org/index.php?topic=261.msg1164#msg1164 (https://gunthy.org/index.php?topic=261.msg1164#msg1164))
So, if you install multitail:Code: [Select]root@gunny:/opt/gunbot# sudo apt install multitail
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
multitail
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 121 kB of archives.
After this operation, 322 kB of additional disk space will be used.
Get:1 http://mirrors.digitalocean.com/ubuntu xenial/universe amd64 multitail amd64 6.4.2-1build1 [121 kB]
Fetched 121 kB in 0s (1,258 kB/s)
Selecting previously unselected package multitail.
(Reading database ... 62956 files and directories currently installed.)
Preparing to unpack .../multitail_6.4.2-1build1_amd64.deb ...
Unpacking multitail (6.4.2-1build1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up multitail (6.4.2-1build1) ...
Create a file called "multitail.conf" in the /opt/gunbot directory:Code: [Select]#include:/etc/multitail.conf
#check_mail:0
colorscheme:gunbot
cs_re:red,magenta:< prBuy
cs_re:red,white:<= prBuy
cs_re:red,white:>= prSell
cs_re:red,yellow:> prSell
cs_re:red,yellow:Sell order placed
cs_re:red,yellow:.*ORDER INFORMATION.*
cs_re:red,yellow:.*profit.*
cs_re:white:.*MinPriceToSell.*
cs_re:white:.*MaxPriceToBuy.*
cs_re:white:.*MaxPriceToSell.*
cs_re:white:.*MinPriceToBuy.*
cs_re:yellow:^Direction:\s+\d+
cs_re:white,blue:Activating hot reconfig...
cs_re:white,red:INVALID LICENSE
cs_re:white,red:Rate limit exceeded
cs_re:white,red:Not enough BTC
cs_re:red:iInvalid nonce\!*
cs_re:red:ESOCKETTIMEDOUT\!*
cs_re:red:returned error\!*
cs_re:red:Error\!*
cs_re:red:.*failed.*
cs_re:red:.*no altcoins.*
cs_re:red:statusCode (.*)
cs_re:magenta:.*buy.*
cs_re:cyan:Open orders
cs_re:cyan:.*sell.*
cs_re:red:falls\syes
cs_re:green:grows\syes
cs_re:green:falls\sno
cs_re:yellow:Has order:.*
cs_re:yellow:.*have altcoins.*
cs_re:white:\:\:.*
Create a file called "stat.sh" in same directory:Code: [Select]#!/bin/sh
multitail -Z red,black,inverse --config multitail.conf -CS gunbot -x "%m %u@%h %f (%t) [%l]" -b 4 -s 2 -m 0 -n 100 \
--mark-interval 200 \
-Ev "before to buy" \
-Ev "Cannot sell" \
-Ev "price to buy" \
-Ev "MaxPriceToBuy" \
-Ev "Last price <=" \
-Ev "Last price >=" \
-Ev "Last price >" \
-Ev "Last price >" \
-Ev "price grows \(" \
-Ev "price falls \(" \
-Ev "^need " \
-Ev "^Callback:" \
-Ev "no altcoins" \
-Ev "Altcoin Balance" \
-Ev "\+\+\+"\
-Ev "\[\]"\
-Ev "-------" \
-Ev "is too high" \
-Ev "price is too low" \
-Ev "price too high" \
-Ev "waiting to sell" \
-Ev "Creating market client" \
-Ev "Loading config" \
-Ev "Not supergun:" \
-Ev "Supergun: " \
-Ev "avCoins" \
-Ev "CANCEL sell orders" \
-Ev "CANCEL buy orders" \
-Ev "SEll on start" \
-Ev "^$" \
-Ev "^\s+\d+\.\d+$" \
-Ev "No order" \
-Ev ":::" \
-Ev "Error\!\!\! statusCode 422" \
-Ev "Will repeat" \
-Ev "cycle" \
-Ev "No basePrice" \
-Ev "need_" \
-Ev "Response:" \
-Ev "Bot responsed" \
-Ev "next delay" \
-Ev "^\*" \
-Ev "\*\*" \
/root/.pm2/logs/*-out*.log
Make the file executable:Code: [Select]root@gunny:/opt/gunbot# chmod +x ./stat.sh
and run the stats page...Code: [Select]./stat.sh
Then you can get a single page viewer of all the log files ... BUT FILTERED AND COLORED so you can watch them, but only the interesting parts. I can't see them very easily right now because evidently I have an invalid license... :) so the screenshot isn't very useful. Also, I'm composing this on my laptop right now, so the monitor isn't very large, so each window is a bit smaller than normal. Typically you'd see a few more lines of each bot instance.
(http://i.imgur.com/fpnPbcs.jpg)
If there's a multitail-like console built-in to pm2, and I missed it, let me know. If you read the link to my post above, I go into great detail about why I put together my multitail console and the ideas I have for the next one.
All in all, I have to say - great work!
Also, FYI - I started 16 pairs on a 2GB memory / 40GB / SFO2 Ubuntu 16.04.2 x64 unit and CPU is pegged at 100% - just wanted to pass that along to others.
(http://i.imgur.com/YSUTLVc.jpg)
The following problem occured:
-----------------------------
line 35 of file 'multitail.conf' is too long!
Terminated
I want to have that monitor working on my VPS, but i have this problem
How to change bot settings without stopping bot and loosing it data. I want lower BB
I edited All pakrs file but think it didnt update it.
Thank you for your efforts, it works great! Is it possible to start a second instance, let's say with another API ?
Wow, let me know if you need a beta tester :DThank you for your efforts, it works great! Is it possible to start a second instance, let's say with another API ?
Not with that version, no. But I'm working on v2 ;)
BK
Hey @beer-k0in you can post a script to install only v3.2 ?
curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/gunbot-v3-2/install.sh | bash -- && exec bash
1. Mostly i encounter ERROR starting a certain pairs if you spam "ginit" alot and there will be problem to source of pair (xxx.js) file or something.
3. Im using Debian_64 both on my test rig and my final setup on my VPS, however if you run this generator on Debian console no-GUI its to pain to make the text in full screen.
cat /etc/*-release
Is an update to the newest release 3.3.2 possible ? How?
I have one question: what if I want to use different API keys for different pairs?
I terminated the script and ran it again and it goes straight to install complete but ginit will not run. I get an error that the Gunbot Directory does not exist.
I already patched it on my own, hope BK will be ok if i post it here ?Is an update to the newest release 3.3.2 possible ? How?
There will be an update to this script in 12h to 24h.
Quote from: _cRw_ on June 05, 2017, 11:02:12 PM
I have one question: what if I want to use different API keys for different pairs?
Not possible in this version. I'm working on something new. Right now there is no way to do it with this generator.
AFAIK you need to edit the config files, just add the different API in every config for that specific coin. I guess, in this case, the API in the allpair file needs to be removed.QuoteQuote from: _cRw_ on June 05, 2017, 11:02:12 PM
I have one question: what if I want to use different API keys for different pairs?
Not possible in this version. I'm working on something new. Right now there is no way to do it with this generator.
Not even by using 2 different directories? One for each API?
cd
curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/update.sh | bash --
3. Start all bots with delaygcd
ginit
4. Press ENTER for every question (it will use your last settings)cp /opt/gunbot-backup-<NUMBER>/poloniex-BTC_XXX-config.js /opt/gunbot/
8. Control with 'gl' or 'gmon' if all bots are running. If not, enter 'gstart BTC_XXX' to start the stopped botconflict ALLPAIRS-params.js
? Overwrite ALLPAIRS-params.js? (Ynaxdh)
AFAIK you need to edit the config files, just add the different API in every config for that specific coin. I guess, in this case, the API in the allpair file needs to be removed.QuoteQuote from: _cRw_ on June 05, 2017, 11:02:12 PM
I have one question: what if I want to use different API keys for different pairs?
Not possible in this version. I'm working on something new. Right now there is no way to do it with this generator.
Not even by using 2 different directories? One for each API?
How about Bittrex, will it work with Bittrex as well ? (This or next version)
Installer:
1. The installer only works on Debian / Ubuntu
2. You need to be root user
3. I recommend a fresh virtual server
Generator:
1. Only supports Poloniex
2. Only supports trade pairs BTC to XXX
3. You can only change a few settings of the trade pair config
4. The other settings are predefined and very likely not perfect - but a good start
I terminated the script and ran it again and it goes straight to install complete but ginit will not run. I get an error that the Gunbot Directory does not exist.
Like miner437 said: Be sure to run this as root.
BK
I'm definitely running as root unless my VPS host has given me some kind of pseudo root account that doesn't have full privileges.
curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/install-loud.sh | bash -- && exec bash
I was having trouble getting this to start on an OVH vps (Ubuntu 16) until I ran the above command. gstart kept giving errors.I'm definitely running as root unless my VPS host has given me some kind of pseudo root account that doesn't have full privileges.
Than please run this and check for errors. It is the same as the other command, but with a lot of output about what is happening.Code: [Select]curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/install-loud.sh | bash -- && exec bash
BK
ERROR! - There was an error starting GUNBOT for BTC_EXP:
1
I have this error everytime I want to run it. Any Idea?
ERROR! - There was an error starting GUNBOT for BTC_EXP:
1
get the same problem here.
please advice me
pgrep -f PM2 | xargs kill -9
pgrep -f gunthy
If the dont stop, also kill thempgrep -f gunthy | xargs kill -9
rm -r ~/.pm2/*
Any chance of a Bittrex version coming up soon? ;)
thanks for fast respond bro. but you know i just deploy new server then install generator via putty and its work like charm!! haha. good job bro.keep it on :DERROR! - There was an error starting GUNBOT for BTC_EXP:
1
get the same problem here.
please advice me
There are 2 possible issues.
The easy one
Type 'gl' and check if the pair you want to start is already running. Would look like this:
(https://i.imgur.com/BTyKNlR.png)
If it is in that list and its state is online, type 'gstop BTC_XXX' to stop it before you run 'ginit'.
The nasty one
Sometimes the PM2 God Deamon got detached from your (root-)user and you will see an empty list if you enter 'gl' BUT if you run 'pgrep -f BTC_XXX' you will see a id a result.
So the Gunbot is running but pm2 does not want to see it.
You need to kill the PM2 God Deamon, and remove the content in ~/.pm2/:Code: [Select]pgrep -f PM2 | xargs kill -9
Wait like 2 to 5 min till all Gunbots also stopped.
Check if there are running GunbotsCode: [Select]pgrep -f gun
If the dont stop, also kill themCode: [Select]pgrep -f gun | xargs kill -9
Now remove the content of ~/.pm2/Code: [Select]rm -r ~/.pm2/*
And run run 'ginit' again.
Please tell my if it was the easy or the nasty one.
BK
Is this common or have I done something wrong? I keep getting 422 errors randomly on all my pairs.
cat > start_bots.sh <<"EOF"
#!/bin/sh
#
#
echo "BEFORE:"
pm2 list
for i in `pm2 list | grep stopped | gawk '{print $2}'`
do
echo "starting pair $i... and waiting 3 seconds"
pm2 -s start $i
sleep 3
done
echo "AFTER:"
pm2 list
EOF
chmod +x ./start_bots.sh
cat > stop_bots.sh <<"EOF"
#!/bin/sh
#
#
echo "BEFORE:"
pm2 list
for i in `pm2 list | grep online | gawk '{print $2}'`
do
echo "stopping pair $i... and waiting 3 seconds"
pm2 -s stop $i
sleep 3
done
echo "AFTER:"
pm2 list
EOF
chmod +x ./stop_bots.sh
Great script.
How much memory is used by each pair (process app-name) ?
Great script.
Thank you!QuoteHow much memory is used by each pair (process app-name) ?
Ooops, exact ..... 100 Mb / pair. For 20 pairs it's needed to have 2Gb + system memory ...
On Windows, it's 20-50 Mb /pair.
The difference is maybe PM2 environment ...
I believe that is shown in the "mem" column over on the right.
I wrote a quick couple of scripts that nicely and safely start and stop the bots.
Either instructions on generator-gunbot script is missing.
sudo apt-get install curl
This was hard to find out since all script output is hidden as well, so the script lacks error handling as well.
Thank you for all your work!
ERROR! - There was an error starting GUNBOT for BTC_EXP:
1
get the same problem here.
please advice me
There are 2 possible issues.
The easy one
Type 'gl' and check if the pair you want to start is already running. Would look like this:
(https://i.imgur.com/BTyKNlR.png)
If it is in that list and its state is online, type 'gstop BTC_XXX' to stop it before you run 'ginit'.
The nasty one
Sometimes the PM2 God Deamon got detached from your (root-)user and you will see an empty list if you enter 'gl' BUT if you run 'pgrep -f BTC_XXX' you will see a id a result.
So the Gunbot is running but pm2 does not want to see it.
You need to kill the PM2 God Deamon, and remove the content in ~/.pm2/:Code: [Select]pgrep -f PM2 | xargs kill -9
Wait like 2 to 5 min till all Gunbots also stopped.
Check if there are running GunbotsCode: [Select]pgrep -f gun
If the dont stop, also kill themCode: [Select]pgrep -f gun | xargs kill -9
Now remove the content of ~/.pm2/Code: [Select]rm -r ~/.pm2/*
And run run 'ginit' again.
Please tell my if it was the easy or the nasty one.
BK
This looks fantastic. When will bittrex support be available?
I got the same error, and it was the nasty one that solved :)
Looking for documentation on how to update the individual config files (per coin), if possible.
Looking for documentation on how to update the individual config files (per coin), if possible.
Not possible with the current version of the generator. You need to manually edit the config files. But keep in mind: the config in ALLPAIRS overwrites the config in the specific PAIR config. So you need to delete the parameter you want to be different among your pairs from ALLPAIRS and set it in every PAIR config.
BK
That make senses. How do I go about modifying every pairs configuration file separately?
Not familiar with doing that, and looking for step by step or documentation to help me do that piece.
gcd
nano poloniex-BTC_XXX-config.js
That make senses. How do I go about modifying every pairs configuration file separately?
Not familiar with doing that, and looking for step by step or documentation to help me do that piece.
Open each file with an editor like nano:Code: [Select]cdg <--- this is actually gcd
nano poloniex-BTC_XXX-config.js
Use the arrow keys to navigate in that file and make changes.
To save press "Ctrl + x" then "y" then "Enter".
BK
I wonder if changing settings in the "ALLPAIRS-params.js" file will be applied to all running pairs automatically
Hi, it trades just fine with eth and ltc. Bur sc and other pairs gets 422 error when the price is right. What to do?
Can you say me if there is a limit for Gunbot, or is it possible to trade ~40 pairs with 4GB RAM? And why do you say 2GB for ~17 pairs? Is it necessary to have a buffer? Because if one pair uses less than 100MB, it should be possible to trade ~20 pairs with 2GB, or not?
# free -h
total used free shared buff/cache available
Mem: 488M 58M 206M 8.3M 224M 399M
I also have another question. I haven't installed the Windows version because I prefer Linux, but are there any advantages for the Windows version? Maybe more settings or something like this?
I wonder if changing settings in the "ALLPAIRS-params.js" file will be applied to all running pairs automatically
Yes, no need for running ginit.
No. All Versions of Gunbot are using the same core code to work. Only the GUI is different.
Q1:
BTC-XXX-log.txt files are becoming bigger (3~5mb per each).
I wonder if it's no problem to replace them to clean one occasionally.
Q2:
I'm also using your Gunbot Monitor with 'gmon -c -s -P' command.
I wonder if the profit shown at the bottom right side is the final profit after all revenue, loss and fee.
Otherwise I wonder how to calculate accurate final profit.
Is it possible to set the max amount per trade for all the pairs i got to x.xxx without reconfiguring every single bot?
var config = {
BTC_TRADING_LIMIT: 0.00123,
};
module.exports = config;
I installed it on Ubuntu and it was running fine last night, today it crashed. When I try to restart ginit I get this error:
[...]
ERROR! - There was an error starting GUNBOT for BTC_SC:
1
? Overwrite poloniex-BTC_BTS-config.js? overwrite
force poloniex-BTC_BTS-config.js
conflict poloniex-BTC_CLAM-config.js
Small dono sent your way, cant wait for the bittrex update ;D
What does this message mean?
I need a bit of help with my gunbot initial startup.
curl -sL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/install-loud.sh | bash -- && exec bash
Node.js 7.x is nearly deprecied, not supported on last ubuntu and debian stretch.
Node.js 7.x is nearly deprecied, not supported on last ubuntu and debian stretch.
Use the script on debian jessie or ubuntu 16.04.
I install configurator and configure pairs. Configurator start pair, but config file is empty. Does anyone know why?
One more question. Is it possible to manually add a new pair with a fairly new coin, that is not yet supported by script but is already on exchange? For example BTC_CFI, BTC_CANN, etc.
pm2 start ./gunthy-linuxx64 --name "BTC_XXX" -- BTC_XXX bittrex
npm install -g generator-gunbot
I update generator and now all files are filled, but bot do not accept them.
market-BTC_XXX-config.js - was empty, ALLPAIRS.params.js - filled.
I reconfigured market-BTC_XXX-config.js with configurator, but bot do not accept new config. I check bot log and found that if I change ALLPAIR only then BOT change configs. What I messed up?
Is there a way to see all the trades that gunbot made? and maybe the profit?
Can somebody tell me the code to stop all pairs/stop the bot?
I only know how to stop single pairs.
You could use commands like "gstop all" and "gstart all" and "pm2 stop all" and "pm2 start all" but unless they've been modified since I last looked at them, they just start and stop them quickly, which makes places like polo and kraken run into API limits. So that's why I wrote the scripts.
Can somebody tell me the code to stop all pairs/stop the bot?
I only know how to stop single pairs.
I wrote a couple start/stop scripts detailed here on the forums (https://gunthy.org/index.php?topic=277.msg2110#msg2110) that does this safely and without generating issues with the exchanges. That way, you can just do start_bots.sh and stop_bots.sh.
You could use commands like "gstop all" and "gstart all" and "pm2 stop all" and "pm2 start all" but unless they've been modified since I last looked at them, they just start and stop them quickly, which makes places like polo and kraken run into API limits. So that's why I wrote the scripts.
What am I doing wrong?
./start_bots.sh
cd
./start_bots.sh
I have another question. Is it possible to edit the configs of all pairs at once. When I use 'ginit' I can edit all pairs, but I can't edit settings of 'POLONIEX_VWA_1_INTERVAL' / 'POLONIEX_VWA_2_INTERVAL' or 'MAX_LATEST_PRICES' (for example).
If we edit ALLPAIRS or the coin configs is the hot config load working from the gunbot directory?
Also I noticed after ginit or gadd the DEFAULT_CURRENCY_PAIRY is BTC_ETH that doesn't seem correct does it?
Would be great if this didn't require all this /root/ access. Could you possibly update this so it can work in $HOME?
What have I buggered up?
echo "-#- release -#-" && cat /etc/*release && echo "-#- nodejs -#-" && node -v && echo "-#- modules -#-" && npm -g ls generator-gunbot pm2 && echo "-#- aliases -#-" && cat ~/.bashrc | grep ginit && echo "-#- gunbot -#-" && ls -lah /opt/gunbot/ | grep gunthy
-#- release -#-
PRETTY_NAME="Open Source Media Center"
NAME="OSMC"
VERSION="February 2017"
VERSION_ID="2017.02-2"
ID=osmc
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.osmc.tv"
SUPPORT_URL="http://www.osmc.tv"
BUG_REPORT_URL="http://www.osmc.tv"
-#- nodejs -#-
v8.1.3
-#- modules -#-
/usr/lib
+-- generator-gunbot@0.1.22
`-- pm2@2.5.0
-#- aliases -#-
alias ginit='gcd && yo gunbot init'
-#- gunbot -#-
-rwxr-xr-x 1 root root 45M Jul 10 18:15 gunthy-linuxx64
-rwxr-xr-x 1 root root 43M Jul 10 18:15 gunthy-linuxx86
-rwxr-xr-x 1 root root 45M Jul 10 18:15 gunthy-macos
-rwxr-xr-x 1 root root 29M Jul 10 18:15 gunthy-x86.exe
I'm testing this on a Raspberry Pi 2 I have that is running 24/7 as a home theater PC. The OS is OSMC which is Debian based.
I'm testing this on a Raspberry Pi 2 I have that is running 24/7 as a home theater PC. The OS is OSMC which is Debian based.
I'm sorry, this generator does not support systems with ARM cpus. You need a special executable to run Gunbot on a PI (gunthy-armv6 or gunthy-armv7) but they are not supported by the generator.
BK
i have AWS Vps, what does happens if i shutdown my PC? I've done all from Putty, what happens if i close putty and i shut down my pc ?
How can i make this bot still work in every moments without my computer working?
Thanks for this great Gunbot Generator... can you please also support ETH market on bittrex.. thank you so much if you implement this..
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?
pm2 start ./gunthy-linuxx64 --name BTC_XXX -- BTC_XXX poloniex
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?
I need to reset my Ubuntu VPS. Now GB of all pairs not autorun, I need to run each by copy&paste:Code: [Select]pm2 start ./gunthy-linuxx64 --name BTC_XXX -- BTC_XXX poloniex
I have 20 pairs to run them again. Is there any command to run all pairs at once?
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?
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
echo "export NODE_TLS_REJECT_UNAUTHORIZED=0" >> ~/.bashrc
One of my pairs seems so have turned off show 'off' in the pm2 column of gmon. When I try to start this pair by running pm2 restart on its id its says it cannot find this process. What happened to the bot on this pair and what is the graceful way to have pm2 restart and log the bot on that same pair again?
Any chance for an update?
No command 'gstart' found, did you mean:
Command 'rstart' from package 'x11-session-utils' (main)
Command 'gkstart' from package 'gnukhata-core-engine' (universe)
Command 'start' from package 'upstart' (main)
Command 'kstart' from package 'kde-runtime' (universe)
Command 'gstat' from package 'ganglia-monitor' (universe)
I have an issue where when I leave the bot and I stop them all, I can no longer then run the "ginit" or "gstart" command from my folder. I have to run the Curl command to do the full install again and then the commands work again.
ERROR! - There was an error starting GUNBOT for BTC_EXP:
1
I have this error everytime I want to run it. Any Idea?
1. How many trade pairs are you going to start?
2. If you enter "gl", is there an empty list or is BTC_EXP in the list, but stopped?
3. Is there a log file for BTC_EXP? (enter "tail -n 30 /opt/gunbot/poloniex-BTC_EXP-log.txt" to see the last 30 lines, if it exists)
4. Is there a config file for BTC_EXP? (enter "ll /opt/gunbot/*BTC_EXP*" to see all files for that pair)
ERROR! - There was an error starting GUNBOT for BTC_EXP:
1
I have this error everytime I want to run it. Any Idea?
1. How many trade pairs are you going to start?
2. If you enter "gl", is there an empty list or is BTC_EXP in the list, but stopped?
3. Is there a log file for BTC_EXP? (enter "tail -n 30 /opt/gunbot/poloniex-BTC_EXP-log.txt" to see the last 30 lines, if it exists)
4. Is there a config file for BTC_EXP? (enter "ll /opt/gunbot/*BTC_EXP*" to see all files for that pair)
I have the same issue as listed here. I tried the second suggestion .
echo "-#- release -#-" && cat /etc/*release && echo "-#- nodejs -#-" && node -v && echo "-#- modules -#-" && npm -g ls generator-gunbot pm2 && echo "-#- aliases -#-" && cat ~/.bashrc | grep ginit && echo "-#- gunbot -#-" && ls -lah /opt/gunbot/ | grep gunthy && echo "-#- PM2 -#-" && pgrep -f PM2 && echo "-#- PM2 gunthy processes -#-" && pgrep -f gunthy
Whenever I run ginit and come to : Select the currencies you want to trade: (Press <space> to select, <a> to toggle all, <i> to inverse selection)
it's always taking 1ST only and not able to select the coin event I press space and coin don't select.
echo "-#- release -#-" && cat /etc/*release && echo "-#- nodejs -#-" && node -v && echo "-#- modules -#-" && npm -g ls generator-gunbot pm2 && echo "-#- aliases -#-" && cat ~/.bashrc | grep ginit && echo "-#- gunbot -#-" && ls -lah /opt/gunbot/ | grep gunthy && echo "-#- PM2 -#-" && pgrep -f PM2 && echo "-#- PM2 gunthy processes -#-" && pgrep -f gunthy
I've tried to move the logs & trades that have been done on my laptop to VPS with this lil script and it cannot start coins...it fails to start them :( no history and it will screw my trades..
echo "-#- release -#-" && cat /etc/*release && echo "-#- nodejs -#-" && node -v && echo "-#- modules -#-" && npm -g ls generator-gunbot pm2 && echo "-#- aliases -#-" && cat ~/.bashrc | grep ginit && echo "-#- gunbot -#-" && ls -lah /opt/gunbot/ | grep gunthy && echo "-#- PM2 -#-" && pgrep -f PM2 && echo "-#- PM2 gunthy processes -#-" && pgrep -f gunthy
I'm struggling to get the scripts started with this generator. I keep getting errors after following the two debugging instructions on the first page of this forum. Why is this happening?
echo "-#- release -#-" && cat /etc/*release && echo "-#- nodejs -#-" && node -v && echo "-#- modules -#-" && npm -g ls generator-gunbot pm2 && echo "-#- aliases -#-" && cat ~/.bashrc | grep ginit && echo "-#- gunbot -#-" && ls -lah /opt/gunbot/ | grep gunthy && echo "-#- PM2 -#-" && pgrep -f PM2 && echo "-#- PM2 gunthy processes -#-" && pgrep -f gunthy
I've tried to move the logs & trades that have been done on my laptop to VPS with this lil script and it cannot start coins...it fails to start them :( no history and it will screw my trades..
So what are the steps you did on your VPS?
I would suggest:
1. Run ginit and create all pairs.
2. Copy your logs and trades to the folder '/opt/gunbot/'
Can you provide me the output of this command:Code: [Select]echo "-#- release -#-" && cat /etc/*release && echo "-#- nodejs -#-" && node -v && echo "-#- modules -#-" && npm -g ls generator-gunbot pm2 && echo "-#- aliases -#-" && cat ~/.bashrc | grep ginit && echo "-#- gunbot -#-" && ls -lah /opt/gunbot/ | grep gunthy && echo "-#- PM2 -#-" && pgrep -f PM2 && echo "-#- PM2 gunthy processes -#-" && pgrep -f gunthy
I'm struggling to get the scripts started with this generator. I keep getting errors after following the two debugging instructions on the first page of this forum. Why is this happening?
Can you provide me the output of this command:Code: [Select]echo "-#- release -#-" && cat /etc/*release && echo "-#- nodejs -#-" && node -v && echo "-#- modules -#-" && npm -g ls generator-gunbot pm2 && echo "-#- aliases -#-" && cat ~/.bashrc | grep ginit && echo "-#- gunbot -#-" && ls -lah /opt/gunbot/ | grep gunthy && echo "-#- PM2 -#-" && pgrep -f PM2 && echo "-#- PM2 gunthy processes -#-" && pgrep -f gunthy
BK
-#- release -#-
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.04
DISTRIB_CODENAME=zesty
DISTRIB_DESCRIPTION="Ubuntu 17.04"
NAME="Ubuntu"
VERSION="17.04 (Zesty Zapus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 17.04"
VERSION_ID="17.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=zesty
UBUNTU_CODENAME=zesty
-#- nodejs -#-
v6.11.2
-#- modules -#-
/usr/lib
├── generator-gunbot@0.1.26
└── pm2@2.6.1
-#- aliases -#-
alias ginit='gcd && yo gunbot init'
alias ginit='gcd && yo gunbot init'
-#- gunbot -#-
-rwxr-xr-x 1 root root 45M Aug 19 03:37 gunthy-linuxx64
-rwxr-xr-x 1 root root 43M Aug 19 03:37 gunthy-linuxx86
-rwxr-xr-x 1 root root 45M Aug 19 03:37 gunthy-macos
-rwxr-xr-x 1 root root 29M Aug 19 03:37 gunthy-x86.exe
-#- PM2 -#-
4714
-#- PM2 gunthy processes -#-
4777
Could this be run on Raspberry PI?
Here you go:Code: [Select]...
-#- PM2 -#-
4714
-#- PM2 gunthy processes -#-
4777
The nasty one
Sometimes the PM2 God Deamon got detached from your (root-)user and you will see an empty list if you enter 'gl' BUT if you run 'pgrep -f BTC_XXX' you will see a id a result.
So the Gunbot is running but pm2 does not want to see it.
You need to kill the PM2 God Deamon, and remove the content in ~/.pm2/:Code: [Select]pgrep -f PM2 | xargs kill -9
Wait like 2 to 5 min till all Gunbots also stopped.
Check if there are running GunbotsCode: [Select]pgrep -f gunthy
If the dont stop, also kill themCode: [Select]pgrep -f gunthy | xargs kill -9
Now remove the content of ~/.pm2/Code: [Select]rm -r ~/.pm2/*
And run run 'ginit' again.
How to install very old version of your Gunbot Generator..
npm uninstall -g generator-gunbot
npm install -g generator-gunbot@0.1.0
I tried reverting back to generator-gunbot@0.1.8, is this an issue with node updates? the script installed v6.11.2. Looks as though version v6.10.3 was the latest version when generator-gunbot was released (start of this thread)
Would new version support GunBot 4 ?
Just wanted to say thanks for this awesome guide man! It has helped so many of my clients
when using ALLPAIRS, will it adjust/work with this settings as soon as ALLPAIRS is saved?
Does the generator work now without problems for GB 3.3.2.?
Forking allowed ?
Unfortunately i am not able to install Gunbot right, i get this Errors on Ubuntu (Free Amazon VPS), what can i do?:
Hey so some of my costumers are having trouble setting this up. They get all the way through to picking pairs and once that happens they cannot get past that point. Error loading config. What's the fix?
I am only able to get one trading pair to start. I've tried the fix in the first post and it does not seem to work.
Hey so some of my costumers are having trouble setting this up. They get all the way through to picking pairs and once that happens they cannot get past that point. Error loading config. What's the fix?
The problem is a combination of pm2 and running this as root (which is mandatory). You can try the fix described in the first post. But a real fix would be a rewrite of this generator. But I don't have time for that right now.
BK
Hey so some of my costumers are having trouble setting this up. They get all the way through to picking pairs and once that happens they cannot get past that point. Error loading config. What's the fix?
The problem is a combination of pm2 and running this as root (which is mandatory). You can try the fix described in the first post. But a real fix would be a rewrite of this generator. But I don't have time for that right now.
BK
Yea I tried the fixes in the post, but it didn't work. There's nothing left to do?
Unfortunately i am not able to install Gunbot right, i get this Errors on Ubuntu (Free Amazon VPS), what can i do?:
You need to run this script as root user.
BK
Unfortunately i am not able to install Gunbot right, i get this Errors on Ubuntu (Free Amazon VPS), what can i do?:
You need to run this script as root user.
BK
$ sudo su
# passwd root
# passwd –l root
I too am trying to do this with the Ubuntu server through Amazon's AWS. It doesn't allow you to login as root, it only allows you to login as "ubuntu". Is there anyway I can still run your code?
Either instructions on generator-gunbot script is missing.
sudo apt-get install curl
This was hard to find out since all script output is hidden as well, so the script lacks error handling as well.
Thank you for all your work!
What OS are you using?
BK