Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. js-controller 2.0 ab sofort im Latest Repo

    NEWS

    • [erledigt] 15. 05. Wartungsarbeiten am ioBroker Forum

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    js-controller 2.0 ab sofort im Latest Repo

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

      @MathiasJ Bitte Adapter-Issue öffnen!

      PS: Und es läuft wirklich kein Prozess mehr?

      MathiasJ 1 Reply Last reply Reply Quote 0
      • N
        NightWatcher last edited by

        Mal eine allgemeine Frage:
        1.) Wieso darf ioBroker auf Windows Systemen, die mit dem Installer installiert wurden, eigentlich nicht mit npm aktualisiert werden?
        2.) Gilt das immer grundsätzlich beim aktualisieren von dem js.controller oder nur bei diesem umfangreichen update?
        3.) Wie lange wird man voraussichtlich noch auf den neuen installer warten müssen?

        apollon77 N 2 Replies Last reply Reply Quote 0
        • D
          darkiop Most Active last edited by

          @apollon77

          Ich habe zur Vorbereitung der Migration meines Produktiven System von file/file zu redis/redis eine Testumgebung aufgebaut. Kann das Verhalten aber gerade nicht einschätzen.

          # REDIS TEST
          
          ## ioBroker Test Instanz
          
          docker run -d \
          --name=iobroker-test-redis \
          --hostname=iobroker-test-redis \
          --env="LANG=de_DE.UTF-8" \
          --env="LANGUAGE=de_DE:de" \
          --env="LC_ALL=de_DE.UTF-8" \
          --env="TZ=Europe/Berlin" \
          --env="PACKAGES=powerline dnsutils vim byobu ranger htop cifs-utils net-tools html2text fping curl speedtest-cli unzip nmap toilet jq" \
          --env="AVAHI=false" \
          --volume="/volume2/docker-ssd/iobroker-test-redis/opt-iobroker:/opt/iobroker:rw" \
          --volume="/volume2/docker-ssd/iobroker-test-redis/root:/root:rw" \
          --network=mac0 \
          --ip=192.168.1.87 \
          --dns=192.168.1.43 \
          --restart=no \
          buanet/iobroker:beta
          
          ## Redis Test Instanz
          docker run -d \
          --name iobroker-test-redis-db \
          --network=mac0 \
          --ip=192.168.1.89 \
          --dns=192.168.1.43 \
          --restart=no \
          redis:latest
          
          ## Redis Connection Test
          docker run -it --network mac0 --rm redis redis-cli -h iobroker-test-redis-db
          

          Verbindungs-Test zur Redis DB war positiv.

          Danach wurde der js-controller auf 2.0.25 gezogen.

          Dann via 'iobroker setup custom' auf redis umgestellt:

          ┬─[root@iobroker-test-redis:/opt/iobroker]─[10:02:44]
          ╰─># iobroker setup custom
          Current configuration:
          - Objects database:
            - Type: file
            - Host/Unix Socket: 127.0.0.1
            - Port: 9001
          - States database:
            - Type: file
            - Host/Unix Socket: 127.0.0.1
            - Port: 9000
          - Data Directory: ../../iobroker-data/
          
          Type of objects DB [(f)ile, (r)edis], default [file]: r
          
          When Objects and Files are stored in a Redis database please consider the following:
          1. All data will be stored in RAM, make sure to have enough free RAM available!
          2. Make sure to check Redis persistence options to make sure a Redis problem will not cause data loss!
          3. The Redis persistence files can get big, make sure not to use an SD card to store them.
          
          Host / Unix Socket of objects DB(redis), default[127.0.0.1]: 192.168.1.89
          Port of objects DB(redis), default[6379]: 
          Type of states DB [(f)file, (r)edis], default [redis]: 
          Host / Unix Socket of states DB (redis), default[192.168.1.89]: 
          Port of states DB (redis), default[6379]: 
          Host name of this machine [iobroker-test-redis]: 
          Please choose if this is a Master/single host (enter "m") or a Slave host (enter "s") you are about to edit. For Slave hosts the data migration will be skipped. [S/m]: m
          
          Important: Using Redis for the Objects database is only supported
          with js-controller 2.0 or higher!
          When your system consists of multiple hosts please make sure to have
          js-controller 2.0 or higher installed on ALL hosts *before* continuing!
          
          
          Important #2: If you already did the migration on an other host
          please *do not* migrate again! This can destroy your system!
          
          
          Important #3: The process will migrate all files that were officially
          uploaded into the ioBroker system. If you have manually copied files into
          iobroker-data/files/... into own directories then these files will NOT be
          migrated! Make sure all files are in adapter directories inside the files
          directory!
          
          
          Do you want to migrate objects and states from "file/file" to "redis/redis" [y/N]: y
          
          Migrating the objects database will overwrite all objects! Are you sure that this is not a slave host and you want to migrate the data? [y/N]: y
          
          Connecting to previous DB "file"...
          Creating backup ...
          This can take some time ... please be patient!
          host.iobroker-test-redis 361 states saved
          host.iobroker-test-redis 464 objects saved
          Backup created: /opt/iobroker/backups/2019_10_12-10_04_57_backupiobroker-migration.tar.gz
          updating conf/iobroker.json
          
          Connecting to new DB "redis" ...
           Cannot read system.config: null
          Restore backup ...
          This can take some time ... please be patient!
          iobroker controller daemon is not running
          host.iobroker-test-redis OK.
          host.iobroker-test-redis Clear all objects and states...
          clean 0 states...
          host.iobroker-test-redis done.
          host.iobroker-test-redis Processed 0/361 states
          host.iobroker-test-redis Processed 200/361 states
          361 states restored.
          host.iobroker-test-redis Processed 0/464 objects
          host.iobroker-test-redis Processed 200/464 objects
          host.iobroker-test-redis Processed 400/464 objects
          464 objects restored.
          upload [3] admin.admin /opt/iobroker/node_modules/iobroker.admin/admin/words.js words.js application/javascript
          upload [2] admin.admin /opt/iobroker/node_modules/iobroker.admin/admin/index_m.html index_m.html text/html
          upload [1] admin.admin /opt/iobroker/node_modules/iobroker.admin/admin/index.html index.html text/html
          upload [0] admin.admin /opt/iobroker/node_modules/iobroker.admin/admin/admin.png admin.png image/png
          upload [5] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/words.js words.js application/javascript
          upload [4] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/settings_m.html settings_m.html text/html
          upload [3] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/settings.html settings.html text/html
          upload [2] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/index_m.html index_m.html text/html
          upload [1] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/index.html index.html text/html
          upload [0] discovery.admin /opt/iobroker/node_modules/iobroker.discovery/admin/discovery.png discovery.png image/png
          upload [80] info.admin /opt/iobroker/node_modules/iobroker.info/admin/words.js words.js application/javascript
          upload [70] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/js/hostInfo.js lib/js/hostInfo.js application/javascript
          upload [60] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/js/bootstrap.min.js lib/js/bootstrap.min.js application/javascript
          upload [50] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/img/logos/slackware.png lib/img/logos/slackware.png image/png
          upload [40] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/img/logos/manjaro.png lib/img/logos/manjaro.png image/png
          upload [30] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/img/logos/coreos.png lib/img/logos/coreos.png image/png
          upload [20] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/img/icons/disk.png lib/img/icons/disk.png image/png
          upload [19] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/img/icons/cpu.png lib/img/icons/cpu.png image/png
          upload [18] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/img/icons/battery.png lib/img/icons/battery.png image/png
          upload [17] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/img/clock/sechand.png lib/img/clock/sechand.png image/png
          upload [16] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/img/clock/minhand.png lib/img/clock/minhand.png image/png
          upload [15] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/img/clock/hourhand.png lib/img/clock/hourhand.png image/png
          upload [14] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/img/clock/clockface.png lib/img/clock/clockface.png image/png
          upload [13] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/fonts/fontawesome-webfont.woff2 lib/fonts/fontawesome-webfont.woff2 font/woff2
          upload [12] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/fonts/fontawesome-webfont.woff lib/fonts/fontawesome-webfont.woff font/woff
          upload [11] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/fonts/fontawesome-webfont.ttf lib/fonts/fontawesome-webfont.ttf font/ttf
          upload [10] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/fonts/fontawesome-webfont.svg lib/fonts/fontawesome-webfont.svg image/svg+xml
          upload [9] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/fonts/fontawesome-webfont.eot lib/fonts/fontawesome-webfont.eot application/vnd.ms-fontobject
          upload [8] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/fonts/FontAwesome.otf lib/fonts/FontAwesome.otf font/otf
          upload [7] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/data/infoData.json lib/data/infoData.json application/json
          upload [6] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/css/simplemde.min.css lib/css/simplemde.min.css text/css
          upload [5] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/css/info.css lib/css/info.css text/css
          upload [4] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/css/font-awesome.min.css lib/css/font-awesome.min.css text/css
          upload [3] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/css/chartist.min.css lib/css/chartist.min.css text/css
          upload [2] info.admin /opt/iobroker/node_modules/iobroker.info/admin/lib/css/bootstrap.min.css lib/css/bootstrap.min.css text/css
          upload [1] info.admin /opt/iobroker/node_modules/iobroker.info/admin/info.png info.png image/png
          upload [0] info.admin /opt/iobroker/node_modules/iobroker.info/admin/index_m.html index_m.html text/html
          Backup restored!
          
          Important: If your system consists of multiple hosts please execute 
          "iobroker upload all" on the master AFTER all other hosts/slaves have 
          also been updated to this states/objects database configuration AND are
          running!
          
          ┬─[root@iobroker-test-redis:/opt/iobroker]─[10:06:04]
          ╰─># iobroker start
          Starting iobroker controller daemon...
          iobroker controller daemon started. PID: 5626
          
          ┬─[root@iobroker-test-redis:/opt/iobroker]─[10:06:12]
          ╰─># iobroker status
          iobroker is running on this host.
          
          At least one iobroker host is running.
          
          Objects type: redis
          States  type: redis
          

          Was mich hier verwirrt.

          Connecting to new DB "redis" ...
           Cannot read system.config: null
          Restore backup ...
          

          Ist das so OK?

          PS: Noch ein kleiner "Bug" am Rande:

          Please choose if this is a Master/single host (enter "m") or a Slave host (enter "s") you are about to edit. For Slave hosts the data migration will be skipped. [S/m]:

          [S/m] --> Sollte [m/s] sein oder? 🙂

          apollon77 1 Reply Last reply Reply Quote 0
          • MathiasJ
            MathiasJ @apollon77 last edited by

            @apollon77
            Da steht nur, dass @AlCalzone den Adapter überprüfen soll.
            Lösungsvorschläge gibt's da anscheinend noch nicht.
            Nein, Adapter ist komplett tot.

            apollon77 1 Reply Last reply Reply Quote 0
            • apollon77
              apollon77 @darkiop last edited by

              @darkiop Wegen der Meldung schaue ich mal, aber die wäre bei einem "leeren" Redis normal (aber ja sollte nicht kommen) und es sieht alles ok aus.

              Zu deiner Text-Frage: "Gross" ist der Default geschrieben wenn Du nur Enter drücken würdest. bedeutet "Enter" = Slave = keine Migration

              1 Reply Last reply Reply Quote 0
              • apollon77
                apollon77 @MathiasJ last edited by

                @MathiasJ ALso man könnte mal versuchen die "adapter.log..." zeilen in den beiden "process.on(..." Funktionen am Ende vom genannten File auszukommentieren. Aber ja @AlCalzone muss das ansehen

                1 Reply Last reply Reply Quote 0
                • M
                  mameier1234 @apollon77 last edited by mameier1234

                  @apollon77 scheint doch nicht ganz so einfach zu sein... ...

                  pi@raspberrypi:/opt/iobroker $ sudo -u iobroker -H npm install iobroker.js-controller
                  
                  > iobroker.js-controller@1.5.14 preinstall /opt/iobroker/node_modules/iobroker.js-controller
                  > node lib/preinstallCheck.js
                  
                  NPM version: 6.9.0
                  npm version >= 5: disabling package-lock
                  
                  > iobroker.js-controller@1.5.14 install /opt/iobroker/node_modules/iobroker.js-controller
                  > node iobroker.js setup first
                  
                  events.js:174
                        throw er; // Unhandled 'error' event
                        ^
                  
                  Error: listen EADDRNOTAVAIL: address not available 192.168.160.1:9001
                      at Server.setupListenHandle [as _listen2] (net.js:1262:19)
                      at listenInCluster (net.js:1327:12)
                      at doListen (net.js:1460:7)
                      at process._tickCallback (internal/process/next_tick.js:63:19)
                  Emitted 'error' event at:
                      at emitErrorNT (net.js:1306:8)
                      at process._tickCallback (internal/process/next_tick.js:63:19)
                  npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@0.1.4 (node_modules/xpc-connection):
                  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
                  
                  npm ERR! code ELIFECYCLE
                  npm ERR! errno 1
                  npm ERR! iobroker.js-controller@1.5.14 install: `node iobroker.js setup first`
                  npm ERR! Exit status 1
                  npm ERR! 
                  npm ERR! Failed at the iobroker.js-controller@1.5.14 install 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/2019-10-12T10_38_19_954Z-debug.log
                  pi@raspberrypi:/opt/iobroker $ 
                  
                  
                  apollon77 1 Reply Last reply Reply Quote 0
                  • apollon77
                    apollon77 @mameier1234 last edited by

                    @mameier1234 whhhaatttt?! Nimm mal iobroker.js-controller@2.0.25 zum installieren.

                    M 1 Reply Last reply Reply Quote 0
                    • crunchip
                      crunchip Forum Testing Most Active @apollon77 last edited by

                      @apollon77 sagte in js-controller 2.0 ab sofort im Latest Repo:

                      Nötige Adapter-Aktualisierungen

                      heisst das, ich brauch minimal diese Versionen oder ich muss all diese zurückspielen auf die genannten?
                      da mein System mit sämtlichen Adaptern auf dem neusten Stand läuft.

                      apollon77 1 Reply Last reply Reply Quote 0
                      • apollon77
                        apollon77 @crunchip last edited by

                        @crunchip Das steht doch genau da ... Beispiel

                        • simple-api 2.1.2 or higher

                        Also 2.1.2 is MINIMAL Version ... "or higher" bedeutet das aktuelle Versionen natürlich auch gehen.

                        Was ist jetzt genau die Frage? 😉

                        crunchip 1 Reply Last reply Reply Quote 0
                        • crunchip
                          crunchip Forum Testing Most Active @apollon77 last edited by

                          @apollon77 das war genau die Frage😁
                          hab das irgendwie falsch verstanden,
                          alles ok,
                          dann werde ich mal den Versuch wagen und hoffen das anschliessend auch alles wie gewünscht weiter läuft.
                          Proxmox Backup und Snapshot sind erstellt, sicher ist sicher😁

                          1 Reply Last reply Reply Quote 0
                          • Chaot
                            Chaot last edited by

                            Das ich nicht mehr an selbst angelegte Verzeichnisse komme habe ich gelesen.
                            Aber scheinbar mache ich irgendwas falsch bei der Umsetzung der Befehle.
                            Original:

                            exec('wget --output-document /opt/iobroker/iobroker-data/files/tuer/tuer/alarm1.jpg \'http://192.168.8.95:8765/picture/1/current/?_username=admin&_signature=ba8317b8fc071dadb725d4d0d9dbf7e606acbf1e\'');
                            

                            will ich ändern in:

                            exec('wget --output-document /opt/iobroker/iobroker-data/files/vis.0/tuer/tuer/alarm1.jpg \'http://192.168.8.95:8765/picture/1/current/?_username=admin&_signature=ba8317b8fc071dadb725d4d0d9dbf7e606acbf1e\'');
                            

                            Scheinbar der falsche Befehl oder warum klappt das nicht mehr?

                            SBorg 1 Reply Last reply Reply Quote 0
                            • crunchip
                              crunchip Forum Testing Most Active last edited by crunchip

                              ist alles sauber durchgelaufen.
                              was nun auf die schnelle aufgefallen ist:

                              Punkt1

                              radar2.0	2019-10-12 14:04:21.300	warn	(26795) No geo location data found configured in admin to calculate UWZ AREA ID or ID not valid!
                              

                              ist aber hinterlegt!!

                              Punkt2
                              virtualpowermeter info wird im log permanent angezeigt, obwohl es auf "error" steht
                              lad ich das log herunter, ist davon jedoch nichts zu sehen.

                              apollon77 1 Reply Last reply Reply Quote 0
                              • M
                                mameier1234 @apollon77 last edited by

                                @apollon77 ja.. so läuft das besser 🙂

                                Sollte der FAQ-Artikel überarbeitet werden ?

                                for my problem: solved !

                                apollon77 1 Reply Last reply Reply Quote 0
                                • SBorg
                                  SBorg Forum Testing Most Active @Chaot last edited by

                                  @Chaot sagte in js-controller 2.0 ab sofort im Latest Repo:

                                  oder warum klappt das nicht mehr?

                                  Ev. mit falschen Rechten angelegt? "tuer" muss dem User iobroker gehören bzw. Schreibrechte darin haben.

                                  Chaot 1 Reply Last reply Reply Quote 0
                                  • Chaot
                                    Chaot @SBorg last edited by Chaot

                                    @SBorg
                                    Es scheint doch zu klappen.
                                    Die Mail mit den Bildern bekomme ich wenn ich das Verzeichnis so angebe.
                                    Aber in VIS kann ich die Bilder nicht sehen.
                                    Ich werde mir mal die Rechte anschauen. Danke für den Tip.

                                    Edit: Rechte scheinen zu stimmen.
                                    Die Bilder sind im Verzeichnis. Aber mit VIS lassen sie sich nicht abrufen.

                                    apollon77 1 Reply Last reply Reply Quote 0
                                    • apollon77
                                      apollon77 @crunchip last edited by

                                      @crunchip Radar2 version aktualisiert bzw manuell gefixt? Siehe erster Post??

                                      Logging das „zu viel“ im Admin log tab angezeigt wird ist known. Logfile auf Platte steht es nicht drin.

                                      crunchip 2 Replies Last reply Reply Quote 0
                                      • apollon77
                                        apollon77 @Chaot last edited by

                                        @Chaot ja weil das unkontrollierte reinkopieren halt nicht mehr geht. Files in den iobroker storage müssen über die Funktionen reinkommen.

                                        Also anlegen und per writeFile oder kommandozeile iobroker Befehle uploaded.

                                        Chaot 1 Reply Last reply Reply Quote 0
                                        • apollon77
                                          apollon77 @mameier1234 last edited by

                                          @mameier1234 faq .. wenn ich kapieren würde warum das bei dir passiert ist ja. 😉 hätte nicht sein dürfen.

                                          1 Reply Last reply Reply Quote 1
                                          • crunchip
                                            crunchip Forum Testing Most Active @apollon77 last edited by

                                            @apollon77 sagte in js-controller 2.0 ab sofort im Latest Repo:

                                            Logfile auf Platte steht es nicht drin.

                                            richtig

                                            radar2 hab ich noch nichts weiter unternommen, da es weiter keinen Fehler bezüglich radar2 gibt und ich nicht weiß ob der Fehler von radar oder admin kommt.
                                            werde ich mir das mit dem radar noch mal ansehn

                                            apollon77 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

                                            403
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            js-controller
                                            89
                                            1052
                                            258889
                                            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