Octoprint crashed, can't access log file

What is the problem?
Octoprint crashed when I tried copying a gcode file onto the server over wifi.
Setup is Pi 3 B+ using 4/23 nightly build.

Had it booted over wifi, printer control (Duplicator i3 plus) was working fine.

I have restarted the pi, and SSH'd via Putty to retrieve log file, but it says access is denied.
I'm pretty sure I am using the wrong shell commands to retrieve the log file.

Sorry I need my hand held :confused:

Paste what you are seeing in ssh. We can help but need to be able to see it.

login as: pi
pi@192.168.0.23's password:
Linux octopi 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Apr 24 03:54:35 2018 from 192.168.0.15

------------------------------------------------------------------------------
Access OctoPrint from a web browser on your network by navigating to any of:

    http://octopi.local
    http://192.168.0.23

https is also available, with a self-signed certificate.
------------------------------------------------------------------------------
This image comes without a desktop environment installed because it's not
required for running OctoPrint. If you want a desktop environment you can
install it via

    sudo /home/pi/scripts/install-desktop
------------------------------------------------------------------------------
OctoPrint version : 1.3.8
OctoPi version    : 0.15.0
------------------------------------------------------------------------------

pi@octopi:~ $ ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  4 04:02 ?        00:00:02 /sbin/init
root         2     0  0 04:02 ?        00:00:00 [kthreadd]
root         3     2  0 04:02 ?        00:00:00 [kworker/0:0]
root         4     2  0 04:02 ?        00:00:00 [kworker/0:0H]
root         5     2  0 04:02 ?        00:00:00 [kworker/u8:0]
root         6     2  0 04:02 ?        00:00:00 [mm_percpu_wq]
root         7     2  0 04:02 ?        00:00:00 [ksoftirqd/0]
root         8     2  0 04:02 ?        00:00:00 [rcu_sched]
root         9     2  0 04:02 ?        00:00:00 [rcu_bh]
root        10     2  0 04:02 ?        00:00:00 [migration/0]
root        11     2  0 04:02 ?        00:00:00 [cpuhp/0]
root        12     2  0 04:02 ?        00:00:00 [cpuhp/1]
root        13     2  0 04:02 ?        00:00:00 [migration/1]
root        14     2  0 04:02 ?        00:00:00 [ksoftirqd/1]
root        15     2  0 04:02 ?        00:00:00 [kworker/1:0]
root        16     2  0 04:02 ?        00:00:00 [kworker/1:0H]
root        17     2  0 04:02 ?        00:00:00 [cpuhp/2]
root        18     2  0 04:02 ?        00:00:00 [migration/2]
root        19     2  0 04:02 ?        00:00:00 [ksoftirqd/2]
root        20     2  0 04:02 ?        00:00:00 [kworker/2:0]
root        21     2  0 04:02 ?        00:00:00 [kworker/2:0H]
root        22     2  0 04:02 ?        00:00:00 [cpuhp/3]
root        23     2  0 04:02 ?        00:00:00 [migration/3]
root        24     2  0 04:02 ?        00:00:00 [ksoftirqd/3]
root        25     2  0 04:02 ?        00:00:00 [kworker/3:0]
root        26     2  0 04:02 ?        00:00:00 [kworker/3:0H]
root        27     2  0 04:02 ?        00:00:00 [kdevtmpfs]
root        28     2  0 04:02 ?        00:00:00 [netns]
root        29     2  0 04:02 ?        00:00:00 [kworker/0:1]
root        30     2  0 04:02 ?        00:00:00 [kworker/1:1]
root        31     2  0 04:02 ?        00:00:00 [kworker/2:1]
root        32     2  0 04:02 ?        00:00:00 [kworker/3:1]
root        33     2  0 04:02 ?        00:00:00 [khungtaskd]
root        34     2  0 04:02 ?        00:00:00 [oom_reaper]
root        35     2  0 04:02 ?        00:00:00 [writeback]
root        36     2  0 04:02 ?        00:00:00 [kcompactd0]
root        37     2  0 04:02 ?        00:00:00 [crypto]
root        38     2  0 04:02 ?        00:00:00 [kblockd]
root        39     2  0 04:02 ?        00:00:00 [watchdogd]
root        40     2  0 04:02 ?        00:00:00 [rpciod]
root        41     2  0 04:02 ?        00:00:00 [xprtiod]
root        42     2  0 04:02 ?        00:00:00 [kworker/u8:1]
root        44     2  0 04:02 ?        00:00:00 [kswapd0]
root        45     2  0 04:02 ?        00:00:00 [nfsiod]
root        55     2  0 04:02 ?        00:00:00 [kthrotld]
root        56     2  0 04:02 ?        00:00:00 [iscsi_eh]
root        57     2  0 04:02 ?        00:00:00 [dwc_otg]
root        58     2  0 04:02 ?        00:00:00 [DWC Notificatio]
root        59     2  0 04:02 ?        00:00:00 [vchiq-slot/0]
root        60     2  0 04:02 ?        00:00:00 [vchiq-recy/0]
root        61     2  0 04:02 ?        00:00:00 [vchiq-sync/0]
root        62     2  0 04:02 ?        00:00:00 [vchiq-keep/0]
root        63     2  0 04:02 ?        00:00:00 [SMIO]
root        64     2  0 04:02 ?        00:00:00 [kworker/3:2]
root        65     2  0 04:02 ?        00:00:00 [irq/92-mmc1]
root        66     2  0 04:02 ?        00:00:00 [kworker/3:3]
root        67     2  0 04:02 ?        00:00:00 [kworker/1:2]
root        68     2  0 04:02 ?        00:00:00 [mmcqd/0]
root        69     2  0 04:02 ?        00:00:00 [jbd2/mmcblk0p2-]
root        70     2  0 04:02 ?        00:00:00 [ext4-rsv-conver]
root        71     2  0 04:02 ?        00:00:00 [ipv6_addrconf]
root        87     1  1 04:02 ?        00:00:00 /lib/systemd/systemd-journald
root       104     2  0 04:02 ?        00:00:00 [kworker/u8:2]
root       105     2  0 04:02 ?        00:00:00 [kworker/1:3]
root       127     1  0 04:02 ?        00:00:00 /lib/systemd/systemd-udevd
root       130     2  0 04:02 ?        00:00:00 [kworker/2:2]
root       136     2  0 04:02 ?        00:00:00 [irq/169-usb-001]
root       198     2  0 04:02 ?        00:00:00 [cfg80211]
root       206     2  0 04:02 ?        00:00:00 [brcmf_wq/mmc1:0]
root       207     2  0 04:02 ?        00:00:00 [brcmf_wdog/mmc1]
systemd+   246     1  0 04:02 ?        00:00:00 /lib/systemd/systemd-timesyncd
root       256     2  0 04:02 ?        00:00:00 [kworker/0:2]
root       298     1  0 04:02 ?        00:00:00 /usr/sbin/rsyslogd -n
root       299     1  0 04:02 ?        00:00:00 /lib/systemd/systemd-logind
nobody     300     1  0 04:02 ?        00:00:00 /usr/sbin/thd --triggers /etc/tr
message+   315     1  0 04:02 ?        00:00:00 /usr/bin/dbus-daemon --system --
avahi      347     1  0 04:02 ?        00:00:00 avahi-daemon: running [octopi.lo
root       349     1  0 04:02 ?        00:00:00 /usr/sbin/cron -f
avahi      355   347  0 04:02 ?        00:00:00 avahi-daemon: chroot helper
pi         377     1  0 04:02 ?        00:00:00 /bin/bash /root/bin/webcamd
pi         421   377  0 04:02 ?        00:00:00 sleep 120
root       422     2  0 04:02 ?        00:00:00 [kworker/0:3]
root       427     1  0 04:02 ?        00:00:00 wpa_supplicant -B -c/etc/wpa_sup
root       434     2  0 04:02 ?        00:00:00 [kworker/3:4]
root       436     2  0 04:02 ?        00:00:00 [kworker/3:5]
root       461     2  0 04:02 ?        00:00:00 [kworker/u9:0]
root       464     1  0 04:02 ?        00:00:00 /usr/bin/hciattach /dev/serial1
root       465     2  0 04:02 ?        00:00:00 [kworker/u9:1]
root       467     2  0 04:02 ?        00:00:00 [kworker/u9:2]
root       468     1  0 04:02 ?        00:00:00 /usr/lib/bluetooth/bluetoothd
root       529     1  0 04:02 ?        00:00:00 /sbin/dhcpcd -q -w
root       542     1  0 04:02 ?        00:00:00 /usr/sbin/haproxy-systemd-wrappe
haproxy    544   542  0 04:02 ?        00:00:00 /usr/sbin/haproxy-master
root       546     1  0 04:02 ?        00:00:00 /usr/sbin/sshd -D
haproxy    548   544  0 04:02 ?        00:00:00 /usr/sbin/haproxy -f /etc/haprox
root       558     1  0 04:02 tty1     00:00:00 /sbin/agetty --noclear tty1 linu
root       562   546  0 04:02 ?        00:00:00 sshd: pi [priv]
pi         569     1  0 04:03 ?        00:00:00 /lib/systemd/systemd --user
pi         572   569  0 04:03 ?        00:00:00 (sd-pam)
pi         579   562  0 04:03 ?        00:00:00 sshd: pi@pts/0
pi         582   579  0 04:03 pts/0    00:00:00 -bash
root       609     2  0 04:03 ?        00:00:00 [kworker/0:1H]
root       610     2  0 04:03 ?        00:00:00 [kworker/1:1H]
root       611     2  0 04:03 ?        00:00:00 [kworker/3:1H]
root       612     2  0 04:03 ?        00:00:00 [kworker/2:1H]
pi         613   582  0 04:03 pts/0    00:00:00 ps -ef
pi@octopi:~ $ ~/.octoprint/logs/octoprint.log

-bash: /home/pi/.octoprint/logs/octoprint.log: Permission denied

pi@octopi:~ $ sudo service octoprint restart

pi@octopi:~ $ ps -ef

UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 04:02 ?        00:00:02 /sbin/init
root         2     0  0 04:02 ?        00:00:00 [kthreadd]
root         4     2  0 04:02 ?        00:00:00 [kworker/0:0H]
root         5     2  0 04:02 ?        00:00:00 [kworker/u8:0]
root         6     2  0 04:02 ?        00:00:00 [mm_percpu_wq]
root         7     2  0 04:02 ?        00:00:00 [ksoftirqd/0]
root         8     2  0 04:02 ?        00:00:00 [rcu_sched]
root         9     2  0 04:02 ?        00:00:00 [rcu_bh]
root        10     2  0 04:02 ?        00:00:00 [migration/0]
root        11     2  0 04:02 ?        00:00:00 [cpuhp/0]
root        12     2  0 04:02 ?        00:00:00 [cpuhp/1]
root        13     2  0 04:02 ?        00:00:00 [migration/1]
root        14     2  0 04:02 ?        00:00:00 [ksoftirqd/1]
root        16     2  0 04:02 ?        00:00:00 [kworker/1:0H]
root        17     2  0 04:02 ?        00:00:00 [cpuhp/2]
root        18     2  0 04:02 ?        00:00:00 [migration/2]
root        19     2  0 04:02 ?        00:00:00 [ksoftirqd/2]
root        20     2  0 04:02 ?        00:00:00 [kworker/2:0]
root        21     2  0 04:02 ?        00:00:00 [kworker/2:0H]
root        22     2  0 04:02 ?        00:00:00 [cpuhp/3]
root        23     2  0 04:02 ?        00:00:00 [migration/3]
root        24     2  0 04:02 ?        00:00:00 [ksoftirqd/3]
root        26     2  0 04:02 ?        00:00:00 [kworker/3:0H]
root        27     2  0 04:02 ?        00:00:00 [kdevtmpfs]
root        28     2  0 04:02 ?        00:00:00 [netns]
root        29     2  0 04:02 ?        00:00:00 [kworker/0:1]
root        30     2  0 04:02 ?        00:00:00 [kworker/1:1]
root        31     2  0 04:02 ?        00:00:00 [kworker/2:1]
root        32     2  0 04:02 ?        00:00:00 [kworker/3:1]
root        33     2  0 04:02 ?        00:00:00 [khungtaskd]
root        34     2  0 04:02 ?        00:00:00 [oom_reaper]
root        35     2  0 04:02 ?        00:00:00 [writeback]
root        36     2  0 04:02 ?        00:00:00 [kcompactd0]
root        37     2  0 04:02 ?        00:00:00 [crypto]
root        38     2  0 04:02 ?        00:00:00 [kblockd]
root        39     2  0 04:02 ?        00:00:00 [watchdogd]
root        40     2  0 04:02 ?        00:00:00 [rpciod]
root        41     2  0 04:02 ?        00:00:00 [xprtiod]
root        42     2  0 04:02 ?        00:00:00 [kworker/u8:1]
root        44     2  0 04:02 ?        00:00:00 [kswapd0]
root        45     2  0 04:02 ?        00:00:00 [nfsiod]
root        55     2  0 04:02 ?        00:00:00 [kthrotld]
root        56     2  0 04:02 ?        00:00:00 [iscsi_eh]
root        57     2  0 04:02 ?        00:00:00 [dwc_otg]
root        58     2  0 04:02 ?        00:00:00 [DWC Notificatio]
root        59     2  0 04:02 ?        00:00:00 [vchiq-slot/0]
root        60     2  0 04:02 ?        00:00:00 [vchiq-recy/0]
root        61     2  0 04:02 ?        00:00:00 [vchiq-sync/0]
root        62     2  0 04:02 ?        00:00:00 [vchiq-keep/0]
root        63     2  0 04:02 ?        00:00:00 [SMIO]
root        65     2  0 04:02 ?        00:00:00 [irq/92-mmc1]
root        66     2  0 04:02 ?        00:00:00 [kworker/3:3]
root        67     2  0 04:02 ?        00:00:00 [kworker/1:2]
root        68     2  0 04:02 ?        00:00:00 [mmcqd/0]
root        69     2  0 04:02 ?        00:00:00 [jbd2/mmcblk0p2-]
root        70     2  0 04:02 ?        00:00:00 [ext4-rsv-conver]
root        71     2  0 04:02 ?        00:00:00 [ipv6_addrconf]
root        87     1  0 04:02 ?        00:00:00 /lib/systemd/systemd-journald
root       104     2  0 04:02 ?        00:00:00 [kworker/u8:2]
root       127     1  0 04:02 ?        00:00:00 /lib/systemd/systemd-udevd
root       130     2  0 04:02 ?        00:00:00 [kworker/2:2]
root       136     2  0 04:02 ?        00:00:00 [irq/169-usb-001]
root       198     2  0 04:02 ?        00:00:00 [cfg80211]
root       206     2  0 04:02 ?        00:00:00 [brcmf_wq/mmc1:0]
root       207     2  0 04:02 ?        00:00:00 [brcmf_wdog/mmc1]
systemd+   246     1  0 04:02 ?        00:00:00 /lib/systemd/systemd-timesyncd
root       298     1  0 04:02 ?        00:00:00 /usr/sbin/rsyslogd -n
root       299     1  0 04:02 ?        00:00:00 /lib/systemd/systemd-logind
nobody     300     1  0 04:02 ?        00:00:00 /usr/sbin/thd --triggers /etc/tr
message+   315     1  0 04:02 ?        00:00:00 /usr/bin/dbus-daemon --system --
avahi      347     1  0 04:02 ?        00:00:00 avahi-daemon: running [octopi.lo
root       349     1  0 04:02 ?        00:00:00 /usr/sbin/cron -f
avahi      355   347  0 04:02 ?        00:00:00 avahi-daemon: chroot helper
pi         377     1  0 04:02 ?        00:00:00 /bin/bash /root/bin/webcamd
root       422     2  0 04:02 ?        00:00:00 [kworker/0:3]
root       427     1  0 04:02 ?        00:00:00 wpa_supplicant -B -c/etc/wpa_sup
root       461     2  0 04:02 ?        00:00:00 [kworker/u9:0]
root       464     1  0 04:02 ?        00:00:00 /usr/bin/hciattach /dev/serial1
root       467     2  0 04:02 ?        00:00:00 [kworker/u9:2]
root       468     1  0 04:02 ?        00:00:00 /usr/lib/bluetooth/bluetoothd
root       529     1  0 04:02 ?        00:00:00 /sbin/dhcpcd -q -w
root       542     1  0 04:02 ?        00:00:00 /usr/sbin/haproxy-systemd-wrappe
haproxy    544   542  0 04:02 ?        00:00:00 /usr/sbin/haproxy-master
root       546     1  0 04:02 ?        00:00:00 /usr/sbin/sshd -D
haproxy    548   544  0 04:02 ?        00:00:00 /usr/sbin/haproxy -f /etc/haprox
root       558     1  0 04:02 tty1     00:00:00 /sbin/agetty --noclear tty1 linu
root       609     2  0 04:03 ?        00:00:00 [kworker/0:1H]
root       610     2  0 04:03 ?        00:00:00 [kworker/1:1H]
root       611     2  0 04:03 ?        00:00:00 [kworker/3:1H]
root       612     2  0 04:03 ?        00:00:00 [kworker/2:1H]
root       640     2  0 04:07 ?        00:00:00 [kworker/2:3]
root       641     2  0 04:07 ?        00:00:00 [kworker/3:0]
root       642   546  0 04:07 ?        00:00:00 sshd: pi [priv]
pi         647     1  0 04:07 ?        00:00:00 /lib/systemd/systemd --user
pi         650   647  0 04:07 ?        00:00:00 (sd-pam)
pi         657   642  0 04:07 ?        00:00:00 sshd: pi@pts/0
pi         660   657  0 04:07 pts/0    00:00:00 -bash
root       684     2  0 04:07 ?        00:00:00 [kworker/0:0]
root       686     2  0 04:08 ?        00:00:00 [kworker/u8:3]
pi         692   377  0 04:08 ?        00:00:00 sleep 120
root       721     2  0 04:08 ?        00:00:00 [kworker/1:0]
pi         734   660  0 04:08 pts/0    00:00:00 ps -ef
pi@octopi:~ $

This is what I have tried in SSH. What commands should I be using?

pi@octopi:~ $ ~/.octoprint/logs/octoprint.log
-bash: /home/pi/.octoprint/logs/octoprint.log: Permission denied

You are trying to execute the .log file. Try "more ~/.octoprint/logs/octoprint.log" instead. This should display the log file on your ssh terminal one screen at a time. Hit the space bar to see the next screen. "cat ~/.octoprint/logs/octoprint.log" will display the whole thing at once and if your SSH terminal session has a big enough buffer, you should be able to cut and paste the whole thing. If it is too big,
"rm ~/.octoprint/logs/octoprint.log" to remove it, "sudo service octoprint restart" to try again, and now (hopefully) you have just one failure to look at.

If for some reason you still get an error, start with "ls -la" and post the output here.

Thank you!

2018-04-24 04:05:58,871 - octoprint.plugin.core - INFO - Found 11 plugin(s) providing 11 mixin implementations, 5 hook handlers
2018-04-24 04:05:58,965 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2018-04-24 04:05:58,989 - octoprint.server - INFO - Intermediary server started
2018-04-24 04:05:58,990 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /hom
e/pi/.octoprint/plugins and installed plugin packages...
2018-04-24 04:05:59,512 - octoprint.plugin.core - INFO - Found 11 plugin(s) providing 11 mixin implementations, 5 hook handlers
2018-04-24 04:05:59,552 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
  File "/home/pi/oprint/bin/octoprint", line 11, in <module>
    sys.exit(main())
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/__init__.py", line 565, in main
    octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 183, in serve_command
    ignore_blacklist)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 104, in run_server
    octoprint_server.run()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/__init__.py", line 261, in run
    storage_managers[octoprint.filemanager.FileDestinations.LOCAL] = octoprint.filemanager.storage.LocalFileStorage(self._settings.getBaseFolder(
"uploads"))
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/settings.py", line 1453, in getBaseFolder
    os.makedirs(folder)
  File "/home/pi/oprint/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: 'H:\\Google Drive\\3d printer\\Code'
2018-04-24 04:00:51,840 - octoprint.startup - INFO - ******************************************************************************
2018-04-24 04:00:51,842 - octoprint.startup - INFO - Starting OctoPrint 1.3.8
2018-04-24 04:00:51,842 - octoprint.startup - INFO - ******************************************************************************
2018-04-24 04:00:52,958 - octoprint.startup - INFO - We don't appear to be online, not fetching plugin blacklist
2018-04-24 04:00:53,050 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /hom
e/pi/.octoprint/plugins and installed plugin packages...
2018-04-24 04:00:55,339 - py.warnings - WARNING - /home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/core.py:1643: UserWarning: N
o PKG-INFO found for package: octoprint_slic3r
  warnings.warn('No PKG-INFO found for package: %s' % self.package_name)

2018-04-24 04:00:55,463 - octoprint.plugin.core - INFO - Found 11 plugin(s) providing 11 mixin implementations, 5 hook handlers
2018-04-24 04:00:55,609 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2018-04-24 04:00:55,656 - octoprint.server - INFO - Intermediary server started
2018-04-24 04:00:55,657 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /hom
e/pi/.octoprint/plugins and installed plugin packages...
2018-04-24 04:00:56,178 - octoprint.plugin.core - INFO - Found 11 plugin(s) providing 11 mixin implementations, 5 hook handlers
2018-04-24 04:00:56,220 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
  File "/home/pi/oprint/bin/octoprint", line 11, in <module>
    sys.exit(main())
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/__init__.py", line 565, in main
    octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 183, in serve_command
    ignore_blacklist)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 104, in run_server
    octoprint_server.run()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/__init__.py", line 261, in run
    storage_managers[octoprint.filemanager.FileDestinations.LOCAL] = octoprint.filemanager.storage.LocalFileStorage(self._settings.getBaseFolder("uploads"))
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/settings.py", line 1453, in getBaseFolder
    os.makedirs(folder)
  File "/home/pi/oprint/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: 'H:\\Google Drive\\3d printer\\Code'
