Files won't upload locally

What is the problem?

When I try to upload a gcode file via the Octoprint GUI it stops uploading immediately. The status bar starts then stops. This happens when I click "upload" and select the file AND when I drag and drop the file. It happens when I'm not uploading a file to the SD as well. (See video) All other Octoprint features are working.

What did you already try to solve it?
Confirmed I can send files locally over wifi to another OctoPi on the same wifi network.
Set time zone.
Confirmed that I can upload to the SD. And can start the print from the SD.

Logs (octoprint.log, serial.log or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support!)

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible)

version 1.3.12
chrome browser
CR-10 V2
Windows 10serial.log (148 Bytes) octoprint.log (286.9 KB)

Here's a subset of your octoprint.log for anything containing "analysis":

2020-04-01 03:17:15,274 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-04-01 03:17:15,286 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-04-01 04:20:25,233 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-04-01 04:20:25,238 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-04-01 04:20:25,184 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-04-01 04:20:25,189 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-04-01 04:20:25,238 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-04-01 04:20:25,244 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-04-01 04:59:06,344 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-04-01 04:59:06,347 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-04-01 05:17:35,556 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-04-01 05:17:35,564 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-04-02 01:17:13,916 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-04-02 01:17:13,919 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-04-02 01:37:14,172 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-04-02 01:37:14,179 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-04-02 02:26:22,129 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-04-02 02:26:22,135 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-04-02 03:27:40,881 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-04-02 03:27:40,890 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-04-02 03:30:05,825 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-04-02 03:30:05,833 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-04-02 06:08:06,131 - octoprint.filemanager.analysis - INFO - Starting analysis of local:4grey.gcode
2020-04-02 06:08:06,134 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/4grey.gcode
2020-04-02 06:08:28,691 - octoprint.filemanager.analysis - INFO - Starting analysis of local:4grey.gcode
2020-04-02 06:08:28,700 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/4grey.gcode
2020-04-02 06:08:41,544 - octoprint.filemanager.analysis - INFO - Starting analysis of local:4grey.gcode
2020-04-02 06:08:41,546 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/4grey.gcode
2020-04-02 06:09:09,304 - octoprint.filemanager.analysis - INFO - Starting analysis of local:4grey.gcode
2020-04-02 06:09:09,308 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/4grey.gcode
2020-04-02 06:10:07,212 - octoprint.filemanager.analysis - INFO - Analysis of entry local:4grey.gcode finished, needed 57.91s
2020-04-02 06:26:13,430 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...
2020-04-02 06:26:13,431 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue
2020-04-02 16:09:35,336 - octoprint.filemanager.analysis - INFO - Starting analysis of local:1grey.gcode
2020-04-02 16:09:35,338 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/1grey.gcode
2020-04-02 16:09:49,977 - octoprint.filemanager.analysis - INFO - Analysis of entry local:1grey.gcode finished, needed 14.64s
2020-04-02 11:15:10,254 - octoprint.filemanager.analysis - INFO - Starting analysis of local:1grey.gcode
2020-04-02 11:15:10,259 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/1grey.gcode
2020-04-02 11:15:25,233 - octoprint.filemanager.analysis - INFO - Analysis of entry local:1grey.gcode finished, needed 14.98s
2020-04-02 11:19:04,524 - octoprint.filemanager.analysis - INFO - Starting analysis of local:1grey.gcode
2020-04-02 11:19:04,529 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/1grey.gcode
2020-04-02 11:19:19,879 - octoprint.filemanager.analysis - INFO - Analysis of entry local:1grey.gcode finished, needed 15.35s
2020-04-02 11:19:28,067 - octoprint.filemanager.analysis - INFO - Starting analysis of local:1grey.gcode
2020-04-02 11:19:28,070 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/1grey.gcode
2020-04-02 11:40:49,970 - octoprint.filemanager.analysis - INFO - Starting analysis of local:1grey.gcode
2020-04-02 11:40:49,975 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/1grey.gcode
2020-04-02 11:41:05,387 - octoprint.filemanager.analysis - INFO - Analysis of entry local:1grey.gcode finished, needed 15.42s
2020-04-02 11:41:06,395 - octoprint.filemanager.analysis - INFO - Starting analysis of local:1grey.gcode
2020-04-02 11:41:06,403 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/1grey.gcode
2020-04-02 11:41:21,040 - octoprint.filemanager.analysis - INFO - Analysis of entry local:1grey.gcode finished, needed 14.64s
2020-04-02 11:41:22,047 - octoprint.filemanager.analysis - INFO - Starting analysis of local:1grey.gcode
2020-04-02 11:41:22,051 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/1grey.gcode
2020-04-02 11:41:36,638 - octoprint.filemanager.analysis - INFO - Analysis of entry local:1grey.gcode finished, needed 14.59s

