Username: Password:

Author Topic: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)  (Read 73626 times)

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
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

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.




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:


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











« Last Edit: July 03, 2017, 12:40:24 AM by beer-k0in »
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline msn100001

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #1 on: May 14, 2017, 10:14:27 PM »
Very cool...

Offline gg

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #2 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?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #3 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline NCick27

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #4 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.


Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #5 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline jung

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #6 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?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #7 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)
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Hexvenn

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #8 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!

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #9 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline jung

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #10 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)


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 :|

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #11 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.
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Hexvenn

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #12 on: May 18, 2017, 10:35:48 PM »
How can I update to the new version from repo without messing things up?
Cheers

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #13 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
« Last Edit: May 22, 2017, 11:14:52 PM by beer-k0in »
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline cw

  • Rookie
  • *
  • Banned!
  • Posts: 57
    • View Profile
    • Gunbot University
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #14 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)

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.



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.



Cointracking affiliate link (10% discount for you) https://cointracking.info?ref=C937652

Offline Pro

  • Rookie
  • *
  • Posts: 20
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #15 on: May 20, 2017, 10:25:36 PM »
This is almost exacly what I need ;)
Let's talk details soon.
Thanks

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #16 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.




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




BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline cw

  • Rookie
  • *
  • Banned!
  • Posts: 57
    • View Profile
    • Gunbot University
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #17 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. 


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

 

Cointracking affiliate link (10% discount for you) https://cointracking.info?ref=C937652

Offline redindian

  • Rookie
  • *
  • Posts: 13
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #18 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!

Offline Pro

  • Rookie
  • *
  • Posts: 20
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #19 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 :)

Offline MrSparkle

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #20 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..

Offline redindian

  • Rookie
  • *
  • Posts: 13
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #21 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...

Offline Hexvenn

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #22 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.

Offline cw

  • Rookie
  • *
  • Banned!
  • Posts: 57
    • View Profile
    • Gunbot University
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #23 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%




Cointracking affiliate link (10% discount for you) https://cointracking.info?ref=C937652

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #24 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline MrSparkle

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #25 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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #26 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
« Last Edit: May 23, 2017, 07:59:23 AM by beer-k0in »
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #27 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Xaos

  • Rookie
  • *
  • Posts: 14
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #28 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

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.




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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #29 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

btcjuice

  • Guest
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #30 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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #31 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. :)
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

btcjuice

  • Guest
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #32 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?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #33 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

btcjuice

  • Guest
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #34 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)




Offline MrSparkle

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #35 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


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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #36 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
 
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline MrSparkle

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #37 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

Grimdin

  • Guest
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #38 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.

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #39 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. :-\
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Xaos

  • Rookie
  • *
  • Posts: 14
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #40 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?
« Last Edit: May 25, 2017, 05:30:19 AM by Xaos »

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #41 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.
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Xaos

  • Rookie
  • *
  • Posts: 14
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #42 on: May 25, 2017, 02:28:00 PM »
thanks

one more question

how to clean this list?



Offline redindian

  • Rookie
  • *
  • Posts: 13
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #43 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.

Offline dj_crypto

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #44 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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #45 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline mst

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #46 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

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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #47 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Xaos

  • Rookie
  • *
  • Posts: 14
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #48 on: May 31, 2017, 06:02:01 PM »
IC its updated to v3.3 now :)

thx

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #49 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline cryptico

  • Rookie
  • *
  • Posts: 7
  • GUNBOT Official Reseller
    • View Profile
    • tradewithgunbot.shop
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #50 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)

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.



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.



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
TradewithGunbot.shop | GUNBOT Official Reseller

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #51 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Xaos

  • Rookie
  • *
  • Posts: 14
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #52 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.


Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #53 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Xaos

  • Rookie
  • *
  • Posts: 14
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #54 on: June 01, 2017, 05:04:55 PM »
Yeh
Thx

Offline misc

  • Rookie
  • *
  • Posts: 12
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #55 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 ?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #56 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline misc

  • Rookie
  • *
  • Posts: 12
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #57 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

