-
Notifications
You must be signed in to change notification settings - Fork 335
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
Feature request: tmp/media files cleanup script #69
Comments
Deleting the contents of Deleting the contents of Removing those files shouldn't break Audiogram as long as it's not running/rendering while you delete them. Can you give me some more details on how deleting the files breaks it for you? A cron entry like the following would probably work to clear both folders daily, but use caution when setting up any automatic file deletion! 0 0 * * * rm -r /where/you/installed/audiogram/media/* /where/you/installed/audiogram/tmp/* An early version of Audiogram included a cleanup command, but we ultimately left it out because it would be hard to guarantee someone couldn't delete something important accidentally with a weird configuration. |
Thanks for the explanation. It's an issue #63 concurrency issue. I thought it was because of the deleted files because the error would begin with the name of a non-existent file. I found that I could get it to work again (well, at least once) by untarring the whole of the audiogram directory from a .tgz file. So I assumed that the remaining tmp files had something to do with the crash. Of course, that could just have been luck. It's stopped crashing now because I've followed the #63 fix. `ian@orwell ~/audiogram $ npm start
info: Listening on 8888 SyntaxError: Unexpected end of input npm ERR! Linux 3.2.0-23-generic npm ERR! Please include the following file with any support request: |
Here's our daily cron, uses the find command and deletes any files over 24hrs old.
|
When the script crashes (which is does fairly often for me) it leave a bunch of media files behind.
A cron script to neatly clean up files would be much appreciated. Removing audio, video, and tmp files manually seems to break audiogram completely (perhaps because it is expecting to use the files I have removed.)
Short of a cleanup script, just documenting when it's okay to delete which files would be really useful. I'm running it on an old netbook to produce audiograms for my community radio / podcast series, so running out of filespace is a real issue.
The text was updated successfully, but these errors were encountered: