I can't install Klipper
I want to install Klipper on my server
I'm going to load a printer, I select the Klipper firmware and the button to install Klipper appears, I press it, it starts to install but it freezes.
Reinstall my Raspberry image and try again but still the same
--2023-04-25 23:31:59-- http://download1.repetier.com/files/server/extras/klipperInstaller.sh
Resolving download1.repetier.com (download1.repetier.com)... 94.130.164.39
Connecting to download1.repetier.com (download1.repetier.com)|94.130.164.39|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5833 (5.7K) [application/octet-stream]
Saving to: '/tmp/klipperInstaller.sh'
/tmp/klipperInstaller. 100%[============================>] 5.70K --.-KB/s in 0s
2023-04-25 23:32:00 (146 MB/s) - '/tmp/klipperInstaller.sh' saved [5833/5833]
Install klipper with parameter: Klipper1 tags/v0.10.0 1 https://github.com/Klipper3d/klipper.git
Shell: /bin/bash
###### Running apt-get update ######
Hit:1 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:3 https://pkg.duet3d.com stable InRelease
Reading package lists... Done
###### Installing packages ######
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libusb-1.0-0-dev' for regex 'libusb-1.0'
Note, selecting 'libusb-1.0-doc' for regex 'libusb-1.0'
Note, selecting 'libusb-1.0-0' for regex 'libusb-1.0'
git is already the newest version (1:2.30.2-1+deb11u2).
libusb-1.0-0 is already the newest version (2:1.0.24-3).
libusb-1.0-0 set to manually installed.
The following packages were automatically installed and are no longer required:
dc raspinfo
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
dpkg-dev fakeroot g++-10 gcc gcc-10 libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libasan6 libcc1-0 libfakeroot libftdi1 libgcc-10-dev
libhidapi-libusb0 libnewlib-dev libpython2-dev libpython2-stdlib libpython2.7
libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib libstdc++-10-dev
libstdc++-arm-none-eabi-newlib libubsan1 libusb-0.1-4 make python2 python2-minimal
python2.7 python2.7-dev python2.7-minimal python3-appdirs python3-distlib
python3-filelock python3-importlib-metadata python3-more-itertools python3-virtualenv
python3-zipp
Suggested packages:
dfu-programmer avrdude-doc debian-keyring gcc-10-doc gcc-multilib autoconf automake
libtool flex bison gcc-doc gcc-10-locales ncurses-doc libnewlib-doc libstdc++-10-doc
make-doc python2-doc python-tk python2.7-doc binfmt-support
The following NEW packages will be installed:
avr-libc avrdude binutils-arm-none-eabi binutils-avr build-essential dfu-util dpkg-dev
fakeroot g++ g++-10 gcc gcc-10 gcc-arm-none-eabi gcc-avr libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan6 libcc1-0 libfakeroot
libffi-dev libftdi1 libgcc-10-dev libhidapi-libusb0 libncurses-dev
libnewlib-arm-none-eabi libnewlib-dev libpython2-dev libpython2-stdlib libpython2.7
libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib libstdc++-10-dev
libstdc++-arm-none-eabi-newlib libubsan1 libusb-0.1-4 libusb-1.0-0-dev libusb-1.0-doc
libusb-dev make python2 python2-dev python2-minimal python2.7 python2.7-dev
python2.7-minimal python3-appdirs python3-distlib python3-filelock
python3-importlib-metadata python3-more-itertools python3-virtualenv python3-zipp
stm32flash virtualenv
0 upgraded, 56 newly installed, 0 to remove and 12 not upgraded.
Need to get 245 MB/247 MB of archives.
After this operation, 2154 MB of additional disk space will be used.
Get:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf python2.7 armhf 2.7.18-8 [311 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libpython2-stdlib armhf 2.7.18-3 [21.2 kB]
Get:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf python2 armhf 2.7.18-3 [24.5 kB]
Get:1 http://mirrors.eze.sysarmy.com/raspbian/raspbian bullseye/main armhf libpython2.7-stdlib armhf 2.7.18-8 [1802 kB]
Get:8 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libusb-0.1-4 armhf 2:0.1.12-32 [21.6 kB]
Get:9 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libftdi1 armhf 0.20-4 [17.0 kB]
Get:10 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libhidapi-libusb0 armhf 0.10.1+dfsg-1 [13.0 kB]
Err:1 http://mirrors.eze.sysarmy.com/raspbian/raspbian bullseye/main armhf libpython2.7-stdlib armhf 2.7.18-8
Connection timed out [IP: 200.9.157.182 80]
Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf binutils-avr armhf 2.26.20160125+Atmel3.6.2-2 [1049 kB]
Err:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf binutils-avr armhf 2.26.20160125+Atmel3.6.2-2
Error reading from server. Remote end closed connection [IP: 200.9.157.182 80]
Get:6 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf gcc-avr armhf 1:5.4.0+Atmel3.6.2-1 [12.4 MB]
Err:6 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf gcc-avr armhf 1:5.4.0+Atmel3.6.2-1
Connection timed out [IP: 200.9.157.182 80]
Get:7 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf avr-libc all 1:2.0.0+Atmel3.6.2-1.1 [4878 kB]
6% [7 avr-libc 4076 kB/4878 kB 84%]
Comments
sudo apt install dpkg-dev fakeroot g++-10 gcc gcc-10 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan6 libcc1-0 libfakeroot libftdi1 libgcc-10-dev libhidapi-libusb0 libnewlib-dev libpython2-dev libpython2-stdlib libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib libstdc++-10-dev libstdc++-arm-none-eabi-newlib libubsan1 libusb-0.1-4 make python2 python2-minimal python2.7 python2.7-dev python2.7-minimal python3-appdirs python3-distlib python3-filelock python3-importlib-metadata python3-more-itertools python3-virtualenv python3-zipp
so when you run install next time these are already there reducing time. You can also rerun it if it fails.
In Server you can after first configuration always rund uninstall and install to redo installation when selecting the Klipper tab. No need to redo image.
If that is correct you should see green connection link. When klipper does not connect to printer board or has issues with it you should see a warning icon on the link icon and when you click on it, it shows what error message klipper had send. If config worked and serial is correct you should also ensure both mainsail and server had installed same klipper version since they need a printer stub with functions as expected to their version. In server you can select 0.10, 0.11 and latest git which changes constantly. If in doubt run the stub generation in server and download and install it. Then version matches for sure.
/var/lib/klipper/sockets/<printerSlug>
but I also see the issue that it does not appear in port list. Will add that folder as well or even remove real serial ports for klipper. Might make things easier.