Offline FgTeaMBR

  • Rookie
  • *
  • Posts: 6
  • BR Hue Here
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #58 on: June 03, 2017, 12:46:43 PM »
Hey @beer-k0in you can post a script to install only v3.2 ?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #59 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline miner437

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #60 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.

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #61 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline miner437

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #62 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)

Offline misc

  • Rookie
  • *
  • Posts: 12
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #63 on: June 05, 2017, 07:16:59 PM »
Is an update to the newest release 3.3.2 possible ? How?

Offline _cRw_

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #64 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

Offline technine

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #65 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.

Offline miner437

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #66 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.

Offline miner437

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #67 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  ;)

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #68 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline misc

  • Rookie
  • *
  • Posts: 12
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #69 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
« Last Edit: June 06, 2017, 09:44:59 AM by misc »

Offline _cRw_

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #70 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?

Offline misc

  • Rookie
  • *
  • Posts: 12
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #71 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.

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #72 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #73 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline misc

  • Rookie
  • *
  • Posts: 12
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #74 on: June 06, 2017, 01:38:07 PM »
How about Bittrex, will it work with Bittrex as well ? (This or next version)

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #75 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline technine

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #76 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.

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #77 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline technine

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #78 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...

Offline bobbydigital

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3 in less than 5 minutes (linux)
« Reply #79 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?

Offline lossbit

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #80 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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #81 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:


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
« Last Edit: June 23, 2017, 02:07:52 PM by beer-k0in »
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Nael

  • Guest
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #82 on: June 07, 2017, 10:08:41 AM »
Any chance of a Bittrex version coming up soon? ;)

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #83 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline lossbit

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #84 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:


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

Offline teeftoof

  • Rookie
  • *
  • Posts: 5
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #85 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. 



Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #86 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline cw

  • Rookie
  • *
  • Banned!
  • Posts: 57
    • View Profile
    • Gunbot University
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #87 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.

  • start_bots.sh will start any stopped bots, but stagger start them with 3 seconds in between.
  • stop_bots.sh will stop any online bots, but wait 3 seconds in between.

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


and then we start it up again.



Cointracking affiliate link (10% discount for you) https://cointracking.info?ref=C937652

Offline botreminer0011

  • Rookie
  • *
  • Posts: 15
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #88 on: June 09, 2017, 05:35:22 PM »
Great script.

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

Offline CoinKombinat

  • Rookie
  • *
  • Posts: 11
  • BTC - Birth of independent people of the future
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #89 on: June 09, 2017, 05:36:00 PM »
nice, thanks wally ;) and so far, thanks alot mister mighty beer ;D

Offline cw

  • Rookie
  • *
  • Banned!
  • Posts: 57
    • View Profile
    • Gunbot University
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #90 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.

Cointracking affiliate link (10% discount for you) https://cointracking.info?ref=C937652

Offline botreminer0011

  • Rookie
  • *
  • Posts: 15
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #91 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.

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #92 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline someone111

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #93 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!

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #94 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline dcb942

  • Rookie
  • *
  • Posts: 16
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #95 on: June 10, 2017, 04:38:37 PM »
This looks fantastic. When will bittrex support be available?

Offline orthanc

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #96 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:


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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #97 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline imwmi

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #98 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.


Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #99 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline imwmi

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #100 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.

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #101 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
« Last Edit: June 22, 2017, 06:54:21 AM by beer-k0in »
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline imwmi

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #102 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:

    LINUX Instance (New)
    • Monitor: I see no activity under # Buys, # Sells, Errors (most surprising) with uptime of 15h
    • On GL I see no cpu % gains - has been 0 for uptime of 15h

    I have attached images for reference, including monitor from both to show discrepancies on Error (not taking into consideration expected profit differences based on start times).

    Would like to know if this is expected, or what I can do to get those data points running live.

*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)
  • Monitor: I see no activity under # Buys, # Sells, Errors (most surprising) with uptime of 15h
  • this was because I did not include "--show-all-errors" in my gmon statement
  • On GL I see no cpu % gains - has been 0 for uptime of 15h
  • according to BK, the cpu demands are so low, negligible they won't appear - however the bot is running, as can be seen by MB memory allotment.
[/list]
« Last Edit: June 16, 2017, 07:10:08 AM by imwmi »