2018-04-24 04:43:34,157 - octoprint.startup - INFO - ******************************************************************************
2018-04-24 04:43:34,158 - octoprint.startup - INFO - Starting OctoPrint 1.3.8
2018-04-24 04:43:34,159 - octoprint.startup - INFO - ******************************************************************************
2018-04-24 04:43:35,324 - octoprint.startup - INFO - We don't appear to be online, not fetching plugin blacklist
2018-04-24 04:43:35,398 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages.
..
2018-04-24 04:43:37,625 - py.warnings - WARNING - /home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/core.py:1643: UserWarning: No PKG-INFO found for package: octoprint_slic3r
  warnings.warn('No PKG-INFO found for package: %s' % self.package_name)

2018-04-24 04:43:37,711 - octoprint.plugin.core - INFO - Found 11 plugin(s) providing 11 mixin implementations, 5 hook handlers
2018-04-24 04:43:37,924 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2018-04-24 04:43:37,977 - octoprint.server - INFO - Intermediary server started
2018-04-24 04:43:37,977 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages.
..
2018-04-24 04:43:38,496 - octoprint.plugin.core - INFO - Found 11 plugin(s) providing 11 mixin implementations, 5 hook handlers
2018-04-24 04:43:38,537 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
  File "/home/pi/oprint/bin/octoprint", line 11, in <module>
    sys.exit(main())
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/__init__.py", line 565, in main
    octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 183, in serve_command
    ignore_blacklist)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 104, in run_server
    octoprint_server.run()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/__init__.py", line 261, in run
    storage_managers[octoprint.filemanager.FileDestinations.LOCAL] = octoprint.filemanager.storage.LocalFileStorage(self._settings.getBaseFolder("uploads"))
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/settings.py", line 1453, in getBaseFolder
    os.makedirs(folder)
  File "/home/pi/oprint/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: 'H:\\Google Drive\\3d printer\\Code'
