Attempted to run software update from the settings interface - without checking free space first. Space had been filled by timelapses.
Update to detect a lack of free space and stop, displaying a warning.
Update attempted to run.
An update failure notice appeared but I attempted to restart octoprint anyway. Octoprint no longer starts fully (I receive a 503 Service Unavailable error via http) after this, even after clearing additional space.
OctoPrint is now no longer able to launch.
I am unable to launch, even in safe mode. Cannot recreate.
Update attempted on 1.3.5rc3 (to 1.3.6)
OctoPi 0.12.0
Sunhokey i3 clone, Marlin (version unknown)
Chrome 62, Windows 10
https://gist.github.com/tonsofpcs/6cd777277af2bb5d76bbebb90b189600
I have read the FAQ.
Can you SSH into your OctoPi and run the following:
Update:
Spoke with @tonsofpcs on IRC. Issued compounded by the pip fix not being run for OctoPi 0.12. Resolved with:
edit by @foosel to add link to pip fix blog post for further information
Reproduced issue (to a lesser broken extent) running upgrade on a filesystem with 10MB free.
had plenty of storage space but, seems to have an issue which was unable to startup octopi, followed your steps after a full reboot and gave it some time it was able to boot up again. thanks
This seems like something I could take on. Any objections into me looking at this?
@techfreek go for it!
I'm finally looking at this again. Having a few difficulties, so I thought I might share my current thought on approach. This error came from update_script.py, which is called as a result of using the Update functionality in the webui.
My thought was that for each target we plan to update, we should figure out the size of that component (as a rough way of guessing how much extra space they may use during upgrade), and make sure the sum is less than the total amount of disk space remaining. In order to not add bloat elsewhere, I added this as a pre-check as I personally didn't think it made sense to allow some targets to update if we didn't have enough space to update all.
The problem I'm hitting is that I'm having trouble finding the installed path of the package. I have found the update_folder and checkout_folder, but it doesn't always seem set. I'm wondering the installed path doesn't normally matter. So maybe this is a case where I should add a get_path method to the different updaters so I can still maintain abstraction.
Let me know if you have thoughts on my (admittedly rambling) thoughts. Thanks!
Hi, thanks for your efforts in this issue.
HELP! I have unfortunately paranoia checked this problem hoping to confirm it wasn't one, AFTER starting a 9-DAY, 1.2 metre tall print. We are over 1.5 days in already and I really don't want to lose the work done already, let alone have it fail close to the end. Ideally I'd like to keep the timelapse photos as they are good, but that's secondary.
My Setup:
I have a generic clone Raspberry Pi CSI camera, and it is set to record a frame only on Z change, However I also have some GCODE at the Z layer change which does a little 0.5mm Z hop - which is the same as the layer height. So it could potentially be taking 2 frames per layer.
There are 2,338 layers so 4,676 photos potentially.
It's a 4Gb SD card, onto which I flashed the latest OctoPi 0.16 image - so it could be set lower than that.
-What is the best, light touch, approach to dealing with this?
I expect I will need to SSH into the Pi (using PuTTY from a local Windows 7 machine), find the photo storage and check how much each picture consumes, and how many it has taken so far and compare with the layer height.
From this extrapolate how many will be needed to complete the print and the storage needed
Work out the free space available on the system and compare the two.
If not enough to clear with some overhead, I will need to copy photos off the Pi and delete them or just delete them.
Since I haven't heard anything from @techfreek on this in over a year I guess it's ungrabbed again ;)
Implemented by the above commit. Looks like this (obviously not the default minimum value, just set for purposes of the screenshot, default is 150MB):

To be released as part of 1.4.1
Most helpful comment
Update:
Spoke with @tonsofpcs on IRC. Issued compounded by the pip fix not being run for OctoPi 0.12. Resolved with:
edit by @foosel to add link to pip fix blog post for further information