Offline hbtcc

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #103 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.

Offline Defpro

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #104 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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #105 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline freelunch

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #106 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?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #107 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline hbtcc

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #108 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.
« Last Edit: June 20, 2017, 07:24:12 AM by hbtcc »

Offline freelunch

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #109 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.

Offline flashdel

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #110 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?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #111 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline infebious

  • Rookie
  • *
  • Posts: 8
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #112 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.
« Last Edit: June 21, 2017, 12:11:39 AM by infebious »

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #113 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline DiCE1904

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #114 on: June 22, 2017, 02:55:15 AM »
Small dono sent your way, cant wait for the bittrex update  ;D

Offline freelunch

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #115 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?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #116 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline kazinajc

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #117 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

Offline Berserk

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #118 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.
« Last Edit: June 24, 2017, 08:05:49 PM by Berserk »

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #119 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



Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline kazinajc

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #120 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.

Offline Top0tun

  • Rookie
  • *
  • Posts: 11
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #121 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?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #122 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Top0tun

  • Rookie
  • *
  • Posts: 11
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #123 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?
« Last Edit: June 26, 2017, 05:49:22 AM by Top0tun »

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #124 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline forato

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #125 on: June 26, 2017, 07:46:51 PM »
Is there a way to see all the trades that gunbot made? and maybe the profit?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #126 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Xaos

  • Rookie
  • *
  • Posts: 14
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #127 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
« Last Edit: June 27, 2017, 01:55:43 PM by Xaos »

Offline ajg

  • Rookie
  • *
  • Posts: 12
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #128 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. 

Offline kin0

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #129 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?

Offline kin0

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #130 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
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #131 on: June 28, 2017, 01:15:42 PM »
Works on my fresh DO Ubuntu 16.04.2 x64:




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

BK
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline cryptogolden24k

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #132 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

Offline freelunch

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #133 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.

Offline cw

  • Rookie
  • *
  • Banned!
  • Posts: 57
    • View Profile
    • Gunbot University
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #134 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 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.



Cointracking affiliate link (10% discount for you) https://cointracking.info?ref=C937652

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #135 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline freelunch

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #136 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 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:


What am I doing wrong?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #137 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

Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline freelunch

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #138 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.

Offline toasthead

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #139 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?
« Last Edit: July 04, 2017, 09:55:08 PM by toasthead »

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #140 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline freelunch

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #141 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.

Offline krixt

  • Rookie
  • *
  • Posts: 38
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #142 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?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #143 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline xgast

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #144 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..

Offline Capt_Crunchy_Nut

  • Rookie
  • *
  • Posts: 9
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #145 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:



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....
« Last Edit: July 10, 2017, 09:35:51 AM by Capt_Crunchy_Nut »

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #146 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Capt_Crunchy_Nut

  • Rookie
  • *
  • Posts: 9
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #147 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
« Last Edit: July 10, 2017, 01:49:21 PM by Capt_Crunchy_Nut »

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #148 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Capt_Crunchy_Nut

  • Rookie
  • *
  • Posts: 9
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #149 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 :)

Offline AlexXx

  • Rookie
  • *
  • Posts: 8
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #150 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?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #151 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline xgast

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #152 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..

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #153 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline kin0

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #154 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?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #155 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline KUMOC

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #156 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

Offline Diesel

  • Rookie
  • *
  • Posts: 16
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #157 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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #158 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline cw

  • Rookie
  • *
  • Banned!
  • Posts: 57
    • View Profile
    • Gunbot University
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #159 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.
« Last Edit: July 30, 2017, 09:17:50 PM by cw »

Cointracking affiliate link (10% discount for you) https://cointracking.info?ref=C937652

Offline berti

  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #160 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?

Offline redindian

  • Rookie
  • *
  • Posts: 13
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #161 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!

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #162 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline kin0

  • Rookie
  • *
  • Posts: 19
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #163 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.


Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #164 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline krunalbarot

  • Rookie
  • *
  • Posts: 5
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #165 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

Offline WindyCityCrypto

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #166 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)

Offline WindyCityCrypto

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #167 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)

