Gunthy

GUNBOT: The automatic profit generator => Beginners & Help => Topic started by: beer-k0in on May 13, 2017, 01:35:55 AM

Title: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on May 13, 2017, 01:35:55 AM
Hello everybody.

Working with version 3.3.2

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.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 (Choose Ubuntu 16.04.)
2. You need to be root user
3. I recommend a fresh virtual server

Generator:
1. Only supports trade pairs BTC to XXX
2. You can only change a few settings of the trade pair config
3. 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 6.x (for the generator and pm2),
- install required tools (yo, pm2, unzip),
- install the GUNBOT 3.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:

- What market do you want to setup (poloniex, bittrex or kraken)
- Your Market API key
- Your Market 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
- Your Delays of the Gunbot
- 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)

(*) 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.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 enter

Code: [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.


Additional scripts

"gstop all" and "gstart all" will likely cause 422 or 429 errors on Kraken and Poloniex, so user cw was so kind and wrote two scripts that nicely and safely start and stop all the bots.
You should use them. Please read his post in this thread to add them to your system: https://gunthy.org/index.php?topic=277.msg2110#msg2110
Thanks cw!


Known Errors

Quote
ERROR! - There was an error starting GUNBOT for BTC_EXP:
1

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 Gunbots
Code: [Select]
pgrep -f gunthyIf the dont stop, also kill them
Code: [Select]
pgrep -f gunthy | xargs kill -9
Now remove the content of ~/.pm2/
Code: [Select]
rm -r ~/.pm2/*
And run run 'ginit' again.



BK











Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: msn100001 on May 14, 2017, 10:14:27 PM
Very cool...
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: gg on May 15, 2017, 01:57:58 AM
Select the 512MG Ram option for ~5 running bots, or 1GB for ~10 running bots

running bot means 1 currency pair?
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 15, 2017, 07:39:39 AM
Select the 512MG Ram option for ~5 running bots, or 1GB for ~10 running bots

running bot means 1 currency pair?

Exactly. But since version 3.2 needs ~100MB RAM at start, I'll reduce that numbers:

Select the 512MB RAM option for ~3 running trade pairs, 1GB for ~8 pairs or 2GB for ~17 pairs
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: NCick27 on May 15, 2017, 10:16:47 AM
Sorry if this is a poor question but I am new to everything.

Unsure of how to detach from the bot and do not want to accidentally close PuTTY and lose myself BTC
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.

Other questions:
How long does it take for the bot to start trading as the logs I have checked are empty?
Is there any way for me to integrate this into a webserver so I can monitor profit/ losses?
How can I change bot settings?

Thanks so much for any advice as I said I am very new.

Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 15, 2017, 10:46:17 AM
Hi,

Unsure of how to detach from the bot and do not want to accidentally close PuTTY and lose myself BTC
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.
I 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. :)
1. If you close putty, just start it again.
2. To get out of "glog BTC_XRP" press CTRL+C

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.
Check the log an look for something like:
Code: [Select]
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)

Have patience.

Is there any way for me to integrate this into a webserver so I can monitor profit/ losses?

Sure, if you install a webserver and parse the logs and build the webapp to serve the parsed data.
But I think no one has build an easy to install webserver yet.

How can I change bot settings?

Open the 'poloniex-BTC_XXX-config.js' (the file will be empty) and add the settings you want to change.
I'm going to build a tool to do this like generating the configs, but that will take a while.

BK
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: jung on May 15, 2017, 10:02:31 PM
ERROR! - There was an error starting GUNBOT for BTC_EXP:
1


I have this error everytime I want to run it. Any Idea?
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 15, 2017, 10:49:12 PM
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)
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: Hexvenn on May 16, 2017, 12:56:44 PM
It's quite lovely! Especially the interface to add coins. Thank you.

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 - nevertheless, the script does very well!
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 16, 2017, 01:13:24 PM
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!

BK
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: jung on May 16, 2017, 03:42:25 PM
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)
(https://i.imgur.com/gvO6VRd.png)

1. I tried multiple options from 1 pair to 6
2. empty, nothing change
3. nope
4. nope

And there is another problem with API. When I put api I recive 422 error or 403 but when I run it on windows with 3.1 version all of them works :|
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 16, 2017, 04:00:46 PM
Could be an old version of the generator. Please check the version with
Code: [Select]
npm -g list generator-gunbot
If it is not generator-gunbot@0.1.8 please run
Code: [Select]
npm -g install generator-gunbot
and try again.
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: Hexvenn on May 18, 2017, 10:35:48 PM
How can I update to the new version from repo without messing things up?
Cheers
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 19, 2017, 12:47:27 AM
How can I update to the new version from repo without messing things up?

1. Login to your server.
2. Run this update script
Code: [Select]
curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/update.sh | bash --3. Run again
Code: [Select]
ginit4. Press ENTER for every question (it will use your last settings)
5. Press ENTER on the conflict of ALLPAIRS (*)
6. Wait till all bots are started.
7. [optional] If you have changed some configs manually, please copy them from the backup folder back into the gunbot folder:
Code: [Select]
cp /opt/gunbot-backup-<NUMBER>/poloniex-BTC_XXX-config.js /opt/gunbot/
Done

Check with 'gl' if all bots are startet. If not, run this:
Code: [Select]
gstart BTC_XXX--------

(*)The conflict is because the default settings have changed a bit and it is very likely you see this question:
Code: [Select]
conflict ALLPAIRS-params.js
? Overwrite ALLPAIRS-params.js? (Ynaxdh)

BK
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: cw on May 20, 2017, 09:30:58 AM
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)
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: Pro on May 20, 2017, 10:25:36 PM
This is almost exacly what I need ;)
Let's talk details soon.
Thanks
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 21, 2017, 12:05:14 AM
Hi cw,

Quote
I'm extremely impressed by your startup script.

wow, thanks. :) I'm really glad you like it.
I'm planing to change a few settings and extend the process of adding new pairs and just restarting some / all bots. Since I'm using GUNBOT a little longer now, my requirements have changed a bit since my first steps. :) 

Lack of output

Actually I'm also missing output in this setup. pm2 is a really solid process manager, but having 16 trade pairs running, "pm2 monit" (all logs of all processes in one window without colors) is not useful at all. :D
Your setup with all the log screen is too much for my current needs - too much information for my slow brain. ;) So I'm building a monitor to show all information in on screen in one table. It is not ready to give it away yet (it does not collect all errors and some price infos are still ignored), but here is a sneak peek ;) I hope to finish it next week.

(https://i.imgur.com/gF8wCr4.png)


CPU load

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).

(https://i.imgur.com/ZLTEuBb.png)
(https://i.imgur.com/G0lpeU2.png)

BK
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: cw on May 21, 2017, 07:35:55 PM
Dude.   I love your new monitor.  We should probably team up somehow on our ideas. Did you see the mock up I posted in my link of the gunbot console I'm working on from last month?  Mine parses the logs as well (but is dependent on v203 console logs which is why I use "tee"). It looks like pm2 fixes this problem for me so I'm super happy to have found your post.  I never would have dove into pm2 without being curious about your amazing generator-gunbot script. 

(http://i.imgur.com/I0S0WnM.jpg)

I think we're on the same track, don't you? :)

I want a per-pair latest snapshot of useful info.  I do NOT want a log I have to scan. Logs don't help me see what is current.  Logs help me trouble what happened in the past.  Most of the time I want to see a snapshot of the NOW with a hint of the past.  I like a lot of what you put in there.  I'd add something like trades: x/x/x and that would be 1hr/6hr/12hr/24hr/ etc so we could see

Also gnuplot and other Linux CLI plotting tools have some powerful capabilities where I wanted to have some easy ANSI one liner visual tools to show activity per pair for trades, prices,  directions, profit (relative to all pairs in table) and all that stuff. 

For a while I thought the json would have what I wanted but in previous versions Gunthar only saved it when he made a trade.  I needed it updated every cycle and I asked that as a feature.  We'll see.  Because if we get that info not only could we do a CLI interface but we could do a PHP web interface as well if we wanted.  (With buttons and an API to tweak settings).

 
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: redindian on May 22, 2017, 03:39:37 PM
Wow, this is great! Was running on Linux using screen (ouch!) but this is so much better. Thanks a lot!
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: Pro on May 22, 2017, 03:43:11 PM
I have some Ideas for that as well.
Could it also create a swap virtual RAM, so you could run 50 pairs on a 5$ Setup, instead of just 5.
This would be great :)
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: MrSparkle on May 22, 2017, 05:54:34 PM
Thank you! This was just what I was looking for and it's really easy to set up.

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..
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: redindian on May 22, 2017, 06:11:47 PM
Quick question:

The scripts installs 3.2 and then applies several patches. But in the latest release with GUI it says:
"For Linux users: update executable, fixed reported bugs of last week + security margin (thanks CryptoKeeperCanada!)

Thanks to @raffaeledonadono for his contribution to the code of this patch!"

Does this mean the installer does not include the latest fix yet?

I was thinking to update the installer script myself using only the latest release just to be sure...
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: Hexvenn on May 22, 2017, 08:32:36 PM
Both of monitors are looking absolutely fantastic, looking forward to them. I love running stuff on headless servers and staring at the logs but this is certainly better.
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: cw on May 22, 2017, 10:26:20 PM
Quote
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).

I checked my CPU again and sure enough, it quieted down a lot.  it's between 1-2%

(http://i.imgur.com/IluBekT.jpg)

Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 22, 2017, 11:12:50 PM
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
$7 for 6GB RAM is better than swap virtual RAM I think. :)

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? Try
Code: [Select]
gstart BTC_XXX
Does this mean the installer does not include the latest fix yet?

I was thinking to update the installer script myself using only the latest release just to be sure...
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:
https://gunthy.org/index.php?topic=277.msg1422#msg1422


I checked my CPU again and sure enough, it quieted down a lot.  it's between 1-2%
8)

BK
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: MrSparkle on May 23, 2017, 02:17:39 AM
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? Try
Code: [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
(https://gyazo.com/9968673756c1a158702ec2ac5dcdfa67.png)
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 23, 2017, 07:55:26 AM
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
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 23, 2017, 09:26:38 AM
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)?

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
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: Xaos on May 23, 2017, 10:05:15 AM
What is "Watching disabled"?    And can it be enabled? If so how?






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 enter

Code: [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
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 23, 2017, 11:27:35 AM
What is "Watching disabled"?    And can it be enabled? If so how?

http://pm2.keymetrics.io/docs/usage/watch-and-restart/
"PM2 can automatically restart your application when a file is modified in the current directory or its subdirectories"

"can it be enabled?": Sure, you are free to do what ever you want on your server.
"how?": Follow the instructions at http://pm2.keymetrics.io/docs/usage/watch-and-restart/

BK
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: btcjuice on May 23, 2017, 05:21:43 PM
First of all: Great job mate!

Second: how can we add more pairs after the initial setup?

Third: please release that update you posted a screenshot above, looks awesome :D
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 23, 2017, 05:34:08 PM
First of all: Great job mate!
Second: how can we add more pairs after the initial setup?
Third: please release that update you posted a screenshot above, looks awesome :D
1. Thx. :)
2. 'gadd' - but it will use the settings you choose in 'ginit'
3. soon. :)
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: btcjuice on May 23, 2017, 06:49:12 PM
so just had thebad idea of adding a new pair... MY VPS went nuts on CPU power and crashed :(


now i cant start gunbot anymore.. i just get


Code: [Select]
? 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


and when i check the poloniex-BTC_BTS-err.txt file just get

Code: [Select]
::::2017/05/23 13:27:17 Error statusCode 429


Also when typing "gl" none of the pairs show up there anymore... any help?
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 23, 2017, 07:31:26 PM
so just had thebad idea of adding a new pair... MY VPS went nuts on CPU power and crashed :(

Are you sure the CPU caused the problem?

General info
You need more than 130MB free memory to start a bot. So I guess you have 512MB RAM in your VPS. 6 bots are to much, I recommend 3-4.


any help?

Solution A
Start only one trade pair:
Code: [Select]
gstart BTC_BTS
It should start. Wait 2-3 min and check the available memory:
Code: [Select]
free -m(last column "available")

Check how much memory this trade pair uses via 'gl'.
If it is below 100MB and your available memory is above 130MB, start the next trade pair.

Solution B
Remove all processes from pm2:
Code: [Select]
pm2 delete all
Run 'ginit' again but in the last step, select only 2 or 3 trade pairs.
If they start, check your free memory and if you have more than 130MB, run 'ginit' again and select one pair more. The already started pairs should not be affected by that. (it should work, but I have not tested that case)

BK
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: btcjuice on May 23, 2017, 07:41:48 PM
I was able to solve this by manually starting them using:

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)



Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: MrSparkle on May 23, 2017, 07:59:54 PM
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

My config files have nothing in them except for ALLPAIRS which had a time delay and fail delay. After running ginit again, I tried to manually put in the trade limit, but no go.

I tried:
Code: [Select]
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 gl

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)?

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

I tried:
Code: [Select]
gcd
gstop all
ginit
but I was getting this error
(https://gyazo.com/08bbcd83c49d2c9a7f4c5fcdc8bb222c.png)

So I gave up and reinstalled the VPS to get a fresh install of your generator and all is fine now. Thanks for the help :P
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 23, 2017, 10:53:46 PM
Code: [Select]
pm2 start ./gunthy-linuxx64 --name BTC_DASH -- BTC_DASH poloniex
hope that was the correct way... now all seems ok again...

That's exactly how the generator starts the gunbot. So, yes, that's absolutely the correct way!. 8)

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?
For less than 10 bots a delay of 100 should be no problem.


but I was getting this error
Hm, somehow the rights to write to the ALLPAIRS file have changed. Thank you for all your input. Will help to make the generator better!

BK
 
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: MrSparkle on May 24, 2017, 02:59:52 AM
but I was getting this error
Hm, somehow the rights to write to the ALLPAIRS file have changed. Thank you for all your input. Will help to make the generator better!

BK
[/quote]

Ouuu, glad I can help :)
That's what I thought because I tried to update with the 2022 patch and I unzipped the whole contents instead of the executables which would probably explain why the bots weren't restarting? Forgot to mention that because I did that a few days before trying to change the trade limit lol
So then I tried to run:
Code: [Select]
chmod +x /opt/gunbot/gunthy-*
as a last desperate attempt, but it didn't work so I just started fresh lol
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: Grimdin on May 24, 2017, 10:51:57 AM
Great tool but any news about making support for Bittrex & Kraken also?

I could use those also.
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 24, 2017, 11:01:42 AM
Great tool but any news about making support for Bittrex & Kraken also?

Sorry, there is no estimated time right now. I will update this generator in the next 4 weeks and than it will probably support Bittrex & Kraken. But no guaranties. :-\
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: Xaos on May 25, 2017, 05:28:00 AM
How to start it on Bittrex? I already put api keys in config. Then what?

Can manually start it on bittrex?
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 25, 2017, 08:01:06 AM
How to start it on Bittrex? I already put api keys in config. Then what?

Can manually start it on bittrex?

The generator only supports Poloniex at this moment.

You can always go the manual way and set the configs manually and than use this to start a bot.
Code: [Select]
pm2 start ./gunthy-linuxx64 --name BTC_XXX -- BTC_XXX bittrex
But do not use 'ginit' or 'gadd', bacause it will remove your bittrex or kraken API credentials from ALLPAIRS.
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: Xaos on May 25, 2017, 02:28:00 PM
thanks

one more question

how to clean this list?

(https://i.gyazo.com/5bef370eca9dc826fdd07526b0c90ff2.png)
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: redindian on May 25, 2017, 02:42:00 PM
Thanks for the updated installer!

I was right to fix it myself manually then. Are there any updated defaults I should be aware off? I only updated the gunthylinuxx86 and restarted everything.
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: dj_crypto on May 25, 2017, 07:53:08 PM
Very good mate.

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.

Really appriciate your work. When I get it working I will send you a nice donation.

dj_crypto
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 25, 2017, 09:40:55 PM
how to clean this list?

Code: [Select]
pm2 delete all


Are there any updated defaults I should be aware off? I only updated the gunthylinuxx86 and restarted everything.

No, I don't think so. Just updating the binary file(s) should do the job. So I think you good to go. Actually I used the update script on my to main accounts and all it does is replacing the binarys, and everything runs like it should be.



Is there a way to start pairs with different API keys? I do not use the same API for all my pairs.

Actually not without editing your configs manually. I started this as a option for people who just started using GUNBOT and just want to get it running - as this were also my first steps into it.
I do also use multiple API-Keys now and ended up in having 2 Server. But I'll add this use case to my list of features for the next version.

Can I also import my own config files and how would I start.

Ok, it could work that way:
1. You create all the config files with 'ginit' and set one of your API keys there.
2. You do not start any trade pair.
3. Now all your settings are in ALLPAIR and all of your selected pair configs are empty.
4. You can now copy your own config files and replace the created ones or edit the created files and just add the different settings you want for that pair compared to ALLPAIRS.
5. At least add the API key and secret to the config files of the trade pairs which you want to use another key than in ALLPAIRS.
6. When you done, run 'ginit' again, in the last step, select all pairs you want to start and than press 'n' on every conflict the generator is presenting you. So let it not overwrite your files.

Now ginit should start all of your bots. I did not try that, but I think it will work that way. :)
If not, do all of the abouve staps, including step 5 but than run
Code: [Select]
pm2 start ./gunthy-linuxx64 --name BTC_XXX -- BTC_XXX poloniexfor every pair you want to start. delay every start by ~10 seconds.

BK
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: mst on May 26, 2017, 07:31:07 PM
I am getting this errors. What I am doing wrong?

Code: [Select]
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

 ============================================================
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on May 26, 2017, 07:34:53 PM
I am getting this errors. What I am doing wrong?

For the current version of the generator, you need to be root user.

BK
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: Xaos on May 31, 2017, 06:02:01 PM
IC its updated to v3.3 now :)

thx
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: beer-k0in on May 31, 2017, 07:57:58 PM
Update for version 3.3

To update follow these steps:

1. Login to your server.
2. Run this update script
Code: [Select]
cd
curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/update.sh | bash --
3. Run 'ginit' again to start all bots with delay
Code: [Select]
gcd
ginit
4. Press ENTER for every question (it will use your last settings)
5. [optional] Press ENTER on the conflict of ALLPAIRS (*)
6. Wait till all bots are started.
7. [optional] If you have changed some configs manually, please copy them from the backup folder back into the gunbot folder:
Code: [Select]
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 bot



(*) The conflict could happen if you have an older version of the generator, because the default settings have changed a bit. In that case it is very likely you see this question. Just press ENTER:

Code: [Select]
conflict ALLPAIRS-params.js
? Overwrite ALLPAIRS-params.js? (Ynaxdh)


BK
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: cryptico on June 01, 2017, 02:07:09 AM
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)

Hi, nice job bro! looks fantastic...

I want to have that monitor working on my VPS, but i have this problem:
Quote
The following problem occured:
-----------------------------
line 35 of file 'multitail.conf' is too long!
Terminated
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on June 01, 2017, 08:13:19 AM
I want to have that monitor working on my VPS, but i have this problem

Please use this thread to get help about Cryptowally's gunbot linux console:
https://gunthy.org/index.php?topic=261

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: Xaos on June 01, 2017, 12:01:09 PM
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.

Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: beer-k0in on June 01, 2017, 01:02:01 PM
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.

It looks like the config update does only work with the configs of the pair, not with ALLPAIRS :(

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: Xaos on June 01, 2017, 05:04:55 PM
Yeh
Thx
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: misc on June 02, 2017, 09:33:04 PM
Thank you for your efforts, it works great! Is it possible to start a second instance, let's say with another API ?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: beer-k0in on June 02, 2017, 09:46:12 PM
Thank 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
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: misc on June 02, 2017, 09:48:33 PM
 
Thank 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
Wow, let me know if you need a beta tester  :D
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: FgTeaMBR on June 03, 2017, 12:46:43 PM
Hey @beer-k0in you can post a script to install only v3.2 ?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: beer-k0in on June 03, 2017, 05:24:51 PM
Hey @beer-k0in you can post a script to install only v3.2 ?

Old version: https://github.com/BeerK0in/generator-gunbot/blob/gunbot-v3-2/install.sh

So it would be:
Code: [Select]
curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/gunbot-v3-2/install.sh | bash -- && exec bash
BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: miner437 on June 04, 2017, 07:55:49 AM
Hi, im new to this and my first post, hows everybody trading???

Here's my experience on this set-up and how do i sort-out.

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. What i do i just re-issue again the "curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/install.sh | bash -- && exec bash" command to somehow update or possible fix this and it works on me.
2. Don't stop your bot just spam "gadd" alot to add your coin and the process is straight forward pressing enter keys.
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. I've search whole internet for this "via grub, stty, tty, blah blah blah...it wont work, it will end half of your screen not full screen. After you enter "gmon" some columns of text are compressing each other unlike "pm2 monit". If your using a terminal in a GUI well its fine after next refresh of "gmon" will fit whole text. If someone fix this please let me know.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: beer-k0in on June 04, 2017, 08:14:39 PM
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.

Why would you "spam ginit"?

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.

What version of debian do you use?
Code: [Select]
cat /etc/*-release
What is your local OS and how (what program) do you connect to your VPS?

Can you add screenshots of all of the errors / the error output please?

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: miner437 on June 05, 2017, 04:11:03 AM
The error i mention is the ERROR pair starting BTC_XXX, i thought i fix it with ginit but after i start same error. I think its my fault at first cause i add pairs with ginit not gadd after adding first sequence of pairs.

Im using Debian 8.8 stable-core(no-GUI)and Debian 9-testing(GUI) on my local computer. (I have no screenshot because i tested this distros reformatted thinking debian is causing this.)

Im using SSH to connect my VPS both the distros on my computer.

Im using juicessh to connect VPS on my android mobile and a lovely bluetooth keyboard   ;)

Thanks on your wonderful generator, it saves a lot of time to run it from scratch  8)
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: misc on June 05, 2017, 07:16:59 PM
Is an update to the newest release 3.3.2 possible ? How?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: _cRw_ on June 05, 2017, 11:02:12 PM
Great script beer-k0in. Very easy to make it work ;)

I have one question: what if I want to use different API keys for different pairs?

Thanks
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: technine on June 06, 2017, 07:15:28 AM
I used the generator on a Vutlr VPS and it worked awesome. I have since upgraded to a VPSdime server for more RAM but am having issues with the generator.  I am starting with a complete fresh install of 16.04 Ubuntu 64 bit and when I run the script it stays stuck on the first step no matter how long I wait. 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. Any suggestions would be appreciated.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: miner437 on June 06, 2017, 07:36:15 AM
check /opt if gunbot files are there, you must run as root to install files there via beer-k0in bash scripts.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: miner437 on June 06, 2017, 07:41:24 AM
Sometimes its to long to load SSH from my local debian to access my VPS (OVH-8gb), however i find mobile is more faster to run; for android JuiceSSH and for ios vSSH. Even you at work can monitor it and check hows our bot doing  ;)
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: beer-k0in on June 06, 2017, 07:47:34 AM
Is an update to the newest release 3.3.2 possible ? How?

There will be an update to this script in 12h to 24h.



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.



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
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: misc on June 06, 2017, 09:01:31 AM
Is an update to the newest release 3.3.2 possible ? How?

There will be an update to this script in 12h to 24h.


I already patched it on my own, hope BK will be ok if i post it here ?

If somebody needs the update to 3.3.2 just run it, as BK states in this thread, but you need to change the url like this :
curl -qsL https://raw.githubusercontent.com/misc2012-DE/generator-gunbot/misc2012-DE-patch-1/update.sh | bash --

Mike
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: _cRw_ on June 06, 2017, 09:55:52 AM
Quote
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.

Not even by using 2 different directories? One for each API?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: misc on June 06, 2017, 10:22:31 AM
Quote
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.

Not even by using 2 different directories? One for each API?
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.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: beer-k0in on June 06, 2017, 11:10:17 AM
Update for version 3.3.2

To update follow these steps:

1. Login to your server.
2. Run this update script
Code: [Select]
cd
curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/update.sh | bash --
3. Start all bots with delay
Code: [Select]
gcd
ginit
4. Press ENTER for every question (it will use your last settings)
5. [optional] Press ENTER on the conflict of ALLPAIRS if you did no manual changes (*)
6. Wait till all bots are started.
7. [optional] If you have changed some configs manually, please copy them from the backup folder back into the gunbot folder:
Code: [Select]
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 bot



(*) The conflict could happen if you have an older version of the generator and the default settings have changed a bit. In that case it is very likely you see this question. Just press ENTER if you did no manual changes to ALLPAIRS:

Code: [Select]
conflict ALLPAIRS-params.js
? Overwrite ALLPAIRS-params.js? (Ynaxdh)

But if you modified it by your own, press 'n' to keep your old config. No worry, the old config is backuped in /opt/gunbot-backup-<NUMBER>/ALLPAIRS-params.js anyways. 8)

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: beer-k0in on June 06, 2017, 11:21:18 AM
Quote
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.

Not even by using 2 different directories? One for each API?
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.

This generator does not support different API key nor different folders. It is bound to the folder /opt/gunbot/
Of course you can create another folder and edit the config files manually or (in one directory) get rid of the API key in ALLPAIRS and add it to the pair configs.
But your scenario is beyond the purpose of this version of the generator. It will only get you started in no time with basic settings - nothing more.

But there is a v2 in the works.

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: misc on June 06, 2017, 01:38:07 PM
How about Bittrex, will it work with Bittrex as well ? (This or next version)
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 06, 2017, 01:57:57 PM
How about Bittrex, will it work with Bittrex as well ? (This or next version)

For the current version all infos from the first post are still valid:

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

Version 2.x will be able to handle all markets.

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: technine on June 06, 2017, 07:44:29 PM

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.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: beer-k0in on June 06, 2017, 07:57:36 PM
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
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: technine on June 07, 2017, 12:48:43 AM
Thanks for the verbose link. It looks like it's an issue with my VPS host. The base system update is getting stuck at configuring libc6 as the Kernel is older than 3.2 and apparently its using the kernel on the server hosting the container not the kernel in the OS.

I just set everything up manually and it works now but for anyone looking to use this script to get everything set up done use vpsdime for your host...
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
Post by: bobbydigital on June 07, 2017, 01:50:48 AM
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
I was having trouble getting this to start on an OVH vps (Ubuntu 16) until I ran the above command. gstart kept giving errors.

As someone completely new to GB, does this have the 1000trades and Russian Roulette I keep reading about? Or is that called something else when using gadd?
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: lossbit on June 07, 2017, 07:10:24 AM
ERROR! - There was an error starting GUNBOT for BTC_EXP:
1


I have this error everytime I want to run it. Any Idea?

get the same problem here.
trying use 1pair, the generator gunbot is ver 1.13, when i do update (npm generator-gunbot) still have same version rather than 1.8.

please advice me

thanks in advance
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on June 07, 2017, 09:38:18 AM
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 Gunbots
Code: [Select]
pgrep -f gunthyIf the dont stop, also kill them
Code: [Select]
pgrep -f gunthy | 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
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Nael on June 07, 2017, 10:08:41 AM
Any chance of a Bittrex version coming up soon? ;)
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 07, 2017, 11:27:41 AM
Any chance of a Bittrex version coming up soon? ;)

Not so likely, sorry. I'm very busy this week. I hope I'll finish it by end of next week - but don't relay on that.

BK
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: lossbit on June 07, 2017, 02:24:55 PM
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 Gunbots
Code: [Select]
pgrep -f gunIf the dont stop, also kill them
Code: [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
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 :D
you deserve a beeer buddy!! hehehe
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: teeftoof on June 08, 2017, 10:30:07 PM
Is this common or have I done something wrong?  I keep getting 422 errors randomly on all my pairs. 

(http://i.imgur.com/T2T1mXd.png)
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 09, 2017, 09:34:16 AM
Is this common or have I done something wrong?  I keep getting 422 errors randomly on all my pairs. 

There is nothing wrong. The GUNBOT handles errors on its own. No need to worry.

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: cw on June 09, 2017, 05:16:10 PM
FYI - since "gstop all" and "gstart all" will likely cause 422 or 429 errors, I wrote a quick couple of scripts that nicely and safely start and stop the bots.


This should prevent any 429 errors and make it easy to manage the bots without having to make a bunch of custom scripts based on the pairs you're using.  Also note that it will only attempt to stop bots that are status=online, and will only attempt to start bots that are status=stopped.



Just select the code below and paste it in a bash terminal.  It will create the start_bots.sh and make it executable.  Then do the same for stop_bots.sh.

Code: [Select]
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





Code: [Select]
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




Here's a sample of what it looks like running:

First we stop them....

(http://i.imgur.com/2PTzptA.jpg)

and then we start it up again.

(http://i.imgur.com/5QZaQNu.jpg)

Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: botreminer0011 on June 09, 2017, 05:35:22 PM
Great script.

How much memory is used by each pair (process app-name) ?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: CoinKombinat on June 09, 2017, 05:36:00 PM
nice, thanks wally ;) and so far, thanks alot mister mighty beer ;D
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: cw on June 09, 2017, 06:22:18 PM
Great script.

Thank you!

Quote
How much memory is used by each pair (process app-name) ?

I believe that is shown in the "mem" column over on the right.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: botreminer0011 on June 09, 2017, 07:36:34 PM
Great script.

Thank you!

Quote
How 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.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 09, 2017, 09:59:42 PM
I wrote a quick couple of scripts that nicely and safely start and stop the bots.

Year! Nice one! Thank you.

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: someone111 on June 10, 2017, 12:24:49 AM
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!
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 10, 2017, 01:13:27 AM
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
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: dcb942 on June 10, 2017, 04:38:37 PM
This looks fantastic. When will bittrex support be available?
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: orthanc on June 11, 2017, 06:23:33 AM
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 Gunbots
Code: [Select]
pgrep -f gunIf the dont stop, also kill them
Code: [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

I got the same error, and it was the nasty one that solved :)
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 12, 2017, 10:48:43 AM
This looks fantastic. When will bittrex support be available?

2 or 3 weeks from now.



I got the same error, and it was the nasty one that solved :)

Glad you could fix it. For v2 I will try to be able to handle those pm2 issues automatically.



Thank you all for reporting bugs!

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: imwmi on June 15, 2017, 08:46:44 AM
Hello everyone,

Looking for documentation on how to update the individual config files (per coin), if possible.

Can't seem to find what I need to clarify the steps on that.

Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 15, 2017, 10:26:36 AM
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
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: imwmi on June 15, 2017, 01:24:12 PM
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.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 15, 2017, 10:59:59 PM
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]
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
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: imwmi on June 15, 2017, 11:21:54 PM
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

Thank you kindly BK -

Next question is I'm planning on moving my GunBot fully over to linux, and before doing so want to make sure everything is running well. At this moment both are running at the same time. Before I shutdown my Windows bot my concerns are the following:

*UPDATE*

After speaking with BeerK0in directly, was able to get answers for my questions. So here they are for those searching for something similar:

LINUX Instance (New)
[/list]
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: hbtcc on June 17, 2017, 07:22:25 AM
Thank you for the tutorial and tools.
I installed GunBot 3.3.2 to VPS linux server using your method and also installed gunbot-monitor.

Q:
I have a question about editing "ALLPAIRS-params.js" file.
Currently I edit the file on my desktop computer using notepad++ and copy it to the Gunbot folder on linux server with WinSCP.
I wonder if changing settings in the "ALLPAIRS-params.js" file will be applied to all running pairs automatically,
or I have to run "ginit" then press "n" on "Overwrite ALLPAIRS-params.js?" question each time I edit the file.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Defpro on June 18, 2017, 01:05:58 PM
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?
-Deffy
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 18, 2017, 04:06:09 PM
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.



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?

Nothing, ignore 422 and wait for the next Gunbot version. Everyone has massive 422 errors this time.

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: freelunch on June 19, 2017, 03:49:15 PM
Thank you for this tutorial beer-k0in! I will support you with a tip.

Everything works fine and my Gunbot made his first trades.

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?

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?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 20, 2017, 07:07:20 AM
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?

Your core system needs also some of the RAM.
Example from a fresh VPS with 512 MB RAM:
Code: [Select]
# free -h
              total        used        free      shared  buff/cache   available
Mem:           488M         58M        206M        8.3M        224M        399M

Only 399 MB are available. If you start a Gunbot, it needs more than 120 MB RAM - later this is reduced to ~85MB.


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?

No. All Versions of Gunbot are using the same core code to work. Only the GUI is different.

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: hbtcc on June 20, 2017, 07:21:28 AM
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.




Thank you for the reply.
I'm running GunBot for few days and have questions.

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.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: freelunch on June 20, 2017, 07:37:02 AM
No. All Versions of Gunbot are using the same core code to work. Only the GUI is different.

I phrased my question wrong. I mean, how can I change the settings of Gunbot on my Linux VPS?

For example, how can I adjust the EMA1/EMA2 settings?

If I choose a pair and use Bollinger Band, I can only modify the percentage for buy/sell of the Bollinger band.

And thanks for the explanation concerning the RAM.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: flashdel on June 20, 2017, 10:49:52 AM
Is it possible to set the max amount per trade for all the pairs i got to x.xxx without reconfiguring every single bot?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 20, 2017, 02:50:06 PM
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.

A1:
You can delete the logs like you want. Mine are > 100MB.

A2:
Profit and number of Trades is not accurate in the current version. Please ignore it.
Log into the markets you are trading on and check your trades there.



Is it possible to set the max amount per trade for all the pairs i got to x.xxx without reconfiguring every single bot?

Open ALLPAIRS-params.js and set the trading limit there.

If you ONLY want to set the trading limit for all pairs, your ALLPAIRS-params.js would look like this:

Code: [Select]
var config = {
    BTC_TRADING_LIMIT: 0.00123,
};

module.exports = config;

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: infebious on June 21, 2017, 12:04:06 AM
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:

? Select the trade pair currencies you want to automatically start right now: SC
 conflict ALLPAIRS-params.js
? Overwrite ALLPAIRS-params.js? overwrite
    force ALLPAIRS-params.js
   create poloniex-BTC_SC-config.js
ERROR! - There was an error starting GUNBOT for BTC_SC:
1

I'm just trying to start it w/ 1 pair.

EDIT:

Tried this and it seems to be working now:

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 Gunbots
Code: [Select]
pgrep -f gun
If the dont stop, also kill them
Code: [Select]
pgrep -f gun | xargs kill -9

Now remove the content of ~/.pm2/
Code: [Select]
rm -r ~/.pm2/*

And run run 'ginit' again.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 21, 2017, 08:33:27 AM
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

Glad you got it running again.


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: DiCE1904 on June 22, 2017, 02:55:15 AM
Small dono sent your way, cant wait for the bittrex update  ;D
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: freelunch on June 24, 2017, 05:11:13 AM
What does this message mean?

Quote
? Overwrite poloniex-BTC_BTS-config.js? overwrite
    force poloniex-BTC_BTS-config.js
 conflict poloniex-BTC_CLAM-config.js

I edited all pairs via 'ginit' and tried to overwrite the new settings. When I check a pair now, it has the new settings and 'gl' shows all pairs online. Should I do something now because of the conflict?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 24, 2017, 06:24:51 PM
Small dono sent your way, cant wait for the bittrex update  ;D

Latest version supports all markets now. But some coins in Bittrex are missing. Will update in ~16h



What does this message mean?

Means that file will be changed and wants your confirmation to do so.

Gunbot recognizes changed config files. So you are good to go.


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: kazinajc on June 24, 2017, 06:30:29 PM
Hey everyone.
I need a bit of help with my gunbot initial startup.

I'm using Ubuntu 17.04, 64-bit, on Contabo web service.  Memory: 6GB, Processor: Intel Xeon CPU E5-2620 v 2, 2.1GHz x 2, Disk 500GB.

- sudo apt-get update and - sudo apt-get upgrade
is up to date and i still get an error while running beer-k0in's script as root.

Picture of error is attached. Does anyone know what could be the reason?

Thanks, kazinajc
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Berserk on June 24, 2017, 07:57:18 PM
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.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 25, 2017, 10:15:46 AM
I need a bit of help with my gunbot initial startup.

Try this script. It prints out everything. Maybe you get a hint what goes wrong.

Code: [Select]
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.

Debian 9 does not support Node.js 7.x. But Ubuntu 17.04. does.

Anyways, I will update the script to the new Node.js 8.x soon.


BK



Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: kazinajc on June 25, 2017, 05:19:17 PM
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.

Thanks, that worked!

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.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Top0tun on June 25, 2017, 07:00:22 PM
Hello All!
I install configurator and configure pairs. Configurator start pair, but config file is empty. Does anyone know why?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 25, 2017, 10:52:16 PM
I install configurator and configure pairs. Configurator start pair, but config file is empty. Does anyone know why?

Which config file is empty? There are 2:
- ALLPAIRS.params.js --> that will be empty
- market-BTC_XXX-config.js --> should not be empty



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.

You can always run Gunbot without this generator. All you have to do is copy a config file and start the gunbot. You can use pm2:
Code: [Select]
pm2 start ./gunthy-linuxx64 --name "BTC_XXX" -- BTC_XXX bittrex
But I updated the generator to support those new coins now:
Code: [Select]
npm install -g generator-gunbot

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Top0tun on June 26, 2017, 02:25:17 AM
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?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 26, 2017, 08:56:55 AM
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?

The files for each PAIR are in that syntax: market-BTC_XXX-config.js You need to adjust that for your actual market and pair - I do not know what you are running, so I only provide a general file name. Depending on your config those file could look like this:
poloniex-BTC_DOGE-config.js
bittrex-BTC_ETH-config.js
kraken-BTC_LTC-config.js

Please check for such files.


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: forato on June 26, 2017, 07:46:51 PM
Is there a way to see all the trades that gunbot made? and maybe the profit?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 27, 2017, 01:25:54 AM
Is there a way to see all the trades that gunbot made? and maybe the profit?

You can try gmon: https://gunthy.org/index.php?topic=319.0

But the current calculation of the number of trades and the profit are not 100% correct right now. On Bittrex they are off by up to 50%


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Xaos on June 27, 2017, 01:44:15 PM
on your latest github update with nodejs v8 there simes to be some bug

Im on new Ubuntu 16.04

it install okay, but after ginit and when it says Yeah coin was started, you do gl and there is no process

here is screenshoot

http://i.imgur.com/hBsIkDg.png

Installed it on other vps with Ubuntu 16.04 and its the same, nothing in gl

Was working fine before
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: ajg on June 28, 2017, 07:35:09 AM
I'm having the same issue as Xaos. gl is empty and attempts at starting anything (even from within ginit) fail. 

I tried your fix of deleting everything in ~/.pm2 and so on, but it doesn't help.  I even Installed Ubuntu Server 16.4 fresh on my laptop again, used your install instructions and it fails.  I'm having to manually start with a script which includes the manual start line "pm2 start ./gunthy-linuxx64 --name "$p" -- $p poloniex" where $p is the pair (in a loop with delay). 

So there may be a problem here.  I'm pretty sure you can reproduce this yourself. 

Thoughts.  Thanks heaps for your work on this, it's quite brilliant by the way. 
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: kin0 on June 28, 2017, 11:50:20 AM
The script seems to be ok, but i've messed up my permissions on my npm install and it's now not working correctly.

Can anyone give me a link on how to either uninstall and then reinstall npm to correct the permissions?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: kin0 on June 28, 2017, 12:04:10 PM
Tried running this on a fresh instance and there seems to be an issue in the script itself?  I get this error during fresh install on Digital Ocean

============================================================
                    GUNBOT 3.3.2 SETUP started

                This will take a few seconds

 ============================================================

 (1/6) Update the base system
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (2/6) Install nodejs 6.x
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (3/6) Install tools
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bash: line 40:  3281 Killed                  npm install -g pm2 yo@1.8.5 generator-gunbot gunbot-monitor > /dev/null 2>&1
 (4/6) Install GUNBOT
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (5/6) Add GUNBOT aliases
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (6/6) Init generator
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 ============================================================
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on June 28, 2017, 01:15:42 PM
Works on my fresh DO Ubuntu 16.04.2 x64:

(https://i.imgur.com/7na11qU.jpg)


So lets stop using this generator until I have time to investigate and solve that fucking pm2 issue.

BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: cryptogolden24k on July 01, 2017, 06:57:30 PM
Am i missing something? I get a "command not found" error when trying to run this script.... some assistance please
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: freelunch on July 01, 2017, 08:31:00 PM
Can somebody tell me the code to stop all pairs/stop the bot?

I only know how to stop single pairs.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: cw on July 02, 2017, 05:27:45 AM
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.


Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on July 03, 2017, 12:43:04 AM
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.

"gstop all" and "gstart all" are still the same and will cause API errors on Kraken and Poloniex. I added a link to your scripts to the first post of this thread.
Thanks cw!


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: freelunch on July 04, 2017, 02:32:18 AM
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.

Would you explain me how to paste the code correctly?

I connect via ssh to my server and just paste your code, right?

When I do, I see this:
(https://kek.gg/i/89d_Nv.png)

What am I doing wrong?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on July 04, 2017, 09:17:29 AM
What am I doing wrong?

Nothing, you are doing it 100% correct.
Just hit ENTER after the command "chmod +x ./start_bots.sh" and you are able to run this:

Code: [Select]
./start_bots.sh


You are creating this script in your home directory, so you need to be in your home directory to run this script. In case it does not work, do another step before:

Code: [Select]
cd
./start_bots.sh


BK

Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: freelunch on July 04, 2017, 06:48:49 PM
It's working now! I think I did it like this yesterday, and when I tried to use .stop_bots.sh it showed "command not found" (if I remember right).

However, thank you again for your help! And also thanks for your script cw!

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).

Hope this question wasn't asked before, but I haven't found a solution.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: toasthead on July 04, 2017, 09:34:56 PM
Similar to the last question.

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?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on July 05, 2017, 12:20:43 AM
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).

This generator should help new users to get the Gunbot up and running in notime. The target group are new users, so the generator has only a few options to not overwhelm one.

To enhance it and include all existing options I would have to invest more time into the generator, but I don't have any spare time right now to "give for free". I would have to stop/delay other payed projects to be able to work on the generator - and that means I'd also need to charge for it. And I don't think there are a lot people willing to pay, so all I can say: Maybe later sometime, maybe not.

You can always edit the config files manually.



If we edit ALLPAIRS or the coin configs is the hot config load working from the gunbot directory?

It is. No matter how you change the files. The Gunbot watches them and recognizes if a file was saved.


Also I noticed after ginit or gadd the DEFAULT_CURRENCY_PAIRY is BTC_ETH that doesn't seem correct does it?

This is ignored as far as I know. I run a lot of pairs and all of them have that setting.


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: freelunch on July 05, 2017, 03:00:30 AM
Thanks for your response. Your tutorial and generator helped me a lot and I will continue using it.

I would maybe pay for more features if this becomes concrete, but as you say, probably there aren't enough people to pay for the time it would consume.

Anyway, I appreciate using your script and also the more important function for me, start/stop all pairs, is working now. Thanks again.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: krixt on July 05, 2017, 11:12:48 PM
Would be great if this didn't require all this /root/ access. Could you possibly update this so it can work in $HOME?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on July 06, 2017, 12:02:41 AM
Would be great if this didn't require all this /root/ access. Could you possibly update this so it can work in $HOME?

There is no update planed in the near future.

But you can copy and modify the install script to fit your needs.
"ginit" is just an alias for "cd /opt/gunbot && yo gunbot init". So if you install Gunbot as a non root user into $HOME, you can just go to that Gunbot folder and run "yo gunbot init" and use the generator to create your files and start the bot.


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: xgast on July 06, 2017, 12:56:05 AM
I'm sorry if I posting to unrelated thread, please help me understand Bollinger Band strategy on GunBot v3.3.2..., after bot buy coin when the price goes x% above the lowest BB (or better price) and then price go even extremly lower suddently why bot not buy more coin even there are still much more Bitcoin available...

thanks for your explaination..
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Capt_Crunchy_Nut on July 10, 2017, 09:33:46 AM
No idea what is going on here. I installed everything without any errors, added my first pair but when it's done nothing actually starts. I run 'gl' and the table shows up but it's empty. Neither of the 'known errors' as described in the first post appear to be an issue. Running 'pgrep -f BTC_XXX' returns no process ID.

When I run gstart on the pair I get the following error:

(http://i.imgur.com/BsdkUtK.jpg)

The BTC_ETC config file is in /opt/gunbot/ and there is no /opt/GUNBOT_v3.3.2_Poloniex_Bittrex_Patch/ directory.

What have I buggered up?

EDIT: Oh and when I tried to log out of root user I got a message that said "Script done, file is not" and it wouldn't let me quit....
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on July 10, 2017, 11:01:35 AM
What have I buggered up?

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


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Capt_Crunchy_Nut on July 10, 2017, 01:47:26 PM
It didn't occur to me earlier but I'm hardly using a typical *nix install for trying this on. 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 figured there'd be no harm so long as the install process ran without issue. I also had node v8.1.3 already installed from some past mucking around; maybe I need to downgrade that? Anyway, the output of the requested command is below:

Quote
-#- 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
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on July 10, 2017, 02:13:36 PM
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
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Capt_Crunchy_Nut on July 10, 2017, 09:14:03 PM
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

All good :)
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: AlexXx on July 11, 2017, 11:34:49 AM
I will tip you  ;) very helpful ...

Just a quick question, (nOOb question) , 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?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on July 11, 2017, 01:42:31 PM
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?

Don't worry. When you close putty, you are just closing your connection to the VPS.
Think of it like this: The VPS is your PC, Putty is your monitor. Turning off just the monitor will not influence the PC - it will continue to run.


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: xgast on July 12, 2017, 09:39:57 AM
Thanks for this great Gunbot Generator... can you please also support ETH market on bittrex.. thank you so much if you implement this..
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on July 12, 2017, 02:54:14 PM
Thanks for this great Gunbot Generator... can you please also support ETH market on bittrex.. thank you so much if you implement this..

Not planned in the near future, sorry. Maybe with the next Gunbot version.


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: kin0 on July 12, 2017, 07:20:55 PM
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?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on July 13, 2017, 09:33:22 AM
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?

Sorry, I've never tried the community proxy and can not give helpful information about setting it up in combination of the generator.


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: KUMOC on July 15, 2017, 06:52:21 PM
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?

Thanks
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Diesel on July 15, 2017, 11:07:52 PM
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 run GMON and this, and set up the proxy no problems: https://gunthy.org/index.php?topic=570.msg3080#msg3080
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on July 17, 2017, 08:40:32 AM
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?

You can run 'ginit' again.


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: cw on July 17, 2017, 04:50:50 PM
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:

Code: [Select]
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.

Code: [Select]
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.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: berti on July 27, 2017, 05:14:04 AM
Great work on this generator, it really made getting gunbot on Linux up and running a breeze. I have a question though, and forgive me if this isn't related to having started my pairs with your generator but I thought I would ask here anyway.

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?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: redindian on August 02, 2017, 09:43:10 PM
Been using this great script to get up and running. Just tried to update the script to install newest v3.3.5, but can't get it to run. When I manually start a pair it will show up in pm2, but not using the generator with ginit.

Any chance for an update?

Or may tell me how it knows the executable and parameters, because the main binary seems to be renamed from gunthy-linuxx64 to gunthy-linx64. (Also tried to rename it to the old name, but still error on starting using ginit).

Thanks!
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on August 04, 2017, 08:00:34 AM
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?

Does the command gl show anything?



Any chance for an update?

Not for the RC, no. The whole way how to setup the Bot has changed so much in 3.3.3, the generator (ginit) need some major changes to work again. And since Gunthar is still changing stuff, it would need an update of the generator for every RC release.

So lets wait till the final version of the Gunbot is out, then evaluate how much work it would be to rewrite the generator, then find a way to get payed for that work and booom, it will be updated. ;)


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: kin0 on August 06, 2017, 01:55:41 PM
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.

Code: [Select]
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)

How would I be able to check and ensure the scripts are installed and loading correctly.

Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on August 07, 2017, 01:05:20 PM
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.

What OS are you using?
The install script adds these commands to the bashrc: https://github.com/BeerK0in/generator-gunbot/blob/master/install.sh#L67

Maybe you are using another user then root?


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: krunalbarot on August 08, 2017, 05:53:57 PM
ok so a full newbie question(yet to buy gunbot)..
how many pairs we can trade on a AWS linux version ? the free tier one i mean..
i read that 25 pairs on the windows one for aws .. is that still correct ?

thanks
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: WindyCityCrypto on August 09, 2017, 05:16:08 AM
I have the same issue as listed here. I tried the second suggestion and the list is empty. How do I fix this problem any help is greatly appreciated.
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)
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: WindyCityCrypto on August 09, 2017, 05:47:43 AM
Is running linux mint kde going to effect this issue being able to be solved?
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)
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: turbosteel1 on August 09, 2017, 06:11:52 PM
Hi

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.

Kindly Suggest

Regards
Turbo
Title: Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
Post by: beer-k0in on August 10, 2017, 12:41:00 AM
I have the same issue as listed here. I tried the second suggestion .

You mean you have read the part "Known Errors" in the 1. post of this thread and tried all options to solve the error?

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





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.

What system are you using?

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
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: SpiryBTC on August 10, 2017, 01:46:17 AM
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..
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Kivo360 on August 10, 2017, 04:54:14 AM
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?

Here are two screenshots of what I currently have

Before first debugging instructions:
(http://i.imgur.com/jMkigxj.png)
And another
(http://i.imgur.com/m2tMAlU.png)


After instructions:
(http://i.imgur.com/WHr4jsV.png)

(http://i.imgur.com/FMEHkVc.png)
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on August 10, 2017, 11:28:16 AM
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
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: gaia on August 11, 2017, 08:45:36 AM
i am going to install on headless ubuntu. for installing, is this topic still applicable or do i just do npm install?

thanks
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: lexx790 on August 14, 2017, 06:49:29 AM
I have been having issues with an empty list showing up after I type in gl.

I've tried killing the PM2 God Deamon, and remove the content in ~/.pm2/, as well as doing a pgrep -f gunthy | xargs kill -9, to no avail. The list always shows up empty.

I'm using Ubuntu 16.04 and Gunbot v3.3.2 (installed as root)

Any ideas? :)
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Kivo360 on August 19, 2017, 04:47:01 AM
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


Here you go:

Code: [Select]
-#- 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




Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on August 23, 2017, 03:51:46 PM
Could this be run on Raspberry PI?

No, sorry.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on August 23, 2017, 03:56:37 PM
Here you go:

Code: [Select]
...
-#- PM2 -#-
4714
-#- PM2 gunthy processes -#-
4777

This is an indicator for one running gunbot.
Can you try this again:

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 Gunbots
Code: [Select]
pgrep -f gunthyIf the dont stop, also kill them
Code: [Select]
pgrep -f gunthy | xargs kill -9
Now remove the content of ~/.pm2/
Code: [Select]
rm -r ~/.pm2/*
And run run 'ginit' again.

And then copy the error message.


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: xgast on August 24, 2017, 06:33:18 PM
Hi @beer-k0in,
How to  install very old version of your Gunbot Generator.. Several new versions of your generator always getting me ERROR 1 things every time want to run ginit command to create several pairs.. It's not happened on generator version that release around two months ago, I can run ginit to create much pairs with easy and smoothly..
I already tried any solutions that you offer on several posts but still getting ERROR 1 message.. Really need your help.. Thanks
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: PasserOfTheBuck on August 25, 2017, 08:29:43 AM
I get the same error as everyone else. glog shows the following:

/root/.pm2/logs/BTC-STEEM-B-error-0.log last 15 lines:
0|BTC_STEE | (node:4561) DeprecationWarning: Calling an asynchronous function without callback is deprecated.

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)
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Top0tun on August 25, 2017, 03:35:42 PM
Would new version support GunBot 4 ?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on August 28, 2017, 03:01:04 PM
How to  install very old version of your Gunbot Generator..

Code: [Select]
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)

Yes, it is possible. You could try installing v6.10.3



Would new version support GunBot 4 ?

Right now there are no plans to update this generator any more. The node ecosystem, the possible VPS OS'es and the Gunbot itself are evolving so fast, it is too much effort for me to maintain this project. Since I made some decisions when starting this tool, I would not do anymore, I would want to rewrite the whole generator.


BK

Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: NarKotix on August 30, 2017, 07:14:31 AM
Hi Beer!

Just wanted to say thanks for this awesome guide man! It has helped so many of my clients
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: jac on August 31, 2017, 11:03:12 PM
when using ALLPAIRS, will it adjust/work with this settings as soon as ALLPAIRS is saved?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on September 06, 2017, 09:03:22 AM
Just wanted to say thanks for this awesome guide man! It has helped so many of my clients

Thanks. And still it has so many flaws. :)



when using ALLPAIRS, will it adjust/work with this settings as soon as ALLPAIRS is saved?

Yes.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: mos87 on September 06, 2017, 08:30:09 PM
Hi all,
Does the generator work now without problems for GB 3.3.2.?
Cheers
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on September 08, 2017, 12:27:15 PM
Does the generator work now without problems for GB 3.3.2.?

No, the older it gets, the more problems emerge. Main problem is the requirement to run it as root user.
So the pm2 problem is still there. Also the list of available coins need an update, but I'm too busy to do so right now.


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: 3KyNoX on September 09, 2017, 11:08:51 AM
Hey there !

I'm looking to update your script, maybe construct a console gui. As you do not (Beer-K0in) having enough time and your project is the most interesting one using linux.

I'm a php / js developer with more than 15 years of debian / arch based experience.

I'll try to use the incoming v5.

Forking allowed ?

Thanks anyway.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on September 11, 2017, 09:30:26 AM
Forking allowed ?

Sure! It is MIT licensed so please feel free to fork, modify, enhance, create PRs, do own npm publish, share, sell as you like. :)


BK
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Flowtrader on September 12, 2017, 07:36:12 PM
Unfortunately i am not able to install Gunbot right, i get this Errors on Ubuntu (Free Amazon VPS), what can i do?:

ubuntu@ip-XX.XXX.XXX.XX:~$ sudo curl -qsL https://raw.githubusercontent.com/BeerK0in/generator-gunbot/master/install.sh | bash -- && exec bash

 ============================================================
                    GUNBOT 3.3.2 SETUP started

                This will take a few seconds

 ============================================================

 (1/6) Update the base system
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (2/6) Install nodejs 6.x
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (3/6) Install tools
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (4/6) Install GUNBOT
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unzip:  cannot find or open /opt/GUNBOT_v3.3.2_Poloniex_Bittrex_Patch.zip, /opt/GUNBOT_v3.3.2_Poloniex_Bittrex_Patch.zip.zip or /opt/GUNBOT_v3.3.2_Poloniex_Bittrex_Patch.zip.ZIP.
mkdir: cannot create directory ‘/opt/GUNBOT_v3.3.2_Poloniex_Bittrex_Patch’: 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.3.2_Poloniex_Bittrex_Patch.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 89: /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 101: /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:
                           gcd
                           ginit

 ============================================================
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on September 12, 2017, 08:49:03 PM
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
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: GuyTheGuy on September 12, 2017, 11:07:17 PM
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?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: beer-k0in on September 12, 2017, 11:44:56 PM
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
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: talesfromthecrypto on September 13, 2017, 09:14:13 PM
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.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: talesfromthecrypto on September 14, 2017, 03:36:01 AM
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.

I've solved the issue by adding the pairs one at a time
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: GuyTheGuy on September 16, 2017, 05:14:55 PM
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?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: talesfromthecrypto on September 19, 2017, 08:57:30 AM
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?

I just reinstalled Ubuntu and now add pairs one at a time. Works fine now, just slightly more tedious.
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: talesfromthecrypto on September 19, 2017, 12:22:24 PM
How can I delete a trading pair?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: cryptonosaur on September 20, 2017, 04:38:25 AM
Hi Beer,

noobie here.

I had install your generator on ubuntu 16.04 ..i encountered a start up issues here. when i use ginit it failed to start after initial setup.no log.txt file was generated.

at the same time,  i have tested to use pm2 using this cmd pm2 start ./gunthy-linuxx64 --name BTC_xxxx , it happened to be working.


i guess startup script is missing in my installed ginit. 

hope cud get some help .

Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: subiedude14 on September 26, 2017, 03:16:22 AM
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

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?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Molecularfir on September 26, 2017, 11:41:36 AM
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?
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: Ashkaan on September 27, 2017, 01:19:33 AM
Anyone else getting?:

(https://i.imgur.com/O6byEDO.jpg)
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: kukinwidgas on October 22, 2017, 12:29:40 PM
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

Yes, I had to do the same .. also to run stop_bots.sh and start_bots.sh I had to do a "apt-get install gawk"

VPS running Ubuntu 16.0.4
Title: Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
Post by: richierich007 on January 08, 2018, 05:44:20 PM
Hello, thank you for the manual but i have a problem.
My exchange is Binance en i can t select that one when setting it up. Only poloniex,  kraken and   bittrex.
Can someone please help me...........