Some time into a nearly 3d print Octoprint crashed (probably because i left the webcam stream open on my laptop and had it up on my phone as well to monitor). The print itself kept running because it completed a few hours ago. However when trying to access it via ip (or octoprint.local) i get the service not running.
Putty can login, SmarTTY can't (cannot access .ssh directory)
Network is fine (because as said i can connect it just shows service not running) and pinging works
What i tried so far:
pi@octopi:~ ps -ef | grep -i octoprint | grep -i python pi@octopi:~ vi ~/.octoprint/logs/octoprint.log
results in
E297: Write error in swap file
E303: Unable to open swap file for "/home/pi/.octoprint/logs/octoprint.log", recovery impossible
"~/.octoprint/logs/octoprint.log" 0 lines, 898964 characters
pi@octopi:~ df
:!
pi@octopi:~ ls /dev/root
ls: cannot access '/dev/root': No such file or directory
pi@octopi:~ cd /.dev
-bash: cd: /.dev: No such file or directory
pi@octopi:~ cd /dev
pi@octopi:/dev ls
autofs cuse gpiochip1 loop1 mapper net ram10 ram4 rfkill stderr tty12 tty2 tty27 tty34 tty41 tty49 tty56 tty63 urandom vcs3 vcsa4 vcsu3 video12
block disk gpiomem loop2 media0 null ram11 ram5 rpivid-h264mem stdin tty13 tty20 tty28 tty35 tty42 tty5 tty57 tty7 v4l vcs4 vcsa5 vcsu4 video13
btrfs-control dma_heap hwrng loop3 media1 port ram12 ram6 rpivid-hevcmem stdout tty14 tty21 tty29 tty36 tty43 tty50 tty58 tty8 vchiq vcs5 vcsa6 vcsu5 video14
bus dri initctl loop4 mem ppp ram13 ram7 rpivid-intcmem tty tty15 tty22 tty3 tty37 tty44 tty51 tty59 tty9 vcio vcs6 vcsm vcsu6 video15
cachefiles fd input loop5 mmcblk0 ptmx ram14 ram8 rpivid-vp9mem tty0 tty16 tty23 tty30 tty38 tty45 tty52 tty6 ttyAMA0 vc-mem vcsa vcsm-cma vga_arbiter video16
char full kmsg loop6 mmcblk0p1 pts ram15 ram9 serial1 tty1 tty17 tty24 tty31 tty39 tty46 tty53 tty60 ttyprintk vcs vcsa1 vcsu vhci watchdog
console fuse log loop7 mmcblk0p2 ram0 ram2 random shm tty10 tty18 tty25 tty32 tty4 tty47 tty54 tty61 uhid vcs1 vcsa2 vcsu1 video10 watchdog0
cpu_dma_latency gpiochip0 loop0 loop-control mqueue ram1 ram3 raw snd tty11 tty19 tty26 tty33 tty40 tty48 tty55 tty62 uinput vcs2 vcsa3 vcsu2 video11 zero
pi@octopi:/ sudo service octoprint restart
pi@octopi:/ $ ps -ef | grep -i octoprint | grep -i python
Can't post the log because of the double error above, so i can't find out what's causing it. Can't fix it myself cause i'm a complete linux noob and will need step by step commandline instructions. I hope not having to wipe as i'd love to know if the timelapse of that 3d build will have been succesful.
Can't get into safemode as the commands don't work (or i'm doing it wrong)
pi@octopi:~ octoprint config set --bool server.startOnceInSafeMode true
-bash: octoprint: command not found
pi@octopi:~ sudo octoprint config set --bool server.startOnceInSafeMode true
[sudo] password for pi:
sudo: octoprint: command not found
pi@octopi:~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 59G 59G 0 100% /
devtmpfs 1.8G 0 1.8G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 8.5M 1.9G 1% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 54M 199M 22% /boot
tmpfs 378M 0 378M 0% /run/user/1000
browsed through the forum trying to debug commands. This is the first one that might shed a clue
pi@octopi:~ $ ~/oprint/bin/octoprint serve --debug
2020-12-26 11:17:54,171 - octoprint.settings - ERROR - Could not write test file to /home/pi/.octoprint/logs
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/settings.py", line 2211, in _validate_folder
f.write("test")
IOError: [Errno 28] No space left on device
2020-12-26 11:17:54,173 - octoprint.startup - CRITICAL - Could not initialize settings manager: Folder at /home/pi/.octoprint/logs doesn't appear to be writable, please fix its permissions
2020-12-26 11:17:54,173 - octoprint.startup - CRITICAL - There was a fatal error starting up OctoPrint.
Could not initialize settings manager: Folder at /home/pi/.octoprint/logs doesn't appear to be writable, please fix its permissions
There was a fatal error starting up OctoPrint.
Can't force reinstall either
pi@octopi:~ $ ~/oprint/bin/pip install --force-reinstall OctoPrint==1.4.2
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
ERROR: Exception:
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 153, in _main
status = self.run(options, args)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 338, in run
wheel_cache = WheelCache(options.cache_dir, options.format_control)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/cache.py", line 219, in init
self._ephem_cache = EphemWheelCache(format_control)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/cache.py", line 195, in init
self._temp_dir = TempDirectory(kind="ephem-wheel-cache")
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.py", line 57, in init
path = self._create(kind)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_internal/utils/temp_dir.py", line 90, in _create
tempfile.mkdtemp(prefix="pip-{}-".format(kind))
File "/usr/lib/python2.7/tempfile.py", line 331, in mkdtemp
dir = gettempdir()
File "/usr/lib/python2.7/tempfile.py", line 275, in gettempdir
tempdir = _get_default_tempdir()
File "/usr/lib/python2.7/tempfile.py", line 217, in _get_default_tempdir
("No usable temporary directory found in %s" % dirlist))
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/home/pi']
I'd appreciate any help getting things back working (without losing all data obviously)