MatthewCroughan / octobalena

Control your 3d-printer with octoprint + octoscreen via balena!
GNU General Public License v2.0
49 stars 22 forks source link

Octoprint ver is 1.4 and (web) upgrade to 1.4.2 fails #14

Open nikil511 opened 3 years ago

nikil511 commented 3 years ago

Guess stuff are missing, errors from plugin_softwareupdate_console.log follow bellow.

2020-09-30 09:31:06,609 ! psutil/_psutil_posix.c:29:14: fatal error: linux/types.h: No such file or directory 2020-09-30 09:31:06,609 ! #include <linux/types.h> 2020-09-30 09:31:06,610 ! ^~~~~~~ 2020-09-30 09:31:06,610 ! compilation terminated. 2020-09-30 09:31:06,611 ! error: command 'gcc' failed with exit status 1

2020-09-30 09:31:06,584 ! ERROR: Command errored out with exit status 1: 2020-09-30 09:31:06,585 ! command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qw0oIM/psutil/setup.py'"'"'; file='"'"'/tmp/pip-install-qw0oIM/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-AW_xUd 2020-09-30 09:31:06,586 ! cwd: /tmp/pip-install-qw0oIM/psutil/ 2020-09-30 09:31:06,587 ! Complete output (50 lines): 2020-09-30 09:31:06,588 ! /tmp/tmp6EJBar.c:1:10: fatal error: linux/ethtool.h: No such file or directory

MatthewCroughan commented 3 years ago

You are not supposed to update octoprint from within the container. This will cause breakage. It would be good if we could disable the Octoprint update alerts in the config, but I haven't found a way to do that yet.

MatthewCroughan commented 3 years ago

Additionally, we are going to have to do some work to upgrade everything to 1.4 and truly own and create the Dockerfile for 1.4 instead of extending what https://github.com/nunofgs/docker-octoprint has made. It seems he is not maintaining it anymore.

Maybe we could extend the official Octoprint container which seems to be getting updated. This seems at odds with Balena though, since it wants you to base everything on Balena base images, which means using these upstream images is counter productive, as hardware access and balena labels and more are not usable.