Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Runs fine for about 1.5 days -then this #280

Closed
noideal opened this issue Jun 17, 2015 · 9 comments
Closed

Runs fine for about 1.5 days -then this #280

noideal opened this issue Jun 17, 2015 · 9 comments

Comments

@noideal
Copy link

noideal commented Jun 17, 2015

2015-06-17 16:29:43 (DEBUG): Processed trades, sleeping for a minute...
2015-06-17 16:30:31 (DEBUG): Requested BTC/USD trade data from BTC-e ...
2015-06-17 16:30:31 (DEBUG): Fetched 150 new trades, from 2015-06-17 22:28:17 UTC to 2015-06-17 22:30:31 UTC
2015-06-17 16:30:31 (DEBUG): minimum trade treshold: 2015-06-17 22:29:40 UTC
2015-06-17 16:30:31 (DEBUG): processing 26 trade(s)
2015-06-17 16:30:31 (DEBUG): from 2015-06-17T22:29:56+00:00 to 2015-06-17T22:30:31+00:00
2015-06-17 16:30:31 (DEBUG): Skipping creation of already loaded database 2015-06-17
2015-06-17 16:30:31 (DEBUG): inserting candle 1349 (2015-06-17 22:29:00 UTC) volume: 11.564557910000001
2015-06-17 16:30:31 (INFO): We have all required history, going to calculate advice from this point.
C:\Users\User\Desktop\gekko-master\core\candleManager.js:560
this.days[mom.dayString].handle.find({
^
TypeError: undefined is not a function
at Manager.getCandles (C:\Users\User\Desktop\gekko-master\core\candleManager.js:560:35)
at bound as getCandles
at iterator (C:\Users\User\Desktop\gekko-master\core\candleManager.js:516:10)
at bound (C:\Users\User\Desktop\gekko-master\node_modules\lodash\dist\lodash.js:729:21)
at C:\Users\User\Desktop\gekko-master\node_modules\async\lib\async.js:227:13
at C:\Users\User\Desktop\gekko-master\node_modules\async\lib\async.js:111:13
at Array.forEach (native)
at _each (C:\Users\User\Desktop\gekko-master\node_modules\async\lib\async.js:32:24)
at async.each (C:\Users\User\Desktop\gekko-master\node_modules\async\lib\async.js:110:9)
at _asyncMap (C:\Users\User\Desktop\gekko-master\node_modules\async\lib\async.js:226:9)

@noideal
Copy link
Author

noideal commented Jun 17, 2015

Is currently a way to send a push notice on an unexpected exit? I'd like to get a pushbullet notification when/if it crashes.

@hashpower
Copy link

Got the same issue here:

c:\bot\core\candleManager.js:560
this.days[mom.dayString].handle.find({
^
ypeError: undefined is not a function

and when i restarted it it says again it will give advice in two days while it was running for about 2 days. anyone managed to solve it.

@mmplisskin
Copy link

same issue here.

2015-09-09 06:35:34 (INFO): We have all required history, going to calculate advice from this point.
/root/gecko-bot/core/candleManager.js:560
this.days[mom.dayString].handle.find({
^
TypeError: undefined is not a function
at Manager.getCandles (/root/gecko-bot/core/candleManager.js:560:35)
at bound as getCandles
at iterator (/root/gecko-bot/core/candleManager.js:516:10)
at bound (/root/gecko-bot/node_modules/lodash/dist/lodash.js:729:21)
at /root/gecko-bot/node_modules/async/lib/async.js:227:13
at /root/gecko-bot/node_modules/async/lib/async.js:111:13
at Array.forEach (native)
at _each (/root/gecko-bot/node_modules/async/lib/async.js:32:24)
at async.each (/root/gecko-bot/node_modules/async/lib/async.js:110:9)
at _asyncMap (/root/gecko-bot/node_modules/async/lib/async.js:226:9)
^C

@girino
Copy link

girino commented Apr 1, 2016

Same error here. Anyone has a solution?

My configs were:

config.history = {
  directory: './history-rsi/'
}
config.watch = {
  enabled: true,
  exchange: 'bitfinex',
  key: '',
  secret: '',
  currency: 'USD',
  asset: 'BTC'
}
config.tradingAdvisor = {
  enabled: true,
  method: 'RSI',
  candleSize: 30,
  historySize: 50
}
config.RSI = {
  interval: 14,
  thresholds: {
    low: 30,
    high: 70,
    persistence: 1
  }
};

@hashpower
Copy link

The bot has been working since long time ago (about a week after i posted it).
Nothing was done to the code but it has been running for months.
sometimes it crashes and needs to be restarted.

@girino
Copy link

girino commented Apr 2, 2016

so what you do is just ignore the errors and restart the bot?

@hashpower
Copy link

that is what i did.
i will look for the server where i put the bot.
tell me if you need any configuration files

@horsecoin
Copy link

I woulds suggest to use npm forever- it will automatically restart your bot if it crashes.
http://stackabuse.com/running-node-apps-with-forever/

cd home/yourhome/workingdirectory
forever start -a --uid gekkonameyourownuid gekko.js
forever stop --uid gekkonameyourownuid
then view your log with nano or other i.e
nano /home/yourhome/.forever/gekkonameyourownuid.log

@askmike
Copy link
Owner

askmike commented Jun 5, 2016

fixed in 0.2.

@askmike askmike closed this as completed Jun 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants