Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Octoprint not refreshing SD Card UI #381
My version of Octoprint is: Branch: master, Commit: b282a18
Issue: The SD UI will not refresh. It shows nothing as being on the SD card. However if I hit refresh in the UI and look at the Terminal output I can see the files. The M20 and M22 commands work as well, but nothing actually refreshes the UI to enable me to print. I can still upload via Octoprint and print that way as it shows files Uploaded to Octoprint.
I managed to fix it although I am not entirely sure of the problem. Here is what I did and what I learned. I reinstalled Octoprint on the SD card and still had the problem. But reformating the SD card containing the print files actually fixed the problem. So apparently there was a file on the SD card (actually on both SD cards as I had tried two different ones) that caused the problem. Now everything is fine. Unfortunately I am not sure what the file was so that I can reproduce the problem and let you know. But if it happens again I'll figure it out and post.
Ok, this is weird.
According to the RepRap wiki, all communication between host and printer should be ASCII (quote: "All communication is in printable ASCII characters."). However, I looked into the Marlin source code and it doesn't look like it's enforcing this for filenames stored on the SD card and returned in a reply to
In any case, for the time being OctoPrint will now simply ignore any filenames that are not ASCII (see the commit above). Problem is that I currently see no clean way to work with these filenames (given that I'm not supposed to send any non-printable ASCII characters to the printer). Maybe I (or someone else) will have a epiphany here ;)