Problem bei Installation von Klipper in der Druckereinrichtung

--2022-07-07 09:16:52--  http://download1.repetier.com/files/server/extras/klipperInstaller.shResolving download1.repetier.com ;(download1.repetier.com)... 94.130.164.39Connecting to download1.repetier.com (download1.repetier.com)|94.130.164.39|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 5794 (5.7K) [application/octet-stream]Saving to: '/tmp/klipperInstaller.sh'     0K .....                                                 100% 75.3M=0s2022-07-07 09:16:52 (75.3 MB/s) - '/tmp/klipperInstaller.sh' saved [5794/5794]Install klipper with parameter: E611
/tmp/klipperInstaller.sh: 10: /tmp/klipperInstaller.sh: [[: not found# Host github.com found: line 1 
github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
# Host github.com found: line 2 
github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg=
# Host github.com found: line 3 
github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
/tmp/klipperInstaller.sh: 22: /tmp/klipperInstaller.sh: Syntax error: redirection unexpected
Operation beendet mit Exit Code 0

Beim Versuch der Installation von Klipper tritt auf zwei verschiedenen Repetier-Server Instanzen auf zwei verschiedenen RPi Zero 2W (Beide mit dem "Repetier-Server-Image_1_3_0_v28" Image) der gleiche o.g. Fehler auf.

Comments

  • Wir sind grade dabei das zu aktualisieren für nächstes release, aber auch alte Versionen nutzen das skript. Hab den Teil mit dem Fehler entfernt. Bitte testen ob er jetzt durchläuft, sonst noch mal mit Fehlermeldung melden. Werde das auch gleich noch mal testen aber kann je nach image auch nicht immer auftreten.
  • Die Installation an sich funktioniert nun. Leider stoße ich danach auf das nächste Problem. Der Socket, der bei anderen Druckern als /var/libs/klipper/socket/XXXX zur Verfügung steht, kann keine Verbindung herstellen. 
    Ein weiterer Hinweis darauf, dass etwas mit dem Socket nicht stimmt ist die Meldung, die erscheint wenn man denn erstellten Drucker (Und seine Klipper-Installation) nach erfolglosem Verbindungsversuch deinstallieren möchte.

    Hier gibt es folgende Meldung
    --2022-07-07 17:18:19--  http://download1.repetier.com/files/server/extras/klipperUninstaller.shResolving download1.repetier.com ;(download1.repetier.com)... 94.130.164.39Connecting to download1.repetier.com (download1.repetier.com)|94.130.164.39|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 1039 (1.0K) [application/octet-stream]Saving to: '/tmp/klipperUninstaller.sh'     0K .                                                     100% 28.6M=0s2022-07-07 17:18:19 (28.6 MB/s) - '/tmp/klipperUninstaller.sh' saved [1039/1039]
    Stopping Klipper host software..
    /tmp/klipperUninstaller.sh: 13: /tmp/klipperUninstaller.sh: /etc/init.d/klipper_E612: not foundupdate-rc.d: error: cannot find a LSB script for klipper_E612
    Removing Klipper...
    rm: cannot remove '/opt/klipper/E612': No such file or directory
    Removing Klipper Socket...
    rm: cannot remove '/var/lib/klipper/sockets/E612': No such file or directory
    removing system start script...
    rm: cannot remove '/etc/init.d/klipper_E612': No such file or directory
    ###### E612 removed! ######
    Operation beendet mit Exit Code 0

    Problem taucht auch bei zwei unabhängigen Instanzen auf.

  • Die Fehler beim uninstall deuten darauf hin das er die Instanz schon deinstalliert hat.

    Wenn der Socket nicht existiert bzw. wenn klipper grad nicht läuft klappt die Verbindung nicht. Nach der Installation sollte der socket da sein und klappen. Pfad ist aber 
    /var/lib/klipper/sockets/<slug>

    Evtl. must du gui reloaden damit er den korrekten Installationsstatus anzeigt. An dem Problem arbeiten wir grade. Sieht aber soweit gut aus das wir vermutlich morgen 1.4.0 releasen nachdem wir wochenlang klipper handling verbessert haben. Solltest auf jeden Fall dan updaten. Dann kannst du auch firmware für drucker in der gui übersetzenund input shaper direkt laufen lassen (wenn du sensoren dafür hast).

    Hab grad mal neu installation versucht und hat zumindest geklappt und auch verbunden. Hier wie bei mir die ausgabe aussah:

    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: 5750 (5.6K) [application/octet-stream]
    Saving to: '/tmp/klipperInstaller.sh'

    /tmp/klipperInstall 100%[===================>]   5.62K  --.-KB/s    in 0s      

    2022-07-07 17:15:31 (94.3 MB/s) - '/tmp/klipperInstaller.sh' saved [5750/5750]

    Install klipper with parameter: Klipper
    No version given, selecting 0.10


    ###### Running apt-get update ######

    Get:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
    Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease                 
    Hit:3 https://pkg.duet3d.com stable InRelease                    
    Fetched 15.0 kB in 1s (11.9 kB/s)
    Reading package lists... Done


    ###### Installing packages ######

    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Note, selecting 'python-dev-is-python2' instead of 'python-dev'
    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'
    avr-libc is already the newest version (1:2.0.0+Atmel3.6.2-1.1).
    avrdude is already the newest version (6.3-20171130+svn1429-2+b1).
    binutils-arm-none-eabi is already the newest version (2.34-4+rpi1+14).
    binutils-avr is already the newest version (2.26.20160125+Atmel3.6.2-2).
    build-essential is already the newest version (12.9).
    dfu-util is already the newest version (0.9-1).
    gcc-arm-none-eabi is already the newest version (15:8-2019-q3-1+b1).
    gcc-avr is already the newest version (1:5.4.0+Atmel3.6.2-1).
    git is already the newest version (1:2.30.2-1).
    libffi-dev is already the newest version (3.3-6).
    libncurses-dev is already the newest version (6.2+20201114-2).
    libnewlib-arm-none-eabi is already the newest version (3.3.0-1).
    libusb-1.0-0 is already the newest version (2:1.0.24-3).
    libusb-1.0-0-dev is already the newest version (2:1.0.24-3).
    libusb-1.0-doc is already the newest version (2:1.0.24-3).
    libusb-dev is already the newest version (2:0.1.12-32).
    python-dev-is-python2 is already the newest version (2.7.18-9).
    stm32flash is already the newest version (0.5+git20200914+2b0f078-1).
    virtualenv is already the newest version (20.4.0+ds-2+deb11u1).
    0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.


    ###### Installing Klipper ######

    Cloning into '/opt/klipper/Klipper'...
    remote: Enumerating objects: 33750, done.
    remote: Counting objects: 100% (101/101), done.
    remote: Compressing objects: 100% (61/61), done.
    remote: Total 33750 (delta 60), reused 66 (delta 39), pack-reused 33649
    Receiving objects: 100% (33750/33750), 53.96 MiB | 9.06 MiB/s, done.
    Resolving deltas: 100% (25787/25787), done.
    Updating files: 100% (1714/1714), done.
    Updating files: 100% (556/556), done.
    Note: switching to 'tags/v0.10.0'.

    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by switching back to a branch.

    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -c with the switch command. Example:

      git switch -c <new-branch-name>

    Or undo this operation with:

      git switch -

    Turn off this advice by setting config variable advice.detachedHead to false

    HEAD is now at 2a964a46 docs: Note the release of v0.10.0


    ###### Moving File-Ownership to repetierserver ######

    OK


    ###### Updating python virtual environment ######

    created virtual environment CPython2.7.18.final.0-32 in 355ms
      creator CPython2Posix(dest=/opt/klipper/Klipper/klippy-env, clear=False, no_vcs_ignore=False, global=False)
      seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
        added seed packages: pip==20.3.4, pkg_resources==0.0.0, setuptools==44.1.1, wheel==0.34.2
      activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator
    DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
    Processing /root/.cache/pip/wheels/de/e1/b9/c63d9dddb8bf24b010273a0e9749838e2d69e765807700b708/cffi-1.12.2-cp27-cp27mu-linux_armv7l.whl
    Collecting pyserial==3.4
      Using cached pyserial-3.4-py2.py3-none-any.whl (193 kB)
    Processing /root/.cache/pip/wheels/3f/e6/02/74f0984bdb2da68f7e101762ade672f06c09f145d821d0a8ff/greenlet-0.4.15-cp27-cp27mu-linux_armv7l.whl
    Collecting Jinja2==2.11.3
      Using cached Jinja2-2.11.3-py2.py3-none-any.whl (125 kB)
    Collecting python-can==3.3.4
    Collecting pycparser
      Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
    Processing /root/.cache/pip/wheels/4d/4b/bf/cce593b6a13cd17b3bf2452827317fc68dfa4c61655596028c/MarkupSafe-1.1.1-cp27-cp27mu-linux_armv7l.whl
    Collecting aenum
      Using cached aenum-3.1.11-py2-none-any.whl (118 kB)
    Collecting typing; python_version < "3.5"
      Using cached typing-3.10.0.0-py2-none-any.whl (26 kB)
    Processing /root/.cache/pip/wheels/fa/d3/b9/5feee31763a076b5894c0b822020c342e919f72a62b212ec21/wrapt-1.14.1-cp27-cp27mu-linux_armv7l.whl
    Installing collected packages: pycparser, cffi, pyserial, greenlet, MarkupSafe, Jinja2, aenum, typing, wrapt, python-can
    Successfully installed Jinja2-2.11.3 MarkupSafe-1.1.1 aenum-3.1.11 cffi-1.12.2 greenlet-0.4.15 pycparser-2.21 pyserial-3.4 python-can-3.3.4 typing-3.10.0.0 wrapt-1.14.1


    ###### Installing system start script ######



    ###### Installing system start configuration ######



    ###### Launching Klipper host software ######

    Restarting klipper_Klipper (via systemctl): klipper_Klipper.service.


    ###### Installation finished! ######



    ##########################
    Please proceed your installation guided by the official manual at https://www.klipper3d.org/Installation.html beginning with section "Building and flashing the micro-controller"
    Please note that the installation location is different than told in the manual and should not be changed due to file permission issues with Repetier-Server!

    Klipper Installation Path: /opt/klipper/Klipper
    Printer configuration: /var/lib/Repetier-Server/database/klipper/Klipper.cfg
    Printer socket: /var/lib/klipper/sockets/Klipper

    ############################


    Kann natürlich bei dir etwas anders aussehen aber restarting klipper sollte keine Fehler zeigen.

  • Ich habe gerade eben nochmal auf einem frischen RPi mit frischem Image eine Installation versucht. Irgendetwas scheint mit dem Shell Script immer noch nicht zu passen.

    Hier der Paste von den Systemfehlern:

    [15.02.2022 13:16:35] : error fetchTextFromWeb:DNS error: Temporary DNS error while resolving: download.repetier-server.com
    [15.02.2022 13:16:40] : error fetchTextFromWeb:DNS error: Temporary DNS error while resolving: reminder.repetier-server.com
    [15.02.2022 13:16:45] : error in postRequest:DNS error: Temporary DNS error while resolving: licence.internetloesungen.com
    [15.02.2022 13:17:00] : error in postRequest:DNS error: Temporary DNS error while resolving: licence.internetloesungen.com
    [15.02.2022 13:17:10] : error in postRequest:SSL Exception: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
    [15.02.2022 13:17:20] : error in postRequest:SSL Exception: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
    [08.07.2022 11:37:53] : Execute error response:--2022-07-08 11:31:26-- 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: 5750 (5.6K) [application/octet-stream] Saving to: '/tmp/klipperInstaller.sh' 0K ..... 100% 476K=0.01s 2022-07-08 11:31:26 (476 KB/s) - '/tmp/klipperInstaller.sh' saved [5750/5750] /tmp/klipperInstaller.sh: 10: /tmp/klipperInstaller.sh: [[: not found /tmp/klipperInstaller.sh: 16: /tmp/klipperInstaller.sh: [[: not found debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: fatal: repository '/opt/klipper/E612' does not exist /tmp/klipperInstaller.sh: 62: cd: can't cd to /opt/klipper/E612 fatal: not a git repository (or any of the parent directories): .git DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/opt/klipper/E612/scripts/klippy-requirements.txt' cp: cannot stat '/opt/klipper/E612/scripts/klipper-start.sh': No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory update-rc.d: error: unable to read /etc/init.d/klipper_E612 /tmp/klipperInstaller.sh: 127: /tmp/klipperInstaller.sh: /etc/init.d/klipper_E612: not found
    [08.07.2022 11:37:53] : While executing:/usr/bin/sudo /usr/local/Repetier-Server/bin/installKlipper E612
    [08.07.2022 11:39:09] : Execute error response:--2022-07-08 11:39:06-- http://download1.repetier.com/files/server/extras/klipperUninstaller.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: 1039 (1.0K) [application/octet-stream] Saving to: '/tmp/klipperUninstaller.sh' 0K . 100% 38.7M=0s 2022-07-08 11:39:07 (38.7 MB/s) - '/tmp/klipperUninstaller.sh' saved [1039/1039] /tmp/klipperUninstaller.sh: 13: /tmp/klipperUninstaller.sh: /etc/init.d/klipper_E612: not found update-rc.d: error: cannot find a LSB script for klipper_E612 rm: cannot remove '/var/lib/klipper/sockets/E612': No such file or directory rm: cannot remove '/etc/init.d/klipper_E612': No such file or directory
    [08.07.2022 11:39:09] : While executing:/usr/bin/sudo /usr/local/Repetier-Server/bin/uninstallKlipper E612
    [08.07.2022 11:40:08] : Execute error response:--2022-07-08 11:39:26-- 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: 5585 (5.5K) [application/octet-stream] Saving to: '/tmp/klipperInstaller.sh' 0K ..... 100% 1.50M=0.004s 2022-07-08 11:39:26 (1.50 MB/s) - '/tmp/klipperInstaller.sh' saved [5585/5585] /tmp/klipperInstaller.sh: 10: /tmp/klipperInstaller.sh: [[: not found /tmp/klipperInstaller.sh: 16: /tmp/klipperInstaller.sh: [[: not found fatal: repository '/opt/klipper/E612' does not exist /tmp/klipperInstaller.sh: 62: cd: can't cd to /opt/klipper/E612 fatal: not a git repository (or any of the parent directories): .git DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. ERROR: Could not open requirements file: [Errno 2] No such file or directory: '/opt/klipper/E612/scripts/klippy-requirements.txt' cp: cannot stat '/opt/klipper/E612/scripts/klipper-start.sh': No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory sed: can't read /etc/init.d/klipper_E612: No such file or directory update-rc.d: error: unable to read /etc/init.d/klipper_E612 /tmp/klipperInstaller.sh: 127: /tmp/klipperInstaller.sh: /etc/init.d/klipper_E612: not found
    [08.07.2022 11:40:08] : While executing:/usr/bin/sudo /usr/local/Repetier-Server/bin/installKlipper E612
  • Du bist zu schnell:-)
    Am anfang
    [15.02.2022 13:16:35] 

    siehst du hattest du das falsche Datum am pi, daher die ssl fehler. Danach passte das Datum aber. Das betrifft die apt Pakete am pi, schwer zu sagen ob das relevant für die folgenden Fehler ist.

    Hauptgrund scheint aber das wir shell Befehle nutzen die bei dir nicht drin waren. Hab das bei mir mit 1.3.0 reproduzieren können. Beim letzten versuch hat es geklappt.

    PS: 1.4.0 ist jetzt raus, nur noch nicht im autoupdater. Da geht das noch mal besser. Einfach manuell in der shell 
    installLatestServer
    eingeben sollte bei dir reichen.
Sign In or Register to comment.