just-dice-bot
just-dice-bot copied to clipboard
Exception [Errno 122] Disk quota exceeded: 'bets.png', retrying...
Traceback (most recent call last): File "just-dice-bot.py", line 676, in init canvas.print_figure(graph_fn) File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 2021, in print_figure **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 474, in print_png filename_or_obj = file(filename_or_obj, 'wb') IOError: [Errno 122] Disk quota exceeded: 'bets.png'
running in a 2GB RAM VPS with 100GB of disk.
output of df: Filesystem 1K-blocks Used Available Use% Mounted on /dev/simfs 104857600 6949216 97908384 7% / none 1048576 4 1048572 1% /dev none 209716 1080 208636 1% /run none 5120 0 5120 0% /run/lock none 1048576 0 1048576 0% /run/shm none 102400 0 102400 0% /run/user
most recent startup: Simple martingale bot for just-dice.com Copyright (C) 2013 KgBC [email protected] under GPLv2 (see source)
News/new versions see https://github.com/KgBC/just-dice-bot
########## playing on just-dice.com with real btc ##########
Set up selenium (this will take a while, be patient) ...
Traceback (most recent call last):
File "just-dice-bot.py", line 958, in
did a rm -rf * in /tmp, and everything starting up fine now. does just-dice-bot clean up after itself, or is something else crapping all over /tmp?
The bot leaves logs and graph pictures in the app directory, and keeps a database (sqlite) with running bets. Database is deleted and recreated when the bot is started. Plus Selenium creates an empty profile for firefox. Think this selenium profile could be in /tmp according to the log which uses tempfile.mkdtemp().
So if you are really low on disk space this could be an issue :)
I already added an option in the latest release (just here on my laptop for some days of testing) where you could set the path to a custom firefox profile, this could help as you could decide where it should be. If needed I could also implement an switch to disable logging and/or graphing+database.
So - is this your feature request?