Hello,
trying to set-up Gunbot 3.3.2 in Linux Mint 18.2 but when i run the bot with pm2 and check the log for the pair I get this output:
Bot crashed at 2017/09/21 15:47:52
Reason: Failed to load config!!!
Parameter: undefined-BTC_XRP-config.js
Original error: { Error: Cannot find module '/home/albatros/Programi/gunbot/undefined-BTC_XRP-config.js'
at Module._resolveFilename (module.js:470:15)
at Function.Module._resolveFilename (evalmachine.<anonymous>:0:0)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at Module.require (evalmachine.<anonymous>:0:0)
at require (internal/module.js:20:19)
at loadConfig (evalmachine.<anonymous>:0:0)
at new Bot (evalmachine.<anonymous>:0:0)
at Object.console./snapshot/Users/Enrico/Desktop/xBot_v2.9.3/index.js.dev (evalmachine.<anonymous>:0:0)
at Module._compile (evalmachine.<anonymous>:0:0)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (evalmachine.<anonymous>:0:0)
at run (bootstrap_node.js:426:7)
at startup (bootstrap_node.js:147:9)
at bootstrap_node.js:541:3 code: 'MODULE_NOT_FOUND' }
Any help would be appreciated!
Ok, I managed to get it working. I am new to Linux so any advice and/or corrections are appreciated.
The problem was that the 3.3.2 version has different naming conventions (I think). So, I did the following:
1. I created the following .config file:
'bittrex-BTC_AMP-config.js' and edited it appropriately (entered my API key, set the trading strategy etc.)
2. The executable for my OS (Linux Mint 18.2 64-bit) is named 'gunthy-linuxx64'. So, when creating .yaml file for pm2, i named it
'gunthy-linuxx64.yaml".
3. Inside the gunthy-linuxx64.yaml file I entered the following:
apps:
- script : ./gunthy-linuxx64
name : 'BTC_XRP'
args : 'BTC_XRP bittrex'As I understand, the 'name' argument is the name that will be shown in the list of running processes when you start Gunbot with pm2. So if you named it for example 'chair', pm2 would have a process named 'chair'. The 'args' argument is the part that tells Gunbot to run the .config file named 'bittrex-BTC_AMP-config.js'.
So that started my Gunbot and got it working.