2018-04-24 23:09:46,960 - octoprint.startup - INFO - ******************************************************************************
2018-04-24 23:09:46,961 - octoprint.startup - INFO - Starting OctoPrint 1.3.8
2018-04-24 23:09:46,962 - octoprint.startup - INFO - ******************************************************************************
2018-04-24 23:09:48,077 - octoprint.startup - INFO - We don't appear to be online, not fetching plugin blacklist
2018-04-24 23:09:48,171 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2018-04-24 23:09:50,463 - py.warnings - WARNING - /home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/core.py:1643: UserWarning: No PKG-INFO found for package: octoprint_slic3r
  warnings.warn('No PKG-INFO found for package: %s' % self.package_name)

2018-04-24 23:09:50,563 - octoprint.plugin.core - INFO - Found 11 plugin(s) providing 11 mixin implementations, 5 hook handlers
2018-04-24 23:09:50,687 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2018-04-24 23:09:50,737 - octoprint.server - INFO - Intermediary server started
2018-04-24 23:09:50,738 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2018-04-24 23:09:51,251 - octoprint.plugin.core - INFO - Found 11 plugin(s) providing 11 mixin implementations, 5 hook handlers
2018-04-24 23:09:51,293 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
  File "/home/pi/oprint/bin/octoprint", line 11, in <module>
    sys.exit(main())
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/__init__.py", line 565, in main
    octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 183, in serve_command
    ignore_blacklist)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 104, in run_server
    octoprint_server.run()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/__init__.py", line 261, in run
    storage_managers[octoprint.filemanager.FileDestinations.LOCAL] = octoprint.filemanager.storage.LocalFileStorage(self._settings.getBaseFolder("uploads"))
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/settings.py", line 1453, in getBaseFolder
    os.makedirs(folder)
  File "/home/pi/oprint/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: 'H:\\Google Drive\\3d printer\\Code'