Offline turbosteel1

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #168 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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT in less than 5 minutes (linux)
« Reply #169 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline SpiryBTC

  • Rookie
  • *
  • Posts: 11
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #170 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..

Offline Kivo360

  • Rookie
  • *
  • Posts: 7
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #171 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:

And another



After instructions:



Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #172 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline gaia

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #173 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

Offline lexx790

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #174 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? :)

Offline Kivo360

  • Rookie
  • *
  • Posts: 7
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #175 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





Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #176 on: August 23, 2017, 03:51:46 PM »
Could this be run on Raspberry PI?

No, sorry.
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #177 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline xgast

  • Rookie
  • *
  • Posts: 10
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #178 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
« Last Edit: August 25, 2017, 01:42:26 AM by xgast »

Offline PasserOfTheBuck

  • Rookie
  • *
  • Posts: 3
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #179 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)
« Last Edit: August 25, 2017, 08:36:23 AM by PasserOfTheBuck »

Offline Top0tun

  • Rookie
  • *
  • Posts: 11
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #180 on: August 25, 2017, 03:35:42 PM »
Would new version support GunBot 4 ?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #181 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

Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline NarKotix

  • Rookie
  • *
  • Posts: 66
  • GUNBOT Support Staff
    • View Profile
    • GUNBOT - Automated Profit Generator - Crypto Trading Bot
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #182 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
GUNBOT Support Staff & Authorised Reseller http://www.gunbotreseller.com

Offline jac

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #183 on: August 31, 2017, 11:03:12 PM »
when using ALLPAIRS, will it adjust/work with this settings as soon as ALLPAIRS is saved?

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #184 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.
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline mos87

  • Rookie
  • *
  • Posts: 15
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #185 on: September 06, 2017, 08:30:09 PM »
Hi all,
Does the generator work now without problems for GB 3.3.2.?
Cheers

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #186 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline 3KyNoX

  • Rookie
  • *
  • Posts: 17
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #187 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.
VPS Hosted Gunbot Licences -> https://noxen.net

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #188 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline Flowtrader

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #189 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

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

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #190 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline GuyTheGuy

  • Contributor
  • **
  • Posts: 152
  • Lunar Crypto
    • View Profile
    • Lunar Crypto
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #191 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?
Contact for any questions or inquiries:
Lunar Crypto Telegram Group: https://t.me/LunarCrypto
Lunar Crypto Discord Server:  https://discord.gg/Z7qsaqk

Offline beer-k0in

  • Contributor
  • **
  • Posts: 142
  • Beer beer beer
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #192 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
Gunbot Monitor
Support gmon and send a tip: BTC wallet: 1GJCGZPn6okFefrRjPPWU73XgMrctSW1jT

Offline talesfromthecrypto

  • Rookie
  • *
  • Posts: 7
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #193 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.

Offline talesfromthecrypto

  • Rookie
  • *
  • Posts: 7
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #194 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

Offline GuyTheGuy

  • Contributor
  • **
  • Posts: 152
  • Lunar Crypto
    • View Profile
    • Lunar Crypto
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #195 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?
Contact for any questions or inquiries:
Lunar Crypto Telegram Group: https://t.me/LunarCrypto
Lunar Crypto Discord Server:  https://discord.gg/Z7qsaqk

Offline talesfromthecrypto

  • Rookie
  • *
  • Posts: 7
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #196 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.

Offline talesfromthecrypto

  • Rookie
  • *
  • Posts: 7
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #197 on: September 19, 2017, 12:22:24 PM »
How can I delete a trading pair?

Offline cryptonosaur

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #198 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 .


Offline subiedude14

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #199 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?

Offline Molecularfir

  • Rookie
  • *
  • Posts: 4
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #200 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?

Offline Ashkaan

  • Rookie
  • *
  • Posts: 26
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #201 on: September 27, 2017, 01:19:33 AM »
Anyone else getting?:


Offline kukinwidgas

  • Rookie
  • *
  • Posts: 2
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #202 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

Offline richierich007

  • Rookie
  • *
  • Posts: 1
    • View Profile
Re: Generator-Gunbot - Setup GUNBOT v3.3.2 in less than 5 minutes (linux)
« Reply #203 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...........