Skip to content

out of space - bad mmkay. #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hoeken opened this issue Aug 30, 2013 · 4 comments
Open

out of space - bad mmkay. #96

hoeken opened this issue Aug 30, 2013 · 4 comments

Comments

@hoeken
Copy link
Member

hoeken commented Aug 30, 2013

[2013-08-28 10:46:58,984] INFO: Downloading https://botqueue.s3.amazonaws.com/assets/e4/06/d4/9e/ee/torus.gcode to /home/pi/BotQueue/bumblebee/cache/c87f296bb999c199875706909d0c4e98-torus.gcode
[2013-08-28 10:47:02,616] ERROR: [Errno 28] No space left on device
Traceback (most recent call last):
File "/home/pi/BotQueue/bumblebee/hive.py", line 108, in downloadFile
self.localFile.write(data)
IOError: [Errno 28] No space left on device

@hoeken
Copy link
Member Author

hoeken commented Aug 30, 2013

we should also implement some sort of log rotation and deletion of cached files.

@hoeken hoeken closed this as completed Aug 30, 2013
@hoeken hoeken reopened this Aug 30, 2013
@Jnesselr
Copy link
Contributor

Jnesselr commented Jan 9, 2014

At what sizes should we rotate the logs and delete the cached files?

@Jnesselr
Copy link
Contributor

I was thinking about this, and deleting the cache files is definitely an obvious and easy solution, what about the logs? Then I wondered if botqueue could support holding log files in S3 or if we'd even want that. Otherwise, they're just going to be deleted. Is there any worth keeping them?

If we rotated the logs at 10MB, and only kept 10 of them on S3 (rotating them as needed), we'd have the previous 10 for debugging improvements and the current one, if there's an issue, can be given to us.

I'm curious what are other's opinion of this.

@Jnesselr Jnesselr added the bug label Jun 1, 2014
@Jnesselr
Copy link
Contributor

The log files currently rotate at 25 MB, and there's two of them max, so 50 MB total. As for the cache, I'm currently trying to figure out how to determine when the device has run out of space. We also need to figure out how much space we need extra. Should we just destroy the entire cache? If that's not enough, I guess we just raise an error.

@Jnesselr Jnesselr modified the milestone: 1.0 Apr 22, 2015
@Jnesselr Jnesselr removed this from the 1.0 milestone Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants