Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. Brauche Hilfe beim installieren des release-scripts

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Brauche Hilfe beim installieren des release-scripts

    This topic has been deleted. Only users with topic management privileges can see it.
    • s.bormann
      s.bormann Most Active last edited by

      Hallo alle, hallo @AlCalzone ,

      ich versuche gerade für iQontrol das release-script von @AlCalzone zu installieren, habe aber mehrere Probleme. Vielleicht kann mir jemand dabei helfen, ich kenne mich leider gar nicht mit dem ganzen github-kram aus.

      1. Ich habe die Anleitung hier befolgt https://github.com/AlCalzone/release-script#installation und auch ein github workflow-file erstellt, wie hier beschrieben https://github.com/AlCalzone/release-script#workflow-file-for-automatic-release
        Der Workflow läuft aber nicht und wirft folgende Fehlermeldung aus:
        6542cc53-ae6d-42b3-ae9e-d942d1f92d37-image.png
        Und diese Fehlermeldung steht im workflow-file selbst:
        8a1247fd-2d98-43e8-8f1b-e8aa276503a7-image.png

      2. Wenn ich dem dev-portal eine neue Version erstellen will, kommt folgendes:
        56687009-966a-489f-9d65-0b1aaeef2f3d-image.png

      Bei beidem habe ich leider keine Idee, wie ich das beheben kann. Vielleicht kann mir hier jemand helfen?

      Danke und VG!

      AlCalzone UncleSam 2 Replies Last reply Reply Quote 0
      • AlCalzone
        AlCalzone Developer @s.bormann last edited by AlCalzone

        @s-bormann Da fehlen 2 von 3 Jobs. Der deploy job erwartet, dass vorher Adapter-Tests gemacht wurden.
        Deswegen steht da ja auch

          #
          # ... your other jobs go here ...
          #
        

        und

            # Define which jobst must succeed before the release
            needs: [unit-tests]
        

        Du kannst zwave2 als Beispiel nehmen, was schon die vereinfachten Workflow-Definitionen nutzt:
        https://github.com/AlCalzone/ioBroker.zwave2/blob/master/.github/workflows/test-and-release.yml
        Allerdings musst du ggf. Anpassungen an den Optionen (z.B. build) vornehmen, siehe https://github.com/ioBroker/create-adapter/blob/master/docs/updates/20210913_shared_testing_workflows.md und die verlinkten Repos.

        1 Reply Last reply Reply Quote 0
        • UncleSam
          UncleSam Developer @s.bormann last edited by

          @s-bormann für den zweiten Fehler kannst du mal versuchen npm ci in deinem Adapter Verzeichnis auszuführen. Geht das?

          Und: einen neuen Release versuchen auszuführen ohne dass die GitHub Action durchläuft, bringt nichts, dann wird auch kein Release erzeugt.

          1 Reply Last reply Reply Quote 0
          • s.bormann
            s.bormann Most Active last edited by

            Danke, werde es die Tage noch mal probieren.

            1 Reply Last reply Reply Quote 0
            • s.bormann
              s.bormann Most Active last edited by

              Hi,
              bin ein ganzes Stück weiter.
              Das Script läuft jetzt lokal, updated die readme, package.json u.s.w., bricht aber beim Versuch, das ganze auf github zu pushen ab.

              npm run relase

              ergibt:

              > iobroker.iqontrol@1.9.10 release /opt/iobroker/iobroker.iqontrol
              > release-script
              
              check:git git status ok ✔
              check:package package.json ok ✔
              check:changelog changelog ok ✔
              check:iobroker io-package.json ok ✔
              check:version Bumping version from 1.9.10 to 1.9.11 ✔                                                                  
                                                                                                                                     
              edit:package updating package.json version from 1.9.10 to 1.9.11                                                       
              edit:changelog Updating changelog in README.md                                                                         
              edit:iobroker updating io-package.json version to 1.9.11                                                               
              edit:iobroker updating news in io-package.json                                                                         
              edit:iobroker adding new news to io-package.json                                                                       
                                                                                                                                     
              commit:package updating lockfile...                                                                                    
              commit:git Commit message: chore: release v1.9.11
              commit:git $ git add -A -- :(exclude).commitmessage
              commit:git $ git commit -F .commitmessage
              commit:git $ git tag -a v1.9.11 -m v1.9.11
              
              push:git $ git push
              push:git [FATAL] Error: Command failed with exit code 128: git push
              git@github.com: Permission denied (publickey).
              fatal: Konnte nicht vom Remote-Repository lesen.
              
              Bitte stellen Sie sicher, dass die korrekten Zugriffsberechtigungen bestehen
              und das Repository existiert.
                  at makeError (/opt/iobroker/iobroker.iqontrol/node_modules/execa/lib/error.js:60:11)
                  at handlePromise (/opt/iobroker/iobroker.iqontrol/node_modules/execa/index.js:118:26)
                  at processTicksAndRejections (internal/process/task_queues.js:97:5)
                  at async GitPlugin.executePushStage (/opt/iobroker/iobroker.iqontrol/node_modules/@alcalzone/release-script-plugin-git/build/index.js:160:17)
                  at async GitPlugin.executeStage (/opt/iobroker/iobroker.iqontrol/node_modules/@alcalzone/release-script-plugin-git/build/index.js:172:13)
                  at async execute (/opt/iobroker/iobroker.iqontrol/node_modules/@alcalzone/release-script-core/build/lib/planner.js:162:13)
                  at async main (/opt/iobroker/iobroker.iqontrol/node_modules/@alcalzone/release-script/build/index.js:250:9)
              npm ERR! code ELIFECYCLE
              npm ERR! errno 1
              npm ERR! iobroker.iqontrol@1.9.10 release: `release-script`
              npm ERR! Exit status 1
              npm ERR! 
              npm ERR! Failed at the iobroker.iqontrol@1.9.10 release script.
              npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
              
              npm ERR! A complete log of this run can be found in:
              npm ERR!     /home/iobroker/.npm/_logs/2021-09-27T19_23_54_476Z-debug.log
              

              Wenn ich danach manuell git push ausführe, wird es ohne Fehler direkt auf github geladen.

              Danke Euch!

              AlCalzone 1 Reply Last reply Reply Quote 0
              • AlCalzone
                AlCalzone Developer @s.bormann last edited by

                @s-bormann Uhhh, du entwickelst direkt am laufenden Herzen? Würde ich nicht machen, aber gut:

                Dadurch, dass du in /opt/iobroker npm run ausführst, läuft das Skript als der User iobroker und nicht unter deinem Login. D.h. iobroker braucht SSH-Keys für dein Github und die hat er nicht.

                s.bormann 1 Reply Last reply Reply Quote 0
                • s.bormann
                  s.bormann Most Active @AlCalzone last edited by s.bormann

                  @alcalzone sagte in Brauche Hilfe beim installieren des release-scripts:

                  @s-bormann Uhhh, du entwickelst direkt am laufenden Herzen? Würde ich nicht machen, aber gut:

                  Dadurch, dass du in /opt/iobroker npm run ausführst, läuft das Skript als der User iobroker und nicht unter deinem Login. D.h. iobroker braucht SSH-Keys für dein Github und die hat er nicht.

                  Und gibt es dafür ein Workaround? Ich entwickle in /opt/iobroker/iobroker.iqontrol - soll ich das Verzeichnis wo anders hin schieben? Wenn ja, wo hin am besten? (Habe ich mal aus einem Video-Tutorial so übernommen und seit dem nie hinterfragt und geändert).

                  PS: Bin Kardiologe. Klar entwickel ich am laufenden Herzen 🙂

                  AlCalzone 1 Reply Last reply Reply Quote 0
                  • AlCalzone
                    AlCalzone Developer @s.bormann last edited by

                    @s-bormann sagte in Brauche Hilfe beim installieren des release-scripts:

                    Und gibt es dafür ein Workaround?

                    "Logge" dich als ioBroker ein:

                    sudo -H -u iobroker -s /bin/bash
                    

                    und erstelle da die SSH keys für Github. Ggf. reicht einloggen.

                    Ich entwickle in /opt/iobroker/iobroker.iqontrol - soll ich das Verzeichnis wo anders hin schieben? Wenn ja, wo hin am besten?

                    Meine Empfehlung: Auf nem getrennten System oder zumindest unabhängig von der Produktivinstallation.
                    Mit https://github.com/ioBroker/dev-server kannst du dann auch schön in ner frischen Umgebung arbeiten, inklusive Live-Reload des Frontends.

                    s.bormann 1 Reply Last reply Reply Quote 1
                    • s.bormann
                      s.bormann Most Active @AlCalzone last edited by

                      @alcalzone Läuft! Vielen Dank!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      807
                      Online

                      31.7k
                      Users

                      79.8k
                      Topics

                      1.3m
                      Posts

                      3
                      9
                      599
                      Loading More Posts
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes
                      Reply
                      • Reply as topic
                      Log in to reply
                      Community
                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                      The ioBroker Community 2014-2023
                      logo