File Upload to Printer SD card Bug I think

What is the problem?

If you upload two file to the SD card in the printer one after the other but with the second upload started before OctoPrint displays the notification that the first upload is complete (Note other information on the Octprint State window indicates that it is complete) then then OctoPrint hangs with the status bar showing streaming and the "Files on SD" is blank. The LCD screen on the printer also showed no files on the SD card. The only way out of this was for me to first disconnect the Raspberry Pi then turn off the printer then turn everything back on. Also I just upload a 8.6Mbyte file and it upload or appeared to do as the status showed complete but the printer display hung at 99% and after 5 minutes I pulled the plug and put the SD card printer and it showed the file with 0 bytes.

I know that you should wait for the notification but I think that you should not be able to try to upload any file if the system is not ready.

What did you already try to solve it?

WRITE HERE

Have you tried running in safe mode?

Yes

Did running in safe mode solve the problem?

No

Complete Logs

2021-02-19 21:23:11,943 - octoprint.filemanager.analysis - INFO - Starting analysis of local:Test_StrutC.gcode
2021-02-19 21:23:12,111 - octoprint.plugins.DisplayLayerProgress - INFO - Store layer count in MetaFile
2021-02-19 21:23:12,251 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2021-02-19 21:23:12,269 - octoprint.plugins.DisplayLayerProgress - INFO - Read total height from MetaFile
2021-02-19 21:23:12,281 - octoprint.plugins.DisplayLayerProgress - INFO - Total height not found in MetaFile
2021-02-19 21:23:12,309 - octoprint.util.comm - INFO - Changing monitoring state from "Operational" to "Sending file to SD"
2021-02-19 21:23:22,002 - octoprint.plugins.DisplayLayerProgress - INFO - Store layer count in MetaFile
2021-02-19 21:23:22,117 - octoprint.filemanager.analysis - INFO - Analysis of entry local:Test_StrutC.gcode finished, needed 10.15s
2021-02-19 21:23:22,329 - octoprint.plugins.DisplayLayerProgress - INFO - Read total height from MetaFile
2021-02-19 21:23:22,356 - octoprint.plugins.DisplayLayerProgress - INFO - Store layer count in MetaFile
2021-02-19 21:23:22,504 - octoprint.plugins.DisplayLayerProgress - INFO - Read total height from MetaFile
2021-02-19 21:36:44,535 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-02-19 21:51:44,538 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-02-19 22:06:44,540 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-02-19 22:21:44,543 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2021-02-19 22:27:00,200 - octoprint.util.comm - INFO - Finished in 3827.948 s. Approx. transfer rate of 72.604 lines/s or 13.773 ms per line
2021-02-19 22:27:00,220 - octoprint.util.comm - INFO - Changing monitoring state from "Printing" to "Operational"
2021-02-19 22:32:35,194 - octoprint.server.util.flask - INFO - Passively logging in user ender-5 from ::ffff:192.168.0.39

Additional information about your setup

Octoprint Version 1.5.3, Octopi 0.17.0 Ender 5 with 4.2.7 motherboard and Creality firmware

If you have a bug to report, please head to the GitHub repository http://github.com/OctoPrint/OctoPrint and use the bug reporting form. Thanks :slightly_smiling_face:

OK but I will do a few more tests firsts so i can get a "clean" log file

1 Like