Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Yahka Adapter in iobroker im Docker Container

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Yahka Adapter in iobroker im Docker Container

    This topic has been deleted. Only users with topic management privileges can see it.
    • Glasfaser
      Glasfaser @Tomme last edited by

      @tomme

      hast du das gerade aktuell dazu gesehn

      https://forum.iobroker.net/post/988213

      T 2 Replies Last reply Reply Quote 0
      • T
        Tomme @Glasfaser last edited by

        @glasfaser 81bbe885-ab6a-4b69-b0f7-fc1570be1ae4-image.png

        1 Reply Last reply Reply Quote 0
        • T
          Tomme @Glasfaser last edited by

          @glasfaser sagte in Yahka Adapter in iobroker im Docker Container:

          @tomme
          hast du das gerade aktuell dazu gesehn
          https://forum.iobroker.net/post/988213

          was hat homebridge damit zu tun? der container wo das drin läuft ist bei mir im moment auf stop

          Glasfaser 1 Reply Last reply Reply Quote 0
          • T
            Tomme @Tomme last edited by

            root@iobroker:~# cd /opt/iobroker
            root@iobroker:/opt/iobroker# apt install nano
            Reading package lists... Done
            Building dependency tree... Done
            Reading state information... Done
            E: Unable to locate package nano
            root@iobroker:/opt/iobroker# npm install --save @homebridge/ciao@1.1.5
            sudo: /etc/sudo.conf is world writable
            sudo: /etc/sudo.conf is world writable
            sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
            sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
            sudo: fatal error, unable to load plugins
            root@iobroker:/opt/iobroker# sudo npm i iobroker.yahka
            sudo: /etc/sudo.conf is world writable
            sudo: /etc/sudo.conf is world writable
            sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
            sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
            sudo: fatal error, unable to load plugins
            root@iobroker:/opt/iobroker# 
            

            das hat erstmal nix gebracht

            1 Reply Last reply Reply Quote 0
            • Glasfaser
              Glasfaser @Tomme last edited by

              @tomme sagte in Yahka Adapter in iobroker im Docker Container:

              was hat homebridge damit zu tun?

              ich kenne den Yahka Adapter nicht , eventuell eine Paket abhängigkeit .

              T 3 Replies Last reply Reply Quote 0
              • T
                Tomme @Glasfaser last edited by Tomme

                @glasfaser nee das kann auf unterschiedlichen systemen laufen oder in nem apple tv zum beispiel
                ich meine die homebridge

                1 Reply Last reply Reply Quote 0
                • T
                  Tomme @Glasfaser last edited by

                  @glasfaser

                  Tomme ich muß dich erstmal verlassen mein weib bröckelt hier schon und einkaufen war ich auch noch nicht ... hier brennt gleich die luft ... ich danke dir erstmal und setze mich nachher nochmal dran ... vielen dank du hast mir echt weiter geholfen!!!! auch wenn das mit yahka nicht geht zur not lasse ich den weg was solls war nur einer von 45 adaptern die ich laufen habe
                  ich melde mich! danke!!!!!!!!!!!!!!!!!!!!!!!

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tomme @Glasfaser last edited by

                    @glasfaser

                    so ich habe noch eine weile rumgefummelt aber ohne erfolg ...

                    im moment kann ich nicht einmal ein backup wieder einspielen ... er zeigt einfach keine an im lokalen ordner ... ich kann zwar eins machen und das steht auch in der backitup übersicht und wird auch unter backups abgelegt aber ein restore ist nicht möglich da es nicht angezeigt wird ... läuft also ... ich habe wenn ich den container neu gemacht habe auch den ordner /opt/iobroker gelöscht sonst ließ sich kein neuer Container anlegen wenn der Ordner nicht leer ist ... aber trotzdem kann ich die backups nicht finden die ich kurz zuvor gemacht habe und auch die nicht wo alle einstellungen drin sind ...
                    bei yahka hat sich auch nichts getan und in der console bekomme ich fehler bei egal welchen befehl ich ausführen will ... selbst restore über die kommandozeile schlägt fehl da ich iobroker stopen soll was aber nicht geht da endet ein daemon mit pid xyz aber wenn ich dann iob status eingebe steht da gestartet und restore geht nicht weil iob noch läuft ...
                    aber schön schnell neu aufsetzen geht dank deiner hilfe ja jetzt mit 2 klicks ... habe mir ein template von dem stack gemacht ... das ist total cool!
                    und logs kann ich jetzt auch sehen wie auch die konsole aber da ist bestimmt auch was faul egal was ich mache meckert der rum:

                    sudo mount -t cifs -o user=Tomme,password=8005,vers=2.1,rw,file_mode=0777,dir_mode=0777 //192.168.7.1/ioBrokerPi /mnt/LaptopIoBrokerPi
                    sudo: /etc/sudo.conf is world writable
                    sudo: /etc/sudo.conf is world writable
                    sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
                    sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
                    sudo: fatal error, unable to load plugins
                    

                    oder

                    root@iobroker:/opt/iobroker# sudo iobroker stop
                    sudo: /etc/sudo.conf is world writable
                    sudo: /etc/sudo.conf is world writable
                    sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
                    sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
                    sudo: fatal error, unable to load plugins
                    

                    oder

                    root@iobroker:/opt/iobroker# iob start
                    Starting iobroker controller daemon...
                    iobroker controller daemon started. PID: 3086
                    root@iobroker:/opt/iobroker# iob stop
                    iobroker controller daemon is not running
                    root@iobroker:/opt/iobroker# iob restore 0
                    Stop iobroker first!
                    root@iobroker:/opt/iobroker# iob status
                    iobroker is running on this host.
                    
                    
                    Objects type: jsonl
                    States  type: jsonl
                    root@iobroker:/opt/iobroker
                    

                    im log kann ich auch nichts finden:

                     --------------------------------------------------------------------------------
                    -------------------------     2023-05-07 02:01:56      -------------------------
                    --------------------------------------------------------------------------------
                    -----                                                                      -----
                    ----- ██╗  ██████╗  ██████╗  ██████╗   ██████╗  ██╗  ██╗ ███████╗ ██████╗  -----
                    ----- ██║ ██╔═══██╗ ██╔══██╗ ██╔══██╗ ██╔═══██╗ ██║ ██╔╝ ██╔════╝ ██╔══██╗ -----
                    ----- ██║ ██║   ██║ ██████╔╝ ██████╔╝ ██║   ██║ █████╔╝  █████╗   ██████╔╝ -----
                    ----- ██║ ██║   ██║ ██╔══██╗ ██╔══██╗ ██║   ██║ ██╔═██╗  ██╔══╝   ██╔══██╗ -----
                    ----- ██║ ╚██████╔╝ ██████╔╝ ██║  ██║ ╚██████╔╝ ██║  ██╗ ███████╗ ██║  ██║ -----
                    ----- ╚═╝  ╚═════╝  ╚═════╝  ╚═╝  ╚═╝  ╚═════╝  ╚═╝  ╚═╝ ╚══════╝ ╚═╝  ╚═╝ -----
                    -----                                                                      -----
                    -----              Welcome to your ioBroker Docker container!              -----
                    -----                    Startupscript is now running!                     -----
                    -----                          Please be patient!                          -----
                    --------------------------------------------------------------------------------
                     
                    --------------------------------------------------------------------------------
                    -----                          System Information                          -----
                    -----                    arch:                aarch64                      -----
                    -----                    hostname:            iobroker                     -----
                    -----                                                                      -----
                    -----                          Version Information                         -----
                    -----                    image:               v8.0.1                       -----
                    -----                    build:               2023-04-26T23:45:40+00:00    -----
                    -----                    node:                v18.16.0                     -----
                    -----                    npm:                 9.5.1                        -----
                    -----                                                                      -----
                    -----                        Environment Variables                         -----
                    -----                    SETGID:              1000                         -----
                    -----                    SETUID:              1000                         -----
                    --------------------------------------------------------------------------------
                     
                    --------------------------------------------------------------------------------
                    -----                   Step 1 of 5: Preparing container                   -----
                    --------------------------------------------------------------------------------
                     
                    Updating Linux packages on first run... Done.
                     
                    Registering maintenance script as command... Done.
                     
                    --------------------------------------------------------------------------------
                    -----             Step 2 of 5: Detecting ioBroker installation             -----
                    --------------------------------------------------------------------------------
                     
                    There is no data detected in /opt/iobroker.
                    Restoring initial ioBroker installation... Done.
                     
                    --------------------------------------------------------------------------------
                    -----             Step 3 of 5: Checking ioBroker installation              -----
                    --------------------------------------------------------------------------------
                     
                    (Re)setting permissions (This might take a while! Please be patient!)... Done.
                     
                    Fixing "sudo-bug" by replacing sudo with gosu... Done.
                     
                    Initializing a fresh installation of ioBroker... Done.
                     
                    Hostname in ioBroker does not match the hostname of this container.
                    Updating hostname to "iobroker"... The host for instance "system.adapter.admin.0" was changed from "buildkitsandbox" to "iobroker".
                    The host for instance "system.adapter.discovery.0" was changed from "buildkitsandbox" to "iobroker".
                    The host for instance "system.adapter.backitup.0" was changed from "buildkitsandbox" to "iobroker".
                    Done.
                     
                    --------------------------------------------------------------------------------
                    -----                Step 4 of 5: Applying special settings                -----
                    --------------------------------------------------------------------------------
                     
                    Some adapters have special requirements/ settings which can be activated by the use of environment variables.
                    For more information see ioBroker Docker Image Docs (https://docs.buanet.de/iobroker-docker-image/docs/).
                     
                     
                    --------------------------------------------------------------------------------
                    -----                    Step 5 of 5: ioBroker startup                     -----
                    --------------------------------------------------------------------------------
                     
                    Starting ioBroker... 
                     
                    ##### #### ### ## # iobroker.js-controller log output # ## ### #### #####
                    host.iobroker check instance "system.adapter.admin.0" for host "iobroker"
                    host.iobroker check instance "system.adapter.discovery.0" for host "iobroker"
                    host.iobroker check instance "system.adapter.backitup.0" for host "iobroker"
                    ================================== > LOG REDIRECT system.adapter.admin.0 => true [system.adapter.admin.0.logging]
                    Send diag info: {"uuid":"31948c05-a528-4702-bc62-fcf8ffbbd5aa","language":"de","country":"","hosts":[{"version":"4.0.24","platform":"Javascript/Node.js","type":"linux"}],"node":"v18.16.0","arch":"arm64","docker":true,"adapters":{"admin":{"version":"6.3.5","platform":"Javascript/Node.js"},"discovery":{"version":"3.1.0","platform":"Javascript/Node.js"},"backitup":{"version":"2.6.19","platform":"Javascript/Node.js"}},"statesType":"jsonl","objectsType":"jsonl","noInstances":3,"compactMode":false,"noCompactInstances":0,"model":"Cortex-A72","cpus":4,"mem":8190754816,"ostype":"Linux","city":""}
                    ================================== > LOG REDIRECT system.adapter.admin.0 => false [Process stopped]
                    ================================== > LOG REDIRECT system.adapter.admin.0 => false [system.adapter.admin.0.logging]
                    Send diag info: {"uuid":"31948c05-a528-4702-bc62-fcf8ffbbd5aa","language":"de","country":"","hosts":[{"version":"4.0.24","platform":"Javascript/Node.js","type":"linux"}],"node":"v18.16.0","arch":"arm64","docker":true,"adapters":{"admin":{"version":"6.3.5","platform":"Javascript/Node.js"},"discovery":{"version":"3.1.0","platform":"Javascript/Node.js"},"backitup":{"version":"2.6.19","platform":"Javascript/Node.js"}},"statesType":"jsonl","objectsType":"jsonl","noInstances":3,"compactMode":false,"noCompactInstances":0,"model":"Cortex-A72","cpus":4,"mem":8190754816,"ostype":"Linux","city":""}
                    ================================== > LOG REDIRECT system.adapter.admin.0 => true [system.adapter.admin.0.logging]
                    

                    ich mache für "heute" erstmal schluss ... bis später ...

                    T Glasfaser 2 Replies Last reply Reply Quote 0
                    • T
                      Tomme @Tomme last edited by

                      @tomme sagte in Yahka Adapter in iobroker im Docker Container:

                      https://docs.buanet.de/iobroker-docker-image/docs/

                      b6948012-abfd-4d61-b9f0-4761b873575f-image.png

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        Tomme @Tomme last edited by

                        @tomme 0eedd489-6985-454b-9ebb-46ee2876a147-image.png

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          Tomme @Tomme last edited by

                          @tomme 1aad817d-6a1b-407a-afb0-a5be1aafc7c9-image.png

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            Tomme @Tomme last edited by

                            @tomme 678b22ea-3b60-4f86-8898-fec553c1c34b-image.png

                            T 1 Reply Last reply Reply Quote 0
                            • T
                              Tomme @Tomme last edited by

                              @tomme

                              	iobroker npm ERR! engine Unsupported enginenpm ERR! engine Not compatible with your version of node/npm: @homebridge/ciao@1.1.6npm ERR! notsup Not compatible with your version of node/npm: @homebridge/ciao@1.1.6npm ERR! notsup Required: {"node":"^14"}npm ERR! notsup Actual: {"npm":"9.5.1","node":"v18.16.0"}
                              

                              wie ich das weg kriegen soll weiß ich auch nicht ... auch bei npm kommt:

                              root@iobroker:/opt/iobroker/backups# npm install ciao@1.1.5
                              sudo: /etc/sudo.conf is world writable
                              sudo: /etc/sudo.conf is world writable
                              sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
                              sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
                              sudo: fatal error, unable to load plugins
                              root@iobroker:/opt/iobroker/backups# 
                              
                              T 1 Reply Last reply Reply Quote 0
                              • T
                                ThomasK1966 @Tomme last edited by

                                @tomme
                                Moin Tomme,
                                zunächst: das eigentliche Problem mit dem Yahka-Adpater liegt hier begründet:
                                npm update issues unsupported engine warning.
                                Es gibt schon einen PullRequest zur Behebung des Fehlers. Der muss jetzt nur noch in eine neue Version einfließen.
                                Dein anderes Problem mit der "sudo.conf" müsste daran liegen, dass Du die Befehle mit sudo aufrufst. Das brauchst Du nicht, Du bist schon root.

                                Ich würde aber empfehlen zu warten, bis das eigentliche Problem gelöst ist.

                                Zu Deinem Problem, dass Du keine Backups einspielen kannst fällt mir aktuell auch nicht viel ein.
                                Eigentlich nur folgende Fragen:

                                1. Hast Du etwas an der Volumes-Konfiguration im Stack geändert?
                                2. Wie sieht Deine Konfiguration des Backitup-Adapters aus?
                                  2a. Speicherort ist "NAS/Kopieren"?
                                  2b. Dann unter "NAS/Kopieren" Verbindungstyp = "Copy"; den Pfad unten kannst Du leer lassen

                                Gruß Thomas

                                1 Reply Last reply Reply Quote 0
                                • T
                                  Tomme last edited by

                                  Guten Morgähn Thomas,
                                  Backitup ist in seiner Grundeinstellung weil ich mit mount mit oder ohne sudo keine Verknüpfung zu meinem Windows Rechner hin bekomme. cifs-utils ist standardmäßig installiert und aktuell aber smbclient lässt sich auch nicht installieren wegen fehlender quellen

                                  root@iobroker:/opt/iobroker# apt install smbclient -y
                                  Reading package lists... Done
                                  Building dependency tree... Done
                                  Reading state information... Done
                                  Package smbclient is not available, but is referred to by another package.
                                  This may mean that the package is missing, has been obsoleted, or
                                  is only available from another source
                                  
                                  E: Package 'smbclient' has no installation candidate
                                  root@iobroker:/opt/iobroker# apt install cifs-utils -y
                                  Reading package lists... Done
                                  Building dependency tree... Done
                                  Reading state information... Done
                                  cifs-utils is already the newest version (2:6.11-3.1+deb11u1).
                                  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                                  root@iobroker:/opt/iobroker# mount -t cifs -o user=Tomme,password=8005,rw,file_mode=0777,dir_mode=0777,vers=2.0 //192.168.7.1/BackItUp/ /opt/iobroker/backups
                                  Unable to apply new capability set.
                                  root@iobroker:/opt/iobroker# 
                                  

                                  ich habe mir dann die Backups in /opt/iobroker/backups per sftp kopiert kann sie aber nicht sehen wenn ich auf restore gehe ... er zeigt nicht einmal das ganz frisch selbst erstellte ab ...

                                  6b997886-0802-4b9a-855f-f33322b970cb-image.png

                                  f329106b-c337-46fc-a7d5-11e79173b18a-image.png

                                  Das mit Yahka war zwar Auslöser aber ich kann erstmal gut ohne überleben das stört mich jetzt nicht so sehr.

                                  an dem stack den wir gestern erstellt haben habe ich nichts verändert siehe:

                                  f72bd7c3-8790-4cca-81f1-f5877f59e33f-image.png

                                  594f455e-b283-47fe-aac7-1373f7c84695-image.png

                                  T Glasfaser 2 Replies Last reply Reply Quote 0
                                  • T
                                    ThomasK1966 @Tomme last edited by

                                    @tomme
                                    Wenn Du die im Ordner /opt/iobroker/backups im backitup-Adapter nicht sehen kannst, muss das an den Einstellungen im backitup-Adapter liegen.
                                    Im Grunde habe ich ja schon beschrieben wie der eingestellt sein muss, damit er auf die Backups in dem Verzeichnis zugreifen kann.

                                    Wie man den smbclient nachinstalliert kann ich jetzt auch nicht sagen.

                                    Gruß Thomas

                                    T 1 Reply Last reply Reply Quote 0
                                    • T
                                      Tomme @ThomasK1966 last edited by

                                      @thomask1966 sagte in Yahka Adapter in iobroker im Docker Container:

                                      schon beschrieben wie der eingestellt sein muss, d

                                      da sind die standardeinstellungen drin ... das würde sich ja nach dem restore erst verändern mit den gespeicherten daten
                                      das Backup macht er ja auch im richtigen Pfad ... er zeigt nur beim wiederherstellen nichts an

                                      0345f23f-d420-4ae0-861f-b38fdf1e3613-image.png
                                      f8c38901-5a18-43ae-8bde-107d3782ed25-image.png
                                      0bc21d4b-ac84-439e-9b3b-3f35429e8068-image.png
                                      1556d18e-e924-4d74-a791-80353da63a91-image.png
                                      b6de2aba-7d5f-4612-b2de-da6212a3875a-image.png

                                      1 Reply Last reply Reply Quote 0
                                      • Glasfaser
                                        Glasfaser @Tomme last edited by

                                        @tomme

                                        zu deinem ersten Versuch zu Restore :

                                        root@iobroker:/opt/iobroker# sudo iobroker stop
                                        

                                        lass die Finger von sudo vor ioBroker Befehle ,
                                        dann

                                        iobroker stop

                                        gibt es nicht im Container , dafür :

                                        pkill -u iobroker
                                        

                                        dann

                                        root@iobroker:/opt/iobroker# iob start
                                        

                                        macht man nicht ,
                                        Starte den Container über Portainer neu .

                                        und :

                                        root@iobroker:/opt/iobroker# iob status
                                        
                                        iobroker is running on this host.
                                        

                                        bekommst du keine Restore eingespielt , da kein

                                        pkill -u iobroker
                                        

                                        gemacht wurde .

                                        Und ... warum du so mit deine sudo Probleme hast , kann ich leider nicht erkennen !

                                        T 3 Replies Last reply Reply Quote 0
                                        • Glasfaser
                                          Glasfaser @Tomme last edited by

                                          @tomme sagte in Yahka Adapter in iobroker im Docker Container:

                                          ich habe mir dann die Backups in /opt/iobroker/backups per sftp kopiert kann sie aber nicht sehen wenn ich auf restore gehe ... er zeigt nicht einmal das ganz frisch selbst erstellte ab ...

                                          dann stimmt etwas nicht mit deinem Mount .

                                          Schau mal auf der PI wer Besitzer deines Ordners

                                          opt/iobroker

                                          ist und ob dort etwas vorhanden ist .

                                          T 1 Reply Last reply Reply Quote 0
                                          • T
                                            Tomme last edited by

                                            @glasfaser sagte in Yahka Adapter in iobroker im Docker Container:

                                            ass die Finger von sudo vor ioBroker Befehle ,

                                            hab ich nur probiert weil ohne sudo iob an geblieben ist

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            934
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            255
                                            22950
                                            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