How to retrieve log files from OctoPrint on OctoPi if the web interface is no longer working

:bulb: Note

The following guide explains how to copy over files from OctoPi (or any other Linux enabled system) via SSH. It explicitly explains how to do this for octoprint.log, however the same method works for any file, be it log file or configuration, that you might need to provide during support.

If you are on Windows

  1. Download & Install WinSCP: https://winscp.net/eng/download.php

  2. Start WinSCP and connect to your OctoPi instance (use whatever you normally enter in the browser where it says octopi.local, could be a different name, could be an ip):
    image

  3. If you get a warning like the below, click "Yes":
    image

  4. Hit Ctrl+Alt+H to enable the display of hidden files. Alternatively click Options, Preferences, navigate to Panel and make sure "Show hidden files" right at the very top is checked:
    image

  5. You should now see something like this:

  6. Navigate to .octoprint, then inside of that to logs. You should see something like that:

  7. Highlight octoprint.log, hit F5 or click the "Download" button right above the file list. That will copy it over to the directory selected on the left.

If you are on a Mac or Linux

  1. Open a command line

  2. Run scp pi@octopi.local:~/.octoprint/logs/octoprint.log . (use whatever you normally enter in the browser where it says octopi.local, could be a different name, could be an ip)

  3. The log will now we copied over to the directory you opened the command line in.

2 Likes

Can I email the log file ?:slight_smile:

Please attach it to a post in the related support thread so others can look at it as well and hopefully help, not just me.