2018-04-25 04:08:37,543 - octoprint.startup - INFO - ******************************************************************************
2018-04-25 04:08:37,543 - octoprint.startup - INFO - Starting OctoPrint 1.3.8
2018-04-25 04:08:37,544 - octoprint.startup - INFO - ******************************************************************************
2018-04-25 04:08:38,802 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2018-04-25 04:08:39,661 - octoprint.startup - INFO - Blacklist processing done
2018-04-25 04:08:39,730 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2018-04-25 04:08:41,261 - py.warnings - WARNING - /home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/core.py:1643: UserWarning: No PKG-INFO found for package: octoprint_slic3r
  warnings.warn('No PKG-INFO found for package: %s' % self.package_name)

2018-04-25 04:08:41,335 - octoprint.plugin.core - INFO - Found 11 plugin(s) providing 11 mixin implementations, 5 hook handlers
2018-04-25 04:08:41,428 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval
2018-04-25 04:08:41,451 - octoprint.server - INFO - Intermediary server started
2018-04-25 04:08:41,452 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...
2018-04-25 04:08:41,969 - octoprint.plugin.core - INFO - Found 11 plugin(s) providing 11 mixin implementations, 5 hook handlers
2018-04-25 04:08:42,010 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
  File "/home/pi/oprint/bin/octoprint", line 11, in <module>
    sys.exit(main())
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/__init__.py", line 565, in main
    octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 183, in serve_command
    ignore_blacklist)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/cli/server.py", line 104, in run_server
    octoprint_server.run()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/__init__.py", line 261, in run
    storage_managers[octoprint.filemanager.FileDestinations.LOCAL] = octoprint.filemanager.storage.LocalFileStorage(self._settings.getBaseFolder("uploads"))
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/settings.py", line 1453, in getBaseFolder
    os.makedirs(folder)
  File "/home/pi/oprint/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: 'H:\\Google Drive\\3d printer\\Code'