Each one with "finished" means that it thinks it completed the activity.

2020-04-02 06:10:07,212 - octoprint.filemanager.analysis - INFO - Analysis of entry local:4grey.gcode finished, needed 57.91s
2020-04-02 16:09:49,977 - octoprint.filemanager.analysis - INFO - Analysis of entry local:1grey.gcode finished, needed 14.64s
2020-04-02 11:15:25,233 - octoprint.filemanager.analysis - INFO - Analysis of entry local:1grey.gcode finished, needed 14.98s
2020-04-02 11:19:19,879 - octoprint.filemanager.analysis - INFO - Analysis of entry local:1grey.gcode finished, needed 15.35s
2020-04-02 11:41:05,387 - octoprint.filemanager.analysis - INFO - Analysis of entry local:1grey.gcode finished, needed 15.42s
2020-04-02 11:41:21,040 - octoprint.filemanager.analysis - INFO - Analysis of entry local:1grey.gcode finished, needed 14.64s
2020-04-02 11:41:36,638 - octoprint.filemanager.analysis - INFO - Analysis of entry local:1grey.gcode finished, needed 14.59s

Does your Files side panel widget confirm that you have two files added (perhaps after a page reload)?

Thanks for explaining. The files that I try to upload locally do not show up in the Files side panel widget after a page reload. Is there another way to check to see if they are there? Maybe through SSH?

But I guess that doesn't matter if I can't select them for printing.

Just a note that this is working well with my other printer/octoppi setup using the same remote computer and the same wifi network.

Does each OctoPrint instance have a unique hostname (sudo raspi-config -> Network)?

Hmm. I'm going to guess no. They are probably both name "octopi".

They both show in my list of DHCP server leases as "octopi"

I have not been using the older one. But I'll give them unique names. I'm running a print now. Can I change it while running a print? It's printing off the SD.

I changed the Host Name. Rebooted the pi, the new hostname shows in my DHCP leases. But when I tried to upload a file locally I get the same behavior. Doesn't let me.

1 Like

I assume that you installed each OctoPrint instance by flashing the OctoPi IMG. This would mean that basic rights for the pi user are appropriate.

There is a hidden folder on the Pi called ~/.octoprint. And under this there's a folder called uploads. This is where newly-arriving files land when you upload them to OctoPrint. OctoPrint then kicks off a routine in the analysis set of functionality which then updates a hidden file here which is named .metadata (as I recall). Storing the data here allows OctoPrint to keep track of the things that you might see in the web interface like amount of filament, size of file and such.

It's entirely possible that at some point the .metadata file became corrupt. If so, it might behave like all this.

Test

  • In the Files side panel widget select Create Folder...
  • Create a folder called test
  • In the interface, select the test subfolder
  • Select the Upload button
  • Upload a single file here

If this works great then you can guess that the ~/.octoprint/uploads/.metadata file is probably corrupt. Not sure what to suggest to fix this. If it were me, I'd remove that file...

sudo service octoprint stop
rm ~/.octoprint/uploads/.meta*
sudo service octoprint start

I'm guessing the analysis code will recreate the metadata upon startup if it sees it missing. Depending upon the number of files there this may take a while.

Well, problem solved. And I feel like a bonehead.

Ready for it?

The item was checked: "Only show files stored on SD" :neutral_face:

When I uncheck that all the files show up. I assume that may be checked by default because I didn't make that change (or I don't recall making that change)

Sorry for wasting everyone's time. @OutsourcedGuru you did point me to this when you said make the folder. Because the folders were not showing up so I opened that settings menu. I hope this may help someone else :man_shrugging:

1 Like

As I used to say to my students in a moment like this, "And what did you learn...?" Hopefully you learned how/where OctoPrint stores files, how to remote into your Pi, how to troubleshoot, etc.

1 Like