Where can I find OctoPrint's and OctoPi's log files?

:point_right::point_right::point_right: Going forward, please ALWAYS share a full system info bundle :point_left::point_left::point_left:

You can find out here how to obtain that:




To help with problem analysis, it's important to share relevant log files and other data. This FAQ entry is going to tell you where to find the log files of the OctoPrint application and the OctoPi OS image.

:question: Confused about OctoPrint vs OctoPi?

Read this FAQ entry on the difference between the two.

OctoPrint

All log files that OctoPrint writes can be found in the logs sub folder in its configuration directory:

  • on Linux: ~/.octoprint/logs
  • on Windows: %APPDATA%\OctoPrint\logs
  • on MacOSX: ~/Library/Application Support/OctoPrint/logs

You can also access them via OctoPrint's Settings dialog under "Logging":

If you can't access OctoPrint's web interface for some reason, you can also retrieve the log files via SSH with an SCP client such as WinSCP. See the following guide if you are unsure on how to do this:

The logs are crucial instruments of analysis and debugging, so it's usually in your best interest to provide them when asking for help or reporting a bug, even if not explicitly prompted for them:

  • octoprint.log: OctoPrint's main application log file. Contains a general log of everything that happens while OctoPrint is running. Includes version information, installed plugins and a myriad of more data points.

    This must always be included when reporting a bug to allow for further analysis and reproduction. It is also a very good idea to provide this when asking for help :wink:

  • serial.log: A log of all of the communication going on between OctoPrint and your printer. Usually disabled for performance reasons, enable it through Settings > Serial Connection.

    Either that or at the very least the output in OctoPrint's Terminal tab is crucial for analysis of any kind of communication issues or misbehaviours observed with your printer, so it's important to include it when discussing such issues.

  • plugin_pluginmanager_console.log: A log of the command line activity of the plugin manager. Very important for analysis of such questions like "Why can't I install plugin $xyz?", so if you have such a problem, best include this.

  • plugin_softwareupdate_console.log: A log of the command line activity of the software updater. Very important for analysis of such questions like "Updating OctoPrint always fails, why?", so if you have such a problem, best include this.

Third party plugins might also have special log files here. If a plugin author asks you to provide a special log created by their plugin for further analysis, this should be where you can find it.

OctoPi

On OctoPi there are the following additional log files which you'll have to copy over via SSH or an SCP client such as WinSCP:

  • /var/log/webcamd.log: The log of the webcam server. If you are running into issues with your webcam not being recognized or stopping to work out of the blue, this is the log file that might contain the answer. :warning: Important: This log file is missing on some versions of OctoPi, if you can't find it please provide the output of journalctl -u webcamd instead.
  • /var/log/haproxy.log: The log of the reverse proxy in front of OctoPrint and the webcam server, haproxy. If you can't connect to the server in your browser at all ("Connection refused"), this is the log file that might contain the answer.
  • /var/log/syslog: The general system log file. If you are having issues connecting via WiFi, or if your printer is not showing up in OctoPrint, this might give additional clues.
Webcam wont load/show up
Is there utility in a monitor for Octopi setup on a Pi?
After 1.3.10 update can't connect to the printer
Druckabbruch bei Verbindungsaufbau durch Octoprint-Pressure aborted when connecting through Octoprint
Printer Doesnt Start
Updated and now cannot connect
Extruder only moves along X-axis Mid-Print
Moves to back corners and spews filament
Putty is displaying an error
Bug "Communication timeout while printing"
Octoprint disconnects after print
Printer stops without any reason?!
WebCam not working again after OctoPrint update
WebCam not working again after OctoPrint update
What is a Systeminfo Bundle and how can I obtain one?
Ender 3 Octoprint not connecting
Lost connection first configuration auto geeetech aluminium i3
Problem with PROCASTINATOR
Purge line runs on using Octolapse
Loading Unattached Printers Firmware
How to modify print temperature "on the fly" before print start?
How can I change mjpg-streamer parameters on OctoPi?
Crazy printer with OctoPrint
Problem with USB WEBCAM
OctoPrint problem sending print
QQ-s Stopping print with error
Ender 5 pro 4.2.7 not detected
Problemi con stampante Anycubic predator
Problemi con stampante Anycubic predator
Raspberry pi camera not working
Multiple printers per server megathread
Predator Print Head does not go to upper position
Update 1.5.1 needs to be fixed
Pi Camera V2.1 issues
Layer shift when Pie is connected to printer
Preheat plugins
Professional Help?
Flahsforge Dremaer is not connecting
I may have broken my camera connector, but I'm not sure
Cannot connect printer after 1.4.2
OctoPrint Python3
Teminal problems
Teminal problems
Terminal does not work
Please Help. Connect Ender 3 Pro to Octoprint after moving Z around. Now not able to moving Z anymore
Please Help. Connect Ender 3 Pro to Octoprint after moving Z around. Now not able to moving Z anymore
Connecting to Printer failed but not failed
Printer stops mid-printing
Raspberry pi 3B+ mem bottleneck
Octoprint no connection to web-interface
Temperature reporting now working with new ender 3 V2
Pi cam not working, what gives
Octoprint on connecting to printer moves x and y axis and crashes into ends. HELP
Octoprint and Geeetech Smartto firmware
Printing stops, throws a "SerialException" error
Octopi disconnect when changing filament
Z axis running to high
CR10sPRO / Tiny Machines 2.0 FW / M600 / Octoprint - any success?
Installed desktop from octopi wifi setup and now my usb ports no longer are powered
New user with Makerbot Replicator 2x
Strange Octoprint behavior
Octoprint won`t start a print from SD Card
Octoprint / Lulzbot Workhorse... smoke!
Can't Connect to Octopi
Filament Run Out sensor not working
Webcam don't stream
Prusa i3mk3s mmu2s not connecting
Octopi to printer connection problem
Cannot connect to Octoprint from PC
OctoPrint Home Screen
My OctoPrint won't use terminal at all
FLSUN QQ-S some problems
Upgrade to 1.4 broke printing
Octoprint Crashing
Y Axis randomly stops mid Print - Ender 5 Silent
Octoprint causing random layer shifts
Octoprint causing random layer shifts
I can't install plugins in my octoprint! (I don't have Internet connectivity)
Octopi not connect to wifi
After OctoPrint firmware update plugin update - Prusa i3 MK3 will no longer connect
RPi 3won't connect to Ender 3 after 3 weeks of working
Prusa i3 MK3S + Pi Zero W + Pi Camera V2.1 = No video stream
Z height randomly dropped mid-print, causing nozzle to dig into the print
I can no longer upload files
Octoprint resets my bed leveling
Unsupported command
Bad connection to octopi
Creality CR-10 Not getting Baudrate
Two Octoprints can't move Z axis/ all axis fail after attempting
Latest update to octopi and Marlin bugfix 2.0.x restarts
Logging dashboard plugin information
Tronxy XY2 pro titan and Tronxy XY3
Intermittent issue in which RPi HQ camera feed freezes
Resume print after pause
Filament change not working
Intamsys Funmat HT
How to log more than 300 lines of the OctoPrint terminal?
A4tech Camera Compatibility Issues
Warts form on the surface of the printed components
No Camera after reconnect
No Camera after reconnect
Trying to connect Windows computer to ender 3
Noticeably worse quality from Octoprint than from SD card - Ender 3 V2
After updating OctoPrint, my webcam no longer works