I would guess part of the problem stems from trying to use a windows 10 network drive as a fileserver..? How would I change this back without re-imaging?

Yeah, that's definitely caused by that reconfigured folder. OctoPrint can't write to a folder it needs to write to (which now resides on a network share) and hence can't run. Your network share also looks a bit broken, I'm not aware that you can directly access windows driver letters in any way from a Pi.

Try this... Log into your Pi via SSH (default username/password is "pi"/"raspberry"). Then run

nano ~/.octoprint/config.yaml

There should be a section in there somewhere that looks like this:

folder:
  uploads: H:\Google Drive\3d printer\Code

Delete that. Only delete folder: and what comes under it indented like this. Once stuff is on the same level again as folder, stop deleting! E.g. if stuff looks like this:

# ...
feature:
  autoUppercaseBlacklist:
  - M117
  - G1.1
  - G28
folder:
  logs: C:\Users\Gina\AppData\Roaming\OctoPrint\logs2
  timelapse: C:\Users\Gina\AppData\Roaming\OctoPrint\timelapse2
  timelapse_tmp: C:\Users\Gina\AppData\Roaming\OctoPrint\timelapse\tmp2
  uploads: C:\Users\Gina\AppData\Roaming\OctoPrint\uploads2
  watched: C:\Users\Gina\AppData\Roaming\OctoPrint\watched2
plugins:
  _disabled:
# ...

it should look like this when you are done:

# ...
feature:
  autoUppercaseBlacklist:
  - M117
  - G1.1
  - G28
plugins:
  _disabled:
# ...

Save & exit (Ctrl+X, Y, Enter). Then restart OctoPrint. Should hopefully now start again since you removed the broken folder paths.

Btw, next time maybe mention that you changed the folder paths before "OctoPrint crashed unexpectedly" :wink: