guysoft / OctoPi

Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web
GNU General Public License v3.0
2.49k stars 369 forks source link

Armbian image not found #599

Closed Lino77 closed 5 years ago

Lino77 commented 5 years ago

take a look at the build.log the armbian image is in /OctoPi/src/image-variants and they could not find image. the build.log

guysoft commented 5 years ago

What is the name of the base image you are building with? You need to download an image and place it in the image-variants folder

Lino77 commented 5 years ago

the name of teh image is Armbian_5.90_Tinkerboard_Debian_buster_default_4.4.182.7z and it is in Octopi/src/image-variants

guysoft commented 5 years ago

There was a bug, @Lino77 try pulling latest dev CustomPiOS and try again. tell me if it fails. Thanks for reporting

Lino77 commented 5 years ago

okay image where found but it dosn t build see the build.log build.log

guysoft commented 5 years ago

ok, pushed another fix, try now

Lino77 commented 5 years ago

no sorry build.log

guysoft commented 5 years ago

Ok, seems like permission issues with the apt-cache, I disabled it now, try using latest CustomPiOS from devel branch and built with it

Lino77 commented 5 years ago

Sorry, build.log Image is still not built

guysoft commented 5 years ago

Commit reference: https://github.com/guysoft/CustomPiOS/commit/dd2c12edabaa9a58859c702f6a68f3f825812303 @Lino77 Thats an issue with Debian/Armbian: https://forum.armbian.com/topic/10875-info-checkstart-manually-apt-update-because-of-buster-repository-value-changes/

Its there because they didn't upgrade the base image to buster correctly.

I pushed a fix for that, pull CustomPiOS and try now, thanks for keeping up

Lino77 commented 5 years ago

okay, because I have again, the next mistake, I think I'm still waiting a few weeks to build the image. think that the error now all comes from the Arbian image

sed -i 's@ExecStart=/usr/bin/ssh-keygen -A -v@ExecStart=/bin/bash -c '\'' /usr/bin/ssh-keygen -A -v >> /var/log/regenerate_ssh_host_keys.log 2>\&1'\''@g' /lib/systemd/system/regenerate_ssh_host_keys.service /bin/sed: can't read /lib/systemd/system/regenerate_ssh_host_keys.service: No such file or directory ++++ echo_red 'build failed, unmounting image...' ++++ echo -e -n '\e[91m' ++++ echo build failed, unmounting image... build failed, unmounting image... ++++ echo -e -n '\e[0m'

build.log

guysoft commented 5 years ago

@Lino77 Yes, its building, its failing because the Armbian image does not have regenerate_ssh_host_keys.service. Committed a fix, pull and build again. Each commit here is a step to get this fully working.

Lino77 commented 5 years ago

Okay the next one

Downloading https://files.pythonhosted.org/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl (1.4MB) Installing collected packages: pip Found existing installation: pip 9.0.1 Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr Successfully installed pip-19.1.1

build.log

guysoft commented 5 years ago

@Lino77 Took a while because I was on vacation. Fixed, try now. the issue is that pip was installed twice

Lino77 commented 5 years ago

2019-08-10 08:48:03 (5.28 MB/s) - written to stdout [1775087/1775087]

Traceback (most recent call last): File "", line 22308, in File "", line 197, in main File "", line 82, in bootstrap File "/tmp/tmpvx3y102y/pip.zip/pip/_internal/init.py", line 40, in File "/tmp/tmpvx3y102y/pip.zip/pip/_internal/cli/autocompletion.py", line 8, in File "/tmp/tmpvx3y102y/pip.zip/pip/_internal/cli/main_parser.py", line 7, in File "/tmp/tmpvx3y102y/pip.zip/pip/_internal/cli/cmdoptions.py", line 15, in ModuleNotFoundError: No module named 'distutils.util'

guysoft commented 5 years ago

@Lino77 Ok, fixed that.

Lino77 commented 5 years ago

sudo: unable to change expired password: Authentication token manipulation error ++++ echo_red 'build failed, unmounting image...' ++++ echo -e -n '\e[91m' ++++ echo build failed, unmounting image... build failed, unmounting image... ++++ echo -e -n '\e[0m' ++++ cd /distro ++++ unmount_image /distro/workspace-armbian/mount force ++++ mount_path=/distro/workspace-armbian/mount build.log