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

DOUBLE UNIQUE INSERT #189

Closed
gr225607 opened this issue Jan 28, 2014 · 9 comments
Closed

DOUBLE UNIQUE INSERT #189

gr225607 opened this issue Jan 28, 2014 · 9 comments

Comments

@gr225607
Copy link

hope this helps (also posted it to /90)

2014-01-27 04:53:45 (INFO): I'm gonna make you rich, Bud Fox.

2014-01-27 04:53:45 (INFO): Setting up Gekko in realtime mode

2014-01-27 04:53:45 (INFO): Setting up:
2014-01-27 04:53:45 (INFO): Trading Advisor
2014-01-27 04:53:45 (INFO): Calculate trading advice
2014-01-27 04:53:45 (INFO): Using the trading method: MACD

2014-01-27 04:53:45 (INFO): Setting up:
2014-01-27 04:53:45 (INFO): Profit Simulator
2014-01-27 04:53:45 (INFO): Paper trader that logs fake profits.

2014-01-27 04:53:46 (INFO): Setting up:
2014-01-27 04:53:46 (INFO): Profit Simulator
2014-01-27 04:53:46 (INFO): Paper trader that logs fake profits.

2014-01-27 04:53:48 (INFO): Starting to watch the market: BTC-e BTC/USD
2014-01-27 04:53:49 (INFO): We don't have enough history yet to start giving advice, I'll need to gather more data first.
2014-01-27 04:53:49 (INFO): I will start giving advice around 2014-02-19 17:54:00 (local time, that's in 24 days).
2014-01-27 20:21:10 (WARN): DOUBLE UNIQUE INSERT, this should never happen. Please post details here: #90 2014-01-27 undefined { [Error: ENOSPC, write] errno: 54, code: 'ENOSPC' }

/home/pi/gekko-localDB/core/candleManager.js:898
throw err;
^
Error: ENOSPC, write

@gr225607
Copy link
Author

above is the second time it happened, there was also an error with /datastores.js:60

@askmike
Copy link
Owner

askmike commented Jan 28, 2014

Did you start a second gekko on the same market?

@djmuk
Copy link
Contributor

djmuk commented Jan 28, 2014

Just a suggestion ENOSPC suggest that it might be out of disk space?

There is a suggestion here that relates to watching files - possibly running out of disk handles - not sure if that is relevant:
http://stackoverflow.com/questions/16748737/grunt-watch-error-waiting-fatal-error-watch-enospc

Also one here that suggests running out of inode entries can cause it:
http://www.noah.org/wiki/ENOSPC_error,_yet_'df'_shows_available_space

@gr225607
Copy link
Author

"Did you start a second gekko on the same market?"
No, once it errored and stopped the first time, the prompt came back (cd gekko-localDB) so I ran it again (node gekko).
Only diffrence between first and second time:
First time ".../home/pi/gekko-localDB/core/datastores.js:60..."
Second time ".../home/pi/gekko-localDB/core/candleManager.js:898..."

I am running linux on a 4gb partition, so disk space could be a problem. I set it to log 300 historical entries.

@djmuk
Copy link
Contributor

djmuk commented Jan 28, 2014

what does 'df' give you?

@gr225607
Copy link
Author

gr225607 commented Feb 1, 2014

it gives me:

Filesystem--------1K-blocks---------Used-------- Available------ Use%------ Mounted on
rootfs---------------2721336--------- 2563380----4---------------100%--------- /
/dev/root------------2721336---------2563380----4---------------100%---------/
devtmpfs-----------85876-------------0 ------------85876---------0%----------- /dev
tmpfs---------------18832--------------276---------18556----------2%---------- /run
tmpfs----------------5120---------------0------------5120-----------0%---------- /run/lock
tmpfs----------------37640-------------136---------37504 ---------1%---------- /run/shm
/dev/mmcblk0p1--1947136----------19264------1927872-------1% ---------- /boot
tmpfs----------------37640-------------20-----------37620----------1%---------- /tmp
/dev/sda1-----------57288------------19064 ------38224----------34%--------- /media/boot

@djmuk
Copy link
Contributor

djmuk commented Feb 2, 2014

Rootfs mounted on / 100% used?

you only seem to have a 2GB root partition - 2,721,336 x 1K blocks

David Mitchell

@askmike
Copy link
Owner

askmike commented Feb 9, 2014

Weird.

I'm writing it off as a one time error since I can't reproduce this at all. If it happens again please re open.

@djmuk it's a Raspberry PI with a usb stick (probably).

@askmike askmike closed this as completed Feb 9, 2014
@djmuk
Copy link
Contributor

djmuk commented Feb 9, 2014

Mike
No a gekko issue -
Definitely disk space issue - he had about 4KB free on his root partition...ENOSPC is exactly that Error NO SPaCe...

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

3 participants